Appearance
Why It Matters
Setuid and setgid manipulation from a plugin hook can create privileged execution paths on the host.
What Triggers
SEC671 matches plugin hook command strings that run chmod with setuid/setgid octal modes such as 4755, 2755, 6755, or symbolic modes like u+s and g+s.
False Positives
Bootstrap-style plugins may use these bits intentionally, but they remain sensitive privilege changes that should be explicit.
Remediation
Remove setuid/setgid manipulation from the plugin hook and move it into a separate reviewed administrative setup flow.