Skip to content

Rule Reference

SEC593lintai-ai-securitygovernancehardeningstablejsonwarn

MCP config: package install auto-approve

MCP configuration auto-approves package installation commands through `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 exact package installation auto-approval in MCP client config.

Deterministic signal basis

JsonSignals exact array-item detection for package installation entries such as `Bash(pip install)` and `Bash(npm install)` inside `autoApprove` on parsed MCP configuration.

Malicious corpus
mcp-autoapprove-package-install-family
Benign corpus
mcp-autoapprove-package-install-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

SEC593 / MCP-AUTOAPPROVE-PACKAGE-INSTALL

SEC593 flags MCP configuration when autoApprove grants direct package installation authority.

Why It Matters

Package installation is a supply-chain mutation step. Auto-approving it removes review from dependency installation in shared MCP policy.

Trigger Shape

  • the file is a detected MCP configuration surface
  • autoApprove is a string array
  • the array contains one of these exact items:
    • Bash(pip install)
    • Bash(pip3 install)
    • Bash(python -m pip install)
    • Bash(yarn install)
    • Bash(npm install)
    • Bash(pnpm install)
    • Bash(bun install)

How To Fix

Remove shared package installation auto-approval and keep dependency installation under explicit user review.