Appearance
Why It Matters
Setuid and setgid bits can convert ordinary binaries into privilege-escalation paths from shared Claude hook config.
What Triggers
SEC668 matches Claude settings command hooks that run chmod with setuid/setgid octal modes such as 4755, 2755, 6755, or symbolic modes like u+s and g+s.
False Positives
System bootstrap repos may use these modes intentionally, but they remain too sensitive for silent shared hook execution.
Remediation
Remove setuid/setgid manipulation from the hook and move it into a separately reviewed administrative workflow.