Skip to content

Rule Reference

SEC394lintai-ai-securitystablejsonwarn

MCP config: wildcard auto-approve

MCP configuration auto-approves all tools with `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 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.