agentforce-generate
Audited by Socket on Oct 10, 2026
2 alerts found:
SecurityAnomalyNo explicit malicious payload is evident in this fragment (no networking, credential theft, or obvious dangerous primitives). However, it is a dynamic SDK/module loader: it ultimately executes code from paths derived from an environment-variable override, a cached on-disk manifest, or discovered node_modules package.json metadata. This creates a potentially high-impact supply-chain/initialization-time arbitrary code execution risk if any of those inputs or filesystem locations can be influenced or tampered with.
The script is an evaluation harness, not evidently malware. Its principal risks are the documented live behavior of legacy trials, path traversal through caller-controlled path components, and Python source injection through the interpolated directory path. Restrict and validate path inputs, avoid source interpolation, and ensure legacy utterances are approved for live execution.