We revoked the AI agent. Did we undo its actions?
Guest post: Written by Antonio González Burgueño, PhD, Founder & Editor of Cybersecurity Under Pressure. The maintenance incident in the article is hypothetical. TechNovice editors reviewed the article for structure and sources.
In a hypothetical maintenance incident, an infrastructure team gives an AI agent limited authority to diagnose a service fault and prepare a recovery job. The agent opens a session through an access gateway, uses a separate connector to read configuration, and places a job on a queue. An engineer then notices that the job includes an operation outside the maintenance scope and revokes the agent’s access. The identity dashboard immediately shows the principal as disabled. The dashboard leaves three questions open. Can the agent or its connector still reach the service? Did the queued job run, or could it still run? What state is the service in now?
Answering those questions takes evidence from three places: the systems that enforce access, the worker that executes the job and the service that receives the operation.
Quick Answer: Does revoking an AI agent undo its actions?
No. Revoking an AI agent’s access is meant to block further requests, but it does not undo changes the agent already made or cancel work it already handed to a queue, and revocation can take time to reach every enforcement point. In AI agent security, recovery needs evidence from three places: the systems that enforce access, the worker that executes queued jobs and the affected service. The service owner should resume normal operation only when that evidence is recorded and any remaining gaps are visible.
Check | What to verify | Evidence to keep |
|---|---|---|
1. Access withdrawn | The direct session ended, further access is denied at the protected resource and the separate connector can no longer reach the service. | Gateway termination event, denial at the protected resource, outcome of the connector check. |
2. Delegated work accounted for | Whether the queued job ran or was cancelled, and whether it can still retry or be resubmitted. | Job state, the worker’s execution record and the relevant service audit log. |
3. Recovery conditions met | The target’s current configuration matches the approved baseline and the service behaves normally. | Configuration readback with an independent account and the result of the service check. |

How do you confirm the agent’s access is really gone?
Start with the permissions that allow a consequence. In this case, the gateway session, the connector identity and the worker consuming the queue are each worth checking. They may be controlled by different services and may have different lifetimes. The timeline should show when the revocation request was made, when each relevant enforcement point applied it, and when an independent check observed the expected denial.
NIST’s Zero Trust Architecture describes a policy enforcement point that enables, monitors and eventually terminates connections between a subject and an enterprise resource. For an engineering team, that gives the incident review a concrete place to look. An identity provider’s event shows the administrative action. Telemetry at the gateway and the resource shows what happened to the session and whether further requests reached their destination.
Where the implementation uses OAuth, apply the same reasoning to the specific token model. RFC 7009 notes that revocation can be subject to propagation delays. RFC 7662 discusses the trade-off between caching introspection responses and retaining up-to-date information. Those details help a team decide whether to check more than one protected resource and whether a single immediate result captures the relevant window. Other credential models require checks tailored to their own lifecycle.
What happens to work the agent already delegated?
A queue can preserve an instruction after the account that submitted it loses access. The worker may use its own identity, and its decision to run a job may rely on approval captured earlier. In the example, the team pauses the affected job lane under its established incident procedure and retrieves the job state, the worker’s execution record and the relevant service audit log. The review also checks whether retries, duplicates or pending approvals can cause the same instruction to be considered again.
Where the system uses OAuth token exchange, RFC 8693, section 2.1, makes revocation propagation from the source token to the exchanged token implementation-specific. Check that behaviour in the deployed system. Separately, verify the worker’s authority to execute or retry the queued job.
A useful design decision is to define which classes of job require a fresh authorisation check immediately before execution. For a maintenance workflow, that could mean validating that the originating request is still permitted, the job is still within an approved change window and the target state still allows the action. Decide in advance how the worker handles an unavailable authorisation service. A safe response may depend on the job’s purpose, the system’s operating mode and whether pausing introduces a separate availability or safety risk.
How do you verify what changed at the affected system?
The team now needs evidence to decide whether to restore service. It reconciles the job identifier with the service’s audit trail and reads back the affected configuration using an independent account. Where a job started, it checks for partial completion and looks for downstream changes. A documented approved baseline gives the team something to compare against. If a rollback is needed, it verifies the resulting configuration and service behaviour before closing the incident.
NIST SP 800-61 Rev. 3 (RC.RP-05) recommends verifying the integrity of restored assets and confirming normal operation. In this case, the configuration readback and service check give the owner evidence for that decision.
In the hypothetical case, production writes were attempted through one maintenance tool and a queued job was waiting for a worker. The team can close both paths once it has evidence that the direct session ended, subsequent access was denied at the relevant resource and the job cannot execute or retry. If the worker’s records are incomplete, the service owner can still inspect the target and identify what has changed. Any gap that affects the return-to-service decision stays visible to the person authorising it.
How do you make the evidence part of the exercise?
Before deploying a similar agent, test the revocation path in an isolated environment with a representative active session and a queued operation. Exercise the normal revocation controls, collect timestamps from the gateway, connector, worker and target service, and compare the outcome with the recovery procedure. Assign one owner to decide when the affected service can resume normal operation. In an industrial setting, the responsible operator should also assess whether a targeted hold, a degraded mode or a wider stop is appropriate for the process.
Capture the exercise in a short recovery record.
Access withdrawn. Retain the gateway termination event, the denial at the protected resource and the outcome of the separate connector check.
Delegated work accounted for. Record whether the job ran or was cancelled and verify whether it can still retry or be resubmitted.
Recovery conditions met. Compare the target’s current configuration with the approved baseline and record the result of a service check under the recovery procedure.
These are example acceptance criteria for the hypothetical workflow. A missing worker record may leave the job’s history uncertain even if a readback confirms the current state. Record who can accept each remaining uncertainty, or hold the affected operation if the gaps prevent a safe decision. The service owner should be able to read the record and see why normal operation can resume.
Frequently asked questions
Does revoking an AI agent’s access undo its actions?
No. Revocation addresses future access, not what already happened. The team still has to establish whether a queued job ran or can still run, and read back the affected configuration against an approved baseline before the service returns to normal operation.
Can a queued job still run after the agent’s access is revoked?
Yes. A queue can preserve an instruction after the account that submitted it loses access. The worker may use its own identity and rely on approval captured earlier, so the team should pause the affected job lane and check whether retries, duplicates or pending approvals can trigger the same instruction again.
Why can a revoked OAuth token keep working for a short time?
RFC 7009 notes that token revocation can be subject to propagation delays, and RFC 7662 describes the trade-off between caching introspection responses and retaining up-to-date information. A single immediate check may therefore miss the relevant window, so more than one protected resource may need to be checked.
What should a recovery record contain after revoking an AI agent?
Three entries: evidence that access was withdrawn (gateway termination event, denial at the protected resource, connector check), evidence that delegated work is accounted for (whether the job ran, was cancelled or can still retry), and evidence that recovery conditions are met (configuration compared with the approved baseline and a service check).
Who decides when the affected service can resume?
One assigned owner. The service owner should be able to read the recovery record and see why normal operation can resume. Any gap that affects that decision stays visible to the person authorising it, and the operation stays on hold if the gaps prevent a safe decision.
Update history
November 2026: Published as a guest post.
About the author
Antonio González Burgueño, PhD, is the founder and editor of Cybersecurity Under Pressure, an independent publication on OT, automotive and product cybersecurity. His background spans automotive, OT/ICS, railway, secure architectures, certification and assurance, cybersecurity governance and supplier ecosystems, and he participates as an accredited international expert in standardisation activities across IEC, ISO, CEN/CENELEC and ETSI.
Area of expertise: OT/ICS security, automotive and product cybersecurity, certification and assurance, cybersecurity governance.
Sources
NIST, SP 800-207, Zero Trust Architecture. Checked November 23, 2026.
IETF, RFC 7009, OAuth 2.0 Token Revocation, section 2.1. Checked November 23, 2026.
IETF, RFC 7662, OAuth 2.0 Token Introspection, section 4. Checked November 23, 2026.
IETF, RFC 8693, OAuth 2.0 Token Exchange, section 2.1. Checked November 23, 2026.
NIST, SP 800-61 Rev. 3, Incident Response Recommendations and Considerations for Cybersecurity Risk Management, RC.RP-05. Checked November 23, 2026.



