Malicious code in brat-codex (npm)
Description
The npm package 'brat-codex' was found to contain malicious code or depends on a package with malicious code. Any system with this package installed should be considered fully compromised, and all secrets and keys stored on that system must be rotated immediately from a different machine. Removing the package alone may not fully eliminate the malicious presence due to potential full system compromise.
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 'brat-codex' package in the npm ecosystem has been identified as malicious either because it contains harmful code directly or because it depends on another malicious package. This compromises any computer running or having installed this package, potentially granting attackers full control. The advisory recommends immediate secret rotation from a separate device and removal of the package, though removal may not guarantee full remediation due to the extent of compromise.
Potential Impact
Systems with 'brat-codex' installed are considered fully compromised, risking exposure of all stored secrets and keys. Attackers may have gained full control over the affected machines, leading to potential data theft, unauthorized access, and persistent malicious presence.
Defensive Guidance
Remove the 'brat-codex' package immediately. Rotate all secrets and keys from a different, uncompromised computer. Due to the likelihood of full system compromise, further forensic analysis and remediation may be necessary beyond package removal.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15580
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-63wg-22hx-h5q4"]
- Ecosystems
- ["npm"]
Threat ID: 6a95a108acd9273b4947eb39
Added to database: 08/31/2026, 15:43:04 UTC
Last enriched: 09/08/2026, 17:23:28 UTC
Last updated: 10/02/2026, 15:20:47 UTC
Views: 54
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.