HNHacker News
TopNewBestAskShowJobs

graystevens

851 karma · joined May 29, 2014

[ my public key: https://keybase.io/graystevens; my proof: https://keybase.io/graystevens/sigs/_4qVvqrHehM0x3Xm0Iw5bXNk1N-BsvIXcn6C9FAVe3U ] findkismet: 7aa1f72a72193c6baa62b247c4dce3bd441fe4a01aaf341be66dff13e1574334

Email: graham@grh.am

submissionscomments
graystevens··on Carphone Warehouse fined after failures put customer and employee data at risk
Good point, the report calls out that the root password for 40+ servers was the same, and that a large number of employees knew or used it. Seems sensible to transfer that same mentality across to other sensitive accounts.
graystevens··on Carphone Warehouse fined after failures put customer and employee data at risk
Section 13 onwards makes for a great read as to how this all went down. The attacker used a common security scanning tool Nikto, which would have told them that WordPress and its plugins were horrifically out of date. Any tool could have found this (WPScan, Nessus.. a manual check through HTML source), but Nikto was likely identified due to some common defaults such as the User-Agent within the requests etc.

Once they identified the vulnerability to exploit, it seems they used genuine credentials to then place webshells on the server which gave them persistence - a low-level reverse shell if you will, allowing them to traverse the file system, execute commands as if they had genuine access. Next up, a quick grep for plaintext credentials that they can then pivot with. There are still questions around how those credentials were obtained, but they'd don't specifically call them out as being default.

The report then jumps to the person accessing databases (including payment card info.. whoops) - the question here is why did a Wordpress instance have access to such data? I can't imagine it would have needed it, so I suspect that they either had one huge DB server containing the backend for this WordPress instance, plus their customer data & payment info databases/tables. Or, the malicious actor traversed the internal network, using the WordPress as a pivot point.

Last point worth calling out, is that they are unsure how much of the data was actually exfiltrated - "[...] the transaction/payment card information referred to above was located and accessed: it cannot be ascertained whether or not some or all of that information was indeed exported, but that is a very realistic possibility." This is a common problem with breaches, and an area what active monitoring can help. By planting unique details/tokens into the database (users, payment information etc.), you can start scanning for them on the clear and dark web. As and when they appear, you can confirm if the data was exfiltrated (and with many honeypots, pinpoint time of the breach). This is one of the many reasons I put BreachInsider[0] together.

[0]https://breachinsider.com

graystevens··on Show HN: Flaws: learn about common mistakes and gotchas when using AWS
Thanks for putting this together Scott - I remember running through the exercises a year or so ago and realising how awesome some of these mistakes are. I ended up turning the S3 bucket stuff into a conference presentation, after bruteforcing *.s3.amazonaws.com for valid buckets, and checking their permissions/ACLs.

Great for bug bounties, or in UpGuard’s situation, a tonne of publicity from private data being accessible from public buckets.

graystevens··on How the Scripto App Became a Fixture of Late-Night Comedy News
Depending on what is in your git repo, please don’t be the next Uber - if you had any secrets in your repository (even historical), definitely roll all your API keys and check secrets/credentials etc.
graystevens··on Microsoft disables Windows Update when Meltdown/Spectre registry key isn't set
Nope, Windows Defender has already set the registry key, and you should be good to go. For the rest of you, there is a good public document[0] that is being regularly updated on the status of each of the AV products out there.

[0]https://docs.google.com/spreadsheets/d/184wcDt9I9TUNFFbsAVLp...

graystevens··on Mailgun Security Incident and Important Customer Information
Agreed. Super disappointed by this (cleartext details and the breach). Will be looking to move all services from Mailgun shortly.
graystevens··on Nissan Finance Canada Suffers a Data Breach
Another breach. Credit where credit is due, they haven’t done too badly with the announcement, but there are some key facts that people would like to know that they unfortunately haven’t mentioned.

* They became aware of it Dec 11th – do they have an estimate of when this occurred?

* They mention what types of information has likely been affected, yet for some reason they mention “no payment details have been breached” right at the end of the Q&A? I’d have expected that to be much higher up the announcement.

* Not needed in the general announcement, but knowing how is always a point of interest (that may just be me, being in the business) – third party? SQLi? etc.

* How did they become aware of this? Did they discover this internally? Or did an outsider give them the heads up.

I’d like to think that one day, that last question can be answered by my startup[0], detecting breaches with a high degree of confidence with pseudo/honey users.

[0] https://breachinsider.com

graystevens··on SQL Injection Wiki
SQLmap is a great tool for automated scanning and exploiting of SQLi vulnerabilities. Like everything though, it can miss the occasional exploit, where someone with the expertise might be better suited, but generally speaking it’s an awesome place to start.

It also has sane defaults, which means scriptkiddies chancing their luck with it should be easily spotted in your access.log, or depending on your environment a WAF/IDS/IPS should block/detect quickly.

graystevens··on GitHub OAuth Security Issue
My comments from the other thread: https://news.ycombinator.com/item?id=15963787

Very interesting. I wonder if any private organisations setup a pseudo/canary repositories, that when pulled triggered an alarm? Or simply contained some monitored API keys or credentials to spot any activity/Insider threats.

Might be a neat idea for those businesses that are concerned about their private repos (either cloud hosted or self hosted).

May have picked up if anyone was able to exploit this.

graystevens··on Flaw in GitHub OAuth logic allowed unrestricted access to private repositories
Clickable link: https://gist.github.com/kailan/9f37ec2cd76314f945dda65e5beab...

Very interesting. I wonder if any private organisations setup a pseudo/canary repositories, that when pulled triggered an alarm? Or simply contained some monitored API keys or credentials to spot any activity/Insider threats.

Might be a neat idea for those businesses that are concerned about their private repos (either cloud hosted or self hosted).

May have picked up if anyone was able to exploit this.

graystevens··on Ask HN: How did you acquire your first 100 users? b2b
Very interesting that Facebook ads are working for you - I have avoided them so far due to their cost but maybe I shall reconsider. So far I’ve been cold emailing my target market, but being new to all of this I am still tweaking my efforts - nailing down my initial email and the correct targets within a business (VP? Engineers? etc.)

Seems I may need to reconsider Facebook Ads...

graystevens··on Ask HN: Ruby or Python for 2018?
This. If it’s a side project that is intended for self-development and learning, try it in a new language and see how you get on. If it’s something even remotely important or think might turn into more than just a side-project, go with what you know or are comfortable with.
graystevens··on The Mirai Botnet Was Part of a College Student Minecraft Scheme
Just to clarify, he’s not with BT any longer, but with IBM Resilient:

He has been working for IBM since they acquired Resilient Systems where Schneier was CTO.

graystevens··on Redoing all my home networking
Nope but there are certainly some articles discussing the use of USB NICs, and their performance.

http://www.virten.net/2016/06/additional-usb-nic-for-intel-n...

graystevens··on Redoing all my home networking
This is the route I’ve just started down - a NUC with as much memory I can shove into it. Doesn’t cost a fortune to run, and as basically silent. Love it.
graystevens··on Show HN: Breach Insider – Detect a data breach using realistic pseudo-users
Would love to – We have quite a few cool features and interesting link ups that we would love to do, and this is certainly one of them.
graystevens··on Show HN: Breach Insider – Detect a data breach using realistic pseudo-users
It should alert as soon as it hits our mail servers - let check its route and see what happened for you.. apologies.

Edit: Bug fixed, really sorry about that! I've sent an email to the insiders address, to give you an example alert.

graystevens··on Show HN: Breach Insider – Detect a data breach using realistic pseudo-users
That’s on the roadmap, as Troy sometimes get breaches personally handed to him. Ideally I’d like to be the one detecting the first of course :)
graystevens··on Show HN: Breach Insider – Detect a data breach using realistic pseudo-users
That’s a very valid point - whitelisting DKIM domains was the quickest option as it is easily parsed and verified. Will certainly look into this.
graystevens··on Show HN: Breach Insider – Detect a data breach using realistic pseudo-users
Completely agree, and that’s why our email addresses are formed in a way which shouldn’t be bruteforced/guessed to help reduce this. We’ve purchased a handful of our own domains that we monitor, rather than relying on any other suppliers.

In terms of mobile numbers, they are definitely prone to this, and that is why we make them optional - depends if you want to risk any false positive alarms. Some countries are more prone than others - US mobile get reused a lot it seems!

graystevens··on Show HN: Breach Insider – Detect a data breach using realistic pseudo-users
I completely agree that preventative/proactive measures are always going to be better than something retrospective such as my service (although I’d argue that they complement each other nicely, of course).

In terms of why a mid-sized SaaS should go this route - I would like to think that Breach Insider is a slightly more cost-effective option. To do detection and correlation properly, you’re looking at a SIEM with the right logs and hopefully some well formed rules. However at this stage, I’d argue that to get the absolute most out of this, you’re looking at supporting & monitoring this with at least one dedicated employee, else all those logs will be wasted.

graystevens··on Show HN: Breach Insider – Detect a data breach using realistic pseudo-users
Creator here – There are a few ways we can detect a breach/leak using our Insiders.

1. The unique email address assigned to the Insider is contacted. We gather forensic evidence of the email along with any attachments. Useful to identify specific attacks against your users too.

2. An optional real mobile number assigned to your Insider is contacted. Again, we store all of the details, including the original SMS details or even call recordings.

3. Your Insider shows up on the Internet or dark web somewhere - we check a number of common sources for dumps, such as Pastebin for any references to the Insider. We currently keep a copy of the contents of the paste, as the original details could be removed at any time. However, we are working on better captures (full page screenshots, entire copy of the DOM etc.)

We are working a few more detection methods too, which we shall reveal soon...

graystevens··on Two Factor Auth List
Got a pull request in for our startup to say we do software 2fa. Will be looking into supporting hardware 2fa too when we get the chance.

If you’ve got or know of a site using 2fa, definitely put in a pull request to show your support.

graystevens··on Lessons we learned while bootstrapping
Valid point, and something I considered initially. However we've a security startup – the likelihood hood of us getting a huge wave of visitors, the hug of death, is highly unlikely. Our landing page is static & anything remotely intensive requires an account. We are more likely to be hit by a DDoS, which I would hate to consume by upscaling servers and burning any potential profits we have.

Additionally, I have multiple alerts setup for any signs of downtime, so that any deployment can be invoked as soon as possible.

However, I completely understand your perspective, and if this was a different type of startup or industry, I would probably implement it the way you mentioned.

graystevens··on Lessons we learned while bootstrapping
Agreed with the automation — I’m a fellow bootstrapper[0] in the SaaS space, and wouldn’t be without it. If there is anything that can be automated, even if slightly prematurely before the need to scale arises, I do so.

In terms of infrastructure, this meant using Ansible for quickly deploying new servers where needed and adding them to the right load balancer. Currently all I need to do is spin up a new instance with the right tag & run the relevant Ansible script - this will grab a copy of the site from git, sort out dependencies and any other apps needed (supervisord and so on), and add it to the nginx loadbalancer config as a new upstream server.

Same applies for things like billing. Yes I could have started off doing billing manually, sending out invoices etc, but these take time and realistically need to be automated to avoid any errors.

These things definitely meant I didn’t get my MVP out in weeks, but meant I could still do this as a solo-bootstrapper and look after a young family and such.

[0] https://breachinsider.com

graystevens··on Ask HN: Best screenshot generation API?
We built our own using Chrome Headless and some python. This allows us to use a Tor proxy where required, capture full height screenshots, and dump the DOM.
graystevens··on Arq 5 Mac security update
From the email:

  Arq for Mac Vulnerabilities Fixed
  
  Mark Wadham (thank you Mark for all your help identifying and helping to resolve this!) identified a vulnerability in Arq 5 for Mac where an attacker could become "root" user. The issue was the way Arq applied the set-user-ID-on-execution bit to helper apps (for auto-updating, backup using administrator privileges, and restoring). The affected helper apps were arq_updater (for auto-update), arqcommitter (for backing up) and standardrestorer, arqglacierrestorer and arqs3glacierrestorer (for restoring). The fix for this issue is implemented in Arq 5.10:
  
  When you double-click the Arq icon in the DMG, Arq copies itself to /Applications and sets the permissions on the application bundle to prevent non-root users from modifying it.
  Arq will only set the set-user-ID-on-execution bit on the helper apps if the Arq app bundle is installed in /Applications.
graystevens··on Ask HN: What are you learning right now?
https://breachinsider.com - Feedback welcomed :)
graystevens··on Ask HN: What are you learning right now?
That was a temptation, but I held off as my Show HN didn't get much traction both times I posted it, so figured it is best not to come across as trying to force it.

It is however in my profile, if anyone feels so inclined..

graystevens··on Google Docs are offline
Up for me - UK.
← PreviousPage 3 of 6Next →