MAL-2026-12393

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/invest-module-cookie/MAL-2026-12393.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12393
Aliases
  • GHSA-j5gr-vpx9-45fh
Published
2026-08-05T12:32:28Z
Modified
2026-08-20T13:45:11Z
Summary
Malicious code in invest-module-cookie (npm)
Details

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

Source: amazon-inspector (6c3f53c4d50d2dedd530c65015b26a902950e6e2bbef3cda3560a661d4aad178)

On require('invest-module-cookie'), index.js loads _adapter.js which selects an OS-specific asset path, downloads an opaque binary from one of three obfuscated *.workers.dev hosts (oob-worker.cf102-baf.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf103-070.workers.dev) with a DNS-TXT covert-channel fallback that base64-reassembles chunks from *.dl.well1.site (tin/tina/ldr/win subdomains), writes the payload to /var/tmp or %TEMP% under a disguised name, chmods it 0755, and detaches-spawns it via /bin/sh -c or cmd.exe. Destination hostnames are assembled at runtime from split string fragments (e.g. ['oob-worker.cf102-baf.wo','rkers.dev'].join('')) to defeat static host-scanning. The package is advertised as reusable cookie module components, and the fetched binary bears no relationship to that stated purpose; publisher identity does not match any of the hardcoded hosts.

Source: ghsa-malware (29dfcd241e45bbbefbb5df82057898c212a9e042de6b484de1be7f2347cf7f01)

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": [
        {
            "id": "IN-MAL-2026-014697",
            "import_time": "2026-08-05T13:08:38.498080062Z",
            "modified_time": "2026-08-05T12:32:28Z",
            "sha256": "6c3f53c4d50d2dedd530c65015b26a902950e6e2bbef3cda3560a661d4aad178",
            "source": "amazon-inspector",
            "versions": [
                "20.8.2"
            ]
        },
        {
            "id": "GHSA-j5gr-vpx9-45fh",
            "import_time": "2026-08-20T13:33:26.05348789Z",
            "modified_time": "2026-08-20T13:04:53Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "29dfcd241e45bbbefbb5df82057898c212a9e042de6b484de1be7f2347cf7f01",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / invest-module-cookie

Package

Name
invest-module-cookie
View open source insights on deps.dev
Purl
pkg:npm/invest-module-cookie

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

20.*
20.8.2

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "_adapter.js",
            "sha256": "723ee1e1bb51b95d44098da135cdd76e0ca93acbf20e19086299ac4edf5814b7",
            "tlsh": "7ea1849a166a70188b70abe1c71b8416fa5bf5a33780c2c0f75c98845f7212483b2efc"
        }
    ],
    "package_integrity": [
        {
            "filename": "invest-module-cookie-20.8.2.tgz",
            "hashes": {
                "sha1": "73a91026c233938625a78af99957d408b73f8b90",
                "sha512_sri": "sha512-RlunQ40rgCTERmAyoT7iMzNCS9E6SV31KSN3O4+kNwLpjG3RNqoJbdQsASsXPIcE2SfZAYcLNhA8k3iGwzR/jg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/invest-module-cookie/MAL-2026-12393.json"