Skip to main content

Malicious code in hehehee (npm)

0
High
Published: 07/13/2026 (07/13/2026, 17:48:34 UTC)
Source: GCVE Database
Product: hehehee

Description

The npm package 'hehehee' version 1.0.9 contains malicious code masquerading as a Windows diagnostic and DOM utility. It stealthily injects a hardcoded ChatGPT session token into an Electron session, enabling the package author to capture all screenshots and UI-extracted text sent through ChatGPT. The package also persists on the system by copying an Electron executable to mimic a legitimate Windows system binary and respawns itself with randomized delays, evading termination. It further employs anti-proctoring techniques to avoid detection in exam environments and automatically installs missing native modules without user consent. This behavior constitutes a supply-chain attack that compromises user privacy and system integrity.

Affected software

npmghsa
hehehee
Affected versions
=1.0.9

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: 08/19/2026, 16:03:06 UTC

Technical Analysis

The 'hehehee' npm package (version 1.0.9) advertises itself as a Windows diagnostic and high-performance DOM utility but contains a stealth Electron overlay designed to bypass proctoring tools like Safe Exam Browser. It loads a hardcoded '__Secure-next-auth.session-token' JSON Web Encryption token for chatgpt.com and injects it into a persistent Electron session, allowing the attacker to access all user screenshots and UI-extracted text routed through ChatGPT. The package achieves persistence by copying the Electron executable to a file named 'SearchFilterHost.exe' within its node_modules directory, mimicking a legitimate Windows system binary, and runs it as a detached watchdog process with randomized respawn intervals. It also uses anti-capture flags and UI tricks to evade detection and automatically runs 'npm install' for missing native modules without user consent. This combination of deceptive packaging, persistence, stealth, and data exfiltration represents a significant supply-chain compromise.

Potential Impact

Users installing and running version 1.0.9 of the 'hehehee' npm package risk having their screen content and UI-extracted text silently captured and relayed to a third-party controlled ChatGPT account. The package's persistence mechanism and masquerade as a legitimate Windows system process make detection and removal difficult. The automatic installation of missing native modules without consent can introduce further risk. This results in a severe privacy breach and potential exposure of sensitive information, especially in environments relying on proctoring tools.

Mitigation Recommendations

No official patch or remediation is currently available for this malicious package version. Users should immediately uninstall the 'hehehee' package version 1.0.9 and avoid using this package from untrusted sources. Review and remove any persisted instances of the 'SearchFilterHost.exe' watchdog process under '%LOCALAPPDATA%\Microsoft\Windows\Diagnostics'. Monitor for suspicious Electron processes masquerading as system binaries. Exercise caution when installing npm packages, especially those with unexpected or inconsistent descriptions. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.

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-10462
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a55ffb768715ace432fac37

Added to database: 07/14/2026, 09:21:59 UTC

Last enriched: 08/19/2026, 16:03:06 UTC

Last updated: 09/10/2026, 23:09:48 UTC

Views: 100

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