A government application may use a service token to read a restricted document store or call an internal API. If that token appears in a public repository, support log or vendor diagnostic bundle, the organisation needs to determine what the token could access, whether it was used and how to revoke it without disabling essential public functions. This fictional tabletop uses synthetic secrets and dummy records. It is not an instruction to copy classified data, test live credentials or bypass government access controls.
Scope the secret and nominate the custodian
The scenario begins with a developer discovering a token-shaped string in a public code snippet. The snippet appears to belong to an API used by a case-management service, but its authenticity is not yet established. Participants include the service owner, identity administrator, application engineer, security incident lead, records officer, privacy adviser, vendor liaison and government security officer where applicable. The facilitator must prevent the team from using the apparent secret against production as a quick verification method.
The first decision is whether the discovered value is a reusable secret, a harmless example, an expired token or a sensitive certificate fragment. Use trusted credential inventory records and issuer-side metadata to identify its kind without displaying the secret. Record the workload identity, issuer, intended audience, nominal scope, issuance and expiry dates, deployment locations and supported revocation process. A personal access token, signed application credential and short-lived cloud session have different lifecycles; a generic ‘change the password’ instruction may solve none of them.
Establish a minimal exposure record
Create a controlled incident file with the repository URL or evidence identifier, discovery time, publication history, exposure duration estimate, affected workload and investigators authorised to view the original material. Restrict the actual secret to a secure evidence store if preservation is lawful and necessary. The ordinary ticket should contain only a fingerprint or reference that cannot be replayed. Confirm whether the offending snippet was mirrored, included in build artefacts or imported into external developer tools. Deleting one web page is not proof that all copies vanished.
The records officer should advise how evidence preservation intersects with government recordkeeping requirements. The security team should not destroy audit artefacts in an attempt to conceal the mistake. Equally, evidence copies should not spread the token into chat transcripts, slide decks or email attachments. Agree a controlled communications channel and indicate who may make external contact with a code-hosting or supplier platform.
Inject one: the service token appears active
The facilitator provides issuer metadata indicating that the credential remains valid for the case-management API. Ask participants to distinguish potential capability from observed use. They should gather resource-scope information, API access logs, workload deployment history and repository publication timestamps. A token granting read access to a particular test collection is different from one with administrator privileges across all case files. Likewise, a valid token found in public does not prove that an unauthorised party used it.
The identity administrator must identify what revocation action is supported: deleting a token at its issuer, removing an application grant, rotating a secret backing a workload, changing signing keys or disabling a specific service identity. Each has different blast radius. Replacing a public string in a repository without invalidating the issuer-side credential is not containment. Before taking action, the service owner should identify the applications that will stop or queue work when the credential is withdrawn.
Inject two: a citizen workflow relies on the same credential
Reveal that two approved application workers use the token: one imports statutory case updates and another generates daily operational reports. Participants must decide whether to revoke immediately and accept delayed processing, deploy a replacement credential first, or temporarily restrict the old token’s permitted resources. The decision depends on available evidence, risk and the operational consequences. Neither a cyber analyst nor a developer should unilaterally decide that a citizen-facing obligation is dispensable.
Ask the owner to state the current continuity option: manual authorised processing, an alternate workload identity, a temporary processing queue or a formally accepted outage. Establish a cutover order with rollback conditions. If the team chooses key rotation, confirm that the old and new credentials do not both retain broad access indefinitely. A planned overlap can be justified for service continuity but must be time-bounded and monitored.
Inject three: suspicious API activity is reported
The log team now sees a burst of calls from a network not normally associated with the service. Ask for request IDs, source attributes, token fingerprint, targeted resources and actual API responses. Provider NAT or an emergency deployment might explain the source; an unusual address alone is not proof of exfiltration. A successful authentication event is not proof that a restricted record was returned. Investigators need application-level authorisation and export evidence to determine impact.
Suppose the API audit record contains only a broad success status. The security lead should label the outcome as indeterminate pending better evidence, not manufacture a ‘no disclosure’ conclusion. The privacy adviser considers applicable duties if personal information was available or accessed. For classified or otherwise protected government information, refer the matter to the authorised security and classification process; this tabletop cannot decide those obligations generically.
Run a synthetic revocation acceptance test
Use a test issuer and two dummy API resources, Public-Test and Restricted-Test. Give a workload token only the approved Public-Test permission. Demonstrate a legitimate read, and confirm Restricted-Test is denied even if its identifier is known. Rotate or revoke the token through the official issuer control, then repeat the formerly permitted request using a test reference to the old credential. The old route must refuse access. A freshly approved replacement identity should complete the required Public-Test transaction.
Include a background queue that previously received the old grant. The observer must check whether the queued worker can still retrieve data after revocation, and whether a separately minted session remains valid until expiry. These nuances determine whether the control closes the unwanted path immediately or only after a known propagation delay. Do not put a functional credential into the exercise report. Keep resource IDs, policy revisions and response decisions instead.
Exercise cleanup without pretending erasure
The facilitator announces that the code-hosting operator has removed the visible snippet. Participants should verify repository history, known forks or mirrors and build artefacts where supported, and ask the host what deletion evidence it can lawfully provide. The organisation must still assume an exposed secret could have been copied before removal and therefore treat issuer-side revocation as the decisive step. Maintain a record of any outstanding replicas or unknown copies; absence of discoverable mirrors is not proof of universal erasure.
Check secret-scanning alerts and repository controls for future prevention. The engineering lead should propose moving workload credentials to an approved secret manager, limiting scope, setting practical rotation intervals and removing credentials from build logs. Test that developers cannot easily publish new secret values through the same pipeline. These are prospective controls; do not claim they eliminate the already-known exposure.
Assign decisions and verify service restoration
The security incident lead coordinates preservation and containment, but the service owner confirms acceptable citizen-service impact. The identity administrator proves the old grant was invalidated, application engineers prove authorised jobs run on replacement credentials, and privacy and security officers assess reporting and handling requirements. The records officer oversees evidence retention. Record alternate approvers for weekends; an exposed token discovered at night should not wait because nobody knows who can revoke it.
Before closing the incident, reconcile the service’s transaction backlog and confirm no unexpected privileged role remains. Run a positive synthetic case against the replacement workload and a negative case against the revoked grant. Audit temporary exceptions and remove them at the agreed expiry. A green secret scanner after the repository cleanup is not sufficient closure if the old token still works or the public service’s legitimate jobs remain stalled.
A boundary case for signing-key rotation
Some API tokens are signed by a key used for numerous legitimate sessions. Revoking that signing key may invalidate every citizen-service session, not just the exposed token. The tabletop should require the identity architect to explain whether token-specific revocation, audience restriction, service-principal disablement or controlled key rollover is supported. The service owner then weighs the remaining exposure against expected sign-in disruption. If targeted revocation is impossible, document the limitation and exercise a staged recovery in the test tenant. This prevents a generic ‘rotate keys’ instruction from becoming an unreviewed agency-wide outage.
Assessment sheet and next-cycle action
Score identification, exposure preservation, usage assessment, revocation, business continuity, negative testing and incident communication separately as pass, fail or not demonstrated. Each result needs an observer, artefact reference and remediation owner. Record the time from discovery to confirmed issuer-side invalidation and the separate time to validated service recovery. The two clocks measure different outcomes.
The next rehearsal should include a token distributed through a supplier diagnostic log rather than a public repository. That variation tests contract evidence access and subprocessor handling. The enduring success criterion is straightforward: responders can identify the authority represented by the secret, withdraw it through a trustworthy control, show that old access is refused and restore the authorised workflow without losing control of protected records.
Sources and further reading
- ASD, Essential Eight maturity model
- NIST, Cybersecurity Framework 2.0
- NIST, Incident Response Recommendations, SP 800-61 Rev. 3
Strengthen your security with Next Defence
A secrets-handling tabletop should follow an exposed synthetic token from discovery through revocation, build continuity and supplier notification. Keep a timeline of who authorised the response, which services refused the old credential and what work remained permitted. Next Defence can help facilitate the exercise with government security and application owners.