[KongchangAI]
Unverified50% confidenceSolutionExact time

In the Claude Agent SDK, deny rules can intercept the rm command and take effect in all modes (including bypassPermissions), but deny rules match the literal command, and forms like /bin/rm can bypass them, so a pre-tool-use hook is needed to check every bash call at the front of the chain.

1
Sources
50%
Confidence
Long-term
Relevance
10/27/2026
First Seen

Sources

Related Entities

Related Claims

Cite This Claim

Stable URI
https://kongchang.com/claim/1103801
API
curl https://kongchang.com/api/v1/knowledge/claims/1103801
MCP
get_claim(id=1103801)