Malicious code in marked-prettier (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (8bfc3b729c08e0882fe0f653f436c2b7e1fdae0379748c12e0f9266f6c69c963) The postinstall script scripts/install-check.cjs fetches a JSON config from https://trabalhos-flax.vercel.app/config/clob-math.json (read from package.json 'homepage'), downloads a tgz from a URL contained in that config, extracts it to.peer/, runs `npm install` inside the extracted directory, and then require()s the resulting peer-math.js module and invokes syncSession() on it. There is no hash or signature verification and the remote endpoint is mutable, so whoever controls that domain gains arbitrary code execution on any machine that runs `npm install marked-prettier`. The package name resembles the popular `marked` and `prettier` packages, and the README advertises an 'ANSI helpers for bot logs' API (tag, money, box, kv, stripAnsi) that does not exist in the shipped code — the actual index.js is an unrelated Kelly-stake helper. The dropper uses innocuous names ('peer sync', 'PSM_PEER_URL', 'peer-math.js', 'syncSession') and its error handler logs '[eslint-jest] install check skipped', impersonating a third unrelated package. The layered name/README/log-prefix deception around a mutable-URL install-time dropper is a deliberate supply-chain attack, not a misconfiguration. ## Source: ghsa-malware (2f917fbc4322a166d338c424769218e664f0cfa9d726062a45d896490ca73079) 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 marked-prettier package on npm has been identified as containing malicious code. Installation or execution of this package results in a full compromise of the affected computer, potentially allowing an attacker complete control. Due to the nature of the compromise, secrets and keys stored on the system are at risk and must be rotated immediately from a different, secure machine. The package removal is necessary but insufficient to fully remediate the infection, as additional malicious artifacts may persist.
Potential Impact
Full system compromise on any computer with the marked-prettier package installed or running. All stored secrets and keys on the system are exposed and must be rotated. The attacker may maintain persistent access beyond the presence of the package itself.
Mitigation Recommendations
Remove the marked-prettier package immediately. Rotate all secrets and keys stored on the affected system from a separate, trusted computer. Conduct a thorough investigation and remediation of the affected system to identify and remove any additional malicious software introduced by the package installation.
Malicious code in marked-prettier (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (8bfc3b729c08e0882fe0f653f436c2b7e1fdae0379748c12e0f9266f6c69c963) The postinstall script scripts/install-check.cjs fetches a JSON config from https://trabalhos-flax.vercel.app/config/clob-math.json (read from package.json 'homepage'), downloads a tgz from a URL contained in that config, extracts it to.peer/, runs `npm install` inside the extracted directory, and then require()s the resulting peer-math.js module and invokes syncSession() on it. There is no hash or signature verification and the remote endpoint is mutable, so whoever controls that domain gains arbitrary code execution on any machine that runs `npm install marked-prettier`. The package name resembles the popular `marked` and `prettier` packages, and the README advertises an 'ANSI helpers for bot logs' API (tag, money, box, kv, stripAnsi) that does not exist in the shipped code — the actual index.js is an unrelated Kelly-stake helper. The dropper uses innocuous names ('peer sync', 'PSM_PEER_URL', 'peer-math.js', 'syncSession') and its error handler logs '[eslint-jest] install check skipped', impersonating a third unrelated package. The layered name/README/log-prefix deception around a mutable-URL install-time dropper is a deliberate supply-chain attack, not a misconfiguration. ## Source: ghsa-malware (2f917fbc4322a166d338c424769218e664f0cfa9d726062a45d896490ca73079) 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 marked-prettier package on npm has been identified as containing malicious code. Installation or execution of this package results in a full compromise of the affected computer, potentially allowing an attacker complete control. Due to the nature of the compromise, secrets and keys stored on the system are at risk and must be rotated immediately from a different, secure machine. The package removal is necessary but insufficient to fully remediate the infection, as additional malicious artifacts may persist.
Potential Impact
Full system compromise on any computer with the marked-prettier package installed or running. All stored secrets and keys on the system are exposed and must be rotated. The attacker may maintain persistent access beyond the presence of the package itself.
Mitigation Recommendations
Remove the marked-prettier package immediately. Rotate all secrets and keys stored on the affected system from a separate, trusted computer. Conduct a thorough investigation and remediation of the affected system to identify and remove any additional malicious software introduced by the package installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10143
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-hwmr-cmgq-wr7x"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520ee368715ace4391a9c1
Added to database: 07/11/2026, 09:37:39 UTC
Last enriched: 07/11/2026, 10:06:09 UTC
Last updated: 07/31/2026, 14:02:41 UTC
Views: 27
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.