hatch-pet
Audited by Socket on Aug 15, 2026
2 alerts found:
Anomalyx2No clear indicators of overt malware (no backdoor/persistence, no obfuscation, no suspicious external domains beyond the expected OpenAI Images endpoints). However, the module has a meaningful supply-chain/safety risk: it trusts manifest-provided path strings for prompt/input/output locations and does not enforce that resolved paths remain within run_dir. If an attacker can influence imagegen-jobs.json/job fields, this can enable path traversal (arbitrary read/write under the process permissions) and unintended local file exfiltration by uploading attacker-chosen files to the remote OpenAI API. Recommend strict path normalization/confinement (e.g., resolve() + check commonpath), and treat the manifest as untrusted input with allowlists for relative paths under run_dir.
No strong evidence of intentional malware (no network calls, obfuscation, eval/exec, subprocesses, or credential exfiltration). However, there is a meaningful supply-chain/integration security risk: output_path from the job manifest is written to disk without constraining it to run_dir, enabling path traversal/write-outside-run-dir if an attacker can influence imagegen-jobs.json (or job content). validate_required_grounding similarly does not constrain input image paths to run_dir. If manifests are fully trusted within a secure pipeline, risk is reduced; if not, this should be reviewed/fixed by validating that resolved paths stay within run_dir before mkdir/copy.