Only 4-16% of CLAUDE.md security rules match built-in controls
A minority of extracted CLAUDE.md security rules have corresponding built-in controls.
People & policy arXiv 24 Aug 2026 Measurement Simulation evidence
Published as “When "Do Not" Is Not Deny: Security Rules in CLAUDE.md vs Built-In Controls”
Why it matters
Developers cannot rely on CLAUDE.md alone to enforce security policies, leaving most written rules unenforced and increasing risk for less-experienced builders.
Summary
Only about 4-16% of security rules written in CLAUDE.md have a matching built-in Claude Code control; under a strict definition the primary estimate is 4.4% (95.6% have no matching control). The authors analyzed 481 public CLAUDE.md files (4,661 candidate segments, 870 security-related) using an LLM classifier that was checked against a human-annotated reference. The classifier’s low precision (0.350) and the wide range depending on how strictly a control must match qualify the headline claim.
What they found 1
- Under a strict adjudicated standard, only 4.4% of security rules have a matching built-in control, meaning 95.6% lack one.
“under it, 95.6% [93.3, 97.4] of security rules have no matching control.”
Caveats 6
- The full-corpus classifier estimates coverage at 16.6%, far higher than the strict human-adjudicated rate.
- Classifier precision for the matching-control judgment is only 0.350, indicating many false positives.
- We measure only the rules as written in CLAUDE.md and whether Claude Code documents a matching control; we do not measure other enforcement mechanisms such as CI hooks or organization tooling.
- Our labels come from an LLM classifier checked against a human reference, which we do not treat as ground truth; reliability depends on annotator agreement and classifier performance.
- Family breakdowns rest on a single round of human coding with moderate agreement, so they are exploratory.
- Results depend on the controls Claude Code documented at our freeze date and on the set of public CLAUDE.md files, which are not a random sample of all security-relevant writing.
What’s new here 3
- Measures built-in control coverage from the perspective of written natural-language rules rather than from the product’s control inventory.
- Provides a weighted estimate across a large corpus of real public CLAUDE.md files, accounting for sampling strata and repository clustering.
- Identifies the write-only nature of CLAUDE.md as a usable security gap where developers receive no feedback on enforcement.