{"id":"MAL-2026-12111","revision":"3a2a5342ba704084a7c53e3eee170432","records":[{"revision":"3a2a5342ba704084a7c53e3eee170432","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12111","aliases":[],"title":"Malicious code in ethers-lib (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4341b184e0a6a60cf305d78f3bb082ad161d36a7de50883afd1cf91e91b56c04)\nethers-lib@1.0.4 impersonates the ethers.js ecosystem (name 'ethers-lib', description 'Essential crypto utility library', wildcard dependency on 'ethers') but exports nothing (module.exports = {}). On require(), index.js runs an IIFE that, after a hardcoded activation date (Aug 6 2026 UTC), reads installer-owned secret files including.env,.npmrc, ~/.aws/credentials, ~/.ssh/id_rsa, ~/.ssh/id_ed25519, ~/.ssh/id_ecdsa, ~/.config/solana/id.json, and ~/.ethereum/keystore, and scans dotfolders for files matching wallet/key/secret/seed/mnemonic/keystore/private. Collected file contents are packaged together with os.hostname() and os.userInfo().username into a JSON body and POSTed over HTTPS to a hardcoded webhook.site endpoint (path /5c5ad6cb-62df-4ea5-9dfb-2c447920ddc4) — a third-party destination the installer did not configure. The date gate delays activation to evade sandbox detonation; the package has no legitimate functionality.\n","state":0,"publishedAt":"2026-08-05T06:17:24+00:00","modifiedAt":"2026-08-05T07:21:11.723414+00:00","affected":[{"ecosystem":"npm","name":"ethers-lib","ranges":[],"versions":["1.0.0","1.0.4","1.0.2","1.0.1","1.0.3"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/ethers-lib/v/1.0.0","https://www.npmjs.com/package/ethers-lib/v/1.0.4","https://www.npmjs.com/package/ethers-lib/v/1.0.2","https://www.npmjs.com/package/ethers-lib/v/1.0.1","https://www.npmjs.com/package/ethers-lib/v/1.0.3"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12111","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12111","identifiers":["MAL-2026-12111"]},"retained":false,"historicalAffected":[]}],"coverage":[]}