image-gen
Warn
Audited by Socket on Jul 23, 2026
1 alert found:
SecuritySecurityscripts/image-gen.py
MEDIUMSecurityMEDIUM
scripts/image-gen.py
This is a straightforward client that calls a remote image-generation API, decodes the returned base64 image, and saves it to a user-specified file. No explicit backdoor/malware behavior (e.g., exec/network-driven command execution, persistence, keylogging) is evident in this code. The dominant supply-chain/security issues are (1) a hardcoded Authorization bearer token embedded in the source and (2) writing decoded remote content to an arbitrary caller-controlled path without restrictions, which can enable credential misuse and unintended file overwrite depending on how it’s deployed.
Confidence: 80%Severity: 70%
Audit Metadata