{"id":"MAL-2026-15599","summary":"Malicious code in verify-contract-viem (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d1037ebeeb5eff8da3b46c8275a09151604157ddc24db244d76d27d97bfdddad)\nbin/cli.js executes `whoami` and reads os.hostname() / os.userInfo() / os.platform(), then POSTs those values to the hardcoded endpoint https://oobme.kunalsharma0553.workers.dev/r/7bq6fz3l15r9. The destination is an author-controlled Cloudflare Workers URL unrelated to any legitimate contract-verification purpose implied by the package name. The behavior fires when the CLI is invoked (e.g. via `npx verify-contract-viem`), transmitting installer host identifiers to a third party with no consent, disclosure, or opt-out. The shape matches an out-of-band reconnaissance beacon commonly used in dependency-confusion / typosquat campaigns.\n\n## Source: ghsa-malware (96088ea03c9a9a4cb367f7e12257fcb71a50de9e3499af33886f1aea873691fc)\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 (3996f3daf2ae95942dab5a1961f8e5c1c267aa093c073002b5771860fe826d66)\nThe OpenSSF Package Analysis project identified 'verify-contract-viem' @ 1.0.0 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n\n- The package executes one or more commands associated with malicious behavior.\n","aliases":["GHSA-rhm2-cc4p-vfxq"],"modified":"2026-09-03T06:00:07.094349464Z","published":"2026-08-30T08:03:01Z","database_specific":{"malicious-packages-origins":[{"source":"ossf-package-analysis","versions":["1.0.0"],"import_time":"2026-08-30T23:14:55.733422796Z","modified_time":"2026-08-30T08:03:01Z","sha256":"3996f3daf2ae95942dab5a1961f8e5c1c267aa093c073002b5771860fe826d66"},{"import_time":"2026-08-31T17:16:15.146129287Z","modified_time":"2026-08-31T16:50:24Z","sha256":"d1037ebeeb5eff8da3b46c8275a09151604157ddc24db244d76d27d97bfdddad","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-019183"},{"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"sha256":"96088ea03c9a9a4cb367f7e12257fcb71a50de9e3499af33886f1aea873691fc","source":"ghsa-malware","id":"GHSA-rhm2-cc4p-vfxq","import_time":"2026-09-03T05:28:35.848379Z","modified_time":"2026-09-01T22:42:24Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/verify-contract-viem/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-rhm2-cc4p-vfxq"}],"affected":[{"package":{"name":"verify-contract-viem","ecosystem":"npm","purl":"pkg:npm/verify-contract-viem"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"sha256":"7bb9e78369c5381ad92a3997176d860469dcbd35fef2d80123dadf978eb15649","tlsh":"94112dea50f553b0bfa22c944d2f50003297c7673c09fcc0faac0359af4ea5c41325a8","path":"bin/cli.js"}],"package_integrity":[{"filename":"verify-contract-viem-1.0.0.tgz","hashes":{"sha1":"58b73109b15f48e2df9593ea0416fca68dbf5b6d","sha512_sri":"sha512-6IP97kUFnvbW9U78sOmBHS1+fhkBPilVFfqCp89rwlGjmbMVf2hT1zRQuveh8hbyR+nyQ0vsEQos6uRDxGVokA=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/verify-contract-viem/MAL-2026-15599.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}