Eradication should remove the attacker’s foothold, persistence, and any malicious changes before recovery begins. Reimage or rebuild compromised systems where needed, reset affected credentials, revoke tokens and keys, close the initial access path, and verify no backdoors remain. Confirm with monitoring that attacker activity has stopped.
Why eradication is more than just deleting malware
Eradication is the point in incident response where you remove the attacker’s means of continued access, not just the visible malware or altered file. That usually means cleaning or rebuilding affected hosts, removing persistence, and eliminating the initial access path so the same compromise cannot be recreated during recovery.
The practical question is whether you trust the system state enough to bring it back into service. If the compromise involved tampered binaries, hidden scheduled tasks, web shells, remote management abuse, or privileged accounts, a rebuild is often safer than selective cleanup because eradication has to address the whole attack chain, not one artifact.
A solid incident response process treats eradication as a gate before recovery, which is why the Incident Response Guide places containment, eradication, and recovery in sequence rather than as parallel tasks. That sequencing matters because recovery against an uncleared environment only restores attacker access faster.
What to remove, reset, and verify during eradication
Eradication should target every persistence and reuse path the attacker may have established. That includes removing malware, disabling rogue services, deleting unauthorized accounts, revoking tokens and API keys, rotating passwords and certificates where exposure is plausible, and closing whatever entry point was used to gain access in the first place.
Credentials need special attention because compromise often survives host cleanup through valid access material. When the incident touches secrets, a focused API Key Management Guide is useful for thinking about revocation, rotation, and scope reduction as part of eradication rather than as a later hygiene task.
Verification is part of the work, not an optional follow-up. Check logs, endpoint telemetry, authentication records, and network signals to confirm the attacker’s activity has stopped, then re-scan for backdoors, persistence mechanisms, and re-entry attempts before declaring the environment clean.
When eradication needs to be stronger than cleanup
Selective cleanup is only appropriate when you can prove the attacker’s changes are narrow and fully understood. If the compromise reached privileged systems, touched identity material, altered security tooling, or introduced uncertainty about system integrity, the safer choice is usually to rebuild from a trusted image and restore only known-good data and configurations.
That is also where environment-wide review matters. A compromise that began with one leaked credential, exposed key, or misused service access often has a larger blast radius than the initial alert suggests, so eradication should include checking adjacent systems, shared secrets, and connected automation for the same foothold.
A broader control perspective is captured in the NIST SP 800-53 Rev 5 Security and Privacy Controls, especially its access control, authentication, system integrity, audit, and configuration management families, because eradication depends on restoring trustworthy control of the affected environment.
Risk and Threat Considerations
Eradication is risky when teams confuse visible malware removal with full compromise removal. If attacker persistence, stolen credentials, or hidden trust changes remain, the environment can look recovered while still being actively controlled or easily reinfected.
Failure mechanism: The attacker keeps access through surviving credentials, tokens, scheduled tasks, services, web shells, or other persistence mechanisms, then regains foothold after recovery begins.
Impact: Recovery restarts the incident, data theft can continue, and confidence in the rebuilt environment drops because the original compromise was not fully removed.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AU-6 — Audit Review, Analysis, and Reporting | Eradication depends on confirming attacker activity has stopped through log and alert analysis. |
| SI-3 — Malicious Code Protection | Malware removal and re-scanning are central to clearing the compromised state. | |
| IA-5 — Authenticator Management | Credential reset, token revocation, and key rotation are core eradication actions after compromise. | |
| Recommendation — Review audit and detection evidence to confirm persistence is gone before recovery. Scan, isolate, and remove malicious code before returning systems to service. Rotate or revoke exposed authenticators and credentials immediately after containment. | ||
| CIS Controls v8 | CIS-5 — Account Management | Eradication often requires disabling rogue accounts and restoring control of identities. |
| Recommendation — Remove unauthorized accounts and tighten account lifecycle controls after compromise. | ||
Practitioner Guidance
What to verify: Do not treat eradication as complete until you can name the initial access path, the persistence method, and the credential or system state that allowed reuse. If any of those remain uncertain, continue the investigation before restoring business services.
Decision rule: If the compromise involved privileged access, identity material, or any system you cannot fully trust, favor reimage or rebuild over partial cleanup. Use selective remediation only when you can demonstrate that no attacker-controlled code, account, token, or configuration survives.
Practitioner takeaway: Good eradication is measured by loss of attacker control, not by how clean the host appears, and the safest recovery starts only after that loss is proven.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org