standing
Audited by Socket on Sep 7, 2026
1 alert found:
AnomalyThis fragment does not show classic malware behaviors (no eval/Function, no command execution, no persistence, no cryptomining). However, it has a clear and high-impact security risk: it can read arbitrary local file contents specified by an environment variable and transmit them over the network to a destination derived from unvalidated argv/env input. Additionally, it connects and performs HTTP fetches to runtime-derived endpoints without allowlisting, and it prints remote message content to stdout. In a hostile or misconfigured environment (where inputs can be influenced), this can function as a data-exfiltration mechanism and a network reachability vector. Recommended controls: restrict/allowlist network destinations, lock down file path permissions and configuration, and avoid sending local file content unless strictly required and sanitized.