{"version":"2.1.327","anchor":"permission-matching-checks-deny-rules-against-a-stricter-nor","canonical_anchor":"permission-matching-checks-deny-rules-against-a-stricter-nor","heading":"Deny rules are checked against a stricter form of a command first","tier":"notice","area":"Permissions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/permission-matching-checks-deny-rules-against-a-stricter-nor","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Deny rules are checked against a stricter form of a command first\n\nClaude Code now checks deny rules against a stricter form of a shell command first, and denies it if that form matches\n\n**What**\n\nBefore running a shell command, Claude Code compares it against your permission rules. A deny rule is one that says a command must never run. For some commands Claude Code rewrites the command into a standard form before comparing, and it used to try one such form.\n\nIt now first builds a stricter form made specifically for checking deny rules. If a deny rule matches that form, the command is denied. Only after that does Claude Code try the usual standard form.\n\n**Why**\n\nA command is now tested against your deny rules in more than one form, which may close a gap where rewriting a command let it get past a deny rule.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}