{"id":"MAL-2026-5506","summary":"Malicious code in argoncrypt (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ca59273c7d2b5b7797e301ab861354081dbbb6c47209858459be0ada49036167)\nOn require, index.js spawns a detached, unref'd Node child running lib/initializeCaller.js. That file decodes a base64-disguised URL (https://tomato-brunhilda-40.tiiny.site/index.json), fetches the response, and invokes it via `new Function.constructor('require', response)(require)` — granting the fetched code full Node capability with access to `require`. The destination is an anonymous free static-site host with no pinning, hash check, or signature verification; the fetch is retried up to 5 times. The C2 URL and HTTP header values are hidden as base64 strings stored under fake `process.env.DEV_*` defaults to evade casual review and string-search. The package additionally masquerades as a pino logger transport (exports `module.exports.pino`, ships a `smoke:pino` script, references a non-existent `./pino` module) despite a name unrelated to logging — a cover story for the dropper. Any developer or build system that installs and imports argoncrypt will silently execute attacker-controlled code with full host privileges.\n\n## Source: ghsa-malware (94563f3221aa73ae8a4de5195a6f6a3e8cef16eb4c1f03bc8d1adc9ce9b72679)\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-h3m2-g8jh-9p37"],"modified":"2026-06-12T20:01:46.932493498Z","published":"2026-06-10T14:09:55Z","database_specific":{"malicious-packages-origins":[{"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"modified_time":"2026-06-10T14:09:56Z","import_time":"2026-06-10T15:25:13.635933269Z","source":"ghsa-malware","id":"GHSA-h3m2-g8jh-9p37","sha256":"94563f3221aa73ae8a4de5195a6f6a3e8cef16eb4c1f03bc8d1adc9ce9b72679"},{"modified_time":"2026-06-12T19:06:43Z","sha256":"ca59273c7d2b5b7797e301ab861354081dbbb6c47209858459be0ada49036167","import_time":"2026-06-12T19:43:55.48946496Z","source":"amazon-inspector","id":"IN-MAL-2026-005989","versions":["1.2.3"]}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-h3m2-g8jh-9p37"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/argoncrypt/v/1.2.3"}],"affected":[{"package":{"name":"argoncrypt","ecosystem":"npm","purl":"pkg:npm/argoncrypt"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.2.3"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"23436f977c9bbe6d302f0f94e191b3dfd938e5a0417ec098d38b60b0ed0cb14f","path":"lib/initializeCaller.js","tlsh":"9511c08e61fc200c046512e6b62f18126021e8673d86d5e47acc835b1f9567f7d936df"},{"sha256":"1f51184c197102444a2c8a23e4a8e54a6479750420512922fcb5d5f795c33911","path":"index.js","tlsh":"0f318545b5f21259126d98c4f6b4a5263cdf9437331b76b1cded93952bce2080032bc7"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/argoncrypt/MAL-2026-5506.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}