{"id":"MAL-2026-5934","summary":"Malicious code in ssr-auth-sync (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7fe43338279cb894ffacc18ef9ec757d4b4fa8b603672b0bedcb4c00d9f8a806)\nOn require('ssr-auth-sync'), index.js loads lib/writer.js, which immediately fetches a base64-hidden URL (https://www.jsonkeeper.com/b/PJNZP, an anonymous pastebin-style host) via axios and passes the response body to eval. Just before the fetch, writer.js assembles an object containing the full process.env spread plus os.hostname(), os.userInfo().username, os.platform(), package version, and MAC addresses; this object is in lexical scope when eval runs, giving the attacker-served code a ready-to-exfiltrate payload of every secret in the installer's or CI's environment (AWS keys, npm tokens, CI secrets, etc.). A second covert channel is also present: a hex-decoding helper g() and an array hl containing hex-encoded strings that decode to 'axios', 'get', 'https://www.jsonkeeper.com/b/HY6M6', and 'then' — a parallel dropper hidden from string scanners. The package falsely advertises itself as an 'SSR auth sync' module while exporting a pino-shaped API and shipping pino-*.png brand assets, impersonating the popular pino logger to attract installs. Any project that adds this package to its dependency tree executes attacker-controlled code in its Node process the moment the module is required.\n\n## Source: ghsa-malware (750b87dabb4a7421fb2a09f0e0f7b75b4a251f6c7c0d40c88055d44e2682c3cf)\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-5xwj-q4j9-v44q"],"modified":"2026-06-29T17:31:52.845088414Z","published":"2026-06-16T22:20:18Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-06-16T22:20:18Z","versions":["1.6.16"],"id":"IN-MAL-2026-006844","source":"amazon-inspector","import_time":"2026-06-16T23:03:43.474776987Z","sha256":"7fe43338279cb894ffacc18ef9ec757d4b4fa8b603672b0bedcb4c00d9f8a806"},{"modified_time":"2026-06-29T14:00:15Z","import_time":"2026-06-29T17:14:01.247441679Z","id":"GHSA-5xwj-q4j9-v44q","source":"ghsa-malware","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"sha256":"750b87dabb4a7421fb2a09f0e0f7b75b4a251f6c7c0d40c88055d44e2682c3cf"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/ssr-auth-sync/v/1.6.16"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-5xwj-q4j9-v44q"}],"affected":[{"package":{"name":"ssr-auth-sync","ecosystem":"npm","purl":"pkg:npm/ssr-auth-sync"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.6.16"],"database_specific":{"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"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ssr-auth-sync/MAL-2026-5934.json","indicators":{"package_integrity":[{"hashes":{"sha1":"b3ec44940958a233c01182eed43bc06a0db0df62","sha512_sri":"sha512-o4Bkup16hCe8wKZDbJf8T3fhup+iEHfXFAabiM5z0x2ud5xQsOga7lZWE8tOqd1CumGyAteT42U/2GRV4B1fkA=="},"filename":"ssr-auth-sync-1.6.16.tgz"}],"evidence_files":[{"path":"lib/writer.js","tlsh":"4f2111a1d3966810223007b248db4460bae5f3612093419cb9bcd6c92ff38e2b154fe8","sha256":"4ef10bd495900ba99f11ec69a5420d51fb2e5caa6a11d3656756df150a13524e"},{"path":"index.js","tlsh":"8901125168f1c04a0e89c0e0b97ce8157ca9c83b71067eb0a4ed8a8c370e10c26b1fd3","sha256":"442b6732a28357fc4f8696656b08e483f2c14bb9f3358c4c6111adb3bfe797f6"}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}