Appearance
Why It Matters
Shared Claude hooks should not inspect host authentication or privilege files. That exposes sensitive local system state to repository-controlled automation.
What Triggers
SEC642 matches Claude settings command hooks that directly reference /etc/shadow, /etc/passwd, /etc/sudoers, /etc/gshadow, or /etc/master.passwd.
False Positives
Host-audit hooks are possible, but they are still high-risk in a shared committed settings file and typically warrant explicit review.
Remediation
Remove password-file access from the hook. Keep command hooks focused on workspace-local operations, or move host auditing into a separate reviewed admin process.