News for hackers. Stuff that matters.
Re:My site got "cracked"/defaced. how do I find the root cau... by cleverjake on Tuesday September 13, 2011 @12:13PM (#2992085)
As for the MO - the lulz, would be my guess. Googling it (http://www.google.com/search?gcx=w&ix=c2&sourceid=ch...) shows that who ever is doing it is widely indiscriminatory with who they are hacking. As for how they did it, it really depends on the infrastructure in place already. If you are using any cms (wordpress, drupal) it was likely through that, as there are a number of weaknesses published regularly that are used against it. The first thing to do is check current index to see who wrote to it last, and at what time. If it is the webuser (ie apache, nginx, etc) then it was almost certainly a hack from a browser, if it was root, the server has been compromised. Once you have the file's update time, you should look over your access logs to see if there is anything suspicious lines up that time. As for the cleanup, assuming you are using a linux based server and it was compromised, install rkhunter, run it right away. This should catch anything that they would have used (it seems like a scriptkiddy), change any access port, update your ssh password and change the port, and preferably change over to a key based login system (http://pkeck.myweb.uga.edu/ssh/). I would also look into fail2ban (fail2ban.org) if they did bruteforce, as it would have stopped them. As a cherry ontop, you can setup a basic mail script to send yourself a text/email whenver anyone logs into root/any important account.

If you want any help, I used to do this sort of cleanup as a job, and I have a free afternoon. DM me.

Re:My site got "cracked"/defaced. how do I find the root cau... by Abaddon on Tuesday September 13, 2011 @12:32PM (#2992168)
@cleverjake, M.O. = modus operandi = 'way of working', i.e. how they did it. You answered why, I think. Then I read on to 'indiscriminatory' and gave up on the whole thing. ;)
Re:My site got "cracked"/defaced. how do I find the root cau... by cleverjake on Tuesday September 13, 2011 @12:54PM (#2992273)
haha, morning mind and fat fingers.
Re:My site got "cracked"/defaced. how do I find the root cau... by codyguy on Tuesday September 13, 2011 @12:37PM (#2992190)
Thanks a lot cleverjake. I'm still running the anti-malware on my mac, so I'm not ssh'ing into the server. Am I being paranoid? FYI - It is on shared hosting. Also, this might sound stupid - how do I DM you?
Re:My site got "cracked"/defaced. how do I find the root cau... by cleverjake on Tuesday September 13, 2011 @12:55PM (#2992276)
Sorry, my email is in my profile now.
Re:My site got "cracked"/defaced. how do I find the root cau... by codyguy on Tuesday September 13, 2011 @02:54PM (#2992911)
cleverjake, many thanks for your exceptional help. You totally rock.
Re:My site got "cracked"/defaced. how do I find the root cau... by cleverjake on Tuesday September 13, 2011 @09:03PM (#2994409)
no worries dude, glad I could be of some assistance. =]