Appearance
Why It Matters
Claude command hooks run automatically from shared settings. A hook that can wipe / turns a repo config file into a host-destruction primitive.
What Triggers
SEC641 matches Claude settings command hooks whose command runs rm with recursive and force semantics against / or uses --no-preserve-root.
False Positives
This is rare and usually intentional if present. In shared committed Claude settings, that should still be treated as unsafe.
Remediation
Remove the root-targeting delete command from the hook. If cleanup is necessary, scope it to a reviewed workspace path and avoid destructive host-level flags.