Topowatch tool measures how workspace structure affects AI agent prompt injection risk
Security researcher Pedro Sordo Martínez has released topowatch, an open-source command-line tool that audits how a code workspace's topology influences its vulnerability to indirect prompt injection attacks. The tool is based on research published in arXiv:2608.14876, which found that workspace structure measurably affects the Attack Success Rate (ASR) of malicious payloads targeting agentic coding assistants. In benchmark tests using 200 trials with a fixed seed, flat monolithic workspaces showed a 100% ASR, while modular and deeply nested layouts dropped to 0% due to the agent reading less of the workspace. The current v0.1 release uses a synthetic agent rather than a real coding assistant, with future versions planned to test against tools like Claude Code in a sandboxed environment. The project is available on GitHub under the AGPL-3.0-or-later license and can be installed via pip without requiring API keys or network access.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in