Appearance
SEC424 / MD-WRITE-UNSCOPED
SEC424 flags AI-native markdown frontmatter when allowed-tools or allowed_tools grants bare Write.
This rule intentionally lives in the opt-in governance preset. Shared skills can legitimately write files, but repo-wide default write authority is a workflow-policy decision that deserves explicit review rather than headline security treatment.
Why It Matters
Bare Write is a broad file-modification grant. In shared skills and instruction files, it makes open-ended file mutation part of the default team policy instead of a narrower reviewed write scope.
Trigger Shape
- AI-native markdown surface with parsed frontmatter
- path is not fixture-like
allowed-toolsorallowed_toolscontains the exact tokenWrite
Clean Cases
- scoped patterns such as
Write(./artifacts/**) - frontmatter that does not grant bare
Write - fixture-like examples under test or fixture paths
Example Trigger
md
---
allowed-tools: Write, Read(./docs/**)
---Safer Example
md
---
allowed-tools: Write(./artifacts/**), Read(./docs/**)
---How To Fix
Review whether shared bare Write authority is really needed, or replace it with a narrower workflow-specific write scope instead of a default repo-wide grant.