Malicious code in @beloved-lenora/opencode-stats (npm)
Description
The npm package @beloved-lenora/opencode-stats contains malicious code that can fully compromise any computer on which it is installed or running. The compromise may lead to unauthorized access to secrets and keys stored on the affected system. Removal of the package alone does not guarantee elimination of all malicious software introduced by it. Immediate rotation of all secrets and keys from a separate, uncompromised device is strongly recommended.
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 @beloved-lenora/opencode-stats npm package is identified as containing malicious code capable of fully compromising the host computer. According to the source details, installation or execution of this package grants an attacker full control over the system, potentially exposing all stored secrets and keys. Due to the depth of compromise, simply uninstalling the package may not remove all malicious artifacts or backdoors introduced. The advisory strongly recommends rotating all secrets and keys from a different, secure machine to mitigate ongoing risk.
Potential Impact
Full system compromise on any computer with the package installed or running. Exposure and potential theft of all secrets and keys stored on the system. Persistent malicious presence may remain even after package removal.
Defensive Guidance
Remove the @beloved-lenora/opencode-stats package immediately. Rotate all secrets and keys from a separate, uncompromised device to prevent unauthorized access. Because the system may be fully compromised, consider rebuilding or thoroughly cleaning the affected machine to ensure removal of all malicious software.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17908
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-f4h2-68pg-ffhj"]
- Ecosystems
- ["npm"]
Threat ID: 6ad2aef52cdf04f656455ba7
Added to database: 10/16/2026, 23:10:45 UTC
Last enriched: 10/16/2026, 23:15:08 UTC
Last updated: 10/16/2026, 23:15:08 UTC
Views: 5
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.