MAL-2026-10732

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hehehe/MAL-2026-10732.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10732
Aliases
  • GHSA-f5qh-v92x-xcxj
Published
2026-07-16T18:41:40Z
Modified
2026-07-17T01:04:21.712130466Z
Summary
Malicious code in hehehe (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (588dd776720f805d7d84a58c93ffcd21ed860e3fc21a48787d732eb6180b974d)

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 WDAEXCLUDEFROMCAPTURE plus a '--seb-child' Safe Exam Browser migration path to evade Testpad/AMCAT/SEB proctoring. Ships an undocumented 27MB Windows PE binary bin/uiaextract.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.

Source: ghsa-malware (7cca0ef30f44c71214488c1f778ef620d4d4fdf090fac4bcdebd5b95b99bf037)

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.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2026-07-16T18:41:40Z",
            "sha256": "588dd776720f805d7d84a58c93ffcd21ed860e3fc21a48787d732eb6180b974d",
            "versions": [
                "2.0.2"
            ],
            "import_time": "2026-07-16T18:54:02.533524121Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-010748"
        },
        {
            "source": "ghsa-malware",
            "sha256": "7cca0ef30f44c71214488c1f778ef620d4d4fdf090fac4bcdebd5b95b99bf037",
            "import_time": "2026-07-17T00:53:46.805263452Z",
            "modified_time": "2026-07-16T23:36:50Z",
            "id": "GHSA-f5qh-v92x-xcxj",
            "versions": [
                "2.0.2",
                "2.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / hehehe

Package

Affected ranges

Affected versions

2.*
2.0.1
2.0.2

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "hehehe-2.0.2.tgz",
            "hashes": {
                "sha1": "225084431b091c8ffa23dddcb47bf8c26434ac66",
                "sha512_sri": "sha512-8O1T+OMnPWXF1wgJMWVHEon/+q3SWUBCtvviLuuPEy8oU0sePSeNuik9moOkxqDXvF8bXAsjVFwAlSOZqXnfDg=="
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "1c3264a67812514c10f15f39e9f698a8f91e9027d1e60918fddcc4e01f7046adef8f69",
            "sha256": "21b61ec810331850d72423c40c5448e6cd310c4cfad6aed54f92cd7e7cac5f3a",
            "path": "bin/chrome_cookies.ps1"
        },
        {
            "tlsh": "ab73e6596021113184336f768b3b6d16f7369627e501a354beac83c92fb5418ceb2fee",
            "sha256": "a07ff5dad4541b04e5d28ec65676f9f4cc06d045648497c01b195687e9e25012",
            "path": "main.js"
        },
        {
            "tlsh": "73f15249a266133459b15fea5b331c0adb2bd123d5455384b89c83ca3f3642ccda6eee",
            "sha256": "f2873ba24da38c8f82baed1dd2c3d1a8ebd9538e6591e6a8def263ec2ce6c79c",
            "path": "bin/kalamasha-tool.js"
        },
        {
            "tlsh": "b95733b53ad598baf797e23dc923d598b32b34528332c95f07d488437ca75608e38267",
            "sha256": "e2ae53c70b7f10748301f06d8c741a0f50e70081f5b0439124aa74de8a255fec",
            "path": "bin/uia_extract.exe"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hehehe/MAL-2026-10732.json"