{"id":"MAL-2026-6353","summary":"Malicious code in markdownlint-cli2-fix (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ca7d5154ecbbcc636198bd2314e1916e5f0673d37ab7b14caca2ea96ad5ac5e1)\nPackage name 'markdownlint-cli2-fix' impersonates the popular 'markdownlint-cli2' linter but contains no linter functionality — the README states 'Takeover By lobo / For POC only' and the package ships only postinstall.js plus metadata. postinstall.js (line 30) hardcodes `BURP_COLLABORATOR_URL = \"http://i0jvc03bvcjt40q39f5fx8671y72vxjm.oastify.com\"` and, when run, collects host/network reconnaissance (os.hostname(), username, network interfaces, disk info, AD domain info, full process list via `ps aux`/`tasklist` through execSync), enumerates `Object.keys(process.env)` matching a curated credential list (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, GITHUB_TOKEN, NPM_TOKEN, STRIPE_SECRET, SSH_PRIVATE_KEY, DEPLOY_KEY, SLACK_TOKEN, DISCORD_TOKEN, JWT_SECRET) plus regex `/_(TOKEN|SECRET|KEY|PASSWORD|PWD|APIKEY|API_KEY|PRIVATE_KEY)$/i`, and POSTs the JSON payload to the attacker-controlled Burp Collaborator endpoint at oastify.com. While package.json in this version does not declare a `scripts.postinstall` hook (so the file does not auto-execute on `npm install`), the package is a deliberate typosquat with no legitimate purpose, the exfiltration code is fully functional, and any installer who is tricked into running the file — or any republish that wires the lifecycle hook — produces immediate credential exfiltration.\n\n## Source: ghsa-malware (1929ec583cc78f943385264d03ada63b3f79e62cfa2d753eeb772fe408d0685f)\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","aliases":["GHSA-75g7-vcxw-p99c"],"modified":"2026-06-24T02:16:23.271372118Z","published":"2026-06-23T21:46:05Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","modified_time":"2026-06-23T21:46:05Z","versions":["99.0.6"],"id":"IN-MAL-2026-007376","import_time":"2026-06-23T22:31:27.518527737Z","sha256":"8612d9e090123bffb0bb3f0070be5486cb592c4d78958bb8fd62a8bce3a33834"},{"versions":["99.0.7"],"modified_time":"2026-06-23T21:46:12Z","import_time":"2026-06-23T22:31:27.616975501Z","id":"IN-MAL-2026-007377","sha256":"ca7d5154ecbbcc636198bd2314e1916e5f0673d37ab7b14caca2ea96ad5ac5e1","source":"amazon-inspector"},{"ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"modified_time":"2026-06-24T01:17:57Z","source":"ghsa-malware","id":"GHSA-75g7-vcxw-p99c","import_time":"2026-06-24T01:59:16.922956104Z","sha256":"1929ec583cc78f943385264d03ada63b3f79e62cfa2d753eeb772fe408d0685f"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/markdownlint-cli2-fix/v/99.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/markdownlint-cli2-fix/v/99.0.7"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-75g7-vcxw-p99c"}],"affected":[{"package":{"name":"markdownlint-cli2-fix","ecosystem":"npm","purl":"pkg:npm/markdownlint-cli2-fix"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["99.0.6","99.0.7"],"database_specific":{"indicators":{"evidence_files":[{"path":"postinstall.js","sha256":"a79a742307230c688f29fd9844cf9f41ff84d0eebf1571c18a818802fd16c38c","tlsh":"784293b541b0555835b5cf9da70f60026656f0077a46fea878ae33401fce65882b3efe"}],"package_integrity":[{"hashes":{"sha512_sri":"sha512-B3AV6OkhgHGT6oBnyaOBhMTK8xaYos4C/siYq/DA/RPC5Qo1oWLPdAeaI6YuzI2PIj0VoFTffgU/fCKMvmqBdQ==","sha1":"87745ac99cd62b03805320fb42c909a7c3920a67"},"filename":"markdownlint-cli2-fix-99.0.6.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/markdownlint-cli2-fix/MAL-2026-6353.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}