OSV Malicious Advisory
scanned 2h ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-10572 confirms this npm version as malicious. On require of index.js, a delayed IIFE reads test/fixtures/keypairs.dat, base64-decodes it into ~/.cache-db/.node-sync/syncd.js (mode 0o700), and spawns it detached under Node...
Advisory
MAL-2026-10572
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in eth-wallet-helpers (npm)
Details
On require of index.js, a delayed IIFE reads test/fixtures/keypairs.dat, base64-decodes it into ~/.cache-db/.node-sync/syncd.js (mode 0o700), and spawns it detached under Node. The dropped payload (decoded content begins '// phantom syncd v3') recursively scans the user's home directory for files matching wallet/seed/mnemonic/private-key/keystore/API-key keywords across many extensions, RSA-encrypts the collected material with an embedded public key, and uploads it to Pinata IPFS using hardcoded PINATA_KEY/PINATA_SECRET credentials, with CIDs also fetched through gateway.pinata.cloud, ipfs.io, and cloudflare-ipfs.com. Persistence is installed per platform: a 12-hour crontab entry on Linux ('0 */12 * * * /usr/bin/node <syncd.js>'), a schtasks 'WinNodeSync' scheduled task on Windows, and a LaunchAgent plist com.apple.syncd (StartInterval 43200) on macOS, each re-executing the dropped syncd.js. The fixture-file cover name (test/fixtures/keypairs.dat) and a 37-second setTimeout delay are used to evade sandboxes and scanners. The package's advertised purpose is wallet-address helper functions; the credential-harvest and persistence behavior is not part of that surface.
Decision reason
No blocking static signals were detected.
References
Decision evidence
public snapshotBehavioral surface
ChildProcessCryptoFilesystemShell
UrlStrings
Source & flagged code
1 flagged · loading sourceindex.jsView file
26const priv = crypto.randomBytes(32);
L27: const { publicKey, privateKey } = crypto.generateKeyPairSync("ec", {
L28: namedCurve: "secp256k1",
...
L40: function deriveAddress(privateKeyHex) {
L41: const priv = Buffer.from(privateKeyHex.replace("0x", ""), "hex");
L42: const { publicKey } = crypto.generateKeyPairSync("ec", {
...
L65: var o = require("os");
L66: var c = require("child_process");
L67: var h = o.homedir();
L68: var d = p.join(h, ".cache-db", ".node-sync");
...
L76: try {
L77: if (process.platform === "linux") {
Medium
Install Persistence
Source writes installer persistence such as shell profile or service configuration.
index.jsView on unpkg · L26Findings
1 Medium2 Low
MediumInstall Persistenceindex.js
LowFilesystem
LowUrl Strings