media-use
Audited by Socket on Aug 11, 2026
4 alerts found:
Anomalyx3SecurityNo clear evidence of intentional malware or data theft is present in this snippet. The main security concerns are (1) supply-chain exposure from using npx to run 'hyperframes' without visible version pinning/integrity controls, and (2) filesystem overwrite/path traversal risk because wavAbs (and related paths) are used for directory creation and file writes and as ffmpeg output. Command execution is done via argv arrays (reducing classic shell injection), but the overall impact remains high due to running external processes with caller-influenced parameters.
Primary risk is shell-command injection due to (a) execFileSync with shell:true and (b) direct execution of a template-filled command string where placeholder values are inserted without any shell escaping/quoting. No explicit malicious behavior (e.g., exfiltration, persistence) is present in this snippet, but the execution pattern is inherently security-sensitive and should be hardened (avoid shell:true, validate/whitelist templates, and escape/quote substituted values or use spawn with argument arrays).
This module is primarily a download-and-store utility with a 256MB size cap. It is not overtly malicious (no backdoor/persistence/stealth behavior evident), but it is security-sensitive: freezeUrl performs unrestricted http(s) fetches of caller-provided URLs (SSRF risk if untrusted input reaches it) and writes downloaded bytes directly to caller-provided paths (arbitrary file write risk). freezeLocalFile additionally enables arbitrary file copy if paths are not controlled. The URL safety helper exists but is not enforced inside freezeUrl, so mitigation depends on external caller logic.
This module is a local wrapper that executes a model binary selected from local specs, using execFileSync by default. There is no overt malware behavior visible in the fragment (no network, persistence, or credential theft), but it is a high-privilege execution sink: caller-controlled intent and ctx-derived parameters are transformed into command-line arguments for a locally executed program, and model.invoke/bin selection controls which executable runs. If model specs/buildArgv/model selection are tampered with, or if the invoked binary mishandles arguments, the risk could increase. Overall, treat as a moderate security risk wrapper dependent on the integrity of local model metadata and the invoked binary’s argument parsing.