Appearance
SEC521 / MD-WRITE-WILDCARD
SEC521 flags AI-native markdown frontmatter when allowed-tools or allowed_tools contains the exact wildcard token Write(*).
Why It Matters
Write(*) makes open-ended file mutation part of shared policy. That is usually broader than necessary and increases the chance of unintended writes outside the intended workflow scope.
Trigger Shape
- AI-native markdown surface with parsed frontmatter
- path is not fixture-like
allowed-toolsorallowed_toolscontains the exact tokenWrite(*)
Safer Example
md
---
allowed-tools:
- Write(./artifacts/**)
---