Process Eviction (D3-PE) is a MITRE D3FEND technique that removes an adversary's running processes from a system, typically by terminating them. Defenders should capture memory and process details first for forensics, then remove the persistence mechanism that restarts the process, such as services or scheduled tasks, otherwise the malicious process simply respawns.
What Process Eviction Actually Does
Process eviction is the containment step that stops a malicious process from continuing to run. In practice, it is usually a termination action, but the important idea is not just “kill the process”, it is to interrupt the adversary’s active execution so it can no longer carry out commands, payload delivery, or live-off-the-land activity.
The technique matters because many intrusions are process-led, not file-led. A threat can run entirely in memory, spawn child processes, inject into another process, or operate under a legitimate-looking name. Eviction is therefore a response control against active execution, not a substitute for eradication.
Why Eviction Alone Is Not Eradication
Process eviction is only one part of incident containment. If the underlying persistence remains, a terminated process may simply restart through a service, scheduled task, registry run key, launch agent, watchdog, or another trigger. That is why responders should identify the restart path before or alongside eviction, rather than treating termination as the end state.
In a mature response sequence, the goal is to separate three questions: what is running now, what caused it to run, and what evidence must be preserved before it disappears. Removing the process without understanding those relationships can shorten the incident in the moment while leaving the compromise intact.
Forensics, Memory, and Evidence Preservation
Because process eviction destroys the running state, responders should capture volatile evidence first when time and safety permit. Memory images, process trees, open handles, network connections, loaded modules, and command-line context often contain the best clues about payload behaviour and lateral movement.
This sequence is especially important for memory-resident tradecraft, where the process itself may be the only live manifestation of the intrusion. If responders terminate too early, they may lose the very data needed to determine what the adversary did, what accounts or tokens were touched, and whether additional hosts need to be investigated.
When eviction is paired with forensic capture, it becomes both a containment action and a source of investigative confidence. The defender can prove what was active, how it behaved, and whether the process was truly the malicious component or only one stage in a larger chain.
Where Process Eviction Fits in Containment and Recovery
Process eviction is most effective when it is coordinated with adjacent containment actions such as session termination, host isolation, credential rotation, or rebooting a memory-compromised system. The exact sequence depends on what the process was doing and whether the host must stay live for evidence collection or business continuity.
Practical containment usually requires matching the eviction method to the threat. Sometimes a graceful stop is enough; other times a forced termination is needed to stop credential dumping, remote command execution, or process injection. In all cases, responders should confirm that the process stayed down and that the persistence source no longer recreates it.
Risk and Threat Considerations
Adversaries value running processes because they provide immediate execution, visibility into the host, and a path to persist while defenders are still reacting. If the persistence mechanism is not removed, the same malicious activity can return after termination, which turns a one-time containment step into a temporary delay.
Failure mechanism: The defender terminates the visible process but leaves the launch mechanism, injected parent process, or scheduled restart path in place, allowing the intrusion to respawn or shift into another live process.
Impact: The host remains compromised, the attacker may regain execution, and the incident response team can lose time, evidence, and containment momentum while the adversary maintains access.
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.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1055 — Process Injection | Process eviction often responds to injected or memory-resident execution. |
| T1569.002 — System Services: Service Execution | Persistent services commonly restart a process after eviction. | |
| Recommendation — Hunt for injected execution paths and validate that the terminated process was not a living host for another payload. Inspect service-based restart paths and disable the service before or after terminating the process. | ||
| NIST SP 800-53 Rev 5 | IR-4 — Incident Handling | Process eviction is a containment action within incident handling workflows. |
| AU-11 — Audit Record Retention | Preserving process and memory evidence supports post-eviction investigation. | |
| SI-4 — System Monitoring | Monitoring detects malicious processes and verifies they remain terminated. | |
| Recommendation — Use IR-4 to coordinate containment, evidence preservation, and eradication sequencing. Retain volatile and host telemetry long enough to support post-eviction analysis. Use SI-4 telemetry to confirm eviction, detect respawn, and spot related malicious activity. | ||
Practitioner Guidance
Why practitioners should care: Process eviction is only reliable when it is treated as part of an eradication sequence, not as a standalone kill action. MITRE D3FEND Process Eviction Implementation Guide is the best place to align termination choices with sequencing, verification, and containment outcomes.
What to watch for: A process that comes back after termination usually indicates persistence, a parent process respawn loop, or a management service that still has authority to relaunch it. In those cases, the defender needs to remove the restart path as well as the active process.
Practitioner takeaway: The right question is rarely “did we kill it?”, but “did we stop the thing that makes it come back?”
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 November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org