{"id":"MAL-2026-6790","revision":null,"records":[{"revision":"1a47fdecfe164a508706274ffccc7f96","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-6790","aliases":["GHSA-86fh-6m37-f9v4"],"title":"Malicious code in debugcli (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ff9ad8188112d91f0ea673971f4421ca96dc7943ba12d65c7339c1aa75c2226e)\nThe package name `debugcli` shadows the popular `debug` package, and `index.js` is a thin re-export (`module.exports = require('debug')`) so callers observe legitimate behavior. The real payload runs via `\"postinstall\": \"node install.js\"` in package.json. On install, `install.js` performs: (1) bulk credential-file harvest — reads `~/.aws/credentials`, `~/.aws/config`, `~/.npmrc`, `~/.ssh/config`, `~/.pypirc`, `~/.netrc`, `~/.docker/config.json`, `~/.kube/config`, gcloud application_default_credentials, `.git-credentials`, Azure tokens, composer auth, and walks the current working directory upward collecting `.env`, `.env.local`, `.env.production`, `.env.development`; (2) process.env scraping — iterates `process.env` and filters keys matching TOKEN/SECRET/PASSWORD/API_KEY/AUTH/PRIVATE/AWS_*/GITHUB_*/NPM_*/OPENAI/ANTHROPIC/DATABASE_URL/STRIPE/TWILIO patterns; (3) browser wallet theft — locates Chrome extension Local Extension Settings for MetaMask (extension id `nkbihfbeogaeaoehlefnkodbecgpgknn`) and TrustWallet (`egjidjbpglichdcondbcbdnbeeppgdph`) and archives the vault directories via `powershell Compress-Archive` on Windows or `tar czf... --exclude=LOCK` on Unix; (4) exfiltration — POSTs collected env vars, credential files,.env contents, and wallet archives to `api.telegram.org/bot<token>/sendMessage` and `/sendDocument`, with the bot token and chat_id stored as XOR-encoded byte arrays (`ENC_TOKEN`, `ENC_CHAT`) decoded at runtime using the current lodash package version fetched from `registry.npmjs.org/lodash` dist-tags.latest as the XOR key; (5) evasion — `isSandbox()` checks CPU/RAM, hostname regex (`sandbox|malware|virus|sample|cuckoo|any.run|hybrid`), analysis env vars, and HOME directory age, and skips execution on analysis machines; a per-machine hashed lockfile prevents re-execution within 24h; and finally `fs.unlinkSync(__filename)` removes install.js after exfil.\n\n## Source: ghsa-malware (b27bc49b2d8ef30848d427f7d6ec702eaed3b5bcc49f5fd4384183f228e2c50a)\nAny 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.\n\n## Source: ossf-package-analysis (dd4fa31ed29d493ac05d6ec17a90f51fe68008b674268e1751c4b25792703b8d)\nThe OpenSSF Package Analysis project identified 'debugcli' @ 4.3.9 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","state":0,"publishedAt":"2026-07-03T20:05:34+00:00","modifiedAt":"2026-07-08T15:32:22.4891424+00:00","affected":[{"ecosystem":"npm","name":"debugcli","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["4.3.9","4.3.5","4.3.8","4.3.7","4.4.1","4.3.6"],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/advisories/GHSA-86fh-6m37-f9v4","https://www.npmjs.com/package/debugcli/v/4.3.8","https://www.npmjs.com/package/debugcli/v/4.3.5","https://www.npmjs.com/package/debugcli/v/4.3.7","https://www.npmjs.com/package/debugcli/v/4.4.1","https://www.npmjs.com/package/debugcli/v/4.3.6","https://www.npmjs.com/package/debugcli/v/4.3.9"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-6790","license":"OSV · upstream source license applies","key":"osv:MAL-2026-6790","identifiers":["MAL-2026-6790","GHSA-86fh-6m37-f9v4"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-25T10:08:03.7251914+00:00","complete":true,"records":1795,"lastAttemptAt":"2026-11-25T10:08:03.7251914+00:00","lastSuccessAt":"2026-11-25T10:08:03.9073277+00:00","error":null,"lastVerifiedAt":"2026-11-25T10:08:03.9073282+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-8d356adab43082cb10bb7c033ed58312cf2ad2f0fb10e0afdf27fc89fa361f3b-f8b4a9f9d86704f763c65a94353dc97f04ce4308e7153a38735b67a0630c41df","complete":true,"records":432034,"lastAttemptAt":"2026-11-25T10:08:03.202811+00:00","lastSuccessAt":"2026-11-25T10:08:03.1199577+00:00","error":null,"lastVerifiedAt":"2026-11-25T10:08:03.202811+00:00","snapshotPublishedAt":"2026-11-25T09:24:31+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-91c1d52d6cb24f7080ce7a7d1d6e3d73","complete":false,"records":13938,"lastAttemptAt":"2026-11-25T10:10:52.0183829+00:00","lastSuccessAt":"2026-11-25T10:10:52.0872374+00:00","error":null,"lastVerifiedAt":"2026-11-25T10:10:52.0872374+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-25T10:08:03.7251914+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-25T10:08:03.7251914+00:00","lastSuccessAt":"2026-11-25T10:08:04.2350423+00:00","error":null,"lastVerifiedAt":"2026-11-25T10:08:04.2350434+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-9e1a24520e7c4783aab8a91fd833fdc4","complete":true,"records":13950,"lastAttemptAt":"2026-11-25T10:08:05.6623728+00:00","lastSuccessAt":"2026-11-25T09:08:05.005+00:00","error":null,"lastVerifiedAt":"2026-11-25T09:08:05.005+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13986,"expectedIdentifiers":13986,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-e743412268199d418c20ac5ea5d5eefbef4a1c78fcbacada525fcf2201b41d4a","complete":true,"records":10077,"lastAttemptAt":"2026-11-25T10:08:03.5634446+00:00","lastSuccessAt":"2026-11-24T23:11:09.9983084+00:00","error":null,"lastVerifiedAt":"2026-11-25T10:08:03.5634446+00:00","snapshotPublishedAt":"2026-11-24T22:48:13+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-25T10:08:03.3569452+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-25T10:08:03.3569452+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-40938cbac3e2265a24e0d129a60138a855ec8a44cbd619ad6c0de0b22c0e253f","complete":true,"records":3221,"lastAttemptAt":"2026-11-25T10:08:03.6752152+00:00","lastSuccessAt":"2026-11-24T22:27:06.1844325+00:00","error":null,"lastVerifiedAt":"2026-11-25T10:08:03.6752152+00:00","snapshotPublishedAt":"2026-11-24T22:03:27+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-c35f45c5df4ebb9f8a4ddc3a2ad351fd1683e98490104938f94d7ebfd2984e89","complete":true,"records":233084,"lastAttemptAt":"2026-11-25T10:08:03.4578058+00:00","lastSuccessAt":"2026-11-25T08:10:20.6836928+00:00","error":null,"lastVerifiedAt":"2026-11-25T10:08:03.4578058+00:00","snapshotPublishedAt":"2026-11-25T07:18:23+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}