senpi-qa
Audited by Socket on Aug 1, 2026
2 alerts found:
Anomalyx2No clear evidence of classic malware (no hardcoded exfiltration endpoints, no keylogging/clipboard access, no file-destruction logic, no eval-like dynamic code execution in this file). However, the code is a high-risk tool-execution harness: it can spawn OS commands through spawnClaudeCodeProcess and explicitly probes a Bash tool call. It is likely intended for sandboxed testing and enforcement validation (denial/replay/coherence checks), but if run in an unsafe environment or if upstream denial logic is bypassed, it could enable command execution within the sandbox. Supply-chain concern is moderate (because of sensitive OAuth handling and child-process spawning), but malware probability is low.
No direct malware behaviors (network exfiltration, credential theft, persistence, or obfuscated payloads) are evident in this module. However, it is inherently high-risk security-wise because it executes arbitrary caller-provided commands inside tmux and writes/executes caller-controlled files. The most notable security weakness is that env variable *keys* are not shell-quoted/validated when generating `export ${key}=...`, which can enable shell-script injection if env keys are attacker-controlled. Additionally, capturePath is used for truncation and script creation without path constraints, so filesystem overwrite risk depends on whether capturePath is trusted and constrained. Treat this as a privileged test/runner utility and ensure all inputs (especially env keys, capturePath, submit(text), and command/args) are fully controlled by trusted code.