Skip to content

Rule Reference

SEC442lintai-ai-securitygovernancehardeningstablemarkdownwarn

AI markdown: `Bash(git merge:*)` tool grant

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

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

Deterministic signal basis

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

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

SEC442 / MD-GIT-MERGE-ALLOWED-TOOLS

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

Why It Matters

Blanket git merge authority lets an agent combine branches or histories as part of a default shared policy. In AI-native instruction frontmatter, that broad mutation authority is wider than most reviewed workflows need.

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 merge:*)

Clean Cases

These stay clean:

  • more specific reviewed commands such as Bash(git merge feature/x)
  • frontmatter that does not grant git merge
  • fixture-like examples under test or fixture paths

Example Trigger

md
---
allowed-tools:
  - Bash(git merge:*)
  - Read
---

Safer Example

md
---
allowed-tools:
  - Bash(git merge feature/x)
  - Read
---

How To Fix

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