Skip to content

Rule Reference

SEC521lintai-ai-securitystablemarkdownwarn

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

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

Provider
lintai-ai-security
Surface
markdown
Scope
per_file
Tier
stable
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 exact `Write(*)` grants that expose unconstrained mutation as shared default policy.

Deterministic signal basis

MarkdownSignals exact frontmatter token detection for `Write(*)` 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

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-tools or allowed_tools contains the exact token Write(*)

Safer Example

md
---
allowed-tools:
  - Write(./artifacts/**)
---