Skip to content

Rule Reference

SEC420lintai-ai-securitypreviewmarkdownwarn

AI markdown: `Bash(wget:*)` tool grant

AI-native markdown frontmatter grants `Bash(wget:*)` authority

Provider
lintai-ai-security
Surface
markdown
Scope
per_file
Tier
preview
Severity
warn
Confidence
high
Detection
structural
Remediation
message_only

Activation Model

Preset Membership

This rule is part of the builtin activation graph through these preset memberships.

Lifecycle

Stable Lifecycle Contract

State

stable_gated

Graduation rationale

Checks AI-native frontmatter for explicit wildcard wget grants in shared allowed-tools policy.

Deterministic signal basis

MarkdownSignals exact frontmatter token detection for `Bash(wget:*)` inside allowed-tools or allowed_tools.

Malicious corpus
skill-wget-allowed-tools
Benign corpus
skill-wget-allowed-tools-specific-safe
structured evidence required remediation reviewed
Canonical note

Structural preview rule; deterministic today, but the preview contract may still evolve.

Nearby Signals

Related Rules

SEC420 / MD-WGET-ALLOWED-TOOLS

SEC420 flags AI-native markdown frontmatter when allowed-tools grants the exact token Bash(wget:*).

Why It Matters

Blanket wget 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-tools or allowed_tools contains the exact token Bash(wget:*)

Clean Cases

These stay clean:

  • more specific reviewed commands such as Bash(wget https://example.com/tool.tgz)
  • frontmatter that does not grant wget
  • fixture-like examples under test or fixture paths

Example Trigger

md
---
allowed-tools:
  - Bash(wget:*)
  - Read
---

Safer Example

md
---
allowed-tools:
  - Bash(wget https://example.com/tool.tgz)
  - Read
---

How To Fix

Replace Bash(wget:*) with a narrower reviewed command pattern, or remove broad download authority from shared frontmatter entirely.