Skip to content

Rule Reference

SEC524lintai-ai-securitygovernancehardeningstablemarkdownwarn

AI markdown: `Grep(*)` wildcard tool grant

AI-native markdown frontmatter grants `Grep(*)` wildcard access

Public lane
governance
Category
hardening
Provider
lintai-ai-security
Scope
per-file
Surface
markdown
Tier
stable
Severity
warn
Confidence
high
Detection
structural
Remediation
message only
How to read this lane

Shared authority and workflow policy review.

How to read this category

Least-privilege, provenance, or operational hygiene signal.

Activation Model

Preset Activation

These presets explain where this rule appears in the product experience.

Lifecycle

Stable Lifecycle Contract

State

stable

Graduation rationale

Checks AI-native frontmatter for exact `Grep(*)` grants that expose unconstrained content search as shared default policy.

Deterministic signal basis

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

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

Structural stable rule intended as a high-precision check with deterministic evidence.

Nearby Signals

Related Rules

SEC524 / MD-GREP-WILDCARD

SEC524 flags AI-native markdown frontmatter when allowed-tools or allowed_tools contains the exact wildcard token Grep(*).

Why It Matters

Grep(*) grants blanket content search. Shared frontmatter should prefer a reviewed search scope rather than unconstrained grep authority.

Trigger Shape

  • AI-native markdown surface with parsed frontmatter
  • path is not fixture-like
  • allowed-tools or allowed_tools contains the exact token Grep(*)

Safer Example

md
---
allowed-tools:
  - Grep(todo:)
---