image-gen
Fail
Audited by Gen Agent Trust Hub on Jun 16, 2026
Risk Level: HIGHCOMMAND_EXECUTIONDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: In
scripts/providers/google.ts, the functionpostGoogleJsonViaCurlusesexecSyncto run acurlcommand. It directly interpolates theHTTPS_PROXYandGOOGLE_BASE_URLenvironment variables into the shell command string without proper sanitization. An attacker who can control these variables—for example, by placing a malicious.envfile in the project directory—can execute arbitrary shell commands on the system. - [DATA_EXFILTRATION]: The insecure
curlcommand inscripts/providers/google.tsincludes API keys in its request headers. A command injection exploit targeting the proxy or URL parameters could be used to intercept these headers and exfiltrate the keys to a remote server controlled by an attacker. - [DATA_EXFILTRATION]: The
scripts/main.tsfile automatically loads environment variables from a.envfile located in the current working directory. If an agent is directed to work in an untrusted directory containing a malicious.envfile, the skill's behavior can be hijacked to perform unauthorized actions or exfiltrate data.
Recommendations
- AI detected serious security threats
Audit Metadata