Knowledgebase

Recovering From a Compromised VPS Print

  • vpsservermanagement, hacked, vps, restore, woocommerce, database, backup, security, password, cron
  • 0

The hardest situation to handle well.

IMMEDIATE ACTIONS

  1. Isolate the server. Restrict network access, or take it offline if it is actively harming others.
  2. Do not reboot immediately; it destroys evidence in memory and may not remove persistence.
  3. Preserve logs by copying them off the server.
  4. Open a ticket with us.

ASSESS

What was accessed, what was changed, and how entry was gained. Check authentication logs, file modification times, cron jobs, user accounts and listening ports.

THE HARD TRUTH

A thoroughly compromised server cannot be reliably cleaned. An attacker with root access can hide persistence in ways that are impractical to find.

The reliable recovery is to rebuild: a fresh server, applications reinstalled from known-good sources, data restored from a backup predating the compromise, and every credential rotated.

REBUILDING

  1. New server, secured before anything is put on it.
  2. Reinstall applications from official sources, not from the compromised server.
  3. Restore data, checked for anything malicious.
  4. Rotate every credential: SSH keys, database passwords, application accounts, API keys.
  5. Close the entry point before going live.

AFTERWARDS

Write down what happened and what you changed.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot