Appearance
SEC434 / MD-WEBFETCH-RAW-GITHUB
SEC434 flags AI-native markdown frontmatter when allowed-tools grants the exact token WebFetch(domain:raw.githubusercontent.com).
Why It Matters
raw.githubusercontent.com serves direct repository file contents. Granting that fetch target in shared AI instruction frontmatter makes mutable remote code and prompt content easier to ingest outside the normal repository review path.
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 tokenWebFetch(domain:raw.githubusercontent.com)
Clean Cases
These stay clean:
- narrower reviewed domains such as
WebFetch(domain:github.com) - frontmatter that does not grant raw GitHub fetches
- fixture-like examples under test or fixture paths
Example Trigger
md
---
allowed-tools:
- WebFetch(domain:raw.githubusercontent.com)
- Read
---Safer Example
md
---
allowed-tools:
- WebFetch(domain:github.com)
- Read
---How To Fix
Replace WebFetch(domain:raw.githubusercontent.com) with a narrower reviewed documentation host, or remove broad raw GitHub fetch authority from shared frontmatter entirely.