image-assets

Warn

Audited by Socket on Oct 31, 2026

2 alerts found:

Anomalyx2
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
Oct 31, 2026, 08:54 AM
Package URL
pkg:socket/skills-sh/x0c%2Fimage-skills%2Fimage-assets%2F@bc0e9b8fb7cec088d7454552c1075b2092c4a40adea4c2cec2b4ac2e4bbe50bf