Compromised account, spam or malware (what to do)

This article is a step-by-step guide on what to do when an account under your reseller plan sends spam, hosts malware, or has been compromised, using WHM.

Priority: Act fast. A compromised account can affect server reputation, block email for other clients, and trigger blacklists (RBL).

Warning signs

  • Notice from the provider or server regarding mass email sending.
  • Very large mail queue in Mail Queue Manager.
  • Client reports redirects, ads, or content they did not upload.
  • Google or browsers flag the site as dangerous.
  • Sudden spike in disk usage, CPU, or transfer in List Accounts.
  • Suspicious recent files (.php with random names in uploads, etc.).

Step 1: Contain (immediate)

  1. Log in to WHM → Account Functions → Manage Account Suspension.
  2. Suspend the affected account (preserves data; cuts off web and email).
  3. Note in Reason the cause (e.g., “spam 03/12/2026” or “malware reported”).

If the provider has already suspended the account, do not unsuspend it until cleaned.

Step 2: Change credentials

  1. WHM → Account Functions → Password Modification → new strong cPanel password.
  2. From the account's cPanel (or ask the client): change passwords for all email accounts and FTP.
  3. If using WordPress or another CMS: change admin password and keys in wp-config.php if they were exposed.

Step 3: Review email and queue

  • WHM → Email → Mail Queue Manager (if available): identify sender and volume.
  • WHM → Email → Modify Max Email per Hour: lower the limit temporarily if needed.
  • Check if there are PHP scripts sending mail (mail() in unknown files).

Step 4: Review files (cPanel via WHM)

  1. List Accounts → cPanel → File Manager.
  2. Search in public_html, wp-content/uploads, tmp: recent .php files with weird names.
  3. Check .htaccess for redirects to external domains.
  4. Check for outdated or nulled WordPress plugins/themes.

Step 5: Clean or restore

Situation Action
You have a recent clean backup Restore files/database from a backup prior to the incident + new passwords.
Contained infection (one file) Delete the malicious file, update CMS/plugins, change keys.
Widespread or unknown infection Escalate to provider support or professional cleaning service.

Do not: Unsuspend the account without cleaning; restore a backup from the same day as the hack (may include malware); ignore the provider's notice.

Step 6: After cleaning

  1. Update WordPress, plugins, themes, and PHP if applicable.
  2. Verify SSL/TLS Status and that the site loads properly.
  3. Check Email Deliverability in cPanel (SPF/DKIM).
  4. Unsuspend only when the site and email are clean.
  5. Inform the client about best practices (passwords, updates).

When to escalate to support

  • The server remains blacklisted after cleaning.
  • You cannot find the origin of the spam or malware.
  • The provider demands intervention before reactivating.
  • There are signs of root access or full server compromise.

Open a ticket from the client portal with domain, cPanel username, and incident time. You can also consult via the site's online chat.

  • spam malware, señales de alerta whm
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Configure SSL/TLS and AutoSSL

This article explains how to manage SSL/TLS certificates and the AutoSSL feature for your...

IP Management and Blocks

This article explains how to manage IP addresses assigned to your accounts and how to handle...

Configure firewall and server security

This article summarizes the firewall and security options visible in WHM, what a reseller can...