Skip to content

Rule Reference

SEC394lintai-ai-securitygovernancehardeningstablejsonwarn

MCP config: wildcard auto-approve

MCP configuration auto-approves all tools with `autoApprove: ["*"]`

Public lane
governance
Category
hardening
Provider
lintai-ai-security
Scope
per-file
Surface
json
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

Matches explicit wildcard auto-approval in MCP client config.

Deterministic signal basis

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

Malicious corpus
mcp-autoapprove-wildcard
Benign corpus
mcp-autoapprove-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

SEC394 / MCP-AUTOAPPROVE-WILDCARD

SEC394 flags MCP client configuration that grants wildcard auto-approval through autoApprove: ["*"].

Why It Matters

Wildcard auto-approval removes the review boundary for every tool exposed by the MCP server. In shared committed MCP config, that is a broad trust grant that is hard to audit and easy to inherit accidentally.

Trigger Shape

The rule triggers only when all of these are true:

  • the file is a detected MCP config surface
  • the path is not fixture-like
  • an autoApprove array contains the exact string "*"

Clean Cases

These stay clean:

  • specific reviewed tool names such as ["read_file", "search_docs"]
  • MCP configs without autoApprove
  • fixture-like examples under test or fixture paths

Example Trigger

json
{
  "mcpServers": {
    "demo": {
      "command": "node",
      "args": ["server.js"],
      "autoApprove": ["*"]
    }
  }
}

Safer Example

json
{
  "mcpServers": {
    "demo": {
      "command": "node",
      "args": ["server.js"],
      "autoApprove": ["read_file"]
    }
  }
}

How To Fix

Remove wildcard auto-approval and explicitly list only narrowly reviewed MCP tools.