MAL-2026-16352Malicious code in @baanx/blockchain-config (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | @baanx/blockchain-config | * |
| npm | @baanx/blockchain-config | 9.9.11 |
| npm | @baanx/blockchain-config | 9.9.9 |
{"schema_version":"1.7.4","id":"MAL-2026-16352","published":"2026-09-21T17:15:43Z","modified":"2026-09-30T00:54:45.593456880Z","aliases":["GHSA-f67m-pjx9-96cv"],"summary":"Malicious code in @baanx/blockchain-config (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0b6dec4d715e2863e7f55749d6d2a390926f3f2f1df62e4de223c6acc818632d)\nThe package runs a bootstrap from both its install lifecycle script (`node index.js`) and its main module that invokes an obfuscated probe. The probe reads `os.userInfo().username`, `os.hostname()`, and the basename of `process.cwd()`, concatenates them with a static tag (`bxcfg`) and a timestamp, and performs a `dns.resolve4` lookup against `<tag>.<user>.<host>.<cwd>.<ts>.oob.algamil7x.xyz`, exfiltrating installer identity over DNS to a non-first-party domain unrelated to the claimed baanx publisher. The exfil host and the `os`/`dns`/`userInfo`/`hostname`/`cwd`/`resolve4` API references are hidden in `String.fromCharCode`/hex-decoded byte arrays in `probe/impl.js` and sibling files `e9c3a6.js` / `f0d4b7.js`, and the `os` and `dns` modules are loaded through `module.constructor._load` with decoded name arrays to defeat static analysis. Behavior fires automatically on `npm install` and on `require('@baanx/blockchain-config')`.\n\n## Source: ghsa-malware (6efa71410686d3ace79a501e2afa27505312aab915fb79429b312f9456d272b0)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"@baanx/blockchain-config","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["9.9.11","9.9.9"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"runtime/support/telemetry/probe/impl.js","sha256":"74cabd564f982cad05f3366bbd8dfccdb1c61f1517cb401e1e657444e668d0f8","tlsh":"23119c5ab253d08f23c04695391c43e1482dc2d097dd51d1bbbc168ba2cd7914ad3a76"},{"path":"runtime/support/telemetry/probe/f0d4b7.js","sha256":"8b334e1d6cd445ed52f797ed4e123d25f5be174ebb2700b15795c8034ec9d6e6","tlsh":"8ce0201725aff14fa6e85ea72f17c4dbc8820a00a21c4bd9fa0d0687206e007c0c0771"}],"package_integrity":[{"filename":"blockchain-config-9.9.11.tgz","hashes":{"sha1":"66951b67868ab6e5a2bf12634c382583336facf7","sha512_sri":"sha512-jYnQ4ncfvYXq6clch3ETiW/fZCpfEO2x+okCsa6VfHFBrLZNh7k/+rmLSC9kPfn8HrJEOPWBKytqlb7MqSqkvw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@baanx/blockchain-config/v/9.9.11"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-f67m-pjx9-96cv"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@baanx/blockchain-config/v/9.9.9"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020264","import_time":"2026-09-21T17:38:31.737937334Z","modified_time":"2026-09-21T17:15:43Z","sha256":"0b6dec4d715e2863e7f55749d6d2a390926f3f2f1df62e4de223c6acc818632d","source":"amazon-inspector","versions":["9.9.11"]},{"id":"GHSA-f67m-pjx9-96cv","import_time":"2026-09-24T00:58:37.815722485Z","modified_time":"2026-09-24T00:41:46Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"6efa71410686d3ace79a501e2afa27505312aab915fb79429b312f9456d272b0","source":"ghsa-malware"},{"id":"IN-MAL-2026-020702","import_time":"2026-09-30T00:52:50.453676931Z","modified_time":"2026-09-30T00:24:07Z","sha256":"c765c250998ba44368833c3113d4ad839396583414992a2eb1256601210c86e8","source":"amazon-inspector","versions":["9.9.9"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0