Malicious code in cewe-npm-cops (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (673bd57ca8632e768772381c7439b0b15008914879dfb5c22d42e40ce954c9e5) cewe-npm-cops@99.9.9 is a dependency-confusion probe. package.json declares scripts.preinstall = 'node preinstall.js'; preinstall.js reads os.hostname() and issues a dns.lookup against `.zfir3qor582xqvyqm0tdc7xpqgw7ky8n.oastify.com`, an author-controlled Burp Collaborator (Interactsh) out-of-band host. Every npm install of this package unconditionally leaks the installer's machine hostname via DNS to a third-party OOB service. The package is otherwise hollow: version is set to 99.9.9 (max-version squat designed to override an internal package of the same name during resolution), main is an empty index.js, and author is the placeholder 'Your_HackerOne_Username'. The self-described 'harmless PoC' framing does not change the behavior: installer host identity is exfiltrated to an attacker-controlled endpoint at install time.
MAL-2026-13438
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:MAL-2026-13438
cewe-npm-cops
Source reference: /affected/0/package/name
- Affected versions
- 99.9.9
Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"package": {
"name": "cewe-npm-cops",
"purl": "pkg:npm/cewe-npm-cops",
"ecosystem": "npm"
},
"versions": [
"99.9.9"
],
"database_specific": {
"cwes": [
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cewe-npm-cops/MAL-2026-13438.json",
"indicators": {
"evidence_files": [
{
"path": "preinstall.js",
"tlsh": "7a01cbb018b4a6b0769566cae0c13027b5878db7ba49fc82b84fc71047c36fb835a038",
"sha256": "1cc442fd670a919846700fa6c77d455d002d09cb56880d9c306ab14bbfa5cc05"
},
{
"path": "package.json",
"tlsh": "e5d0c2748950e23338c80aea18231202a9a94d5f0214bc046bc31059636a67b45bb60e",
"sha256": "8bd6b3edf0cbc636e8e1243cb0542e2457da31debbfbe6c2640406f78a7b9aab"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "143c5a4ef4f9695f87a70c2889059eeada82805e",
"sha512_sri": "sha512-bZnIZZxU6mpVfBnaLTKYvYHhBrz+l7N1J6Tc+FKtx0zlVbuyYxW8zWc0XKNzE6pmA2e/HA09cCiVowgTFDnLLw=="
},
"filename": "cewe-npm-cops-99.9.9.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #10961 · Revision 1
- Added to Heist Feed
- Publisher date