DML School of Technology
Menu

Open to everyone Reading, lesson 78 of 100, 2 min read

Containment, eradication and recovery

Stop the bleeding

Containment limits the damage while you work out the full picture. Choose actions that stop the spread without destroying evidence where possible.

SituationContainment actions
Account taken overReset password, sign out all sessions, revoke app tokens, check and remove mailbox rules, re-register MFA
Infected laptopIsolate it from the network (EDR isolation, or unplug and turn off Wi-Fi); do not wipe it yet
Compromised serverBlock its outbound traffic, restrict access to it, take a snapshot for evidence
Spreading malwareSegment networks, block known bad domains and hashes, disable affected accounts
Data exposed publiclyRemove the public link or file, ask search engines and sites to remove copies

Short-term containment buys time; long-term containment keeps business running safely while you clean up (for example, moving a service to a clean server).

Eradication

Remove the attacker completely:

  • delete malware and tools they installed;
  • remove accounts, keys and scheduled tasks they created (persistence);
  • close the hole they came through: patch the vulnerability, turn off the exposed service, add MFA;
  • reset credentials they may have seen, including service accounts and API keys.

If you are not sure you found everything, rebuild from known-good images rather than trusting a cleaned system.

Recovery

  1. Restore from backups taken before the compromise began.
  2. Bring systems back gradually, most important first, watching them closely.
  3. Confirm with system owners that data and services are correct.
  4. Increase monitoring for weeks afterwards; attackers often try to return.

Communicate

Keep leaders, staff and, where needed, customers, parents and regulators informed with clear, honest, factual updates. Say what you know, what you do not yet know, and when the next update will come.

Warning

Do not tip off an attacker who still has access by announcing the investigation on a channel they can read, such as a compromised email system.