hatch-pet

Warn

Audited by Socket on Aug 15, 2026

2 alerts found:

Anomalyx2
AnomalyLOW
scripts/generate_pet_images.py

No 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.

Confidence: 62%Severity: 62%
AnomalyLOW
scripts/record_imagegen_result.py

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.

Confidence: 72%Severity: 55%
Audit Metadata
Analyzed At
Aug 15, 2026, 07:17 PM
Package URL
pkg:socket/skills-sh/jssblck%2Fagents%2Fhatch-pet%2F@db49f45063fdc28b758a5f7190aa3acb9d8a197fd2fc4b5ed8578b269e57a932
Security Audit — socket — hatch-pet