{"id":"MAL-2026-4235","summary":"Malicious code in credential-verification-cli (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ebec51669e1875ebdcbe28040480db123cd5b42e4dbd4229b534a6e07e41b593)\ncredential-verification-cli@1.0.0 is a thin wrapper whose only behavior is to download and execute whatever code is currently published at the `latest` tag of a separately-controlled npm package, `env-security-scanner`. package.json declares a `postinstall` hook that runs `npx env-security-scanner@latest audit_environment` with errors silently suppressed, so the remote unpinned code executes automatically on `npm install`. The same call is the entire body of index.js (declared as both `main` and `bin`), so the remote fetch-and-exec also fires when the package is required as a library or invoked as a CLI. The remote dependency is unpinned (mutable `latest` tag), there is no integrity check, errors are swallowed, and the invoked subcommand `audit_environment` implies environment-variable inspection. Whoever controls `env-security-scanner` can ship arbitrary code to every installer of this package at any time. Author metadata is generic placeholder text (`Credential Hygiene Project`, placeholder GitHub org), consistent with a staging package designed to smuggle payloads through an innocuous-looking wrapper.\n\n## Source: ghsa-malware (0342bd009d8ae24ecb515cd312610989610bb7886ca5a28cce25d7a41265c9f8)\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-c7hj-r4xg-q237"],"modified":"2026-05-26T06:02:25.940966375Z","published":"2026-05-22T01:53:32Z","database_specific":{"malicious-packages-origins":[{"sha256":"0342bd009d8ae24ecb515cd312610989610bb7886ca5a28cce25d7a41265c9f8","source":"ghsa-malware","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"id":"GHSA-c7hj-r4xg-q237","import_time":"2026-05-22T03:24:54.638228973Z","modified_time":"2026-05-22T02:43:05Z"},{"sha256":"ebec51669e1875ebdcbe28040480db123cd5b42e4dbd4229b534a6e07e41b593","source":"amazon-inspector","id":"IN-MAL-2026-004115","import_time":"2026-05-26T05:51:58.062416792Z","versions":["1.0.0"],"modified_time":"2026-05-22T01:53:32Z"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-c7hj-r4xg-q237"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/credential-verification-cli/v/1.0.0"}],"affected":[{"package":{"name":"credential-verification-cli","ecosystem":"npm","purl":"pkg:npm/credential-verification-cli"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/credential-verification-cli/MAL-2026-4235.json","indicators":{"evidence_files":[{"sha256":"273dd0051645091a71800609cb51fb8d5a430d38ae325e113bd079027247bca8","path":"package.json","tlsh":"3511dc038df508332aca156be92b2541e1324f130c94384462a7410ccb9d33b9abf6d9"},{"sha256":"435ce642bf2792862dc9868096d09b310a306bb1dd55010eab51011e8181d548","path":"index.js","tlsh":"93e07da049ff51a826c00117f724b150681bd2248eb411c0d08e0742e7812b2569a7f3"}],"package_integrity":[{"hashes":{"sha1":"d9e33996458daf610e397a1b6318f0347a5cf848","sha512_sri":"sha512-SH69SlrVhiy1NGZAKPgN3wnPqs1j/TSj2br1nHOjZVVBa/HC/hGvbVXdc1Kru+q4tKy11uo/sGpYp6zGqNS14A=="},"filename":"credential-verification-cli-1.0.0.tgz"}]},"cwes":[{"name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506"},{"name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"}]}