{"id":"MAL-2026-6777","revision":null,"records":[{"revision":"58610b43d0fc4e6998a04d773702d9ba","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-6777","aliases":[],"title":"Malicious code in @marketfront/errorcounter (npm)","description":"The @marketfront/errorcounter package is part of a 25-package malicious campaign batch-published to the @marketfront npm scope by npm user 'marketfront' (marketfront@tutamail.com) within a roughly 3-minute window on 2026-07-01. All packages in the campaign were published at version 7.0.0 and use e-commerce/marketing frontend component names as cover.\n\nThe package declares a postinstall hook (node scripts/postinstall.js) that executes heavily obfuscated (obfuscator.io-style) code automatically at npm install time. Static analysis of the decoded payload revealed a credential harvester that dynamically requires fs, os, http, https, zlib, path and dns, then reads approximately 20 sensitive credential files including ~/.ssh, ~/.aws/credentials, ~/.kube/config, ~/.docker/config.json, ~/.npmrc, ~/.netrc, ~/.pgpass, ~/.git-credentials, ~/.env and ~/.bash_history. Collected data is exfiltrated via a gzip-compressed HTTPS POST with a custom X-Secret header to the path /api/v1/events, alongside a DNS resolver beacon. The command-and-control host is concealed behind an additional RC4+XOR encryption layer around an embedded configuration blob and was not statically resolved.\n\nThe decoded behavioral payload (module requires, credential-file target list, exfiltration headers and endpoint) is byte-for-byte identical across sampled packages in the campaign. The campaign shares tooling and infrastructure patterns (obfuscated postinstall credential harvester, X-Secret header, /api/v1/events exfiltration path, RC4-concealed C2) with the earlier @emcd-vue campaign, indicating the same actor rotating scopes and disposable maintainer emails.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d15a354db253fd90616eb7e33d8c09dd7dd36b691259ec737182a96f9b5d65ab)\nThis package is a dependency-confusion lure targeting an internal `@marketfront` npm scope. The declared library entry point (`dist/index.js`) re-exports `../src/index.js`, which is not shipped — the package is non-functional as advertised. Its only real behavior is the declared `postinstall` hook (`node scripts/postinstall.js`), which is a heavily obfuscated (obfuscator.io-style string-array RC4 decoder, control-flow dead-code, function/property indirection) payload that runs automatically on `npm install`. At install time it collects `os.hostname`, `os.type`, `os.release`, `os.arch`, `os.version`, `os.homedir`, `os.userInfo().username`, `os.networkInterfaces`, the full `process.env`, and Windows-specific env vars (USERDOMAIN, COMPUTERNAME, APPDATA, LOCALAPPDATA, TEMP, PROGRAMDATA, npm_config_user_agent), packages them with the package name/version and a timestamp into a JSON blob, and ships the blob to a remote endpoint decoded from the obfuscated string array via HTTPS POST with a DNS-tunnel fallback (deliberate evasion of egress filtering). Before exfiltrating, the payload runs anti-analysis checks: it scans `process.argv` and `NODE_OPTIONS` against decoded tokens, requires `process.mainModule.filename` to match a decoded token, and executes a ~1e6-iteration `Date.now()` timing loop to detect sandboxes/debuggers, gating the exfil behind an internal flag. The combination of an obfuscated payload, anti-sandbox gating, dual exfil channels, a non-functional library shell, and an internal-scope cover story is unambiguous supply-chain malware. Any build system that mis-resolves the `@marketfront` scope to public npm will auto-run the stealer against its CI secrets, cloud tokens, and environment variables.\n","state":0,"publishedAt":"2026-07-02T00:00:00+00:00","modifiedAt":"2026-07-06T05:16:45.5659164+00:00","affected":[{"ecosystem":"npm","name":"@marketfront/errorcounter","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["7.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://safedep.io/marketfront-dependency-confusion-campaign/","https://www.npmjs.com/package/@marketfront/errorcounter/v/7.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-6777","license":"OSV · upstream source license applies","key":"osv:MAL-2026-6777","identifiers":["MAL-2026-6777"]},"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-25T18:42:41.2367407+00:00","complete":true,"records":1796,"lastAttemptAt":"2026-11-25T18:42:41.2367407+00:00","lastSuccessAt":"2026-11-25T18:42:41.5328616+00:00","error":null,"lastVerifiedAt":"2026-11-25T18:42:41.5328629+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-038a7597bebeeb6d352a0d0976d1a32f695b7cf3343b14a66b5983f704ec7a95","complete":true,"records":432306,"lastAttemptAt":"2026-11-25T18:40:28.6061805+00:00","lastSuccessAt":"2026-11-25T18:40:28.4492817+00:00","error":null,"lastVerifiedAt":"2026-11-25T18:40:28.6061805+00:00","snapshotPublishedAt":"2026-11-25T18:30:38+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-2f40107d2a6d4c4ba950e1f2483b11ca","complete":false,"records":13939,"lastAttemptAt":"2026-11-25T18:54:49.005417+00:00","lastSuccessAt":"2026-11-25T18:54:48.999+00:00","error":"129 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-25T18:54:48.999+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13839,"expectedIdentifiers":13987,"failedIdentifiers":129},{"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-25T18:42:41.2367407+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-25T18:42:41.2367407+00:00","lastSuccessAt":"2026-11-25T18:42:41.5340517+00:00","error":null,"lastVerifiedAt":"2026-11-25T18:42:41.5340525+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-eb39311d8c62406daf6963e5b356a43d","complete":false,"records":13951,"lastAttemptAt":"2026-11-25T18:44:12.4797167+00:00","lastSuccessAt":"2026-11-25T17:31:37.566+00:00","error":"2 identifier lookups failed; latest failures include request timeout. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-25T17:31:37.566+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13985,"expectedIdentifiers":13987,"failedIdentifiers":2},{"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-70b1e3058f76fab20c77bb1c4924a4c57f7654dd208befb5b1f237e682d6ddca","complete":true,"records":10077,"lastAttemptAt":"2026-11-25T18:42:41.1746216+00:00","lastSuccessAt":"2026-11-25T11:46:59.5507764+00:00","error":null,"lastVerifiedAt":"2026-11-25T18:42:41.1746216+00:00","snapshotPublishedAt":"2026-11-25T11:03:15+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-25T18:40:32.1449167+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-25T18:40:32.1449167+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-5be533520b83c9bfaebc80695093f6f0d59feafc2a1eab94e91dd79d1bb9241b","complete":true,"records":3222,"lastAttemptAt":"2026-11-25T18:42:41.1913488+00:00","lastSuccessAt":"2026-11-25T11:47:03.6026853+00:00","error":null,"lastVerifiedAt":"2026-11-25T18:42:41.1913488+00:00","snapshotPublishedAt":"2026-11-25T11:18:20+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-e0108771d3403a7692f5eecc7e60f02be2caf0a402ba580c3e45aa7b66c7928a","complete":true,"records":233143,"lastAttemptAt":"2026-11-25T18:42:41.0003554+00:00","lastSuccessAt":"2026-11-25T18:42:39.3893996+00:00","error":null,"lastVerifiedAt":"2026-11-25T18:42:41.0003554+00:00","snapshotPublishedAt":"2026-11-25T18:33:30+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}