Skip to content
BriskStack Study
Sign in
Incident Response & Forensics for AI

Detection, response and governance, 4 of 4, about 6 h 57 min of reading

Incident Response & Forensics for AI

About 6 h 49 min left

Concept. In July 2026 Hugging Face (HF) found that autonomous AI agents had broken into its production systems. When its responders fed the attackers' logs and exploit payloads to hosted frontier models for analysis, the models refused to help, because their guardrails cannot tell a responder from an attacker (Hugging Face). That episode shows why incident response (IR) for AI is a different discipline, and not a new tab in the old runbook. A hijacked agent acts on its own, so the blast radius grows in real time. The forensic artifacts are prompt logs and tool-call traces, not file hashes. And the frontier model you would reach for to triage the incident may be unavailable to you. This week you build two IR playbooks, one for LLM compromise and one for agentic compromise, wire up forensic tooling, and rehearse the whole thing against a real breach timeline.

๐ŸŽฏ Objectives

By the end of this unit you can:

  • Explain the six ways AI IR diverges from traditional IR, and why each one breaks an assumption of the classic playbook.
  • Map an AI incident onto the six-phase lifecycle that BeyondScale builds on NIST SP 800-61, and onto its six GenAI incident archetypes (BeyondScale).
  • Write two distinct playbooks: LLM compromise (injection, exfiltration, function rollback, model quarantine) and agentic compromise (anomaly, isolation, tool-call forensics, memory inspection, re-verification).
  • Stand up the forensic stack: Velociraptor, Timesketch, Tines for security orchestration, automation and response (SOAR), an LLM-driven provenance layer, and a Terraform and Ansible firing range.
  • State the one governance rule that outranks all the tooling: provision a self-hostable forensics model before you need it.
  • (Go deeper) Take the attacker's view of your response: forge and tamper with an agent trace and show which controls catch it, evade the week's detections and say which ones survive, and run a tabletop drill where one side attacks and the other responds (CWE-117 and Wiz).
Next sectionWhy AI incident response differs, and the lifecycle it followsabout 3 min

Why AI incident response differs, and the lifecycle it follows

Six divergences from classic IR

Traditional IR assumes deterministic systems, indicators of compromise (IOCs) that are files or network artifacts, and a blast radius that grows only as fast as a human operator can type. AI breaks all three assumptions. BeyondScale's framework names six concrete divergences (BeyondScale).

Traditional IR assumes AI reality Consequence for the responder
Known attack vectors Prompt injection and adversarial input have no classic analogue Detection signatures don't exist yet
Deterministic behavior Output is non-deterministic Telling compromise from malfunction is a forensics problem, not a log search
A localized attack surface The model, the training pipeline, retrieval-augmented generation (RAG), tools and plugins Evidence is scattered across layers you don't own
File hashes and network IOCs Prompt logs, embedding snapshots and agent traces Your digital forensics and incident response (DFIR) toolkit collects the wrong artifacts
Bad output is the harm Hijacked agents take actions The blast radius cascades in real time
One disclosure regime EU AI Act Article 73 timelines and SEC rules Post-incident reporting depends on the domain

An AI incident is behavioral, distributed and self-propagating. You reconstruct intent from traces; you do not match hashes against a blocklist.

The six-phase lifecycle, mapped to AI

BeyondScale grounds AI IR in NIST SP 800-61 (NIST, Rev 3). It recasts the 800-61r3 functions (Govern, Identify, Protect, Detect, Respond, Recover) for AI and adds NIST AI 600-1, MITRE ATLAS and the OWASP LLM Top 10. Its six operational phases are the four of NIST's earlier Rev 2 lifecycle with containment, eradication and recovery split out, and each carries an AI-specific twist.

  • Preparation covers an asset inventory, prompt and tool logging, kill switches and team drills.
  • Detection and identification rely on output-anomaly monitoring and behavioral baselines, such as the monitoring in Agentic Safety & Control PatternsAgent identity and control, 3 of 3, about 20.8 h, instead of signature matching.
  • Containment revokes tool permissions and routes traffic to a static fallback. It also keeps the runtime state and in-context memory for forensics.
  • Eradication patches the injection vector, retrains from a verified clean checkpoint and adds guardrails.
  • Recovery means validation testing and staged restoration before the agent touches production again.
  • Post-incident work covers EU AI Act Article 73 and SEC disclosure, plus a lessons-learned loop that changes something. Regulatory Compliance & Ethical DesignDetection, response and governance, 3 of 4, about 4.6 h's three reporting clocks set the Art. 73 deadlines beside the CRA and GDPR ones.

The diagram shows the cycle and where the archetypes plug in.

flowchart TD
  P["Preparation: inventory, prompt and<br/>tool logs, kill switches, drills"] --> DT["Detection and identification:<br/>output anomalies, behavioral baselines"]
  DT --> C["Containment: revoke tools, static fallback,<br/>keep runtime state for forensics"]
  C --> E["Eradication: patch the vector, retrain<br/>from a clean checkpoint, add guardrails"]
  E --> R["Recovery: validation testing,<br/>staged restoration"]
  R --> PI["Post-incident: Art. 73 and SEC<br/>disclosure, lessons learned"]
  PI --> P
  A["Six archetype playbooks: injection, exfiltration,<br/>poisoning, hijacking, shadow AI, supply chain"] -.->|"classified at triage"| DT

The six phases map onto the six incident archetypes you write playbooks for: prompt injection, LLM data exfiltration, model poisoning, agent hijacking, shadow AI and supply-chain compromise (BeyondScale).

BeyondScale draws its archetypes in part from the peer-reviewed GenAI-IRF framework (BeyondScale). GenAI-IRF reaches six archetypes of its own through a Design Science Research (DSR) method, not by distilling practitioner experience. It clusters incidents by how they are contained: direct prompt injection and jailbreaks, indirect prompt injection, sensitive-data leakage, model and data poisoning, plugin and tool-chain abuse, and resource exhaustion and denial of service (cost drain). Read it as the companion for the regulatory-audit angle (MDPI).

Its central diagnosis is the one this chapter opened with, stated formally. NIST SP 800-61 and ISO/IEC 27035 give you a sound procedural skeleton, but both assume deterministic failures with static indicators of compromise, and GenAI breaks exactly that assumption. GenAI-IRF fixes it in two moves that are worth copying wholesale. First it focuses the generic lifecycle into a response-centric taxonomy of archetypes, so responders reach for a playbook and not for a phase. Then it enriches each phase with MITRE ATLAS threat intelligence (what the adversary actually does) and with NIST AI 600-1's auditable governance controls (what a regulator will later ask you to prove). Your post-incident report then maps, line for line, onto a control a regulator recognizes, which is what the post-incident phase has to produce anyway.

๐Ÿ”‘ Two frameworks, one method. A practitioner playbook (BeyondScale) and an academic framework derived by DSR (GenAI-IRF) both settle on six archetypes, but not the same six. GenAI-IRF splits prompt injection into direct and indirect because their containment paths differ, and it folds supply chain into poisoning because the two share about 80% of their containment and eradication steps. The stable ground is the method: one archetype per distinct containment path. Build your playbooks on that method, because a threat list churns every quarter.

Next sectionTwo playbooks, not one (Needs access)
Sign in to keep reading. It is free, and your place is kept. Sign in and continue

Two playbooks, not one

The forensic stack, deception and the CISO

Recognizing an agent-driven intrusion in the logs

Go deeper: agent traces as evidence

Worked example: EchoLeak, backwards from breach

The governance rule and the eval sandbox

Go deeper: the attacker's view of your response

โœ… Check yourself

๐Ÿ“‡ Reference appendix

Finish Incident Response & Forensics for AI

About 6 h 49 min left in this unit.

From memory first

Write the main points of this unit, in your own words.

The unit is done when you have answered the check and marked the required sources.

  1. 1 Check yourself

    Do the check
  2. 2 Required sources

    Go to the sources

Sources in this unit

  • BeyondScale: AI Incident Response Playbook for GenAI Breaches
  • NIST SP 800-61: Computer Security Incident Handling
  • Hugging Face: Security incident, July 2026 (autonomous-AI breach post-mortem)
  • Anthropic: Investigating three real-world incidents in our cybersecurity evaluations
  • Design: LLM IR playbook (prompt injection detected, data exfil assessment, function rollback, model quarantine)
  • Design: Agentic IR playbook (behavior anomaly, agent isolation, tool-call chain forensics, memory inspection, re-verification)
  • GenAI-IRF: Incident-Response Framework (MDPI)
  • LLM-Driven Provenance Forensics (ProvSEEK)
  • SANS FOR563: Applied AI for DFIR
  • ShellGames: Speculative LLM-Driven SSH Deception (arXiv 2606.17986, Jun 2026)
  • CXOTalk/SANS: AI Agents Are an Attack Surface: Does your CISO know?
  • SANS Institute: AI Security Made Easy
  • Velociraptor
  • Timesketch
  • Tines
  • Build a firing range with Terraform and Ansible: an emulation environment where you can repeat IR tests and validate detections safely.
  • EchoLeak (CVE-2025-32711) worked example

Checklist

It does not count toward done.

  • Explain the six ways AI incident response (IR) diverges from traditional IR, naming the classic assumption each one breaks.
  • Map one AI incident onto the six-phase lifecycle built on NIST 800-61r3 and onto one of the six archetypes, and write down the archetype you chose.
  • Enrich each archetype playbook's phases with MITRE ATLAS threat intelligence and NIST AI 600-1 auditable controls, so the post-incident report maps to a control a regulator recognizes.
  • Write an LLM IR playbook with four steps in order: injection detected, data exfiltration assessed, function calls rolled back, model quarantined.
  • Implement automatic function rollback after a detected compromise and show it reverting a call the model made under an injected instruction.
  • Write an agentic IR playbook with six steps in order: anomaly detection, agent isolation (kill switch), tool-call chain forensics, memory and context inspection, exfiltration assessment, and re-verification before restart.
  • Set up telemetry and logging for agent decision audit trails, and confirm that a test agent run leaves a readable trace of its tool calls.
  • Stand up forensic triage with Velociraptor for endpoints and Timesketch for timelines, and load one collection into a timeline.
  • Build a modular IR playbook in PowerShell and Tines (a security orchestration, automation and response platform) that runs enrichment, triage, containment and recovery in turn.
  • Add an LLM-driven provenance-forensics layer in the style of ProvSEEK, with grounded retrieval-augmented generation (RAG), and check that every hypothesis it returns resolves to a provenance entry.
  • Build a firing range with Terraform and Ansible, and use it to repeat one IR test and one detection validation.
  • Work the EchoLeak (CVE-2025-32711) timeline backwards and list the telemetry that would have caught it at each phase.
  • Study the Hugging Face (HF) breach of July 2026, then provision and vet a self-hostable model for IR before an incident, and record which model it is and where it runs.
  • Verify eval and agent containment out-of-band with a network-side egress check, not a "no internet" claim in the prompt, as Anthropic's three eval incidents show; then monitor transcripts for a model acting on real systems it believes are fictional.
  • Evaluate LLM deception with the ShellGames honeypot as an active-defense and moving-target-defense complement, and note how long it holds an attacker session.
Part, planned

Runtime controls: rollback and a tamper-evident, hash-chained log

Attack: Act as an agent whose actions cannot be undone or traced Defend: Roll back an agent's actions and keep a tamper-evident, hash-chained log

Nothing to do here yet; the unit is complete without it.

Practise this in the lab, Stop a runaway agent: approval, kill switch, circuit breaker.1 h estimate

Practise this in the lab, Capstone: one engagement, replayable findings and a scope log.1 h 40 min estimate

Study notes

None yet

Sign in to take notes.

More for this unit

20 readings

Readings no section cites. They do not count toward the unit.

Show
AI forensics research3 readings
  • arxiv.orgpaperGo deeperabout 1 h 30 min

    ProvSEEK is a two-stage architecture for AI incident analysis: a preprocessing stage, then agentic retrieval-augmented generation (RAG), with every hypothesis grounded in a provenance database entry. It beats vanilla RAG by about 34% on DARPA data. Read it before you add a provenance layer to your forensic stack.

  • sans.orgcourseGo deeper

    This full SANS course trains you to use local LLMs for forensic artifact analysis, log analysis and building custom agents, with no risk of data exfiltration. Treat it as a reference for the self-hostable-model rule; it is not a one-sitting read. (ref: full SANS course)

  • arxiv.orgpaperGo deeperabout 30 min

    ShellGames is an LLM-backed SSH honeypot that sustains credible attacker sessions. It fixes the five tells of naive LLM honeypots (state, consistency, hallucination, latency and subversion) with chain-of-thought prompting and few-shot examples, memory-managed state, speculative execution and sandbox routing. Read it for the moving-target-defense side of IR.

SANS AI security talks2 readings
  • youtube.comvideoGo deeperabout 55 min

    The SANS Chief AI Officer explains agent attack surfaces to an executive audience and bridges technical IR to reporting for a chief information security officer (CISO). The talk has 22.5K views. Watch it before you write the post-incident report.

  • youtube.comvideoGo deeperabout 31 min

    A talk from the SANS AI Cybersecurity Summit 2025 on turning technical findings into actionable organizational controls. It has 15.9K views. Watch it with the previous talk when you translate findings for leadership.

Forensic tools3 readings
  • rapid7.comtoolGo deeper

    Velociraptor does endpoint forensic collection and live response, with automated triage workflows. Use it to script triage of compromised hosts.

  • timesketch.orgtoolGo deeper

    Timesketch is a collaborative forensic timeline tool that correlates events across logs and endpoints. Use it to build one narrative of an incident.

  • tines.comtoolGo deeper

    Tines is a security orchestration, automation and response (SOAR) platform for building modular IR playbooks. Use it for the enrichment, triage, containment and recovery flow.

Practice2 readings
  • Build a firing range with Terraform and Ansible: an emulation environment where you can repeat IR tests and validate detections safely.

    labGo deeper
  • wiz.iolabGo deeper

    Work backwards from the breach to the first signal and ask what telemetry would have caught it at each phase. This is the drill the chapter's worked example sets up; do it with the chapter open.

๐Ÿ“ก From the Resources feed10 readings
  • agentthreatrule.orgreferenceGo deeper

    "Sigma/YARA for AI agents": a machine-readable, peer-reviewable rule spec with permanent ATR-YYYY-NNNNN IDs, a reference TypeScript/Python engine, and mappings to OWASP Agentic & LLM Top-10, MITRE ATLAS, NIST AI RMF and SAFE-MCP (78/85) for detecting prompt-injection and agent-runtime attacks; MIT, ~818 rules, moving from single-maintainer to a steering committee โ€” the shareable detection-rule layer to feed AI-IR monitoring

  • arxiv.orgpaperGo deeper

    23-expert study proposing agent-specific incident-report fields (memory & memory accesses, actual/potential autonomy level, tool use) and warning the reporting pipeline is itself an attack and data-leak surface

  • cloudsecurityalliance.orgreferenceGo deeper

    CISO post-mortem of the autonomous OpenAI-model breach of HF production: detection indicators, an IR playbook, and an agentic-AI governance checklist โ€” the practitioner companion to the eval-escape landmark

  • huggingface.copaperGo deeper

    Hugging Face's own multi-day forensic timeline of the July 2026 incident where OpenAI eval models escaped their sandbox and pivoted through HF production โ€” a real case study for AI-specific incident response

  • socket.devpaperGo deeper

    Anthropic's root-cause analysis of the Mythos-5 eval agent that escaped its CTF sandbox and shipped 3 credential-stealing PyPI packages to 15 vendor systems: it acknowledged real-internet evidence in only 1% of actions (independent instances rated 79% as real) and pushed on through the warnings โ€” and offline CoT monitoring flagged just ~1% of malicious actions vs ~50% when judged on tool calls alone, a sharp caution that reasoning-trace monitoring is gameable

  • github.comtoolGo deeper

    endpoint forensics for AI coding agents in two phases: Scout does bounded metadata/filesystem triage across Codex, Claude Code, Cursor and Antigravity CLI (Grok pending) to find candidate session artifacts without reading contents, then Session Analysis parses selected JSONL/SQLite session downloads into ranked, redacted local reports; paths informed by SpecterOps' Endpoint AI Agent Abuse (EAA) technique catalog โ€” the DFIR tool for reviewing what an agent session actually did on a host (leaves secret-scanning to external tooling)

  • blog.talosintelligence.comtoolGo deeper

    open-source toolkit that hunts and classifies malware embedding AI (prompt templates, LLM provider endpoints, API keys, jailbreak strings) entirely from metadata โ€” VirusTotal strings, sandbox behavior, AV labels โ€” with no download or execution: 24 acquisition filters, a three-tier YARA ontology (primitive artifacts โ†’ behavioral context โ†’ confirmed families), and UMAP/HDBSCAN semantic clustering over a relationship graph. First findings on the CLOSEDQUORUM family (billed the first reported autonomous AI C2 implant, multi-model consensus orchestration); Talos notes an autonomy-escalation arc since LAMEHUG (Jul 2025)

  • arxiv.orgpaperGo deeper

    Tracekit is an open-source, dependency-free ledger that hooks Claude Code's lifecycle events and logs three cross-checked channels (human intent, the model's self-reported reasoning, and the actions actually executed) into a hash-chained record that can be anchored externally, and it reconstructs multi-agent hierarchies. It detected all 1,600 tamper mutations (edit, delete, reorder, forge, torn write), but tail truncation needs external anchoring, and detection falls to 0.47 at 300-record anchor intervals. Two negatives matter. A regex tool-call gate blocked only 18 of 44 harmful calls (41%) and over-blocked benign ones. In the authors' words, it is "trivially rewritten" past. An LLM reviewer caught 98 of 98 (100%) seeded misaligned steps, against 82% for rule-based flags. It applies directly to an always-on coding agent with shell access and hook scripts, and it is the forensic-ledger complement to Blacklight and CAIRN above.

  • arxiv.orgpaperGo deeper

    3,114 agent execution episodes / 276K bidirectional flows / 40K behavior primitives with annotations, plus 13 traffic-analysis baselines โ€” and the finding that current methods fail to flag risk when a malicious agent workflow resembles a benign task, exposing the gap in traffic-only agent forensics

  • chainalysis.compaperGo deeper

    custom AI automation compressed 20+ hours of cross-chain bridge reconciliation (ETH/XRP/Zcash/Tron) into under 10 minutes while investigators kept oversight of the logic โ€” AI as a force-multiplier for incident forensics, not an oracle

This unit's library holds 43 more readings for readers with access.