LatentTriad: Pre-Action Risk Representations for Malicious Agent Skill Detection
On the map: LLM agents and tool use → Agent threats, guardrails and governance also fits: Agent skill learning and evolution
Abstract (arXiv)
Large language model agents are increasingly extended with reusable skills, but untrusted skill content can induce operations outside the user's task. Detecting this contextual risk requires more than suspicious-pattern matching, while dynamic analysis incurs the cost of skill execution. We find that hidden states formed during prefill contain readable information about task-operation consistency, including across held-out expression forms in controlled evaluations. Matched Operation-state interventions also affect later Boundary states and shift fixed risk readouts toward the donor label. Based on these findings, we introduce LatentTriad, which combines contextual Boundary features, group-adjusted Operation directions, and departures from benign state relationships. All branches share one prefill: detection generates no output tokens, invokes no tools, and executes no skill code. Across 5,830 skill packages from five sources and seven backbones, LatentTriad achieves 99.0-99.2% pooled F1 and 93.0-94.6% source-macro F1. A separately measured compact implementation completes prefill and detection in a median of 259-284 ms. These results connect pre-action risk readability and functional influence to execution-free skill screening.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 16 of its 22 references that are in the map. Submitted 3 Nov 2026.
Builds on
16 of 22 references.
Closest ancestors · 13
Same direction, newest first
- 2026CompoSkill: Compositional Skill Chain Attacks from Individually Scanner-Passing LLM Agent Skills17 Aug
- 2026ColluSkill: Adversarial Cross-Skill Composition for Evading Agent Skill Scanners10 Aug
- 2026Cloak and Detonate: Scanner Evasion and Dynamic Detection of Agent Skill Malware2 Jul
- 2026ShareLock: A Stealthy Multi-Tool Threshold Poisoning Attack Against MCP25 Jun
- 2026Benign in Isolation, Harmful in Composition: Security Risks in Agent Skill Ecosystems13 Jun
- 2026MalSkillBench: A Runtime-Verified Benchmark of Malicious Agent Skills5 Jun
- 2026When Safe Skills Collide: Measuring Compositional Risk in Agent Skill Ecosystems30 May
- 2026RouteGuard: Internal-Signal Detection of Skill Poisoning in LLM Agents24 Apr
- 2026SkillSieve: A Hierarchical Triage Framework for Detecting Malicious AI Agent Skills8 Apr
- 2026Mind the GAP: Text Safety Does Not Transfer to Tool-Call Safety in LLM Agents18 Feb
- 2025Attention is All You Need to Defend Against Indirect Prompt Injection Attacks in LLMs9 Dec
- 2025ProbGuard: Proactive Runtime Monitoring for LLM Agent Safety via Probabilistic Prediction1 Aug
1 more
Other references · 3
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,174
- 2024Improving Alignment and Robustness with Circuit Breakerscited by 350
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 103
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026SkillSafetyBench: Evaluating Agent Safety under Skill-Facing Attack Surfaces
- 2026Pretext: Defeating Malicious Skill Detection Frameworks for AI Agents
- 2026SkillAtlas: An Attack Trace Library for Agent Skills
- 2026SkillsMetric: Mapping the Detection Boundary of Static Analysis for Malicious Agent Skills
- 2026SkillMutator: Benchmarking and Defending Language-and-Code Cross-modal Attacks on LLM Agent Skills
- 2026SkillSecurer: Detecting and Patching Prompt-Injection Vulnerabilities in AI Agent Skills
- 2026MaliciousSkillBench: A Comprehensive Benchmark for Malicious Agent Skill Detection
- 2026Towards a Risk Assessment of Malicious Skill Files in Coding Agents