Appearance
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.