A scenario worth testing
A user is removed from a group but still has an open browser session. This scenario is an invented teaching example, not a description of an actual breach or test of a named organisation.
NIST SP 800-63-4 distinguishes authentication assurance and authenticator properties, including phishing resistance. In this guide, the purpose is to evaluate a specific decision and its evidence. It does not follow that the scenario is likely in every environment, or that any untested product is vulnerable.
Red team perspective: define the risk
Question to test. Can old session tokens continue to permit actions after the identity change?
Blue team perspective: define the boundary
Defensive decision. Include session invalidation, application caches and time-bound propagation in the offboarding process.
Safe experiment: make the question measurable
Scope: synthetic records or an explicitly authorised, disposable test environment only. No customer records, live exploit payloads or third-party probing.
- State the decision. Describe the asset, who should be authorised, and which fact would refute the initial hypothesis.
- Create a safe fixture. Construct the example. Design a staging test with a dedicated test account: establish access, remove a role and check a read-only protected page at defined intervals.
- Evaluate three cases. Use the fictional cases below; identify the permitted case, an adverse case and a plausible exception. Record what evidence distinguishes them.
- Write an outcome. Decide whether to allow, deny, escalate or ask for more information. Record the policy owner and one measurable follow-up. Never equate a planned test with a completed live test.
Worked example and expected observations
Illustrative result, not a measured finding: The times when access was allowed or denied, plus the relevant identity and application audit records.
| Case | Fictional input | Decision to justify |
|---|---|---|
| Expected activity | Former test user's session token is denied after documented revocation | Explain the precise reason it is permitted or expected. |
| Boundary challenge | Previously issued session can still read the sample resource | Identify the policy, detection or approval that should respond. |
| Lookalike or exception | Browser cache shows an old screen but server denies every fresh request | Identify the missing context before making an accusation. |
Interpret this example
Start with the expected case: former test user's session token is denied after documented revocation. Compare the relevant boundary with the adverse case: previously issued session can still read the sample resource. The distinction depends on Revocation timestamp, session ID prefix, API status, and device sign-out, not the alarming appearance of an isolated event.
The third case deliberately resists a snap conclusion: browser cache shows an old screen but server denies every fresh request. Record which additional fact would change the decision. Compare the authenticated identity with the specific resource and authorised action. A successful single sign-on does not itself grant permission to every application object.
Download the three-case CSV exercise (illustrative inputs, not collected production evidence).
Evaluate evidence and failure modes
False confidence to avoid: Logout from one browser does not guarantee every application token has been revoked. Identity interfaces, conditional-access features and log fields differ by provider and subscription.
An authenticated identity does not automatically have permission for every resource. Recovery and account lifecycle remain separate security boundaries. When a log source is missing or a sample is ambiguous, mark the conclusion unverified rather than estimating a success rate from fictional data.
Decide what to improve
Recommended next action: Specify a required revocation window and implement a privileged-session termination procedure. Keep both the identity-provider record and the relying application record when tracing a change.
- Which exact asset and named owner does this decision concern?
- Would your evidence include Revocation timestamp, session ID prefix, API status, and device sign-out?
- Does the adverse case need blocking, investigation or both?
- What one controlled follow-up would distinguish the lookalike case from abuse?
Official references and limitations
- NIST SP 800-63-4 Digital Identity Guidelines ↗
- MITRE ATT&CK: Enterprise tactics, behaviours and detection data ↗
Primary references explain the underlying control or framework; they do not validate the fictional cases above.
Try the related offline practice workbook, with runnable Python standard-library examples and marked limitations.