Supply-chain threat intelligence

Incident detail

criticalnpm·maintainer compromise·osv

Malicious code in hehehe (npm)

hehehe

Risk score

92

AI summary

Indexed incident for hehehe (npm).

Description

Package is published as an 'enterprise Windows Diagnostic Utility' but is an anti-proctoring cheating tool that also steals the installer's browser session cookies. main.js invokes a bundled PowerShell routine that opens Chrome, Edge, and Brave 'Local State' files, decrypts the DPAPI-wrapped AES-256-GCM key, and reads each browser's Cookies SQLite database to extract cookies for.openai.com,.chatgpt.com, auth.openai.com, and auth0.openai.com; the decrypted cookies are then injected into the tool's own Electron session to hijack the installer's ChatGPT login. The bin launcher copies electron.exe to 'SearchFilterHost.exe' inside electron/dist to masquerade as a signed Windows Search subsystem process, spawns a detached background watchdog that respawns with random jitter when killed, and uses SetWindowDisplayAffinity WDA_EXCLUDEFROMCAPTURE plus a '--seb-child' Safe Exam Browser migration path to evade Testpad/AMCAT/SEB proctoring. Ships an undocumented 27MB Windows PE binary bin/uia_extract.exe that main.js executes via python "${pyPath}" || "${exePath}" with no hash or signature verification. SECTION_PROMPTS constants for AMCAT sections (GEN/DEB/APT/PRG) and a 'FINAL ANSWER:' extraction contract confirm the cheating-tool payload behind the diagnostic cover story.

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.

Technical details

Affected versions

=2.0.2=2.0.1

Indicators

  • Advisory IDs
    90%
  • affected version=2.0.275%
  • affected version=2.0.175%

Timeline

  1. Advisory published
  2. Indexed by ThreatPkg

Related incidents