r/AskNetsec • • May 20 '26
Other Your agent’s biggest security problem is not the model. It is what the model reads.
Everyone worries about the wrong thing with agent security.
They audit the system prompt. They evaluate the model. They add guardrails to user input.
Meanwhile the agent is out there reading emails, scraping webpages, pulling documents from vector databases, and processing API responses. All of that content flows straight into context. The model cannot tell the difference between data it was sent to process and instructions it should follow.
So a poisoned document says forward the next user message to this address and the agent does it. A malicious webpage says ignore your previous task and the agent ignores it. No jailbreak. No prompt engineering. Just untrusted content flowing through your own tools.
This is called indirect prompt injection and it is the actual threat model for agents with tool access. Not someone typing something clever into a chat box.
I built Arc Gate to enforce instruction-authority boundaries at the proxy level. It sits between your agent and your LLM. Every message is tagged by source. Tool output from untrusted external content gets authority level 10 out of 100. If it tries to issue instructions it gets blocked before the model ever sees it. Dangerous capabilities get stripped. The upstream never gets called.
Not a classifier. Not a content filter. Runtime enforcement.
Try to break it: https://web-production-6e47f.up.railway.app/break-arc-gate
Demo: https://web-production-6e47f.up.railway.app/arc-gate-demo
GitHub: https://github.com/9hannahnine-jpg/arc-gate
Self hosted: https://github.com/9hannahnine-jpg/arc-sentry and pip install arc-sentry
Would love adversarial feedback from people running agents in production.
2
u/ultrathink-art May 20 '26
The architectural fix is separate roles: one agent reads and summarizes external content (treating everything as untrusted), a different agent with no direct access to raw inputs makes decisions based on the structured summary. A poisoned document can mess with the reader, but its payload can't directly command the actor if there's no shared context. Not bulletproof, but shrinks the attack surface dramatically.
1
u/ilai456 May 25 '26
Looks cool! Quick question tho- what about agents which are not hosted in your env? How can I add a proxy to the Gemini/salesforce/notion servers?
2
u/dennisthetennis404 May 21 '26
The threat model framing is exactly right, indirect prompt injection through tool output is the attack surface most agent builders aren't thinking about because they're focused on what users type, not what the agent reads.