Who Should Read This?
This research is for teams using Claude Code in development workflows and for the security leaders responsible for setting and assessing its permissions. It is especially relevant when those permissions are expected to prevent specific actions.
Executive Summary
Our research found that a Claude Code Bash deny rule blocked a direct file-writing command, but the same operation succeeded when an approved search command launched it as a pager. The issue is the limit of the deny rule: it matched the command Claude Code submitted, but did not prevent a child process from performing the denied operation.
In the tested default permission mode, Claude Code displayed the full command and required user approval. This was therefore not silent execution or a privilege escalation. It shows that users cannot rely on a Bash deny rule alone to guarantee that an operation will never run.
Does it Impact My Organization?
If your organization relies on Claude Code deny rules to prevent certain actions, this research may affect how you assess those controls. Our test showed that a denied operation could still run indirectly through an approved command. In the configuration we tested, Claude Code displayed the full command and required user approval before it ran.
Impact
Users may configure deny rules believing that Claude Code cannot perform the denied operations. However, the same operation may still be executed indirectly when launched by another utility.
An attacker who can influence Claude Code’s actions could abuse such a path to perform an operation the user believed was blocked. The operation still runs with the same permissions as Claude Code, and under the default permission mode, the complete command requires user approval.
Remediation
The main remediation is to make the behavior and limitations of deny rules clear. They should be understood as best-effort filters, not as a security boundary.
Users should review the complete command before approving it. When strict isolation is required, they should use narrowly scoped allow rules together with operating-system-level sandboxing.
Responsible Disclosure Timeline
May 14, 2026: Report submitted to Anthropic.
May 14, 2026: Anthropic acknowledged the report and classified it as Informative.
Anthropic has since expanded its permissions documentation with a section explaining what a Bash rule does not match. It now states that a rule matches the command text Claude Code writes, and that a deny rule is not a security boundary around the program. The page gives examples of commands a rule blocks directly but does not block when the same program is invoked in another form.
Read the full report.