Join our Newsletter — 33% off our NHI Course
Home› Guides› D3FEND Evict Tactic: Removing Attackers and Their Access…
Guide Incident Response & Forensics

D3FEND Evict Tactic: Removing Attackers and Their Access in One Coordinated Window

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 12 November 2026 16 min read
On this page

Most failed incident responses do not fail at detection: they fail at eviction, when the team removes some of the attacker's access and the rest lets them straight back in. MITRE D3FEND gives this step its own tactic, Evict, defined as the tactic "used to remove an adversary from a computer network". This hub explains what the tactic contains, how its three families of techniques fit together, which ATT&CK behaviours they cut off, and the order in which to use them. It is written for incident responders, SOC leads and identity teams who need a working map of the eviction techniques. For the framework as a whole see the MITRE D3FEND Guide.

Key takeaways

  • Evict has three families and 16 techniques. Credential Eviction, Object Eviction and Process Eviction, 19 entries in all on the D3FEND tactic page (D3FEND 1.6.0, checked November 2026).
  • The families only work together. Ending a process without removing its autostart entry, or deleting malware without revoking the credentials it stole, gives the attacker a way back.
  • Credentials are the usual way back. Stolen tokens, added cloud credentials and forged Kerberos tickets survive host clean-up, so Credential Eviction carries most of the weight in modern intrusions.
  • Order matters more than tooling. Preserve evidence, scope, stage replacements, then lock, purge, revoke and remove persistence in one window, then verify. D3FEND does not prescribe this order; it is our recommendation.
  • Eviction is not finished until it holds. Measure re-entry: any reuse of an evicted credential, reappearance of a removed object or contact with a removed domain means the eviction failed.

What Evict means in D3FEND

D3FEND organises defensive techniques under seven tactics: Model, Harden, Detect, Isolate, Deceive, Evict and Restore. Evict sits after Isolate and before Restore, and the order is meaningful. Isolation limits what an attacker can reach while you work out the scope; eviction takes away their footholds; restoration brings systems and access back to a trusted state.

Each technique in D3FEND is described by the digital artefact it acts on. Evict techniques act on three kinds of artefact, which is why the tactic splits into three families:

  • Credential Eviction (D3-CE): "disable or remove compromised credentials from a computer network". The artefacts are user accounts, credentials, tokens and authentication caches.
  • Object Eviction (D3-OE): "terminate or remove an object from a host machine", described by D3FEND as "the broadest class for object eviction". The artefacts are files, registry keys, email, DNS cache records, domain registrations and whole disks.
  • Process Eviction (D3-PE): techniques that "terminate or remove running process". The artefacts are processes, sessions and the running state of a host.

Evict techniques are actions, not controls you deploy once. They need detection and scoping to tell them what to act on, and several are destructive, so decision rights and sequencing matter as much as tooling.

Every technique in the Evict tactic

The table lists every entry on the D3FEND Evict tactic page, with its parent taken from the D3FEND ontology. Definitions are summarised from D3FEND's own text. Each ID links to the detailed page on this site.

IDTechniqueParentPurpose
D3-CECredential EvictionEvict (family)Disable or remove compromised credentials from the network.
D3-ALD3-AL Account LockingCredential EvictionTemporarily disable user accounts on a system or domain; reversible.
D3-ANCID3-ANCI Authentication Cache InvalidationCredential EvictionRemove tokens or credentials from an authentication cache so they cannot be reused.
D3-CRD3-CR Credential RevocationCredential EvictionDelete a set of credentials permanently so they can no longer authenticate.
D3-OEObject EvictionEvict (family)Terminate or remove an object from a host.
D3-DNSCED3-DNSCE DNS Cache EvictionObject EvictionFlush DNS records from a cache so poisoned or attacker answers are dropped.
D3-DKFD3-DKF Disk FormattingObject EvictionPrepare a storage device for use, removing its previous file system.
D3-DKED3-DKE Disk ErasureDisk FormattingSecurely delete all data on a disk so it cannot be recovered.
D3-DKPD3-DKP Disk PartitioningDisk FormattingDivide a disk into distinct partitions, part of rebuilding it.
D3-DRTD3-DRT Domain Registration TakedownObject EvictionTake down the attacker's domain registration infrastructure.
D3-FEVD3-FEV File EvictionObject EvictionDelete malicious files from system storage.
D3-ERD3-ER Email RemovalFile EvictionDelete malicious email from storage, usually across many mailboxes.
D3-RKDD3-RKD Registry Key DeletionObject EvictionDelete a registry key, typically an autostart or hijack entry.
D3-PEProcess EvictionEvict (family)Terminate or remove running processes.
D3-HSD3-HS Host ShutdownProcess EvictionShut a host down to end every running process.
D3-HRD3-HR Host RebootHost ShutdownReboot a host to end every running process and clear volatile state.
D3-PSD3-PS Process SuspensionProcess EvictionSuspend a running process, keeping its memory for analysis.
D3-PTD3-PT Process TerminationProcess EvictionTerminate a running application process.
D3-STD3-ST Session TerminationProcess EvictionForcefully end all active sessions tied to compromised accounts or devices.

Two things in the hierarchy are easy to misread. Disk Erasure and Disk Partitioning sit under Disk Formatting, so the disk techniques together describe wiping and rebuilding a device rather than removing a single object. And Credential Rotation (D3-CRO) is not an Evict technique: D3FEND places it under Credential Hardening in the Harden tactic, even though responders use it in the same window. See D3-CRO Credential Rotation.

How the three families fit together

An attacker who has been inside a network for more than a few hours usually holds three kinds of foothold at once: something running (an implant, a remote session), something stored (a file, a registry run key, a scheduled task, a mailbox rule, a domain they control) and something they can authenticate with (a password, a token, a key, a ticket). Each Evict family removes one kind. Remove fewer than all three and the remaining foothold restores the others.

If you only do thisWhat the attacker still hasFamily that closes the gap
Kill the implant process (D3-PT)The autostart entry relaunches it at the next logon or rebootObject Eviction: D3-RKD, D3-FEV
Delete the malware and its persistence (D3-FEV, D3-RKD)Valid stolen credentials and tokens to log back in remotelyCredential Eviction: D3-CR, D3-ANCI
Reset the user's passwordExisting refresh tokens and session cookies, plus any app credentials they addedD3-ANCI, D3-ST, and D3-CR for added credentials
Disable the account (D3-AL)Live sessions and access tokens that remain valid until they expireProcess Eviction: D3-ST; D3-ANCI
Block the command and control IPThe domain, which can be repointed to a new addressD3-DRT and D3-DNSCE
Purge the phishing email (D3-ER)Credentials already entered on the phishing pageCredential Eviction

The token row is the one most often missed. Identity platforms below are listed alphabetically, as examples of the same customer-side step. Google documents that resetting a user's sign-in cookies does not sign the user out of desktop apps such as Google Drive for desktop, and that suspending a user resets those cookies automatically. Microsoft documents that after disabling a user and revoking sessions in Entra ID, access tokens already issued stay valid until they expire, one hour by default, unless the application supports Continuous Access Evaluation. Okta documents that its revoke user sessions operation (DELETE /api/v1/users/{userId}/sessions) revokes OAuth and OpenID Connect tokens only when oauthTokens=true is set, and does not clear sessions created by web or native apps. In each case the identity provider action is necessary but not sufficient, and the application layer needs its own step. RFC 7009 sets the protocol baseline: an authorisation server that revokes a refresh token "SHOULD also invalidate all access tokens based on the same authorization grant" if it supports access token revocation.

Sequencing an eviction

D3FEND lists techniques; it does not say in which order to run them. The sequence below is NHI Mgmt Group's recommendation, built so each step removes a fallback the attacker could use against the next. It assumes the incident has been detected and the affected hosts isolated (see the D3FEND Isolate Tactic hub and the Incident Scoping and Containment Strategy Guide).

  1. Preserve evidence. Capture memory and disk images, or at least copies and hashes of the objects you will remove. Suspend (D3-PS) rather than terminate where you need process memory. Deletion, termination and reboot destroy evidence you need for scoping and for any notification decision. See the Forensic Readiness Guide.
  2. Scope the whole footprint. Use indicators from the first host to sweep every host, mailbox and tenant. Build one eviction list covering credentials (D3-CCSA, see D3-CCSA Credential Compromise Scope Analysis), objects and running processes.
  3. Stage replacements. Prepare new secrets, certificates and break-glass access before anything is revoked, so the eviction window does not become an outage that someone cuts short.
  4. Execute in one window. Lock accounts (D3-AL), terminate sessions (D3-ST) and invalidate caches and tokens (D3-ANCI); revoke exposed credentials (D3-CR) and switch consumers to replacements; terminate implants (D3-PT); delete persistence objects (D3-FEV, D3-RKD, D3-ER). In hybrid Active Directory environments Microsoft's emergency revocation guidance resets a compromised user's password twice; where forged Kerberos tickets (T1558.001 Golden Ticket) are suspected, the KRBTGT account password also needs a double reset.
  5. Cut external infrastructure. Request takedown of attacker domains (D3-DRT), correct any tampered DNS records, then flush resolver caches (D3-DNSCE) so stale answers do not linger.
  6. Rebuild what cannot be trusted. Where a host had kernel-level or firmware-level compromise, or where scoping cannot rule out hidden persistence, wipe and rebuild (D3-DKE, D3-DKF, D3-DKP) rather than clean. That hands over to the D3FEND Restore Tactic.
  7. Verify and watch. Test that every evicted credential is rejected, rescan for every removed object, and keep heightened monitoring on the indicators for an agreed period (30 days is a common example, not a standard).

Rollback: only some Evict actions are reversible. Account Locking and Process Suspension can be undone; Credential Revocation, Disk Erasure and Domain Registration Takedown cannot. Export registry keys and quarantine files before deletion where your tools support it, keep a list of locked accounts with an owner who can unlock critical ones, and require a second approver for destructive actions.

Choosing the right technique

Most families have a gentle option and a decisive one; the choice depends on evidence needs, business impact and confidence in scope.

DecisionGentler optionDecisive optionChoose the decisive option when
Running malicious codeD3-PS Process SuspensionD3-PT Process Termination, D3-HR Host RebootMemory has been captured or is not needed, and the process is causing harm now (encryption, exfiltration)
Compromised accountD3-AL Account LockingD3-CR Credential RevocationThe secret is known to be exposed; for API keys and tokens revocation is usually the only meaningful option
Attacker sessionsWait for token expiryD3-ST plus D3-ANCIAlmost always: waiting leaves an active window of up to the token lifetime
Infected hostD3-FEV and D3-RKD clean-upD3-DKE then rebuildRootkit or bootkit indicators, unknown persistence, or a high-value host such as a domain controller
Attacker domainBlock at DNS and proxyD3-DRT takedownThe domain targets customers or third parties you cannot protect with your own blocks

Small organisations usually run eviction by hand from the identity provider console and endpoint tool; the sequence matters more than automation, and a written runbook with pre-approved destructive actions is the main gain. Large organisations should pre-build response actions (session revocation, host isolation, mailbox purge) in their SOAR or EDR platform with approval gates, because a coordinated window across thousands of identities and hosts is not achievable by hand.

ATT&CK techniques the Evict tactic counters

D3FEND relates its techniques to ATT&CK through shared digital artefacts and labels these relationships as inferred and experimental. They show which behaviours an eviction action can cut off, not tested coverage. The selection below is drawn from the three family pages, uses ATT&CK v20 IDs, and is grouped by tactic.

ATT&CK tacticTechniques (selection)Evict techniques involved
Initial Access, PersistenceT1078.002 Domain Accounts, T1078.004 Cloud Accounts, T1133 External Remote ServicesD3-AL, D3-CR, D3-ST
PersistenceT1136.003 Cloud Account, T1098.001 Additional Cloud Credentials, T1098.003 Additional Cloud RolesD3-CR, D3-AL
Persistence, Privilege EscalationT1547.001 Registry Run Keys / Startup Folder, T1505.003 Web Shell, T1053.005 Scheduled Task, T1543.002 Systemd ServiceD3-RKD, D3-FEV, D3-PT
Credential AccessT1003.001 LSASS Memory, T1003.003 NTDS, T1558.001 Golden Ticket, T1606.001 Web CookiesD3-PS, D3-PT, D3-ANCI, D3-CR
Lateral MovementT1550.001 Application Access Token, T1550.004 Web Session Cookie, T1021.001 Remote Desktop Protocol, T1563.002 RDP HijackingD3-ANCI, D3-ST, D3-CR
Initial AccessT1566.001 Spearphishing AttachmentD3-ER
Command and ControlT1071.001 Web ProtocolsD3-DNSCE, D3-DRT
ImpactT1561.001 Disk Content Wipe, T1531 Account Access RemovalShared artefacts: rebuild with D3-DKF and D3-DKP; T1531 is the attacker's own use of account locking

D3FEND's pages still list some ATT&CK IDs that v20 has revoked. The one that matters most for eviction is Disable or Modify Tools, now T1685 under the v20 Defense Impairment tactic (TA0112): an attacker who has disabled your endpoint agent can block process and file eviction, so confirm agent health before relying on it. See the EDR Tampering and BYOVD Response Playbook.

Where identity fits: non-human credentials

Credential Eviction is where non-human identities make eviction hardest. Service accounts, API keys, OAuth client secrets, workload certificates and personal access tokens often have no owner on call, are embedded in several systems, and cannot be locked without breaking production. Attackers favour them for persistence for the same reasons: T1098.001 Additional Cloud Credentials adds a new secret to an existing application identity, which survives a password reset of every human account.

  • Inventory first: eviction can only cover the machine credentials you know about. Credentials found in scope analysis but missing from inventory are the ones attackers come back with.
  • Revoke, do not lock: for most secrets and keys, D3-CR (delete and reissue) is the meaningful action; D3-AL applies to the account, not the secret.
  • Check what the identity created: new credentials, role assignments and federation trusts added by a compromised application identity must be removed in the same window.

See the Workload Identity Compromise Response Playbook and the Leaked Credential Response Playbook.

Detection and measurement

Eviction needs its own telemetry: proof that each action ran and proof that it held.

  • Action logs: identity provider audit events for account disable, session revocation and credential deletion; EDR response action logs; mail platform purge logs; registrar and DNS change records.
  • Re-entry signals: any authentication attempt with an evicted account, key or token; reappearance of a removed file hash, registry value or scheduled task; resolution of or connection to a removed domain.
  • Persistence re-creation: new accounts, new application credentials or new role assignments in the days after eviction.

Useful metrics (example targets, not standards):

  • Eviction completeness: share of items on the eviction list confirmed removed or revoked. Target 100 per cent before closing the incident.
  • Eviction window length: time from the first eviction action to the last.
  • Time to session revocation: from the decision to evict to all sessions and refresh tokens revoked for affected identities.
  • Re-entry rate: incidents where the same actor regained access within 30 days of eviction.
  • Machine credential coverage: share of compromised non-human credentials revoked and reissued, against those identified in scoping.

Framework mapping

FrameworkReferenceLink to Evict
NIST CSF 2.0RS.MI-01 Incidents are contained; RS.MI-02 Incidents are eradicatedEvict techniques are the eradication actions
NIST SP 800-61 Rev. 3Incident Response Recommendations, a CSF 2.0 Community Profile (April 2025, supersedes Rev. 2)Places eviction within the Respond function
NIST SP 800-53 Rev. 5IR-4 Incident HandlingContainment and eradication as a control
NIST SP 800-53 Rev. 5AC-2 Account Management, IA-5 Authenticator ManagementCredential Eviction
NIST SP 800-53 Rev. 5AC-12 Session TerminationD3-ST
NIST SP 800-53 Rev. 5MP-6 Media SanitizationD3-DKE and the disk techniques
ISO/IEC 27001:2022 Annex A5.26 Response to information security incidentsEviction as part of incident response

Common failure patterns

  • Piecemeal eviction: cleaning the first host found while the attacker still controls others.
  • Password reset treated as eviction: refresh tokens, session cookies and added application credentials survive a password change, as the identity provider documentation above shows.
  • Evidence destroyed first: terminating processes, deleting files or reimaging before capture leaves no basis for scoping or for notification decisions.
  • Machine credentials left out: human accounts are reset but service account secrets, API keys and CI/CD tokens on compromised hosts are not, so the attacker returns as a workload.
  • No replacement staged: revoking a production secret without a replacement causes an outage, and the eviction gets rolled back under pressure.
  • Closing without verification: the incident is closed when actions are taken rather than when re-entry monitoring confirms they held.

Practitioner checklist

  • Pre-authorise destructive Evict actions (credential revocation, host reboot, mailbox purge, disk erasure) and name who approves them out of hours.
  • Document, per identity provider and major application, which action revokes sessions, refresh tokens and access tokens, and how long tokens stay valid afterwards.
  • Build one eviction list per incident covering credentials, objects and processes across all affected hosts, mailboxes and tenants.
  • Capture evidence before any termination, deletion or reboot.
  • Stage replacement secrets and break-glass access before revoking anything.
  • Run all eviction actions in one coordinated window and record each action with its timestamp.
  • Include non-human credentials, attacker-created accounts, added roles and federation trusts in scope.
  • Request takedown of attacker domains and flush DNS caches after records are corrected.
  • Rebuild rather than clean hosts with signs of deep persistence.
  • Monitor for re-entry for an agreed period and close the incident only when it holds.

Standards and references

Related NHI Mgmt Group resources: MITRE D3FEND Guide · Identity Incident Response Playbook · Incident Response Guide · D3FEND Detect Tactic · Digital Forensics (DFIR) Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

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
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 12 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.