Skip to content

Rule Reference

SEC443lintai-ai-securitystablemarkdownwarn

AI markdown: `Bash(git cherry-pick:*)` tool grant

AI-native markdown frontmatter grants `Bash(git cherry-pick:*)` authority

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 wildcard git cherry-pick grants in shared allowed-tools policy.

Deterministic signal basis

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

Malicious corpus
skill-git-cherry-pick-allowed-tools
Benign corpus
skill-git-cherry-pick-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

SEC443 / MD-GIT-CHERRY-PICK-ALLOWED-TOOLS

SEC443 flags AI-native markdown frontmatter when allowed-tools grants the exact token Bash(git cherry-pick:*).

Why It Matters

Blanket git cherry-pick authority lets an agent transplant arbitrary commits by default. In shared AI instruction frontmatter, that is a history-mutation grant that should stay narrow and reviewable.

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(git cherry-pick:*)

Clean Cases

These stay clean:

  • more specific reviewed commands such as Bash(git cherry-pick abc1234)
  • frontmatter that does not grant git cherry-pick
  • fixture-like examples under test or fixture paths

Example Trigger

md
---
allowed-tools:
  - Bash(git cherry-pick:*)
  - Read
---

Safer Example

md
---
allowed-tools:
  - Bash(git cherry-pick abc1234)
  - Read
---

How To Fix

Replace Bash(git cherry-pick:*) with a narrower reviewed command pattern, or remove broad cherry-pick authority from shared frontmatter entirely.