Appearance
SEC419 / MD-CURL-ALLOWED-TOOLS
SEC419 flags AI-native markdown frontmatter when allowed-tools grants the exact token Bash(curl:*).
Why It Matters
Blanket curl authority turns arbitrary remote fetch capability into shared team policy. In AI-native instruction files, that makes network download behavior easier to cargo-cult than a narrower reviewed workflow.
Trigger Shape
The rule triggers only when all of these are true:
- the file is an AI-native markdown instruction surface with parsed frontmatter
- the path is not fixture-like
allowed-toolsorallowed_toolscontains the exact tokenBash(curl:*)
Clean Cases
These stay clean:
- more specific reviewed commands such as
Bash(curl https://example.com/install.sh) - frontmatter that does not grant
curl - fixture-like examples under test or fixture paths
Example Trigger
md
---
allowed-tools:
- Bash(curl:*)
- Read
---Safer Example
md
---
allowed-tools:
- Bash(curl https://example.com/install.sh)
- Read
---How To Fix
Replace Bash(curl:*) with a narrower reviewed command pattern, or remove broad download authority from shared frontmatter entirely.