thief_on_computer

Finally got hacked after 6 years of safe journey online.

Two weeks back, a simple site search site:ReviewOfWeb.com on Google revealed some unwanted results which clearly showed that my site was under attack. Here is how some of my site URLs looked like in Google. [Check the description.]

search-query

The interesting thing about this hack was that it was a conditional redirect, or in simple words, when you would navigate to this site by directly entering the URL in address bar, you would get the actual page of my website but when a visitor arrives from a search engine he would get re-directed to the spammers website in what was probably an iframe.

hacked-website

What should you do in a similar situation?

Calm down! It is unnerving to see your site being surrounded by malware and Google showing nasty links and text below your site URL, but the damage is done and you have to correct that. Worrying about it may make the matter worse.

How to identify the files that got hacked?

SSH to login to your website and find the last modified files by the timestamp. You can ask your webhost. In my case the hacker had inserted a base64_decode() in my wordpress header file. Though I was able to nail down the files which were hacked, just to be doubly sure I preferred to hire a professional malware removal agency Sucuri.net

Folks at Sucuri were super fast and removed the malware within half and hour of opening a ticket with them. They followed up with some general recommendations on how to prevent further attacks. The recommendations included changing FTP credentials, wordpress login credentials, database passwords, updating core wordpress, wordpress plugins and running a thorough virus scan on the personal machine. I did as advised by them.
To my surprise, within 2 hours the malware returned, this time affecting another file – index.php

This was more worrying since it seemed the intruder was targeting at will. While it is relatively easy to identify the files that get hacked, at times it is extremely difficult to identify how the intruder reached those files. Since I had already updated my wordpress installations and changed passwords, I nailed down three possibilities -

  1. A vulnerable wordpress plugin that is not updated by the developer.
  2. Vulnerable wordpress theme.
  3. Open permissions (chmod 777) on my shared server.

First, I uninstalled all the plugins, removed all except the core tables from the wordpress database and then did a fresh reinstall of the plugins that were really required. Along with that, I also changed my theme framework from Woo Theme to the current Thesis theme (In the recent past, WooTheme framework had been targeted twice). There was an unused script in my account whose temp folder had open permissions, which I fixed.stick_figure_mopping_floor

Final Cleanup act

The excellent folks at Sucuri – a special thanks to David Dede – did the clean up once again and since then this site is pretty safe. Sucuri not only provides clean up services but they also provide a facility whereby your site is checked every 6 hrs for any major/core file changes. A premium wordpress plugin is included which helps in 1 click ‘hardening’ of wordpress installation, logging changes to your wordpress files and blocking bad bots from visiting your website. I have now upgraded my plan at Sucuri and secured all my sites. You can check more about Sucuri here

Over to you. Have you ever got hacked? How did you clean the mess? More importantly were you able to identify the source?

{ 1 comment }

Seemingly a simple task but sometimes we get lost in the umpteen options present in Excel 2010. Here is a video on how to set the page break and print area in MS Excel 2010 and convert it to PDF format.

 

Created this video using Techsmith Camtasia. This is also my first experiment producing HD Quality video content for web. Next, I am going to write an article on how to set options in Camtasia to get HD quality for videos yet keep the file size under control.

{ 0 comments }

8 Important Steps to note while moving webhost

First things first – Change TTL for your domain to some very low value ( at least 2-3 days before moving) so that DNS propagation could be very fast.

Read the full article →

Hostgator Webhosting Review and Bonus

here goes my in-depth review of Hostgator from shared web hosting point of view. We have also partnered with Hostgator and are thus providing a super high bonus worth $600 if you sign up through this step-by-step process.

Read the full article →

Best Cover and Stylus for iPad 2

After a long search on various portals, here is what I chose as my iPad 2 cover and stylus.

Read the full article →

10 points you SHOULD know when starting with Apple iPad 2

9 Important Points to note when starting with iPad. Rotation switch, iTunes tip.

Read the full article →

Review: Spinner Chief

In our quest to review some of the best SEO software, today we are going to review a market leader in spinning software niche – Spinner Chief. Spinning software are software that can take your article and can make auto-variations of it so that articles would look unique to search engines.

Read the full article →

ShareASale all set to start direct deposit for Indian affiliates

With effect from Oct 20th, 2011 ShareASale will start Direct Deposit services to India and this will service will be provided free of cost.

Read the full article →

WPSubscribers – A wp plugin to create an email list on steroids

WPSubscribers is a promising pop-up opt-in wordpress plugin available in wordpress arena which is subject of our review today…An excellent opt-in plugin with mindboggling options. I am yet to see a plugin that will provide you such a vast variety of options and customizations, yet it remains easy for a new user.

Read the full article →

Download StepShot for Free within the next 24 hrs

StepShot is powerful documentation tool that can help you create manuals quickly by just recording the steps. The document created with StepShots can be exported in wide variety of formats such as PDF, RTF, HTML, XLS, MHT, JPG. We like the fact they have provided an option to export it in RTF format.

Read the full article →