MAL-2026-16300Malicious code in @baanx/solana-lib (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | @baanx/solana-lib | * |
| npm | @baanx/solana-lib | 9.9.10 |
| npm | @baanx/solana-lib | 9.9.9 |
{"schema_version":"1.7.4","id":"MAL-2026-16300","published":"2026-09-21T03:09:52Z","modified":"2026-09-30T00:54:45.596982826Z","aliases":["GHSA-5x34-3xqm-3r73"],"summary":"Malicious code in @baanx/solana-lib (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6462ecac2764fc9cf78d47ee57fec1fd3d6a0cf573ee02eaddcc2e5b5f3f0d7e)\nThe package declares `scripts.install` = `node index.js`, so `npm install @baanx/solana-lib` automatically executes `index.js`, which loads `lib/core.js`. That module reads the installer's username (`os.userInfo().username`), hostname (`os.hostname()`), and current working directory basename, concatenates them with a timestamp and the static prefix `bxsol`, and issues a `dns.resolve4()` lookup against `<prefix>.<user>.<host>.<cwd>.<ts>.oob.algamil7x.xyz` — a DNS-based out-of-band beacon that leaks installer identity to a hardcoded non-first-party domain. Helper modules `lib/e5f0a2.js` and `lib/f6a1b3.js` reconstruct the strings `os`, `dns`, `userInfo`, `hostname`, `cwd`, `resolve4`, the prefix `bxsol`, and the destination host `oob.algamil7x.xyz` from `String.fromCharCode` byte arrays, and load Node builtins indirectly via `module.constructor._load('os')` / `_load('dns')` to conceal the behavior. The package is presented as a Solana library; the char-code-obfuscated destination and the install-time host-recon beacon are inconsistent with any legitimate Solana functionality.\n\n## Source: ghsa-malware (ae13a6ad6865a2910cfb51f6e69cfa625450b6e017c846e702cc216e69cb0abe)\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/solana-lib","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["9.9.10","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":"lib/core.js","sha256":"6b930c020246e5d616d754ba88c612a92ace1b5b51dc26cedd0bb0032d6faef4","tlsh":"36f0a229b3a3c08fa7e092d0361a43d18459c3c0d7cf4191fb7c0e87904e7d1cac596a"},{"path":"lib/f6a1b3.js","sha256":"722c82e72c54a47cc5390ee243e7a19f3843ce3d5759751f9a05b31a2c2d7f49","tlsh":"efe0201b25afe14fa6e85ee72f17d4dac8920e00e21d4bd9f91d0687206a007c0c0770"}],"package_integrity":[{"filename":"solana-lib-9.9.10.tgz","hashes":{"sha1":"b87b5380d6227dfaf0bd7ef43fb1840f1b4bddaf","sha512_sri":"sha512-l/huo77kYbinGs6lKg46g54IdORPVKMZywhfgvirXWCtDXy1N3GQpt7lP+kZEHUq8FLEN1tqdFY+AxgEWbP12Q=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@baanx/solana-lib/v/9.9.10"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-5x34-3xqm-3r73"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@baanx/solana-lib/v/9.9.9"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020204","import_time":"2026-09-21T03:24:21.12515012Z","modified_time":"2026-09-21T03:09:52Z","sha256":"6462ecac2764fc9cf78d47ee57fec1fd3d6a0cf573ee02eaddcc2e5b5f3f0d7e","source":"amazon-inspector","versions":["9.9.10"]},{"id":"GHSA-5x34-3xqm-3r73","import_time":"2026-09-24T00:58:37.804910858Z","modified_time":"2026-09-24T00:41:49Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"ae13a6ad6865a2910cfb51f6e69cfa625450b6e017c846e702cc216e69cb0abe","source":"ghsa-malware"},{"id":"IN-MAL-2026-020703","import_time":"2026-09-30T00:52:50.544210778Z","modified_time":"2026-09-30T00:24:20Z","sha256":"2ead901dc12dc368bfd2a65d3f33db457cfd59a69db83d7c37c23084d09004ee","source":"amazon-inspector","versions":["9.9.9"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0