image-assets

Warn

Audited by Socket on Jul 28, 2026

3 alerts found:

SecurityAnomalyx2
SecurityMEDIUM
scripts/cutout_images.py

No obvious data theft or direct system-damaging behavior is present in the fragment. However, the code uses Hugging Face model loading with trust_remote_code=True, which can execute arbitrary Python supplied by the model repository during from_pretrained(). This is a significant supply-chain/code-execution risk if the model repos are compromised or if the user allows remote fetching (e.g., local-files-only is not set). There is also an anomalous HF_TOKEN handling (token=True when HF_TOKEN is unset). The snippet is truncated at the end, limiting full review completeness.

Confidence: 72%Severity: 78%
AnomalyLOW
scripts/image_assets.mjs

No clear evidence of direct malware (no network/exfiltration or credential theft) is present in this file’s logic. However, the module has meaningful security exposure: it dynamically loads sharp based on process.env.SHARP_MODULE_PATH, which can allow arbitrary code execution if an attacker can influence that environment variable. It also executes external pngquant/oxipng binaries from the host environment and modifies files in-place based on user-controlled paths. If runtime environment variables and the execution host are trusted, risk is moderate; if not, this becomes a high-impact loader/operational risk.

Confidence: 68%Severity: 60%
AnomalyLOW
scripts/_env.py

No clear malicious payload (e.g., exfiltration, persistence, credential theft) is evident from the provided fragment. The primary concerns are supply-chain and code-execution risk: it can download and execute get-pip.py from the network, executes an arbitrary probe_code string via python -c, and installs dependencies with floating versions (sharp@latest) and unspecified pip package specs, which can execute third-party build/install hooks during installation. Treat as a high-sensitivity bootstrap/install component and ensure probe_code/pip_packages are fully trusted and that dependency versions are pinned/verified where possible.

Confidence: 60%Severity: 55%
Audit Metadata
Analyzed At
Jul 28, 2026, 03:12 AM
Package URL
pkg:socket/skills-sh/x0c%2Fimage-assets-skill%2Fimage-assets%2F@c7467fd2213fc0ff64c7b1027f7f27a574e9ce6d