create-agent-tests
Audited by Socket on Aug 10, 2026
1 alert found:
AnomalyNo clear evidence of classic malware behavior (e.g., covert persistence, self-propagation, direct data exfiltration, or embedded payloads) appears in this fragment. However, the module has meaningful security-risk characteristics: (1) optional shell:true execution driven by a user-supplied engineCommandTemplate creates a command-injection/high-impact execution surface if the template or any substituted/unquoted parts are not perfectly controlled; (2) it forwards the entire process.env to the child process, which can expose secrets; and (3) it enables a high-capability mode for the 'claude' engine via permission bypass. These are substantial trust-boundary and privilege-expansion concerns that should be reviewed and mitigated (strict template allowlisting, safer spawn usage without shell, minimal env propagation, and permission-mode justification).