The first hour
Do these things first
Speed matters, but so does not destroying the clues. Don't delete your whole site or start editing files yet.
-
Take a copy of the site as it is now
Download the files and database from your hosting control panel (or ask your host to). It shows how the attacker got in, and you'll need it if you report the attack or make an insurance claim. Keep it separate from your clean backups.
-
Change your passwords from a clean device
Use a computer or phone you trust, not one that might itself be infected. Give every account a new, different password:
- Your hosting account and control panel
- Your website admin (WordPress, Shopify, Wix and so on), for every admin user
- FTP or SFTP, and your database
- Your domain registrar and your business email
Turn on two-factor login wherever it's offered.
-
Tell your web host
They can see server logs, block the attacker, and often restore a recent backup. If the site is redirecting visitors to scams or stealing card details, ask them to take it offline or put up a maintenance page while you fix it.
-
Check for new admin users
Look at the list of users in your website admin and hosting account. Remove any you don't recognize, after noting their names and email addresses.