Join our Newsletter — 33% off our NHI Course
Threats, Abuse & Incident Response

Eviction

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Threats, Abuse & Incident Response

Eviction is the incident response phase of removing an attacker's access from an environment and preventing their return. It means disabling compromised accounts, rotating credentials and secrets, closing persistence mechanisms such as backdoors and rogue tokens, and blocking command channels. Evicting before the full scope is known tips off the attacker and often fails.

What Eviction Means in Incident Response

Eviction is not just “kicking an attacker out.” In practice, it is the response phase where defenders remove the attacker’s ability to operate, then make the environment uninhabitable for their return. That usually means cutting off compromised access, invalidating trust they already established, and removing the conditions that let them re-enter quietly.

The term is useful because it captures a specific operational goal: ending active control, not merely containing an incident. A system can be isolated and still remain compromised. Eviction focuses on expelling the intruder from the identity, host, network, and control paths they were using.

What Eviction Must Remove

Effective eviction targets the attacker’s real footholds, not only the visible session. That includes compromised accounts, stolen credentials, API keys, session material, service tokens, persistence tooling, backdoors, scheduled tasks, rogue OAuth grants, and any command channel they can still use to issue instructions or regain entry.

The hard part is that eviction is often incomplete when teams stop at the first obvious artifact. If the attacker still has an alternate account, a trusted device, a planted secret, or a hidden remote-access path, they may return after the initial cleanup. That is why eviction is as much about dismantling trust relationships as it is about deleting malware.

Why Timing and Scope Matter

Eviction is most effective after defenders understand enough of the environment to remove all meaningful access paths, but before the attacker can deepen persistence or pivot further. If teams act too early, they often expose the investigation, causing the attacker to change tactics, destroy evidence, or move to another foothold.

The practical challenge is deciding when the evidence is sufficient to act decisively. In mature response work, eviction is coordinated with triage, scoping, and containment so that removal does not become a noisy partial reset. The goal is not just to eject the current session, but to prevent re-entry through residual privilege, lingering secrets, or undetected remote control.

What Good Eviction Changes for Recovery

Eviction is the bridge between incident response and clean recovery. Once the attacker is out, the organisation can rebuild trust in the environment by resetting credentials, reissuing secrets where needed, removing persistence, and validating that the attacker no longer controls any management plane, application path, or privileged account.

In environments with identity compromise, a recovery plan often needs a clean-room mindset rather than a simple cleanup mindset. The Identity Recovery Guide is relevant here because domain, tenant, and directory recovery often depends on evicting the attacker before rebuilding trust in the directory itself. Eviction is therefore not the end of recovery, but the prerequisite for making recovery trustworthy.

Risk and Threat Considerations

Eviction is dangerous when it is partial, rushed, or performed before the full access graph is understood. An attacker who still has one valid secret, one hidden persistence path, or one surviving administrative foothold can return after cleanup, often with a clearer view of the defender’s response.

Failure mechanism: Defenders remove the obvious entry point but leave behind alternate credentials, cached sessions, persistence, or trust relationships that still permit re-entry or lateral movement.

Impact: The environment appears cleaned while the attacker remains capable of returning, preserving access, exfiltrating more data, or sabotaging recovery.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementEviction requires invalidating compromised authenticators and credentials.
AC-2 — Account ManagementEviction depends on disabling compromised accounts and removing attacker-controlled access.
SI-4 — System MonitoringEviction relies on detecting persistence, command channels, and post-cleanup reentry attempts.
Recommendation — Rotate and revoke compromised authenticators, tokens, and secrets immediately after eviction. Disable or remove compromised accounts and review all related access paths. Monitor for persistence and renewed command-and-control activity after eviction.
MITRE ATT&CKT1110 — Brute ForceCredential abuse is a common access path defenders must remove during eviction.
T1098 — Account ManipulationEviction often requires reversing attacker-created accounts, grants, or access changes.
Recommendation — Hunt for credential abuse paths and eliminate reused or stolen authentication material. Review and roll back unauthorized account or permission changes used for persistence.

Practitioner Guidance

What to watch for: Treat eviction as successful only when the attacker’s known access paths are all severed, not when one malicious process disappears. If your cleanup does not include account state, secret rotation, session invalidation, and persistence review, you have likely contained the incident but not evicted the actor.

Practitioner takeaway: Good eviction is a trust-reset operation, not a cosmetic cleanup.

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.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org