logo-creator
Audited by Socket on Jul 10, 2026
1 alert found:
AnomalyThis code is primarily an API client that uploads an image to a third-party service and downloads the resulting SVG. It does not show classic malware behaviors (no reverse shell, persistence, or data theft beyond handling an API key), but it has meaningful supply-chain/security concerns: (1) it may scrape ~/.zshrc to obtain RECRAFT_API_KEY when the environment variable is missing, which increases the risk of secret exposure; (2) it downloads from an unvalidated URL returned by the remote API without host/scheme allowlisting; and (3) it writes to a caller-controlled output_path without sandboxing or overwrite checks. These patterns warrant review and hardening (credential handling, URL validation/allowlisting, and output path restrictions).