@syncraft-labs/core@0.4.1
Malicious code in @syncraft-labs/core (npm)
Analysis
The package's ESM entry (dist/index.js) is an obfuscated two-stage dropper disguised as a state-sync library. On import it queries public Ethereum RPC endpoints (drpc[.]org, publicnode, ethereum-rpc) to scan blocks for transactions sent to the hardcoded address 0xa0a322E5F3, then derives two command-and-control host IPs from the transaction's recipient address bytes. It fetches a second-stage payload from those hosts over HTTP (paths /0x/ls and /0x/cl on port 443), XOR/base64-decodes it, and executes it both via eval and by spawning a detached `node -e <payload>` process with stdio ignored and windowsHide enabled. The C2 requests carry x-payload- headers and a version marker. The require/CJS entry and README describe a legitimate local-first state-sync engine, so the malicious code only runs when the module is imported as ESM.
- analyzed by
- Leitwacht
- first seen
- Aug 22, 2026, 10:46 AM
- analyzed
- Aug 22, 2026, 10:48 AM
- weekly installs
- 182
Related advisories
- @syncraft-labs/react@0.4.1
- @syncraft-labs/vue@0.4.1
- @next-fonts/font@1.0.1
- space-items@1.0.0
- mutex-thread@1.3.0
- async-lock-queue@3.0.1
- core-js-buffer@1.0.0
- shared-slot-gate@1.1.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.