Appearance
Why It Matters
Plugin hooks are executed automatically by installed tooling. A plugin hook that can run rm -rf / gives repository-delivered automation a direct host destruction path.
What Triggers
SEC645 matches plugin hook command strings that run rm with recursive and force semantics against / or use --no-preserve-root.
False Positives
This should be very uncommon. If a plugin hook includes a host-destructive payload, that is normally exactly the behavior reviewers want surfaced.
Remediation
Remove the root-targeting delete command from the plugin hook. If cleanup is needed, keep it scoped to a reviewed plugin-local or workspace-local directory.