baoyu-image-gen

Warn

Audited by Socket on Jul 13, 2026

2 alerts found:

SecurityAnomaly
SecurityMEDIUM
scripts/providers/replicate.ts

No strong evidence of intentional malware/backdoor behavior in this fragment (no exec primitives, persistence, or overt malicious payloads). However, the module has high security-impact capabilities if an attacker can influence args.referenceImages or prediction/output values: it can read arbitrary local files via readFile() and exfiltrate their contents by embedding them as base64 data URLs in requests to Replicate. It also downloads from URLs derived from untrusted prediction output without host/scheme allowlisting, and it allows POST destination control via REPLICATE_BASE_URL. Use only with trusted inputs and enforce path/network allowlists at the integration boundary.

Confidence: 68%Severity: 76%
AnomalyLOW
scripts/codex-imagegen/spawn.ts

No explicit in-code malware or covert JS behavior is present in this snippet. However, it executes a powerful external `codex` binary with permissive/suspicious flags (`danger-full-access` sandbox and skipping repo checks) and supplies unvalidated, user-controlled instruction text and image references to that tool. It also persists complete stdout/stderr to a temp JSONL file without redaction, which can increase sensitive-data exposure risk. Overall, treat this as a high-impact subprocess execution and data-retention risk area; evaluate trust boundaries for `codex` and `parseEventStream` implementation details and consider adding input validation, output redaction/limits, and stronger isolation if feasible.

Confidence: 64%Severity: 68%
Audit Metadata
Analyzed At
Jul 13, 2026, 08:06 AM
Package URL
pkg:socket/skills-sh/full-stack-skills%2Fbaoyu-skills%2Fbaoyu-image-gen%2F@8dedc075c322eb5056cd5a80110ee6501c8c7a01fc20ffd70bbef32ef48c32b1
Security Audit — socket — baoyu-image-gen