@nasddatax/common@1.0.21
Malicious code in @nasddatax/common (npm)
Analysis
@nasddatax/common@1.0.21 is a trojanized clone of a standard express/nats microservices shared library (errors, middlewares, events) with an injected obfuscated dropper appended to build/index.js. On load, the payload decodes a base64 blob and queries public Ethereum RPC endpoints (1rpc[.]io/eth, eth[.]drpc[.]org, eth[.]blockscout[.]com, eth-mainnet[.]public[.]blastapi[.]io, and the ETH_RPC_URL env var) using JSON-RPC (eth_blockNumber, eth_getBlockByNumber, eth_getTransactionCount). It scans recent blocks for a transaction originating from attacker address 0x8322e5f33d311d3308e6f01210a363e9adc2490ef1a, reads the transaction's `to` field, and derives two IPv4 C2 addresses from the first 8 bytes of that address. It then connects to hxxp://<c2-ip>:443/0x/cls and /0x/ls, fetches a second-stage payload, and executes it in a detached `node -e` child process. Requests use XOR-encoded bodies with a Sec-V header. The C2 IP is delivered on-chain, so it changes per transaction.
- analyzed by
- Leitwacht
- first seen
- Aug 5, 2026, 09:58 AM
- analyzed
- Aug 5, 2026, 10:09 AM
Related advisories
- @hoteldev/common@1.0.9
- @vboxdev/common@1.0.73
- streak-calc-metrics@1.0.0
- tailwind-hide-scrollbar@2.1.5
- streak-calc-math@1.0.0
- streak-math-calc@1.0.0
- @nasdtickets/common@1.0.23
- tailwindcss-scrollbar-hide@2.2.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.