cm
Audited by Socket on Sep 10, 2026
4 alerts found:
Securityx3AnomalyNo 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.
This module is primarily an auto-updater. It is not obviously malicious/stealthy in the traditional sense within this snippet, but it performs a high-risk supply-chain action: in interactive mode it downloads a shell script from raw GitHub content (main branch) and immediately executes it via a curl|bash pipeline using bash -c. Because this file does not show integrity pinning or local signature/hash verification, the security depends entirely on the remote install.sh and its `--verify` behavior. Treat this as a significant security risk for environments where upstream compromise or MITM/replacement of remote artifacts would be consequential.
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.