AI Agents

Spider-Sense: Intrinsic Risk Sensing for Efficient Agent Defense with Hierarchical Adaptive Screening

ZZhenxiong YuZZhi YangZZhiheng JinSShuhe WangHHeng ZhangYYanlin FeiLLingfeng ZengFFangqi LouSShuo ZhangTTu HuJJingping LiuRRongze ChenXXingyu ZhuKKunyi WangCChaofa YuanXXin GuoZZhaowei LiuFFeipeng ZhangJJie HuangHHuacan WangRRonghao ChenLLiwen Zhang
Published
February 5, 2026
Authors
22
Word Count
10,627
Code
Includes code

Enhance agent security with real-time, adaptive risk sensing.

Abstract

As large language models (LLMs) evolve into autonomous agents, their real-world applicability has expanded significantly, accompanied by new security challenges. Most existing agent defense mechanisms adopt a mandatory checking paradigm, in which security validation is forcibly triggered at predefined stages of the agent lifecycle. In this work, we argue that effective agent security should be intrinsic and selective rather than architecturally decoupled and mandatory. We propose Spider-Sense framework, an event-driven defense framework based on Intrinsic Risk Sensing (IRS), which allows agents to maintain latent vigilance and trigger defenses only upon risk perception. Once triggered, the Spider-Sense invokes a hierarchical defence mechanism that trades off efficiency and precision: it resolves known patterns via lightweight similarity matching while escalating ambiguous cases to deep internal reasoning, thereby eliminating reliance on external models. To facilitate rigorous evaluation, we introduce S^2Bench, a lifecycle-aware benchmark featuring realistic tool execution and multi-stage attacks. Extensive experiments demonstrate that Spider-Sense achieves competitive or superior defense performance, attaining the lowest Attack Success Rate (ASR) and False Positive Rate (FPR), with only a marginal latency overhead of 8.3\%.

Key Takeaways

  • 1

    SPIDER-SENSE introduces intrinsic risk sensing for agent security.

  • 2

    Reduces latency and improves efficiency in threat detection.

  • 3

    Uses hierarchical adaptive screening for balanced security checks.

Limitations

  • Requires initial setup and calibration for effective use.

  • May struggle with completely novel, unseen threat patterns.

Keywords

large language modelsautonomous agentssecurity challengesmandatory checking paradigmevent-driven defenseIntrinsic Risk Sensinghierarchical defense mechanismlightweight similarity matchingdeep internal reasoninglifecycle-aware benchmarkAttack Success RateFalse Positive Rate

More in AI Agents

View all
Spider-Sense: Intrinsic Risk Sensing for Efficient Agent Defense with Hierarchical Adaptive Screening | Paperchime