Malicious code in @nf-addons/am-global-header (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (5f4f7297a2ae76eee65506183462a7138df6115ee2bfad9c84878b7f3c7998c8) The package's `install` lifecycle script runs `node index.js`, which loads `runtime/support/telemetry/probe/impl.js`. That module reads `os.userInfo().username`, `os.hostname()`, and `process.cwd()`, concatenates them with a fixed prefix `nfamh` and a timestamp into a single DNS label, and issues a `dns.resolve4` query against the hardcoded domain `oob.algamil7x.xyz`, exfiltrating installer identity over DNS on `npm install`. The same code path also fires on every `require()` of the package via the declared `main`. Destination domain, the loader targets `os`/`dns`, and the identifiers `userInfo`/`hostname`/`cwd`/`resolve4` are stored as charcode/hex arrays and reconstructed at runtime via `String.fromCharCode`, and the `os` and `dns` modules are pulled in through `module.constructor._load` rather than `require`, concealing the destination and API surface from static inspection. Comments frame the behavior as `registry connectivity diagnostics`, contradicting the actual dataflow.
MAL-2026-17154
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-17154
@nf-addons/am-global-header
Source reference: /affected/0/package/name
- Affected versions
- 9.9.10
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": "@nf-addons/am-global-header",
"purl": "pkg:npm/%40nf-addons/am-global-header",
"ecosystem": "npm"
},
"versions": [
"9.9.10"
],
"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/@nf-addons/am-global-header/MAL-2026-17154.json",
"indicators": {
"evidence_files": [
{
"path": "runtime/support/telemetry/probe/impl.js",
"tlsh": "c8119c5af253d08f23c04695791c43e1882e82d097dd50d1bbbc168ba2cd7904ad3e66",
"sha256": "4c69e177d395866654984b3a6eedae876d9057e204e002023c22cfbe7efa9bff"
},
{
"path": "runtime/support/telemetry/probe/d7f3b0.js",
"tlsh": "7de0201721aff14fa6985ea72f17c4dac8460900a21d8be9fa1d0687206a006c0c07b0",
"sha256": "d4ac941cf4555c749630873034ed07e10519f4eda48fbcf808caee045300f861"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "7494d76c0de50b56ccc81eb3c1e235b73a3868c2",
"sha512_sri": "sha512-RDDcib7lUz7qMJdJSBpxbdtSW49gBGNwFcvqhm07YxykhkqcfRobuo2EUOTxVzTyN5SMjGE5HVAOefUxXxQk8w=="
},
"filename": "am-global-header-9.9.10.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #13787 · Revision 1
- Added to Heist Feed
- Publisher date