Chat on WhatsApp
CR Guard
CloudRevol
← Back to Blog
Security12 min read

What to Do When Your Website Is Hacked: A Malware Cleanup and Recovery Checklist

A suspected compromise is stressful, but a calm, documented response helps limit impact and protect the information needed to recover. Use this checklist to contain the incident, investigate it, and bring your website back safely.

CloudRevol website security and malware response

Quick response checklist

  • Record symptoms and times
  • Notify your hosting provider
  • Contain access with a recovery plan
  • Preserve files, database, and logs
  • Rotate exposed credentials
  • Identify the entry point and scope
  • Clean or verify a backup before restore
  • Patch, verify, and monitor
01

Confirm what is happening

Record the symptoms and when they began: browser or search warnings, redirects, unfamiliar content, unexpected admin accounts, suspicious outbound email, or alerts from your host. Check the issue from a separate, trusted device and network. A warning can have several causes, so avoid assuming every alert proves malware.

02

Contact your hosting provider

Open a support or security incident with your hosting provider. Share the domain, approximate start time, visible symptoms, and any alert or request IDs. Ask whether server logs, snapshots, backups, or an affected account can be preserved while the issue is investigated.

03

Contain the incident carefully

If the compromise is active, work with your provider or security responder to restrict public access, isolate the affected site, or put up a maintenance page. Keep essential evidence and a recovery path. Do not delete files or shut down infrastructure impulsively; those actions can remove evidence or make recovery harder.

04

Preserve a snapshot and relevant logs

Before changing the site, ask for a copy of the current files, database, access logs, and relevant server or control-panel logs. Store evidence somewhere separate from the affected account and note the time of each action. A qualified responder can use this information to understand the entry point and scope.

05

Secure access from a clean device

From a trusted, malware-free device, change passwords for hosting, control panel, CMS administrators, database, FTP or SSH, email, domain registrar, and related integrations. Revoke active sessions, API keys, application passwords, and unfamiliar SSH keys. Turn on multi-factor authentication where available. If credentials may have been exposed, rotate them after the site is cleaned too.

06

Find the entry point and full scope

Review recent CMS, theme, plugin, framework, and server changes; unfamiliar users; modified files; scheduled tasks; access logs; and exposed credentials. Check connected sites and accounts that share the same hosting user. A single suspicious file may be only one part of a wider compromise, so investigate the cause before declaring the site clean.

07

Clean or restore from a known-clean backup

Choose a recovery point from before the suspected compromise and verify it is clean before restoring. If cleaning in place, compare files with trusted originals, remove confirmed malicious changes, and inspect the database and uploads as well as application code. Keep an untouched copy of the evidence. When the scope is uncertain, have a qualified security professional handle the cleanup.

08

Fix the weakness before reopening

Patch the vulnerable software or configuration that allowed access. Remove abandoned extensions and accounts, correct permissions, update dependencies, close unnecessary access, and replace exposed secrets. Restoring an old backup without addressing the original weakness can lead to another compromise.

09

Verify the recovery and monitor

Check the site from a clean browser, review key pages and forms, inspect redirects and administrator accounts, and scan files and the database again. Watch logs and security alerts closely after reopening. If search engines or browsers flagged the site, follow their review process after remediation; removal of a warning may take time.

Mistakes that can make recovery harder

Deleting everything immediately

Keep a copy of affected files and logs before cleanup so the cause and scope can be investigated.

Restoring without checking the backup

A backup made after the compromise may contain the same malicious files or database changes.

Changing passwords on an infected device

Use a separate, trusted device so new credentials are not captured again.

Stopping after removing visible symptoms

Hidden access, scheduled tasks, compromised accounts, or an unpatched weakness can remain.

Need help investigating or cleaning a site?

CloudRevol offers malware cleanup from $30 per site. Final scope and pricing depend on the site and the work required. Share the symptoms and your hosting details so the team can review the situation.