Skip to main content

Malicious code in hehehe (npm)

0
Critical
Published: 07/16/2026 (07/16/2026, 18:41:40 UTC)
Source: GCVE Database
Product: hehehe

Description

The 'hehehe' npm package masquerades as an enterprise Windows diagnostic utility but functions as an anti-proctoring cheating tool that steals browser session cookies. It extracts cookies from Chrome, Edge, and Brave browsers to hijack ChatGPT logins and uses techniques to evade proctoring software. The package includes an undocumented Windows binary executed without verification, indicating malicious intent. Systems with this package installed should be considered fully compromised.

Affected software

npmghsa
hehehe
Affected versions
=2.0.2=2.0.1

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

AILast updated: 09/17/2026, 17:06:50 UTC

Technical Analysis

The 'hehehe' npm package is a malicious tool disguised as an enterprise Windows diagnostic utility. It contains code that steals browser session cookies from Chrome, Edge, and Brave by decrypting DPAPI-wrapped AES-256-GCM keys and reading Cookies SQLite databases for specific OpenAI-related domains. The stolen cookies are injected into the tool's Electron session to hijack ChatGPT logins. The package also masquerades its electron.exe process as a legitimate Windows Search subsystem process and employs techniques to evade proctoring software such as Testpad, AMCAT, and Safe Exam Browser. It executes an undocumented 27MB Windows PE binary without hash or signature verification, further indicating malicious behavior. The package is confirmed as a cheating tool with payloads targeting proctoring exams, and any system with it installed should be considered fully compromised.

Potential Impact

Installation or execution of this package results in full compromise of the affected system. The attacker gains access to browser session cookies for OpenAI-related services, enabling account hijacking. The package also runs persistent background processes that evade detection and removal. Secrets and keys stored on the compromised computer are at risk and should be rotated immediately from a clean system. Removal of the package alone does not guarantee eradication of all malicious components.

Mitigation Recommendations

Immediate removal of the 'hehehe' package is recommended. However, due to the full compromise risk, all secrets and keys stored on the affected system should be rotated from a different, uncompromised computer. Monitor for any persistent background processes masquerading as legitimate Windows services. There is no official patch or fix available; remediation requires system cleanup and credential rotation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-10732
Osv Schema Version
1.7.4
Aliases
["GHSA-f5qh-v92x-xcxj"]
Ecosystems
["npm"]

Threat ID: 6a5a00a391ae9bcd3f7ef000

Added to database: 07/17/2026, 10:14:59 UTC

Last enriched: 09/17/2026, 17:06:50 UTC

Last updated: 10/04/2026, 00:44:43 UTC

Views: 141

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses