Skip to content

Rule Reference

SEC665lintai-ai-securitythreat-reviewsecuritystablejsonwarn

MCP config: setuid or setgid manipulation

MCP configuration command manipulates setuid or setgid permissions

Public lane
threat-review
Category
security
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

Explicit malicious, secret-bearing, or spyware-like review.

How to read this category

Strong exploit, secret, or unsafe-execution 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 committed MCP launch paths for explicit setuid or setgid chmod payloads.

Deterministic signal basis

JsonSignals command-plus-args analysis over ArtifactKind::McpConfig for chmod octal modes with setuid/setgid bits or symbolic modes such as `u+s` and `g+s`.

Malicious corpus
mcp-command-privilege-escalation-payloads
Benign corpus
mcp-safe-basic
structured evidence required remediation reviewed
Canonical note

Structural stable rule positioned as an explicit threat-review control: high-signal malicious, credential-bearing, or spyware-like behavior that stays opt-in rather than shaping the quiet default.

Nearby Signals

Related Rules

Why It Matters

Setuid and setgid bits can create privilege-escalation paths from shared MCP-launched commands.

What Triggers

SEC665 matches MCP command definitions that run chmod with setuid/setgid octal modes such as 4755, 2755, 6755, or symbolic modes like u+s and g+s.

False Positives

Low-level packaging flows may use these modes intentionally, but shared MCP config should not install privileged binaries implicitly.

Remediation

Remove setuid/setgid manipulation from the MCP config or isolate it into a separately reviewed administrative server definition.