SoK: Mapping LLM agent guardrails to real-world incidentsSoK: Mapping LLM Agent Guardrails Against Real-World Incidents
The authors compared 25 guardrail studies with 28 incidents using a legal obligation grid, and under model pre-annotation found 39 runtime coverage gaps.
- Existing guardrail surveys mostly classify by threat labels such as prompt injection and jailbreak, making it difficult to compare what mechanisms actually check and which problems they address, and impossible to directly map which obligations real agent incidents violated.
- The authors generate a proposition grid from agency law, tort law, data protection, and computer misuse law, then require each code to include a verbatim quotation and coder signature, and subtract the set of runtime-mechanism decided propositions from the set of incident violated propositions to obtain coverage gaps.
- The 25 research releases and 28 incidents pre-annotated by the model together form 328 assertions: runtime mechanisms decide 27 propositions, incidents violate 52, leaving 39 gaps; 15 of these are supported by at least two incidents.
- All assertions were model pre-annotated, with 0 human adjudication sessions; consistency was measured on only 9 incidents. 20 incidents came from the same vendor; the authors state that the gap only indicates that the 25 releases investigated did not cover it, and cannot be generalized to a conclusion for the whole field.
- Metrics
- decided propositionsbreached propositionscoverage gapsCohen's κJaccard overlapwindow doubts
This SoK paper proposes using a shared grid derived from law to systematically map both LLM agent guardrails and real-world incidents: the grid includes the duties agents owe principals under agency law, as well as the non-waivable interests of others protected by tort, privacy, and computer misuse law, so that what mechanisms decide and what incidents violate fall on the same coordinates; any proposition that an incident violates but that no runtime mechanism decides is a traceable coverage gap; each assertion links to a grid proposition, is accompanied by a verbatim quote from the original source, and distinguishes human adjudication from named-model annotation. On an initial corpus pre-annotated by models, containing 25 research releases and 28 first-party incident disclosures (328 assertions, 68 coded mechanisms, materials, and incidents), runtime mechanisms decide 27 propositions, incidents violate 52, leaving 39 gaps, concentrated in final-response truthfulness, disclosure, task completion, and third-party or user legal interests such as property, personal data, unauthorized access, and deception.
Related events and news
1 events · 0 news mentions
- This event's paper
SoK:将LLM智能体护栏映射到真实世界事故
Paper analysis
What problem does this paper attempt to solve?
The authors aim to use a unified legal proposition grid to compare what guardrails actually decide with which obligations real incidents actually violated.
The core problem is: a review of agent guardrails organized by threat name cannot directly answer what mechanisms check, and which runtime coverage gaps real incidents expose.
- Inconsistent classification coordinates: The authors point out that mechanisms all called "injection defense" may respectively scan input instructions, check whether tool calls serve the user's task, or check the scope of authorization; incident databases, meanwhile, are archived by severity, attack tactics, and root-cause narratives, making the two kinds of material hard to compare cell by cell.
- Real-world failures enter the picture: The introduction lists first-party disclosures such as deployment costs, exposed access tokens, denial after monitoring was removed, and database deletion; on this basis the authors argue that the actual failures of agents in deployment need to be included in guardrail comparisons.
- Core design assumption: Legal obligations are independent of guardrail papers and incident reports and can serve as a neutral reference; propositions are generated from explicit rules and written exceptions rather than manually enumerated categories, so that omissions can be located systematically and disagreements can be traced to specific rules.
- Proposed framework: The first layer is a shared proposition grid, the second is traceable assertions; each assertion must have a valid grid cell, a verbatim quotation from primary literature, and a signature distinguishing human or a specific model version, and coverage gaps are then computed as a set difference.
- Scope boundaries: The grid locates "which obligation was violated" and does not explain failure causation or control chains; source authentication, credential narrowing, execution isolation, and behavior attribution are treated as preconditions for judgment and are not counted as grid coverage.
What related research exists?
Related work is divided into four lines: executable safety policies, guardrails and injection defenses, agency law governance, and benchmarks and incident databases.
Executable policies and instruction provenance
- Anderson, Saltzer and Schroeder, Schneider: Reference monitors and the protection principle require that interactions between subjects and the environment pass through an interception point; enforcement monitors suggest that many obligations require checking the trajectory prefix rather than an isolated message.
- Biba, Denning and Wallace et al.: Integrity distinguishes content authors; instruction hierarchy and subsequent role-confusion and hierarchy-enforcement research provide the grid with provenance and reference order. The authors exclude source attribution itself from the grid.
Guardrail taxonomies, systems, and injection defenses
- Existing surveys and the OWASP LLM Top 10: Organize guardrails by threat category or functional stage, listing risks such as prompt injection and insecure output handling; specific systems cover content and constitution classifiers, injection detectors, policy monitors, tool execution isolation, and step-level guardrails.
- Greshake et al., StruQ, and spotlighting: The first characterizes indirect prompt injection, the latter two respectively separate instructions from data and define untrusted content. The authors argue that the "injection defense" label mixes different propositions such as input instructions, task alignment, and authorization scope.
Agency law and agent governance
- Chopra and White, Kolt: Respectively discuss the legal agency status of autonomous software, and information asymmetry, discretion, and loyalty conflicts in principal-agent relationships.
- Shavit et al.: Propose practices such as restricting the action space, requiring approval, maintaining readability, and automatic monitoring. The authors state that these works mainly allocate governance responsibility, whereas they themselves turn agency law into decidable questions and add non-waivable legal interests of others.
Benchmarks and incident collections
- AgentDojo, ToolEmu, AgentSafetyBench, AgentHarm: Provide attack or operational risk scenarios; the authors point out that few benchmarks test whether guardrails judge based on message provenance rather than surface wording.
- AI Incident Database, MITRE ATLAS, AVID: Archive respectively by harm, adversarial tactic, or vulnerability category; the authors argue that their entries do not specify trajectory items and decision criteria and cannot be directly aligned with runtime defenses.
This paper's corpus rather than an effectiveness baseline: The 25 releases include mechanisms such as Task Shield, CaMeL, and GuardAgent, as well as benchmarks such as InjecAgent, AgentDojo, and ASB; the paper does not run a controlled experiment comparing guardrail effectiveness. The authors position themselves as connecting the above scattered work with rule-generated coordinates and verifiable assertions.
How does the paper address this problem?
The method generates decidable propositions from legal obligations, then computes "incident violations minus runtime decisions" using assertions with quotations and signatures.
The overall framework has two layers: a shared proposition grid and traceable assertions: the former uniformly describes mechanism decisions and incident violations, the latter constrains the form of evidence and computes coverage.
Legal obligations and proposition coordinates
- Two kinds of obligations: Obligations to the principal can be waived or adjusted by the user or deployer and come from agency law; interests of others and society cannot be waived by the principal and come from U.S., EU, and Chinese legal materials such as tort, data protection, and computer misuse law.
- Five trajectory items: user message and untrusted data are inbound items, asking whether complying with that content would violate an obligation; tool call, interim text, and final reply are agent outputs, asking whether the behavior violates an obligation.
- Proposition forms: The first kind is written as ⟨item, relation, reference⟩, where the reference may be the deployer S, the user U, the agent A, the environment T, or no reference ∅; the second kind is written as ⟨item, interest⟩ or ⟨item, interest, who-is-protected⟩.
- Rule generation: Table 1 lists 8 relations to the principal, Table 2 generates 37 first-kind propositions; Table 3 lists general harms and 15 specific protected interests. Personal interests protect the user, third party, or minors; social interests protect only society.
Decision values, history dependence, and boundaries
- Three decisions: A proposition takes violated, not-violated, or not-settled; not-settled is used only for within-scope-of, meaning the reference neither permits nor prohibits, and the agent should ask first.
- History dependence: If the reference comes from others' content in the conversation, judgment requires the trajectory prefix; Table 2 uses markers to distinguish always, sometimes, or not requiring history. A mechanism that looks only at the current item, if matched to an always history-dependent proposition, is marked as window doubt.
- Malicious principal: The two kinds of obligations are evaluated independently; when a user directs an agent to harm a third party, the second-kind violation and the overstepping of the deployer's policy can still be recorded. If the final reply misreports behavior, consistent-with or fulfills is also recorded.
- Non-goals: The grid does not explain failure causes, does not evaluate facts outside the trajectory such as hidden answer keys, and does not count source authentication, credential management, or execution isolation as runtime proposition coverage.
Assertion structure and read-time validation
- Required fields: Each assertion binds an item to a grid proposition, with a verbatim quotation from primary literature and a coding session signature; model sessions must record the specific release, and human and model signatures are kept separate.
- Two kinds of items: A research release may be a runtime mechanism, dataset, benchmark, or measurement study, with mechanisms additionally recording unit and window; incidents record verdict, without unit and window.
- Completion status: Only a missing entry in a finished item means the coder checked and found no such claim; a missing entry in an unfinished item only means it has not yet been coded.
- Programmatic checks: shape, sense, and relation are checked on every data read; hard violations are rejected, and acceptable doubts requiring human review are retained and flagged.
Coverage computation and coding process
- Coverage definition: Only runtime mechanisms such as judge, enforcement, and internal count as Decided; datasets, benchmarks, and research materials do not count; an incident's violated or not-settled both count as open violations.
- Core formula: Gaps={P:some incident decides P as violated or not-settled}∖{P:some runtime mechanism decides P}. Each gap can therefore be traced back to the incident quotation and signature.
- Effective coverage: If an always history-dependent proposition is matched only to an item-only window, that pairing is excluded from effective coverage; two sessions can also be compared on commonly completed items for exact agreement, one-sided assertions, and field disagreements.
- Two-pass coding: Pass 1 identifies the items, types, and quotations contributed by a source, Pass 2 maps them to propositions. The model records through file reads and schema-checked tools, humans edit the same file directly, so all checks are re-executed at read time.
What experiments did the paper conduct?
The authors coded 25 research releases and 28 incidents, obtained 39 gaps, and checked dual-model agreement and observation windows.
This is not an experiment on guardrail attack-defense effectiveness, but a two-layer coding and coverage calculation of research releases and first-party incident disclosures.
Experimental setup
- Research corpus: 25 research releases from 2023 onward, totaling 40 entries and 83 claims; 29 runtime mechanisms include 15 judges and 14 enforcement, plus 3 datasets and 8 benchmarks (Table 4).
- Incident corpus: 28 first-party disclosures, 245 claims; 20 from OpenAI Misalignment Reports, 8 from materials from six parties including Replit, Microsoft, GitHub, Cursor, GitLab, Invariant Labs, and Anthropic.
- Inclusion rules: Research must contain codable runtime mechanisms, relevant datasets or benchmarks, and measurement studies; excluded are pure attacks, training alignment without independent runtime checks, offline static audits, non-text modalities, and so on.
- Coding models: 48 model sessions used Grok-4.7, DeepSeek-V4.1-Flash-1017, qwen4-max, and qwen4-max-preview; Grok-4.7 coded most papers and OpenAI incidents, and DeepSeek coded the remaining papers and participated in double coding.
- Metrics and determination: Count runtime decided propositions, incident violated or not-settled propositions, and set differences; double coding uses Cohen's κ and Jaccard overlap, and window audits count window doubts.
- Completion and review: All 68 entries were finished, and quotations were checked against archived source texts; human adjudication sessions were 0, and the paper does not report human consistency or repeated coding of paper entries.
Main results
The table below summarizes Table 4, Table 5, and Section 6.1; proposition counts are all under the model pre-annotation setting, not guardrail defense success rates.
Coverage analysis object Count Conditions and source Coded entries / claims 68 / 328 25 releases and 28 incidents, Table 4 Observed candidate propositions 74 37 first-category propositions plus second-category propositions observed in incidents, Section 6.1 Runtime mechanism decided propositions 27 Excluding dataset and benchmark materials, Section 6.1 Incident violated or unsettled propositions 52 28 incidents, Section 6.1 Covered by at least one runtime mechanism 13 Covered portion of the 52 violated propositions, Section 6.1 Coverage gaps 39 15 multi-incident gaps plus 24 single-incident leads, Table 5, Table 6 Valid coverage / window doubts 27 / 0 Window audit of the 25-release corpus, Section 6.3 - Multi-incident gaps: In Table 5, reply, informs, user involves 10 incidents, reply, fulfills, user involves 7, and call, accesses-without-authorization, 3rd involves 5.
- Evidence distribution: Of the 39 gaps, 15 are supported by at least two independent incidents and 24 by only one incident; the authors use only the former for the main pattern analysis and call the latter leads awaiting confirmation by further incidents.
- Single-incident impact: GTG-1002, a single long-duration autonomous action incident, touches 18 gap units and is the sole support for 7 of them; representative quotations in Table 5 preferentially select incidents involving fewer gaps and, when available, benign deployments.
Two-model consistency and version traceability
- What was measured: 9 incidents were independently coded by two model releases, of which openai/crypto-wallet and openai/github-token used qwen4-max-preview and DeepSeek-V4.1-Flash-1017, and the other 7 multi-vendor incidents used qwen4-max and DeepSeek.
- Consistency results: Merging verdicts at the proposition level for the 9 entries, the two releases asserted 54 and 64 propositions respectively; across the 74 candidate propositions, Cohen's κ was 0.57 and Jaccard overlap was 0.46 (Section 5.3).
- Authors' interpretation: Disagreement was mainly asymmetric, with DeepSeek recording more units and the other model's assertions mostly being subsets; the authors call this consistency moderate, say it cannot establish human accuracy, and note that individual units may change after human adjudication.
- Version limitations: DeepSeek records carry dated snapshots, while Grok-4.7 and qwen4-max expose only provider release names without dated snapshot IDs, which the authors say limits exact model version reproduction.
Coverage patterns and window audit
- Covered areas: The 13 propositions that were both decided and violated concentrate on authorization scope, task alignment, compliance with external instructions, code safety, and user secret leakage; Figure 2 labels each unit as number of runtime mechanisms / number of violating incidents.
- Exit-report gaps: The authors state that disclosure in final replies, task completion, and consistency with prior plans or tool outputs are not decided by the coded runtime mechanisms; although fulfills appears in dataset or benchmark materials, it is still not counted as runtime coverage.
- Obligations to others: Multi-incident gaps include unauthorized access to third-party systems, property, personal data, and deception; the authors state that the guardrails surveyed mostly screen generic text harms rather than evaluating the consequences of tool calls against specific protected interests.
- Window results: All 27 runtime-covered propositions met the window requirements, with 0 window doubts; the authors state that what mainly constrains history dependence is the uncovered exit units, because stateless reply filters cannot compare prior plans, calls, and results.
Other ablations and analyses
- Material exclusion: 3 datasets and 8 benchmarks were coded separately and do not enter runtime coverage, to avoid counting evaluation materials as defenses (Table 4).
- Single-incident list: Table 6 lists 24 single-incident gaps, of which 6 concern obligations to the principal and 18 concern obligations to others.
- Effect of sample expansion: The authors state that adding multi-vendor announcements introduced external-attacker scenarios and increased the number of gaps, but the main text does not give before-and-after itemized counts.
- Figure 2 reading limitations: Text conversion can read unit counts and the legend, but cannot reliably verify all rotated column names, so proposition counts beyond Table 5 are not supplemented from it.
What are some points that can be further explored?
The authors call for human adjudication and broader incident sampling, and propose follow-up directions such as counterfactual benchmarks and trajectory-aware gateways.
Limitations and future directions noted by the authors
- Model pre-annotation is not human ground truth: Section 7 notes that all claims were generated by models, consistency was measured only on 9 incidents, and paper entries remain single-model coded; inter-model agreement reflects prompt readability rather than correctness of ground truth, and human adjudication may reassign units.
- Gaps are not impossibility: Section 7 explicitly states that a gap only means the 25 surveyed releases do not have a runtime mechanism deciding that proposition, and does not prove that defense is impossible; 20 incidents come from one vendor's misalignment evaluations, and gap category frequencies reflect the current sample.
- Limited scope of analysis: Section 7 states that the grid does not address failure causality, control chains, provenance authentication, and other infrastructure; these require complementary research and cannot be replaced by the coverage map.
- Jurisdictional differences: Section 7 notes that jurisdictions still differ on AI identity disclosure, industry obligations, and so on; including more legal traditions might refine the second-category interest list, but the authors believe it need not change the two-category structure.
- Future benchmarks and gateways: Section 8 proposes building counterfactual benchmarks for blank units and designing trace-aware runtime gateways that maintain append-only traces, distinguish provenance, and incrementally check prefixes.
- Scaling to human systematization: Section 8 requires first adjudicating existing entries through human-signed sessions, then expanding multi-vendor collection of production and external-attacker incidents, before the coverage asymmetry can be tested as a field-wide claim.
Experimental coverage
- Corpus size: 25 research releases and 28 first-party incidents, totaling 68 completed entries and 328 claims; of these, 29 runtime mechanisms and 11 evaluation or training materials (Table 4).
- Incident sources: 20 from OpenAI Misalignment Reports and 8 from six-party announcements or postmortems; multiple reports of the same incident are merged into one source (Section 5.1, 5.3).
- Coding and review: 48 model sessions and 0 human adjudication sessions; 9 incidents were double-coded, and paper entries were not measured for two-model consistency (Section 5.3, 7).
- Runtime checks: Coverage counts only judge, enforcement, and internal mechanisms; all 27 covered propositions passed the window audit, and the ASR, utility, or latency of these mechanisms was not evaluated (Section 4.4, 6.3).
- Auditable materials: Table 5 and Table 6 in Appendix B attach sources and verbatim quotations to each reported gap; the authors plan to release the full claims dataset in a later version (Section 4.5, 7).
Summarize the main content of the paper
The paper provides traceable coordinates for legal propositions, placing guardrail determinations and real incident violations in the same coverage calculation.
This is a systematic study of agent guardrails: it does not propose a new runtime defense, but uses legal obligations and evidence rules to compare "what mechanisms check" with "what agents in deployment violated."
- Problem: Threat labels merge checks of different natures, and the harm categories and root-cause narratives of incident databases cannot directly correspond to guardrail decisions, leaving coverage discussions without shared coordinates.
- Method: Generate two kinds of propositions from agency law and tort, data protection, and computer misuse law, evaluated on five trajectory interception items; each coding must include a grid cell, a verbatim quotation from primary literature, and a human or specific model release signature.
- Computation: Only runtime judge, enforcement, and internal mechanisms count as coverage, subtracting the propositions decided by these mechanisms from the violated or not-settled propositions of incidents; history-dependent propositions with only an item-only observation window do not count as effective coverage.
- Corpus results: The 25 research releases and 28 first-party incidents form 68 items and 328 model-pre-annotated assertions; mechanisms decide 27 propositions, incidents violate 52, of which 13 have runtime coverage, leaving 39 gaps.
- Main gaps: 15 gaps are supported by at least two incidents, 24 are single-incident leads; reply, informs, user involves 10 incidents, reply, fulfills, user involves 7, and tool calls with unauthorized access to third-party systems involve 5 (Table 5).
- Evidence boundaries: Cohen's κ for the 9 double-coded incidents is 0.57 and Jaccard overlap is 0.46; human adjudication sessions are 0. All 27 covered propositions satisfy the window requirement, with 0 window doubts.
The authors argue that the defenses surveyed currently focus on authorization, task alignment, inbound instruction compliance, and generic textual harm, while the uncovered units concentrate on final-reply reporting and the specific legal interests of users and third parties. The authors also emphasize that these are auditable preliminary gap leads, not field-wide conclusions; human adjudication, multi-vendor incident sampling, counterfactual benchmarks, and trajectory-aware runtime gateways are needed going forward.