MAL-2026-18738

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/kampodine/MAL-2026-18738.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18738
Aliases
  • GHSA-j6x3-5wfw-v23f
Published
2026-11-06T21:27:59Z
Modified
2026-11-13T03:45:12Z
Summary
Malicious code in kampodine (npm)
Details

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

Source: amazon-inspector (65895d5a556feb838b2f186ff7afcc4a8c4c105b5013df0657166bd5eff1a624)

cli.js, the package's declared bin entrypoint, prepends an obfuscated IIFE hidden behind roughly 360 leading tab characters to the real deploy-tool CLI dispatch. The blob uses XOR-masked integer constants, unicode-escape identifiers that spell standard Node APIs (length, charAt, join, substring, fromCharCode), a seeded Fisher–Yates string shuffle (spin/peel), and resolves Function.constructor via peel[r.substring(0,7)] to build and immediately invoke a Function from a decoded ~13 KB body. The IIFE is invoked as (global, require) and writes require and module onto global, giving the dynamically constructed function arbitrary access to Node's require, filesystem, child_process and network APIs. The obfuscated payload is not referenced or disclosed in README.md or CHANGELOG.md, and is placed adjacent to otherwise legitimate-looking Kamal-style deploy shell scripts under scripts/. Because cli.js is the bin target, the hidden code runs every time an operator invokes the advertised CLI, with the ambient privileges of the user running the deploy tool.

Source: ghsa-malware (42480f59964b6128cd6e0d2fdb239ac695aa0ac534f7d4577ea56331cb105715)

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": "GHSA-j6x3-5wfw-v23f",
            "import_time": "2026-11-06T22:17:12.815944105Z",
            "modified_time": "2026-11-06T21:28:00Z",
            "sha256": "42480f59964b6128cd6e0d2fdb239ac695aa0ac534f7d4577ea56331cb105715",
            "source": "ghsa-malware",
            "versions": [
                "0.8.0"
            ]
        },
        {
            "id": "IN-MAL-2026-022712",
            "import_time": "2026-11-13T03:36:36.177658333Z",
            "modified_time": "2026-11-13T03:35:52Z",
            "sha256": "65895d5a556feb838b2f186ff7afcc4a8c4c105b5013df0657166bd5eff1a624",
            "source": "amazon-inspector",
            "versions": [
                "0.8.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / kampodine

Package

Affected ranges

Affected versions

0.*
0.8.0

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": "cli.js",
            "sha256": "6bcdd5055c199ea06a81f2bf9ddc77501ce8f1b658b767551bf8f8e6a7e5ef59",
            "tlsh": "c472bf905b2b5c1c89f0b60a7c3b6015efbc14b9554f3260b52fb2643b0ea5a5724b5e"
        }
    ],
    "package_integrity": [
        {
            "filename": "kampodine-0.8.0.tgz",
            "hashes": {
                "sha1": "e22dacdc0b3c9910749d1bdf1f0db178fe4b22f8",
                "sha512_sri": "sha512-x31N16UPreB0xKHQZ2oRx27bYYoKzU3Vm3A0MWGeZI8XZwZkCTxViANjWx4+ZRTr6JYM2AHhY5tMJuZmMB4w7Q=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/kampodine/MAL-2026-18738.json"