SG-091: Hook auto-executes local script

Severity: MEDIUM

Hook's command field points to a local script file (.sh / .bash / .py / .js etc) that auto-runs on a Claude Code lifecycle event. Severity is HIGH for SessionStart / SessionEnd (run every agent session).

Fires when

Related CVEs

Remediation

No safe remediation: a file that triggers this rule should be rejected, not patched. Read the flagged lines in the source before deciding.

Research