Malicious code in ssr-auth-sync (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (7fe43338279cb894ffacc18ef9ec757d4b4fa8b603672b0bedcb4c00d9f8a806) On 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. ## Source: ghsa-malware (750b87dabb4a7421fb2a09f0e0f7b75b4a251f6c7c0d40c88055d44e2682c3cf) Any 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.
AI Analysis
Technical Summary
The 'ssr-auth-sync' npm package (version 1.6.16) includes malicious functionality in its index.js and lib/writer.js files. Upon requiring the package, it loads a script that fetches a base64-encoded payload from an anonymous pastebin URL and executes it via eval. Before execution, it collects a comprehensive object containing environment variables, hostname, username, platform, package version, and MAC addresses, exposing sensitive secrets to the attacker. Additionally, a covert secondary payload is fetched using obfuscated hex-encoded strings to evade detection. The package falsely brands itself as an SSR authentication sync module while mimicking the 'pino' logger's API and assets to increase installs. This results in immediate remote code execution and secret exfiltration on any system that includes this package in its dependency tree.
Potential Impact
Systems with 'ssr-auth-sync' version 1.6.16 installed are subject to immediate remote code execution upon requiring the package. Sensitive environment secrets, including AWS credentials, npm tokens, and CI secrets, are exfiltrated to attacker-controlled servers. The full compromise of the host environment is likely, and any stored secrets should be considered exposed. Removal of the package does not guarantee eradication of all malicious artifacts due to potential persistence mechanisms.
Mitigation Recommendations
No official patch or fix is currently available. Immediate removal of the 'ssr-auth-sync' package version 1.6.16 from all projects and systems is strongly recommended. All secrets and credentials stored on affected systems should be rotated immediately using a secure, uncompromised environment. Due to the high likelihood of full system compromise, a thorough incident response and forensic analysis should be conducted to identify and remediate any additional malicious presence.
Malicious code in ssr-auth-sync (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (7fe43338279cb894ffacc18ef9ec757d4b4fa8b603672b0bedcb4c00d9f8a806) On 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. ## Source: ghsa-malware (750b87dabb4a7421fb2a09f0e0f7b75b4a251f6c7c0d40c88055d44e2682c3cf) Any 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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'ssr-auth-sync' npm package (version 1.6.16) includes malicious functionality in its index.js and lib/writer.js files. Upon requiring the package, it loads a script that fetches a base64-encoded payload from an anonymous pastebin URL and executes it via eval. Before execution, it collects a comprehensive object containing environment variables, hostname, username, platform, package version, and MAC addresses, exposing sensitive secrets to the attacker. Additionally, a covert secondary payload is fetched using obfuscated hex-encoded strings to evade detection. The package falsely brands itself as an SSR authentication sync module while mimicking the 'pino' logger's API and assets to increase installs. This results in immediate remote code execution and secret exfiltration on any system that includes this package in its dependency tree.
Potential Impact
Systems with 'ssr-auth-sync' version 1.6.16 installed are subject to immediate remote code execution upon requiring the package. Sensitive environment secrets, including AWS credentials, npm tokens, and CI secrets, are exfiltrated to attacker-controlled servers. The full compromise of the host environment is likely, and any stored secrets should be considered exposed. Removal of the package does not guarantee eradication of all malicious artifacts due to potential persistence mechanisms.
Mitigation Recommendations
No official patch or fix is currently available. Immediate removal of the 'ssr-auth-sync' package version 1.6.16 from all projects and systems is strongly recommended. All secrets and credentials stored on affected systems should be rotated immediately using a secure, uncompromised environment. Due to the high likelihood of full system compromise, a thorough incident response and forensic analysis should be conducted to identify and remediate any additional malicious presence.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5934
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-5xwj-q4j9-v44q"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a42ed2327e9c79719933af4
Added to database: 06/29/2026, 22:09:39 UTC
Last enriched: 07/11/2026, 12:35:14 UTC
Last updated: 07/23/2026, 10:41:47 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.