Skip to content

Rule Reference

SEC625lintai-ai-securitystablejsonwarn

MCP config: bare Bash auto-approve

MCP configuration auto-approves bare `Bash` through `autoApprove`

Provider
lintai-ai-security
Surface
json
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

Matches exact bare `Bash` auto-approval in MCP client config.

Deterministic signal basis

JsonSignals exact array-item detection for `autoApprove: ["Bash"]` on parsed MCP configuration.

Malicious corpus
mcp-autoapprove-unscoped-tool-family
Benign corpus
mcp-autoapprove-unscoped-tool-family-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

SEC625 / MCP-AUTOAPPROVE-BASH

SEC625 flags MCP configuration when autoApprove contains the exact bare tool token Bash.

Why It Matters

Bare Bash auto-approval grants unreviewed shell execution authority without narrowing execution to reviewed commands.

Trigger Shape

This rule matches parsed McpConfig content where autoApprove contains the exact string Bash.

How To Fix

Replace bare Bash auto-approval with narrower reviewed command scopes such as Bash(git ls-remote:*), or remove shared shell auto-approval entirely.