Skip to content

Structured Representations for Cross-Attack Generalization in AI Agent Threat DetectionStructural Representations for Cross-Attack Generalization in AI Agent Threat Detection

arXiv· arXiv:2601.01723· Vignesh Iyer·Indexed by this site · 2026-10-12· Originally publishedDefenses

Translation in progress — untranslated text is omitted.

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

AI summaryThe paper proposes using structured tokenization to encode agent execution patterns (tool calls, arguments, observations) rather than dialogue content, to improve cross-attack generalization of attack detection. The authors find that standard dialogue tokenization performs poorly on structural attacks such as tool hijacking (AUC 0.39) and data exfiltration (AUC 0.46), but reaches AUC 0.78 on language-based attacks like social engineering. After switching to structured tokenization, tool hijacking improves by 46 AUC points, data exfiltration by 39 points, unknown attacks by 71 points, and in-distribution performance also improves by 6 points. For attacks requiring linguistic features, the authors propose gated multi-view fusion to adaptively combine the two representations, achieving AUC 0.89 on social engineering. The authors argue that agent safety is fundamentally a structural problem, with attack semantics residing in execution patterns rather than surface language.

Questions
Autonomous agents use multi-step tool calls for business operations, and semantic attacks appear in behavior traces. The authors ask: can a detector trained only on known attack families recognize entire unseen families of attacks?
Methods
Encode traces as execution-flow tokens (tool calls, arguments, observations) rather than conversational content; for language-based attacks, use gating to mix the two representations based on input. The detector is a BiLSTM, trained in a 5-organization federated setting, and evaluated with ROC-AUC after entire-family held-out.
Experiments and results
Table 1: with Unknown held out, Conv 0.26, Struct 0.97; on tool hijacking, Conv 0.39, Struct 0.85. Gated's social engineering is 0.89, and it is lower than Struct on tool-class held-out families.
Limitations and future work
The authors note that the evaluation uses synthetic trajectories, the rule-based tokenizer may be evaded, the 5-family classification needs expansion, and gating is lower than the structure-only model on structural attacks. The experiments evaluated three detectors and the ROC-AUC of 2500 synthetic trajectories; the paper does not report the number of repetitions.
Read originalarxiv.org