# AgentSnare: Learning to Delay, Divert, and Defuse Autonomous Web Penetration Agents

DevFeed: [AgentSnare: Learning to Delay, Divert, and Defuse Autonomous Web Penetration Agents](<https://devfeed.tech/articles/agentsnare-learning-to-delay-divert-and-defuse-autonomous-web-penetration-agents-114000.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2607.26998>)

Author: Ruoyu Wang, Heng Zhao, Renjie Wu, Tianhang Zheng, Mengnan Zhao, Wanyu Lin, Kui Ren

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [LLM security](<https://devfeed.tech/topics/llm-security.md>), [ai-assisted attacks](<https://devfeed.tech/topics/ai-assisted-attacks.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [attacks](<https://devfeed.tech/tags/attacks.md>), [automate](<https://devfeed.tech/tags/automate.md>), [autonomous](<https://devfeed.tech/tags/autonomous.md>), [bypass](<https://devfeed.tech/tags/bypass.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cve](<https://devfeed.tech/tags/cve.md>), [delay](<https://devfeed.tech/tags/delay.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [exploited](<https://devfeed.tech/tags/exploited.md>), [exploration](<https://devfeed.tech/tags/exploration.md>), [framework](<https://devfeed.tech/tags/framework.md>), [horizon](<https://devfeed.tech/tags/horizon.md>), [influence](<https://devfeed.tech/tags/influence.md>), [interaction](<https://devfeed.tech/tags/interaction.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [large-language-model](<https://devfeed.tech/tags/large-language-model.md>), [learning](<https://devfeed.tech/tags/learning.md>), [penetration](<https://devfeed.tech/tags/penetration.md>), [web](<https://devfeed.tech/tags/web.md>)

## AI overview

AgentSnare uses trajectory-adaptive deception to keep autonomous web penetration agents exploring decoys. Its ShadowOS pairs an LLM decoy constructor with a virtual kernel that consistently materializes and handles artifacts as exploration unfolds. To reduce the cost and delay of online use of a powerful LLM, the authors train a smaller model through offline adversarial interaction simulations, retaining generated multi-round trajectories that sustain interaction. Across 15 CVE-Bench applications and four attacker models, it absorbed 49.9% of tool calls, kept 57.2% of post-entry actions in decoys, and grounded 89.5% of completion reports in decoy evidence. No real target was exploited at pass@3 across 60 attacker-CVE pairs.

## Source excerpt

arXiv:2607.26998v5 Announce Type: replace Abstract: Large language model agents automate web penetration testing through observation-action loops, enabling defenders to influence decisions with deceptive decoy observations. Advanced agents can recognize and bypass static decoys, then refocus on real targets. We propose AgentSnare, a trajectory-adaptive deception system that expands a decoy environment alongside exploration. For online deployment, ShadowOS combines an LLM-driven decoy constructor with a virtual kernel. Conditioned on exploration, it generates decoy artifacts that the kernel materializes and handles consistently across interactions, sustaining long-horizon exploration. Because deploying a powerful LLM for decoy construction is costly and slow, we train a small LLM using an offline adversarial interaction-simulation framework. It synthesizes multi-round trajectories by generating candidates and retaining those that sustain simulated interactions. Across 15 CVE-Bench web applications and four attacker models, AgentSnare absorbs 49.9% of tool calls to delay attacks, retains 57.2% of post-entry actions in the decoy to divert trajectories, and grounds 89.5% of completion reports in decoy evidence to defuse threats; across 60 attacker-CVE pairs, no real target is exploited at pass@3.