{"id":"MAL-2026-17154","summary":"Malicious code in @nf-addons/am-global-header (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5f4f7297a2ae76eee65506183462a7138df6115ee2bfad9c84878b7f3c7998c8)\nThe 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.\n","modified":"2026-09-24T13:30:05.066994985Z","published":"2026-09-24T13:16:10Z","database_specific":{"malicious-packages-origins":[{"sha256":"5f4f7297a2ae76eee65506183462a7138df6115ee2bfad9c84878b7f3c7998c8","source":"amazon-inspector","versions":["9.9.10"],"id":"IN-MAL-2026-020504","import_time":"2026-09-24T13:18:04.248634857Z","modified_time":"2026-09-24T13:16:10Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@nf-addons/am-global-header/v/9.9.10"}],"affected":[{"package":{"name":"@nf-addons/am-global-header","ecosystem":"npm","purl":"pkg:npm/%40nf-addons/am-global-header"},"versions":["9.9.10"],"database_specific":{"indicators":{"evidence_files":[{"path":"runtime/support/telemetry/probe/impl.js","sha256":"4c69e177d395866654984b3a6eedae876d9057e204e002023c22cfbe7efa9bff","tlsh":"c8119c5af253d08f23c04695791c43e1882e82d097dd50d1bbbc168ba2cd7904ad3e66"},{"path":"runtime/support/telemetry/probe/d7f3b0.js","sha256":"d4ac941cf4555c749630873034ed07e10519f4eda48fbcf808caee045300f861","tlsh":"7de0201721aff14fa6985ea72f17c4dac8460900a21d8be9fa1d0687206a006c0c07b0"}],"package_integrity":[{"filename":"am-global-header-9.9.10.tgz","hashes":{"sha1":"7494d76c0de50b56ccc81eb3c1e235b73a3868c2","sha512_sri":"sha512-RDDcib7lUz7qMJdJSBpxbdtSW49gBGNwFcvqhm07YxykhkqcfRobuo2EUOTxVzTyN5SMjGE5HVAOefUxXxQk8w=="}}]},"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@nf-addons/am-global-header/MAL-2026-17154.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}