skill-generator
Audited by Socket on Feb 17, 2026
1 alert found:
AnomalyThe code fragment is a clear utility/spec for executing external scripts. The implementation of ExecuteScript constructs a shell command by interpolating caller-supplied values into a single command string passed to a shell executor (Bash). This creates a straightforward command injection risk if inputs are not strictly sanitized or escaped. Additionally, running arbitrary scripts from the skill directory with no sandboxing or provenance checks means a compromised or malicious script can read secrets, exfiltrate data, spawn processes, or modify the system. There is no evidence in this fragment of direct malware (no hardcoded exfiltration endpoints or backdoor), but the execution mechanism enables high-risk behavior if scripts or inputs are malicious. Recommend treating scripts as untrusted, implementing proper argument escaping (use exec with argv), enforce allowlists/signing, sandboxing, timeouts, and safer stdout handling.