{"paper":{"title":"AgentSentry: Mitigating Indirect Prompt Injection in LLM Agents via Temporal Causal Diagnostics and Context Purification","arxiv_id":"2602.22724","primary_cat":"cs.CR","submitted_at":"2026-02-26T07:59:10+00:00","version_compiled":"v2"},"notice":"Every quoted sentence is the authors' text from the arXiv listing abstract. Labels and probabilities are the outputs of classifier-1.13.0 on the question bank abstract-p1-20260923, exactly as returned. No sentence in this record was written by a language model.","schema":"pith.compiled-record/v0","status":"compiled","abstract":{"source":"arXiv listing abstract v2","sentences":[{"i":0,"p":1.0,"id":"s0","own":false,"role":"background","text":"Tool-augmented large language model (LLM) agents aggregate dialogue history, tool outputs, and retrieved content into an accumulated runtime state to complete multi-step tasks.","hedge":{"p":1.0,"label":"asserted"},"own_p":0.05,"main_claim_p":0.02,"quantitative":false,"quantitative_p":0.03,"role_probabilities":{"gap":0.0,"method":0.0,"result":0.0,"background":1.0,"limitation":0.0,"future_work":0.0,"contribution":0.0,"interpretation":0.0}},{"i":1,"p":1.0,"id":"s1","own":false,"role":"background","text":"This execution model exposes agents to indirect prompt injection (IPI) attacks, in which attacker-controlled instructions embedded in external artifacts enter the agent state and later influence tool use.","hedge":{"p":1.0,"label":"asserted"},"own_p":0.06,"main_claim_p":0.03,"quantitative":false,"quantitative_p":0.03,"role_probabilities":{"gap":0.0,"method":0.0,"result":0.0,"background":1.0,"limitation":0.0,"future_work":0.0,"contribution":0.0,"interpretation":0.0}},{"i":2,"p":0.98,"id":"s2","own":false,"role":"background","text":"Multi-turn IPI is especially challenging because injected content can persist across steps and trigger unauthorized state-changing actions only after merging with user intent.","hedge":{"p":0.89,"label":"asserted"},"own_p":0.06,"main_claim_p":0.02,"quantitative":false,"quantitative_p":0.08,"role_probabilities":{"gap":0.02,"method":0.0,"result":0.0,"background":0.98,"limitation":0.0,"future_work":0.0,"contribution":0.0,"interpretation":0.0}},{"i":3,"p":0.91,"id":"s3","own":false,"role":"gap","text":"This creates a source-attribution problem: existing inference-time defenses can often detect suspicious behavior but do not directly distinguish whether a pending action is supported by the user task or influenced by injected content.","hedge":{"p":0.69,"label":"asserted"},"own_p":0.05,"main_claim_p":0.03,"quantitative":false,"quantitative_p":0.05,"role_probabilities":{"gap":0.91,"method":0.0,"result":0.0,"background":0.09,"limitation":0.0,"future_work":0.0,"contribution":0.0,"interpretation":0.0}},{"i":4,"p":0.73,"id":"s4","own":false,"role":"background","text":"They therefore resort to conservative blocking, termination, or broad filtering.","hedge":{"p":0.91,"label":"asserted"},"own_p":0.04,"main_claim_p":0.02,"quantitative":false,"quantitative_p":0.04,"role_probabilities":{"gap":0.25,"method":0.0,"result":0.0,"background":0.73,"limitation":0.01,"future_work":0.0,"contribution":0.0,"interpretation":0.01}},{"i":5,"p":0.82,"id":"s5","own":true,"role":"contribution","text":"We propose AgentSentry, an inference-time defense that operationalizes temporal causal diagnostics through boundary-local counterfactual re-executions at tool-return boundaries.","hedge":{"p":1.0,"label":"asserted"},"own_p":0.88,"main_claim_p":0.14,"quantitative":false,"quantitative_p":0.04,"role_probabilities":{"gap":0.0,"method":0.18,"result":0.0,"background":0.0,"limitation":0.0,"future_work":0.0,"contribution":0.82,"interpretation":0.0}},{"i":6,"p":1.0,"id":"s6","own":true,"role":"method","text":"It substitutes the mediator under a restored snapshot, records whether the pending proposal survives, and aggregates user-view and probe scores across adjacent boundaries.","hedge":{"p":0.98,"label":"asserted"},"own_p":0.9,"main_claim_p":0.05,"quantitative":false,"quantitative_p":0.07,"role_probabilities":{"gap":0.0,"method":1.0,"result":0.0,"background":0.0,"limitation":0.0,"future_work":0.0,"contribution":0.0,"interpretation":0.0}},{"i":7,"p":0.99,"id":"s7","own":true,"role":"method","text":"When a proposal is mediator-sensitive, AgentSentry purifies the implicated mediator content while preserving task-relevant evidence and resumes execution from the sanitized state.","hedge":{"p":1.0,"label":"asserted"},"own_p":0.76,"main_claim_p":0.13,"quantitative":false,"quantitative_p":0.04,"role_probabilities":{"gap":0.0,"method":0.99,"result":0.0,"background":0.0,"limitation":0.0,"future_work":0.0,"contribution":0.01,"interpretation":0.0}},{"i":8,"p":0.75,"id":"s8","own":true,"role":"method","text":"We evaluate AgentSentry on AgentDojo across four task suites, three IPI attack families, and three black-box LLM backbones.","hedge":{"p":0.99,"label":"asserted"},"own_p":0.96,"main_claim_p":0.04,"quantitative":true,"quantitative_p":0.83,"role_probabilities":{"gap":0.0,"method":0.75,"result":0.02,"background":0.0,"limitation":0.0,"future_work":0.0,"contribution":0.23,"interpretation":0.0}},{"i":9,"p":1.0,"id":"s9","own":true,"role":"result","text":"It records no observed successful attack in the evaluated cases (ASR = 0%) and achieves an average Utility Under Attack (UA) of 76.10%.","hedge":{"p":1.0,"label":"asserted"},"own_p":0.97,"main_claim_p":0.45,"quantitative":true,"quantitative_p":0.99,"role_probabilities":{"gap":0.0,"method":0.0,"result":1.0,"background":0.0,"limitation":0.0,"future_work":0.0,"contribution":0.0,"interpretation":0.0}},{"i":10,"p":1.0,"id":"s10","own":true,"role":"result","text":"Over the strongest evaluated baseline, it improves average UA by 1.84--7.60 percentage points, with benign FPRs of 2.06%--5.15%.","hedge":{"p":1.0,"label":"asserted"},"own_p":0.96,"main_claim_p":0.19,"quantitative":true,"quantitative_p":0.99,"role_probabilities":{"gap":0.0,"method":0.0,"result":1.0,"background":0.0,"limitation":0.0,"future_work":0.0,"contribution":0.0,"interpretation":0.0}},{"i":11,"p":0.81,"id":"s11","own":true,"role":"contribution","text":"We further evaluate long-horizon and adaptive attacks, imperfect purification, runtime overhead, and an OpenClaw case study.","hedge":{"p":0.92,"label":"asserted"},"own_p":0.95,"main_claim_p":0.04,"quantitative":false,"quantitative_p":0.04,"role_probabilities":{"gap":0.0,"method":0.16,"result":0.02,"background":0.0,"limitation":0.0,"future_work":0.0,"contribution":0.81,"interpretation":0.0}}]},"compiled":{"main_claim":{"p":0.81,"text":"It records no observed successful attack in the evaluated cases (ASR = 0%) and achieves an average Utility Under Attack (UA) of 76.10%.","location":"abstract s9","hedge_strength":{"p":1.0,"label":"asserted"}},"provenance":{"route":{"via":"TypeSafe API","model":"classifier-1.13.0","endpoint":"https://api.typesafe.ai/v1/systemone","provider":"TypeSafe"},"packing":"one request per paper","requests":1,"input_tokens":8957,"cost_usd_reported":0.0},"compiled_at":"2026-10-28","bank_version":"abstract-p1-20260923","model_version":"classifier-1.13.0","abstract_states":{"claims_first":0.05,"states_limitation":0.33,"human_participants":0.05,"controlled_comparison":0.93,"randomized_assignment":0.01,"states_quantitative_result":0.99,"compares_with_prior_results":0.97,"mentions_code_or_data_availability":0.03},"evidential_basis":{"p":0.98,"value":"observation or experiment","probabilities":{"argument":0.0,"literature":0.0,"proof_or_derivation":0.0,"analysis_of_existing_data":0.0,"observation_or_experiment":0.98,"simulation_or_computation":0.02}},"contribution_type":{"p":1.0,"value":"method or tool","probabilities":{"review":0.0,"method_or_tool":1.0,"empirical_study":0.0,"simulation_study":0.0,"theoretical_result":0.0,"dataset_or_benchmark":0.0,"position_or_commentary":0.0}},"contribution_statement":{"p":1.0,"text":"We propose AgentSentry, an inference-time defense that operationalizes temporal causal diagnostics through boundary-local counterfactual re-executions at tool-return boundaries.","location":"abstract s5"}},"coverage":{"tier":"abstract","levels_run":["P abstract"],"not_examined":["full text","figures and tables","references and citing sentences","relations to other papers"],"sources_read":["arXiv listing abstract v2"],"levels_not_run":["S sections","T body sentences","C citations","R cross-paper relations"],"sentences_examined":12,"sentences_in_abstract":12},"measured_accuracy":{"url":"https://pith.science/accuracy","measured_on":"2026-10-02","method":"two independent model families labelled a fresh random sample blind; the figure is how often the published label matches their consensus","sentence_role_agreement":0.92,"main_claim_agreement":0.908,"typed_citation_agreement":0.933,"typed_citation_agreement_95_interval":[0.917,0.945],"review_comments_accurate":0.758,"review_comments_accurate_95_interval":[0.684,0.82],"review_caught_admitted_error_found_or_related":0.448,"review_comments_judged":{"judged_by":["gpt-5.6-luna","grok-4.7"],"judged_against":"Pith's own text copy of each paper: text extracted from the PDF, the first 90,000 characters","measured_on":"2026-10-04","accurate":113,"decided":149,"sampled_reviews":200,"split_by_lane":false,"by_lane":"https://pith.science/accuracy#by-lane"}}}