Live data from Hacker News

We got hacked

plumbr.eu

11–20 of 25 posts

Re: We got hacked

#11
"my fellow co-founder who just happens to have a lot more experience in the field of hacking and getting hacked"

I see irony in the "getting hacked" part. But seriously, if he is more experienced, then why do they have machines unpatched like that for 6 months?

"it seems it was indeed a kid who did not understand how to install a proper rootkit and cover up his tracks"

It is rather bold to be posting about how you just got hacked by not applying simple patches, and to then bash the "kid" who couldn't install a proper rootkit.

Re: We got hacked

#12

"my fellow co-founder who just happens to have a lot more experience in the field of hacking and getting hacked" I see irony in the "getting hacked" part. But seriously, if he is more experienced, then why do they have machines unpatched like that for 6 months? "it seems it was indeed a kid who did not understand how to install a proper rootkit and cover up his tracks" It is rather bold to be posting about how you ju…

That is indeed the case - both players in this match were not careful. We are open about our shortcomings and also think that the other player was not too careful to say the least ...

Re: We got hacked

#13
post #9

Earlier quoted context omitted.

That's helpful, cheers. How about letting us lesser plebs know how to do it properly then?

This is probably beyond the scope of such a thread, but configuration automation via Chef or Puppet is where you'd start.

You really think that's the best place to start?

I would begin with a figuring out a more secure, desired configuration before trying to automate it. (Especially given, IMHO, the very steep learning curve for Chef & Puppet)

Re: We got hacked

#14

"my fellow co-founder who just happens to have a lot more experience in the field of hacking and getting hacked" I see irony in the "getting hacked" part. But seriously, if he is more experienced, then why do they have machines unpatched like that for 6 months? "it seems it was indeed a kid who did not understand how to install a proper rootkit and cover up his tracks" It is rather bold to be posting about how you ju…

In fairness to the hacker, that machine was probably the 20th one he hacked that day. I've seen it dozens of times - hackers hack boxes but they have so many that they just become careless. You'll see root shells running right off low ports through inetd because they just want convenience and don't care if someone else "steals" the box from them.

I wouldn't be surprised if the hacker accidentally killed SSH through a complete lack of caring due to glutted inventory of hacked boxes.

Presumably, OP was fairly dependent on this box so I don't necessarily understand their carelessness.

Re: We got hacked

#16
post #9

This whole post reads like "How Not to Use AWS" instruction guide. If you're running anything important on a single EC2 instance, you're doing it wrong. If you're logging in and manually configuring an EC2 instance, you're also doing it wrong.

That's helpful, cheers. How about letting us lesser plebs know how to do it properly then?

Puppet and Chef are great tools, but my first entry into AWS management was a little more attainable without having to learn anything new.

I simply set up the instance to automatically download the current codebase from our 'production' repo on every boot, automatically install requirements, run database migrations, etc. Then freeze that AMI as the production AMI.

If you migrate your databases off of the instance to RDS, don't use EBS, and manage user uploads and static assets to go straight to S3, then what you end up with a very easily load balanceable configuration.

To set up load balancing, just spin up two of those instances, attach them to an elastic load balancer, attach the load balancer to your elastic IP, then you ought to be more redundant and management free. (Note, this doesn't fix your security issues, though you could very easily bake a nightly apt-get run for security updates into that image).

After that, you want to look into Fabric (or language-specific alternatives if they exist) to allow for remote management of your machines for things like bouncing web services, pulling new code deploys, etc.

If you want to sidestep all this management altogether, I'd strongly suggest looking into something like dotcloud - http://dotcloud.com/ - which effectively does all this for you.

Re: We got hacked

#18

Was the original attack via jenkins? all it says some vague privilege escalation was used to upload c file. what?

No the author seems to indicate that it was on their application code and an attacker was able to get OS access, and the attacker subsequently replaced the ssh service with one that instead ignores login attempts and harvests the username/password pairs.

It seems to have been a coincidence that their Jenkins service was not secured.

Re: We got hacked

#19

This whole post reads like "How Not to Use AWS" instruction guide. If you're running anything important on a single EC2 instance, you're doing it wrong. If you're logging in and manually configuring an EC2 instance, you're also doing it wrong.

That may be true from a scalability and maintenance perspective. I don't see how those criticisms relate to security. Automatically-maintained hosts are no less subject to exploit...

Re: We got hacked

#20
"C source named backdoor.h" Why would an attacker leave a file with that name? Seems like misdirection or a mistake. How are you going to verify they did nothing else?
Post reply on HN