Appearance
Why It Matters
Setting setuid or setgid bits can turn ordinary binaries into privilege-escalation paths.
What Triggers
SEC662 matches executable hook lines 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 packaging scripts may use these bits intentionally, but shared hooks should not silently install privileged executables.
Remediation
Remove setuid/setgid manipulation from the hook or move it into a separately reviewed administrative provisioning path.