@custombots/custombot
Affected
- Versions:
1.0.0,2.0.0,2.0.1,2.0.2
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: None
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in @custombots/custombot (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (b88fd82e9d147a4fad43b89bab0b975fe57714abf16356eb39ec0ae62dcc7949)
index.js opens a TCP connection to a base64-obfuscated IP address (decodes to 85.137.253.124:1111), spawns /bin/sh, and pipes the shell's stdin/stdout/stderr through the socket, giving the remote endpoint an interactive shell on the installer's host. package.json declares "postinstall": "node install.js"; install.js uses node-linux's Service API to install index.js as a Linux systemd service named CustomBot and starts it, aborting unless run as root and prompting the user to run sudo npm i. The combination provides remote code execution against the installer with root privileges and reboot persistence. The C2 IP is stored as the base64 literal 'ODUuMTM3LjI1My4xMjQ=' and decoded at runtime, consistent with deliberate concealment.
Source: ossf-package-analysis (07c87d7c1e7e788959af6de895c76293fd0922dd1a422da325962de7f8d3d19a)
The OpenSSF Package Analysis project identified '@custombots/custombot' @ 1.0.0 (npm) as malicious.
It is considered malicious because:
Not rated by the source.
1.0.0, 2.0.0, 2.0.1, 2.0.2None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0