Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
My server's been hacked EMERGENCY

Some pages of my website are distributing harmful software. How do I investigate and fix this?

share|improve this question

marked as duplicate by jscott, Chris S, squillman, Ben Pilbrow, voretaq7 Apr 21 '11 at 18:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

If your site is distributing malware... for crying out loud don't share the URL for some doofus to click on! – Ben Pilbrow Apr 21 '11 at 17:57
This question has been asked multiple times here. Short answer: Take site offline, wipe, rebuild and restore from known-good backups. – jscott Apr 21 '11 at 18:00
@jscott, Gah, you beat me to it... wasn't in my favorite questions like I thought it was. – Chris S Apr 21 '11 at 18:03
up vote 5 down vote accepted

Call your hosting company, tell them your site's been compromised. They probably have standard procedures, but it boils down to delete everything and restore it from backup.

share|improve this answer

Take down the affected pages, block them with an Apache directive, something. Do it now. RIGHT NOW.

Step 2: Figure out how the hell it happened.
Check your server logs for anything funky.
If you're running forum/bbs/blog software consider it suspect (it may have a vulnerability, or you may have installed a vulnerable module or a bit of malware during recent upgrades?) If you give users FTP or SSH access look for anyone doing "something strange" (lots of failed login attempts followed by a success, users uploading stuff they normally wouldn't, etc.)

Step 3: Plug the hole.
Once you complete step 2 you'll know where the problem is. That usually leads you to a fix.
If this leads you to the conclusion that more than just a bit of web code was compromised (i.e. an attacker gained root/admin privileges on your box) it's time to wipe the machine as others have suggested.

Step 4: Don't let it happen again!
(Peruse the Security tag on here, or for some ideas, but basically maintain some level of vigilance over your server. If something strange happens, find out why and make sure it's not someone being evil, etc.)

share|improve this answer

Check out the logs to try and find out how they got in. Once you've determined that, patch the vulnerability and restore from a known good backup and ensure your Operating System as well as any web applications you use are up to date.

For obvious reasons I didn't actually click on your link, but I did check out the Google Safe Browsing page for your site. You've got malware coming from a domain other than your own, which is often indicative of inserted <iframe>'s or <script>'s.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.