scaffold-hooks
Warn
Audited by Socket on Nov 11, 2026
1 alert found:
AnomalyAnomalyharnesses/copilot/scripts/scaffold_hooks.sh
LOWAnomalyLOW
harnesses/copilot/scripts/scaffold_hooks.sh
This is a hook scaffolder that validates a plan, generates GitHub Copilot hook files, and arranges for plan-configured commands or scripts to run at hook time. Its shell execution and permissive script/cwd paths are powerful by design and make an untrusted or compromised plan capable of executing arbitrary commands or accessing files available to the process. No direct credential theft, network exfiltration, persistence beyond the generated hooks, or other malicious payload is evident in this excerpt; severity is elevated when plan files are not trusted.
Confidence: 94%Severity: 57%
Audit Metadata