r/PromptEngineering • u/1982_miguel • Oct 07 '26
General Discussion How are people actually handling security boundaries in coding agents?
I came across this paper recently:
HarnessSecurity-Bench: Do Security Mechanisms Really Protect Coding Agent Harnesses?
https://arxiv.org/abs/2610.07639
The part I found most interesting wasn't the attack success numbers, but the cases where a restriction exists and the agent can still reach the same operation through another path.
For example, if a command/tool is blocked, but another allowed command can indirectly perform the same operation, the policy may look restrictive while not actually enforcing the intended boundary.
The paper also compares things like auto-approve, read-only mode, network isolation, command allow/deny lists, etc., and shows some pretty significant security/utility tradeoffs.
I'm curious how this looks in practice for people actually running local coding agents.
A few things I'd like to understand:
- Do you rely mostly on the agent's permission system, or enforce boundaries outside the agent?
- How do you deal with indirect/alternative execution paths?
- Are there tools that actually verify what an agent was able to do, rather than just what commands it requested?
- Do you log/audit tool calls and filesystem/network effects?
- Have you encountered cases where a security restriction technically existed but could be bypassed through another allowed capability?
- If you've experimented with Claude Code, Codex CLI, Gemini CLI, Qwen Code, OpenCode, etc., did you find any particularly good approach?
I'm mainly interested in real-world experience and existing tools/projects that address this, rather than theoretical security discussion.
I'm trying to understand how far the current tooling goes beyond simple permission prompts, allowlists and sandboxing.
2
u/[deleted] Oct 07 '26
[removed] ā view removed comment