cm
Audited by Socket on Aug 4, 2026
3 alerts found:
Securityx2AnomalyNo clear evidence of intentional malware/backdoor behavior. The most significant security risks are (1) OS command injection potential due to execSync string construction with interpolated, potentially attacker-influenced values (cassPath/sessionPath/query/workspace/agent/limits), and (2) privacy/data disclosure risk because local session content and task context are sent to external LLM providers and sometimes surfaced via console output. The playbook persistence also creates an integrity risk (LLM-output poisoning), though shape validation is present.
This fragment is an installer that modifies local developer workflow by writing executable Git hook scripts and registering a Claude Code PreToolUse hook. The provided code shows no obvious network exfiltration, credential theft, or obfuscation in the installer logic itself, but it writes and later executes a bundled script (`GIT_PRECOMMIT_HOOK`) on every commit—whose contents are not visible here. Because the executed payload is missing from the snippet, malware can’t be ruled out; the security risk is primarily the high-impact persistence/execution behavior of Git hooks plus unverifiable payload content.
No clear evidence of overt malicious payload behavior is present in the shown fragment. However, the script performs high-impact supply-chain operations: it downloads and installs a remote executable and/or clones remote code and runs bun to build it. Checksum verification is optional and, when used, depends on fetching the checksum from the network rather than pinning/verifying it via a trusted out-of-band or signed mechanism. Overall, the security posture is best characterized as medium-high supply-chain risk due to trust model weaknesses and unpinned remote build inputs, rather than confirmed malware.