Advisory

MAL-2026-16300

Also known as: GHSA-5x34-3xqm-3r73

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in @baanx/solana-lib (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (6462ecac2764fc9cf78d47ee57fec1fd3d6a0cf573ee02eaddcc2e5b5f3f0d7e)
The 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.

Source: ghsa-malware (ae13a6ad6865a2910cfb51f6e69cfa625450b6e017c846e702cc216e69cb0abe)
Any 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.

Severity

Not rated by the source.

Dates

Published
2026-09-21 03:09 UTC
Modified
2026-09-30 01:00 UTC

Affected packages and fixes

@baanx/solana-lib

npm · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences