deps-audit
Audited by Socket on Jul 30, 2026
6 alerts found:
Malwarex3Anomalyx2SecurityThis module creates an intentionally malicious Elixir/Mix fixture that is highly consistent with supply-chain sabotage: it injects an attacker-controlled git dependency and triggers a compile-time network egress by executing curl from within a __before_compile__ macro. This would cause outbound communication to an attacker endpoint during dependency installation/compilation, making it an extreme security risk if used in any real build environment.
No malware is executed by the bash fixture generator itself; however, it intentionally creates a `new/mix.exs` that adds an attacker-controlled-looking git-based dependency. If used in a build/test pipeline, downstream dependency resolution would fetch untrusted remote code from that git URL/ref, making this a high-risk supply-chain scenario that should be reviewed/blocked via policy (e.g., forbid arbitrary git/VCS deps in untrusted contexts).
This module scaffolding writes Elixir code that performs an unconditional outbound HTTP request during compilation using System.cmd(curl) to a hardcoded attacker-controlled URL. That is a high-confidence malicious build-time exfiltration/sabotage pattern and should be treated as dangerous for supply-chain use.
The generated Elixir module is a high-risk construct: it decodes an embedded Base64 string and executes the decoded content with `Code.eval_string` at module scope, meaning arbitrary code would run immediately during compilation/loading. Even though the shown payload appears benign in isolation, the mechanism is directly consistent with supply-chain style payload execution and should be treated as dangerous.
This fragment contains a high-severity arbitrary code execution pattern: it evaluates an environment variable (REMOTE_CONFIG) as Elixir code using Code.eval_string at module scope/compile-load time. If REMOTE_CONFIG is influenced or misconfigured in the build pipeline, an attacker could execute arbitrary code during compilation/module loading. Even though this looks like a fixture/demonstration, the behavior is directly backdoor-like and should not be allowed in trusted builds without strict controls.
This fragment primarily generates a fixture by writing an Elixir module that embeds a large inline blob-like string and exposes it via a getter. It does not perform NIF/native decoding or execution within the provided code. However, the surrounding stated "NIF dropper" modeling intent and the embedded payload pattern are notable supply-chain red flags, and the unvalidated FIXTURE_DIR governs where the file is written. Risk is moderate and depends on whether later modules/tools decode and deploy native payloads.