image-assets
Audited by Socket on Oct 31, 2026
2 alerts found:
Anomalyx2No 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.
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.