Join our Newsletter — 33% off our NHI Course
Home› Guides› D3-ST Session Termination: Ending Attacker Sessions and Proving…
Guide Incident Response & Forensics

D3-ST Session Termination: Ending Attacker Sessions and Proving Access Is Gone

PDF for newsletter subscribers · free to read online

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

Resetting a compromised password does not log the attacker out: every session and token already issued keeps working until something ends it. D3-ST Session Termination is the MITRE D3FEND countermeasure for that gap. D3FEND defines it as "Forcefully end all active sessions associated with compromised accounts or devices." It sits in the Evict tactic as a child of Process Eviction, and D3FEND models it as a technique that deletes the Session artefact. This card covers what session termination has to reach, which ATT&CK techniques D3FEND relates it to, where it is done on common platforms, how to prove it worked, and where it falls short. It is written for incident responders and identity engineers who run containment, not for readers new to sessions. For the containment plan around it, see the Incident Scoping and Containment Strategy Guide.

Key takeaways

  • A session is not one thing. An identity provider session, an application cookie, an OAuth refresh token, an access token and a remote desktop or SSH session each need their own termination step.
  • Each revoke action has a documented scope. Microsoft Entra, Okta, Google Workspace and AWS each state in their own documentation what their revoke action does not reach, such as application cookies or access tokens already issued.
  • Order matters. Block re-entry first (disable the account or reset the credential), then terminate sessions, or the attacker simply signs in again.
  • Patching is not eviction. CitrixBleed showed that sessions stolen before a fix stay valid until someone kills them.
  • Prove it with logs. A termination is done when no request from the old session or token succeeds after the cut-off time, not when the button was pressed.

D3-ST at a glance

FieldD3-ST Session Termination
D3FEND IDD3-ST
TacticEvict
Parent techniqueProcess Eviction (siblings: Host Shutdown, Process Suspension, Process Termination)
Digital artefactSession (D3FEND: the technique "deletes" a Session)
D3FEND knowledge base note"Defined in NIST 800-53 as AC-12", with NIST SP 800-53A Rev 5 as the reference
What it changesRemoves live authenticated state so that the next request must authenticate again
Typical implementation pointsIdentity provider, cloud control plane, SaaS admin consoles, VPN and remote access gateways, Remote Desktop Session Host, Linux hosts, privileged session tools
Main limitationEach platform terminates only the session types it owns; self-contained tokens stay valid until expiry unless the resource checks revocation

What session termination has to reach

D3FEND's definition is broad on purpose: "all active sessions". In practice an account or device compromise leaves several layers of authenticated state, and each layer is held by a different system.

Session layerWhere it livesEnds when
Identity provider sessionSingle sign-on cookie at the identity providerThe identity provider clears it (admin revoke, sign-out, account disable)
Refresh tokensIssued by the identity provider, held by apps and clientsRevoked at the issuer, or expiry
Access tokensSelf-contained bearer tokens held by clientsExpiry, unless the resource supports a revocation signal
Application sessionsEach application's own cookie or server sessionThe application invalidates it server side
Cloud temporary credentialsRole sessions issued by the cloud provider's token serviceExpiry, or a deny policy keyed on issue time
Interactive host sessionsRemote Desktop, SSH and console logons on serversLogoff on the host, which ends the session's processes
Gateway sessionsVPN, VDI and application delivery controllersGateway kill command for the user or for all sessions

The OWASP Session Management Cheat Sheet sets the baseline for the application layer: logout must invalidate the session "at least on server side", all identifiers belonging to the same logical session (including earlier rotations) must be revoked together, and applications should let users view and remotely terminate their active sessions. If an application cannot do server-side invalidation, D3-ST cannot be applied to it at all, and the only lever left is the session lifetime.

ATT&CK techniques D3FEND relates to D3-ST

Relationship type: inferred only. D3FEND lists these ATT&CK techniques for D3-ST because they act on the Session artefact that D3-ST deletes. D3FEND labels the relationship inferred and experimental (checked November 2026). Every ID was checked against ATT&CK v20. The last column is NHI Mgmt Group's assessment, not D3FEND content.

ATT&CK IDTechniqueWhat termination changes (NHI Mgmt Group assessment)
T1133External Remote ServicesStrong at the gateway: ends VPN or remote access sessions, but only lasts if the credential is also blocked
T1199Trusted RelationshipPartial: ends partner and supplier sessions you can see; delegated access granted in the partner's own tenant needs separate revocation
T1134.003Make and Impersonate TokenPartial: logoff destroys the logon session the token belongs to; a new token made from stolen credentials needs the credential reset too
T1021.001, T1021.004Remote Services: Remote Desktop Protocol, SSHStrong for the live session: logoff ends its processes; keys or passwords still allow a new session
T1563.001, T1563.002SSH Hijacking, RDP HijackingStrong: ending the legitimate user's session removes the session that was being hijacked

Session techniques that sit closest to D3-ST in practice are not in D3FEND's list for it: T1539 Steal Web Session Cookie and T1550.004 Web Session Cookie. Terminating the server-side session is the direct response to both. See the MITRE ATT&CK T1539 Steal Web Session Cookie, the MITRE ATT&CK T1550 Use Alternate Authentication Material Guide and the MITRE ATT&CK T1563 Remote Service Session Hijacking.

Where it is implemented

Platforms are listed alphabetically. Each row states the action and the scope its own documentation gives (checked November 2026).

PlatformTermination actionScope stated in the vendor docs
AWS IAM rolesRevoke active sessions on the role, which attaches the inline policy AWSRevokeOlderSessions; or a custom deny policy with the aws:TokenIssueTime conditionDenies all actions to role sessions issued before the cut-off (the console adds about 30 seconds for propagation); applies to every user of the role; IAM Identity Center permission set sessions are revoked in Identity Center; service-linked role sessions cannot be revoked; clear the CLI credential cache
Google WorkspaceAdmin console: user, Security, Sign-in cookies, Reset; separate Sign Out User action for managed computersSigns the user out of browsers and mobile devices but apps such as Gmail and Drive for desktop are signed out as a separate step; third-party app access is revoked separately; suspending a user resets sign-in cookies
Microsoft Entra IDRevoke sessions in the admin centre, or Revoke-MgUserSignInSession, after disabling the accountRevokes refresh tokens and sign-in sessions; access tokens stay valid until expiry (default one hour) unless the app supports Continuous Access Evaluation; application session cookies must be revoked by the application
OktaClear user sessions: DELETE /api/v1/users/{userId}/sessionsEnds the user's Okta sessions; OAuth and OIDC tokens only with oauthTokens=true (default false); sessions created by web or native apps are ended in those apps; forgetDevices clears remembered factors
Windows Remote Desktop Session Hostlogoff with the session ID or name, with /server for a remote hostEnds all processes in the session and removes it; needs Full Control to log off other users; cannot log off the console session

On Linux hosts running systemd, loginctl can terminate a session or all sessions of a user, which ends their processes. Gateways and application delivery controllers have their own commands: after CitrixBleed, Citrix advised customers to kill all active and persistent sessions after upgrading. Privileged session tools can usually terminate a live brokered session; see the Privileged Session Management Guide. For standards-based sign-out across relying parties, see the OpenID Connect Logout and Session Management Guide and the Global Token Revocation Guide.

How to run it during an incident

  1. Scope the identity and devices. List the compromised accounts, their linked identities in each SaaS tenant and cloud account, and the devices they used. D3-CCSA Credential Compromise Scope Analysis covers this step.
  2. Block re-entry first. Disable the account or reset the password (Microsoft's guidance for synced accounts is to reset the on-premises password twice), and remove attacker-registered MFA methods, keys and app consents. Terminating sessions before this lets the attacker sign straight back in.
  3. Terminate at the identity provider. Revoke sign-in sessions and refresh tokens, including OAuth tokens where that is an option rather than a default.
  4. Terminate at each application and gateway. Work through the applications that keep their own sessions, then VPN, VDI and remote access gateways.
  5. Terminate cloud and host sessions. Apply issue-time deny policies to roles the identity assumed, and log off host sessions found on servers.
  6. Clear caches. Pair with D3-ANCI Authentication Cache Invalidation for cached credentials and Kerberos tickets on hosts.
  7. Record the cut-off time. Write down the UTC time of each termination; it is the line against which verification queries run.

Rollback is simple but disruptive: terminated users re-authenticate and may lose unsaved work. AWS warns that a role-wide revoke denies every current session of that role, so for a shared role, plan the impact on workloads before using it. For the wider identity response, see the Identity Incident Response Playbook.

How to verify it works

  • Replay test in exercises: capture a test user's cookie and refresh token, run the termination procedure, then replay both. Each should be refused. Run this per application before an incident, so you know which apps honour revocation.
  • Post-cut-off log search: search identity provider, application, cloud and gateway logs for successful requests from the affected identity after the recorded cut-off, grouped by session or token identifier. Any success means a layer was missed.
  • Token lifetime check: for access tokens that cannot be revoked, wait out the documented lifetime and confirm no request using the old token succeeds after it.
  • Host check: list sessions on servers the identity touched and confirm none remain.
MetricWhat it showsExample target (illustrative, not a standard)
Time from containment decision to last session terminatedSpeed of eviction across all layersUnder one hour for priority incidents
Successful requests from terminated sessions after cut-offMissed session layersZero
Share of critical applications that support server-side or admin session revocationWhether D3-ST can be applied at allRising; gaps listed with compensating lifetimes
Applications covered by a tested termination runbookReadinessAll applications holding sensitive data
Re-entry sign-ins by the attacker after terminationWhether re-entry was blocked firstZero

For dwell-time signals that tell you a session needs terminating, see D3-SDA Session Duration Analysis.

Limits, bypasses and failure patterns

  • Patching without terminating: in CitrixBleed 2023, cookies leaked before the fix stayed valid after upgrade, and Citrix told customers to kill all active and persistent sessions. Treat any gateway or token store compromise as a termination event.
  • Terminating before blocking: if the password, MFA method or OAuth consent the attacker used still works, termination buys minutes.
  • Trusting a single revoke button: each identity platform's documentation states the scope of its revoke action, and some layers are handled elsewhere, such as application cookies, access tokens or desktop apps. Those layers need their own step.
  • Forgetting non-human identities: tokens issued to service principals, OAuth apps and CI/CD jobs are sessions too. User session revocation does not touch them; revoke the client secret, key or grant. See the Workload Identity Compromise Response Playbook.
  • Persistence outside the session: scheduled tasks, new accounts, added keys and mailbox rules survive termination. D3-ST removes live access, not footholds.
  • Applications without server-side sessions: stateless designs that trust a long-lived token cannot be terminated early. Short lifetimes are the only control; see Device-Bound Session Credentials (DBSC) Guide for reducing cookie replay.

Framework mapping

FrameworkReferenceRelationship to D3-ST
NIST SP 800-53 Rev 5AC-12 Session TerminationThe control D3FEND names as the definition source; automatic termination after defined trigger events
NIST SP 800-53 Rev 5AC-2(3) Disable Accounts, SC-10 Network DisconnectCompanion controls: blocking re-entry and ending network sessions
NIST CSF 2.0RS.MI-01Incidents are contained
MITRE ATT&CKM1026 Privileged Account ManagementNHI Mgmt Group view, not a D3FEND link: privileged session controls usually carry the terminate capability

Practitioner checklist

  • List every session layer for each critical application: identity provider, refresh and access tokens, app cookie, gateway, host.
  • For each, record the termination action, who can run it, and what its documentation says it does not reach.
  • Block re-entry before terminating: disable or reset, remove attacker MFA methods, keys and consents.
  • Turn on OAuth token revocation options that are off by default when clearing identity provider sessions.
  • Prefer applications and resources that honour revocation signals; set short access token lifetimes where they do not.
  • Include service principals, OAuth apps and workload tokens in the termination runbook.
  • Record the UTC cut-off and search all logs for successes after it.
  • Test the runbook with a replay exercise at least once a year and after platform changes.

Standards and references

Related NHI Mgmt Group resources: Incident Scoping and Containment Strategy Guide · Identity Incident Response Playbook · Global Token Revocation Guide · MITRE D3FEND 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.