AI-agent incident response

AI agent security incident response checklist.

Stop new agent actions, preserve the evidence that still exists, revoke affected authority, determine what the agent reached or changed, and recover from a known-good boundary.

Do not confuse a paused agent with a contained incident. Sessions, credentials, connectors, scheduled jobs, repository changes, and external actions can remain after the visible run stops.

CapitalGuard Security Research · Version 1.0.0 · Sources checked July 30, 2026

5

Ordered steps

28

Register fields

7

Primary sources

The direct workflow

Stop. Preserve. Revoke. Scope. Recover.

Use one coordinator and one timeline. If the incident is active, destructive, regulated, or beyond the team's expertise, use a qualified incident responder before making destructive changes.

  1. 1

    Stop

    Stop new agent actions without destroying evidence

    Name one incident coordinator, record the detection time, pause new agent tasks and schedules, and use an approved containment control when continued tool use could cause harm. Do not delete chats, rewrite repository history, or reset affected systems merely to make the incident look clean.

  2. 2

    Preserve

    Preserve the smallest useful evidence set

    Record agent, session, model, repository, tool, connector, account, and environment references. Export available traces, audit events, diffs, commits, approvals, provider event IDs, and timestamps before retention windows expire. Keep secrets and personal data out of the response register.

  3. 3

    Revoke

    Revoke authority and rotate exposed credentials

    Disable affected tokens, keys, sessions, connectors, app grants, and service accounts at their issuing providers. Rotate a potentially exposed secret before considering repository-history cleanup, and verify each replacement automation uses the new credential with the minimum required scope.

  4. 4

    Scope

    Determine what the agent reached and changed

    Build a timeline of files read or changed, commands and tool calls, external destinations, accounts, data types, users, and business processes in scope. Separate confirmed evidence from assumptions, identify required internal escalation, and obtain qualified legal, privacy, or incident-response advice when needed.

  5. 5

    Recover

    Restore a known-good boundary and monitor it

    Restore approved configuration and code, reissue only the access still needed, test the agent in a constrained environment, and monitor the affected repositories, accounts, connectors, and credentials for a defined period. Record residual risks, lessons, owners, and follow-up deadlines before closure.

First decision

Match the response to what is still happening.

A suspicious answer, an exposed credential, an unauthorized write, and an external action require different controls. Record facts first and preserve provider evidence before it expires.

Observed conditionImmediate boundary
The agent is still taking unsafe actionsPause new jobs and invoke the approved containment boundary. Record the time and control used.
A token, key, or password may be exposedRevoke or rotate it at the issuing provider. Never paste the secret into the incident register.
Repository content changed unexpectedlyStop further writes and preserve the branch, commit, diff, actor, workflow, and audit references.
A connector performed an external actionDisable the connector or grant and preserve provider event IDs, destinations, payload class, and approval state.
Impact is unclear, regulated, or still activeEscalate to a qualified incident responder and the organization's legal, privacy, or notification owner.

Blank incident register

Preserve references, not secrets.

Keep the completed record private. Use provider event IDs, trace IDs, commit hashes, and authorized evidence locations instead of copying credentials, customer data, sensitive prompts, or raw source into the register.

FieldMachine keyWhy it matters
Incident IDincident_idA non-sensitive internal reference for the incident.
Detected timedetected_atWhen suspicious behavior or exposure was first identified.
Incident coordinatorcoordinatorThe person accountable for decisions, evidence, and handoffs.
Initial severityinitial_severityThe organization's provisional severity and the reason for it.
EnvironmentenvironmentDevelopment, test, staging, production, personal, or other boundary.
Agent systemagent_systemThe agent product, workflow, harness, or automation in scope.
Agent session referencesagent_session_referencesPrivacy-reduced run, trace, conversation, job, or session identifiers.
Detection triggertriggerThe alert, report, observation, or control that started the response.
Observed behaviorobserved_behaviorFacts observed without inferred motive or unsupported conclusions.
Affected repositoriesaffected_repositoriesAuthorized repository references and branches potentially in scope.
Affected accounts and servicesaffected_accounts_and_servicesIdentity, cloud, source-control, SaaS, and local accounts in scope.
Tool calls and actionstool_calls_and_actionsCommands, writes, deployments, messages, purchases, or external calls observed.
Data types in scopedata_types_in_scopeSource code, credentials, customer data, personal data, or business records involved.
Containment start timecontainment_started_atWhen the first approved action limited further agent activity.
Agent and job statusagent_and_job_statusPaused, stopped, isolated, still running, or unknown, with the responsible owner.
Credentials revoked or rotatedcredentials_revoked_or_rotatedProvider-side credential references and completion status, never secret values.
Connectors and sessions revokedconnectors_and_sessions_revokedApplication grants, connectors, sessions, devices, or service accounts disabled.
Evidence locationsevidence_locationsAuthorized private locations for traces, logs, diffs, exports, and provider records.
Evidence privacy classevidence_privacy_classThe handling category applied to the incident evidence.
TimelinetimelineOrdered confirmed events, decisions, actions, and owners.
Impact assessmentimpact_assessmentConfirmed and possible technical, data, customer, financial, and operational impact.
Notification ownernotification_ownerThe qualified owner deciding internal, customer, regulator, insurer, or authority notices.
Recovery baselinerecovery_baselineThe known-good code, configuration, policy, and access state selected for recovery.
Validation testsvalidation_testsTests used to confirm containment, credential replacement, and constrained operation.
Monitoring windowmonitoring_windowThe defined period, signals, and owner for heightened monitoring.
Residual risk and actionsresidual_risk_and_actionsUnresolved questions, accepted risks, follow-up owners, and deadlines.
Closed timeclosed_atWhen the incident coordinator completed the response record.
ApproverapproverThe person who reviewed closure evidence and accepted remaining risk.

Primary-source boundaries

Available evidence depends on the system and configuration.

Check the exact provider, plan, retention window, trace setting, identity model, and application in use. These sources describe response controls; they do not prove that a specific incident was contained or resolved.

SourceControlDocumented boundaryChecked
NISTSP 800-61 Rev. 3 incident responseNIST integrates incident response across cybersecurity risk management and the Detect, Respond, and Recover functions. The publication is organization-wide guidance, not an AI-agent product test, certification, or substitute for a response plan tailored to the organization.2026-07-30
NISTAI RMF Manage functionThe AI RMF calls for documented response and recovery, the ability to disengage or deactivate AI systems, post-deployment monitoring, incident communication, and tracked recovery. It is voluntary, use-case agnostic guidance and does not certify this checklist.2026-07-30
CISACybersecurity Incident and Vulnerability Response PlaybooksThe CISA playbooks cover detection and analysis, coordination, evidence collection, containment, eradication, recovery, and post-incident work. They were written for U.S. federal civilian agencies; their agency reporting steps are not general requirements for every organization.2026-07-30
OpenAIAgents SDK tracingThe Agents SDK can trace generations, tool calls, handoffs, guardrails, and custom events, but tracing can be disabled and is unavailable under Zero Data Retention. Trace inputs and outputs can contain sensitive data, so an absent or privacy-reduced trace is not proof that an action did not occur.2026-07-30
GitHubReview and export an organization audit logGitHub organization audit logs identify recorded actors, actions, and times and can be searched or exported as JSON or CSV. The documented web view covers events from the last 180 days and export limits apply; the log is not a complete record of activity outside GitHub.2026-07-30
GitHubRespond to sensitive data in repository historyGitHub says to revoke or rotate an exposed password, token, or credential before considering history rewriting. Rewriting history has coordination and recontamination risks, and removing repository history does not prove that local or downstream copies were deleted.2026-07-30
MicrosoftRevoke Microsoft Entra user accessMicrosoft documents disabling an account, revoking refresh tokens, and disabling registered devices, while warning that access-token expiry and application-issued sessions affect revocation timing. An application must revoke sessions issued under its own authorization policy.2026-07-30

When repository scope is part of the incident

Preserve first. Then assess the authorized repository boundary.

After the response owner confirms that scanning will not destroy evidence, CapitalGuard can assess an authorized repository for exposure paths. It does not inspect every external service, prove compromise, contain an active attacker, satisfy notification duties, or replace a qualified incident responder.

Check Authorized Repository Scope

Method: direct NIST, CISA, OpenAI, GitHub, and Microsoft documentation checked on July 30, 2026. Limitations: this checklist is not legal, privacy, compliance, notification, forensic, insurance, or emergency incident-response advice. A completed register does not prove that every action was observed, every copy was deleted, every credential was revoked, or the affected environment is secure.