Skip to content

Rule Reference

SEC400lintai-ai-securitygovernancehardeningstableclaude_settingswarn

Claude settings: shared enabledMcpjsonServers

Claude settings enable `enabledMcpjsonServers` in a shared committed config

Public lane
governance
Category
hardening
Provider
lintai-ai-security
Scope
per-file
Surface
claude_settings
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 shared committed Claude settings for exact `enabledMcpjsonServers` enablement.

Deterministic signal basis

ClaudeSettingsSignals exact non-empty `enabledMcpjsonServers` detection in parsed Claude settings JSON.

Malicious corpus
claude-settings-enabled-mcpjson-servers
Benign corpus
claude-settings-empty-enabled-mcpjson-servers-safe
structured evidence required remediation reviewed
Canonical note

Structural stable rule intended as a high-precision check with deterministic evidence.

Nearby Signals

Related Rules

SEC400 / CLAUDE-ENABLED-MCPJSON-SERVERS

SEC400 flags shared Claude settings when enabledMcpjsonServers is pre-populated.

Why It Matters

enabledMcpjsonServers moves MCP server enablement into shared committed config. That shifts a trust and approval decision into team defaults, making external server activation easier to cargo-cult without local review.

Trigger Shape

The rule triggers only when all of these are true:

  • the file is a detected Claude settings surface
  • the path is not fixture-like
  • enabledMcpjsonServers is a non-empty array
  • or enabledMcpjsonServers is a non-empty string

Clean Cases

These stay clean:

  • enabledMcpjsonServers: []
  • settings files that omit enabledMcpjsonServers
  • fixture-like examples under test or fixture paths

Example Trigger

json
{
  "enabledMcpjsonServers": ["claude-flow", "ruv-swarm"]
}

Safer Example

json
{
  "enabledMcpjsonServers": []
}

How To Fix

Remove shared enabledMcpjsonServers defaults, or keep MCP server enablement as a locally reviewed opt-in step.