Appearance
Why It Matters
World-writable permission changes like chmod 777 create broad write access and often turn local files or sockets into privilege-escalation footholds.
What Triggers
SEC661 matches executable hook lines that run insecure chmod modes such as chmod 777, chmod 0777, or symbolic world-writable modes like a+rwx.
False Positives
This can appear in rough local setup scripts, but shared committed hooks should not silently open files to all users.
Remediation
Replace broad chmod modes with the minimum required permissions and keep host permission changes out of shared hooks when possible.