You go online to your homepage and notice something is not right. You see the website redirecting to some spammy website, a Google warning appears on a red background that it is dangerous to browse, or one of your customers emails you, telling you that your checkout page looks weird. Your website has been hacked, and what happens in the first 24 hours will affect all future actions. Follow this guide to find out what to do to contain an attack and restore your business.
First Hour: Contain the Damage
Your first thought might be to remove any suspicious file that has caused the hacking. Do not do that. Deleting those files will eliminate the evidence about the path an attacker has found to your site. And without that information, they will easily get back.
Take your site down to prevent customers from getting malware or inserting payment details in the wrong place. If you operate an online store, freeze payments until you find out if the checkout page works correctly. Call your hosting service. They usually can tell you which files have changed and when. Ask them to save the server logs.
From the First to Third Hour: Check Devices Used by Your Team
A hacked website may appear as a result of a hacker getting access to the laptop of someone from your team. With password-stealer malware on their PC, any change of passwords will only send new access credentials to the hacker.
Before anybody gets access to the website, check every computer and mobile phone your team uses to manage your site. Carry out a complete antivirus scan, not a fast one, to detect malware on devices that store logins to your business. Install all pending updates and uninstall forgotten browser extensions. Take offline each device that is suspected of having some malware until it gets cleaned or restored.
Third to Sixth Hour: Change Credentials and Lock Access to Your Site
Do not trust any credentials used to manage the site. Change them all using a safe device:
Hosting account, FTP/SFTP account;
Website admin credentials;
Database username;
Registrar or DNS hosting service;
Email addresses linked to the site.
Use complex and unique passwords and enable two-factor authentication if possible. Then review the users' list on the CMS because hackers often create some secret admin account. Delete unknown users. Reset API keys used for connection to the payment gateway, email marketing service, and other third-party systems that interact with your website.
Sixth to Twelfth Hour: Detect the Attack Origin
Now it is time to detect the reasons for the hack. The common methods of attack include the use of outdated plugins or themes, reuse of passwords, installation of pirated "nulled" themes, or vulnerabilities in server software. Information about suspicious files that have been modified can be obtained from your hosting service logs, CMS logs, and scanners like Sucuri SiteCheck or Wordfence (for WordPress sites).
Remember the earliest date of suspicious changes. It will help you find out which backup is free of malicious files and can be used later. If you feel that this task requires skills that you lack, call an expert malware removal service. Usually, their fee is relatively cheap compared to the consequences of reinfection.
Twelfth to Twentieth Hour: Cleaning Up and Restoring the Site
Restore the backup, but do it quickly. Update the CMS, all plugins and themes, and server software as well. Restoration of an outdated backup will allow the hacker to enter again through the same vulnerability. Uninstall all unnecessary plugins and themes.
In case there is no clean backup of the site, it will require manual cleanup of the website, and here the assistance of experts is especially required.
When your site is fixed, you should visit Google Search Console. Go to the Security Issues report. Here, the list of issues that your website was detected with is shown. Request a review after completing the fixes and wait for Google's decision on the case. Malware reviews usually last a few days, but hacked spam cases take longer, up to a few weeks.
From the Twentieth to Twenty-Fourth Hour: Notification of Stakeholders
You may need to inform somebody if the attack revealed any customer data. According to GDPR regulations, companies should notify their regulator within 72 hours of discovering a breach of personal data if it is likely to cause any risks for individuals. Otherwise, no action is required. In the USA, each state has its law regulating notification procedures in case of a data breach. If the payment card data has been affected, contact your credit card processing company as soon as possible. It is worth spending a few minutes on consultation with an attorney in this case.
In the USA, the FBI's Internet Crime Complaint Center (IC3) accepts notifications of incidents online. For other countries, you should use your national cybercrime reporting service.
Finally, you should inform your customers about the situation.
Conclusion
Attacks on business websites are always a scary experience. In 24 hours, you should protect your business from additional damage, lock any accounts, detect the method used for the attack, recover your business in a proper state, and notify all necessary people about the incident. Later on, make sure you have scheduled off-site backups, updates, and scanning in order to have no problems with hackers in the future.