MAL-2026-6790

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/debugcli/MAL-2026-6790.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6790
Aliases
  • GHSA-86fh-6m37-f9v4
Published
2026-07-03T20:05:34Z
Modified
2026-07-08T15:32:22.489142405Z
Summary
Malicious code in debugcli (npm)
Details

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

Source: amazon-inspector (ff9ad8188112d91f0ea673971f4421ca96dc7943ba12d65c7339c1aa75c2226e)

The package name debugcli shadows the popular debug package, and index.js is a thin re-export (module.exports = require('debug')) so callers observe legitimate behavior. The real payload runs via "postinstall": "node install.js" in package.json. On install, install.js performs: (1) bulk credential-file harvest — reads ~/.aws/credentials, ~/.aws/config, ~/.npmrc, ~/.ssh/config, ~/.pypirc, ~/.netrc, ~/.docker/config.json, ~/.kube/config, gcloud applicationdefaultcredentials, .git-credentials, Azure tokens, composer auth, and walks the current working directory upward collecting .env, .env.local, .env.production, .env.development; (2) process.env scraping — iterates process.env and filters keys matching TOKEN/SECRET/PASSWORD/APIKEY/AUTH/PRIVATE/AWS*/GITHUB_*/NPM_*/OPENAI/ANTHROPIC/DATABASEURL/STRIPE/TWILIO patterns; (3) browser wallet theft — locates Chrome extension Local Extension Settings for MetaMask (extension id nkbihfbeogaeaoehlefnkodbecgpgknn) and TrustWallet (egjidjbpglichdcondbcbdnbeeppgdph) and archives the vault directories via powershell Compress-Archive on Windows or tar czf... --exclude=LOCK on Unix; (4) exfiltration — POSTs collected env vars, credential files,.env contents, and wallet archives to api.telegram.org/bot<token>/sendMessage and /sendDocument, with the bot token and chatid stored as XOR-encoded byte arrays (ENC_TOKEN, ENC_CHAT) decoded at runtime using the current lodash package version fetched from registry.npmjs.org/lodash dist-tags.latest as the XOR key; (5) evasion — isSandbox() checks CPU/RAM, hostname regex (sandbox|malware|virus|sample|cuckoo|any.run|hybrid), analysis env vars, and HOME directory age, and skips execution on analysis machines; a per-machine hashed lockfile prevents re-execution within 24h; and finally fs.unlinkSync(__filename) removes install.js after exfil.

Source: ghsa-malware (b27bc49b2d8ef30848d427f7d6ec702eaed3b5bcc49f5fd4384183f228e2c50a)

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.

Source: ossf-package-analysis (dd4fa31ed29d493ac05d6ec17a90f51fe68008b674268e1751c4b25792703b8d)

The OpenSSF Package Analysis project identified 'debugcli' @ 4.3.9 (npm) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.
Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-07-05T23:26:10.134020118Z",
            "source": "ossf-package-analysis",
            "modified_time": "2026-07-05T22:53:57Z",
            "sha256": "dd4fa31ed29d493ac05d6ec17a90f51fe68008b674268e1751c4b25792703b8d",
            "versions": [
                "4.3.9"
            ]
        },
        {
            "import_time": "2026-07-05T23:26:10.216110918Z",
            "source": "ossf-package-analysis",
            "modified_time": "2026-07-03T20:05:34Z",
            "sha256": "fe37371be7402296078fd35f37924e6554d9ac7974d4318282c5c1456388c3b7",
            "versions": [
                "4.3.5"
            ]
        },
        {
            "import_time": "2026-07-07T16:09:37.8401291Z",
            "source": "ghsa-malware",
            "modified_time": "2026-07-07T15:29:38Z",
            "sha256": "b27bc49b2d8ef30848d427f7d6ec702eaed3b5bcc49f5fd4384183f228e2c50a",
            "id": "GHSA-86fh-6m37-f9v4",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ]
        },
        {
            "import_time": "2026-07-08T15:19:06.127333734Z",
            "source": "amazon-inspector",
            "modified_time": "2026-07-08T14:34:04Z",
            "sha256": "ff9ad8188112d91f0ea673971f4421ca96dc7943ba12d65c7339c1aa75c2226e",
            "id": "IN-MAL-2026-008068",
            "versions": [
                "4.3.8"
            ]
        },
        {
            "import_time": "2026-07-08T15:19:06.550071712Z",
            "source": "amazon-inspector",
            "modified_time": "2026-07-08T14:34:28Z",
            "sha256": "6eaaeee205d88b0906246a742c5583487758ee584373457a5a0b6a60688e2ff8",
            "id": "IN-MAL-2026-008071",
            "versions": [
                "4.3.5"
            ]
        },
        {
            "import_time": "2026-07-08T15:19:06.434614722Z",
            "source": "amazon-inspector",
            "modified_time": "2026-07-08T14:34:18Z",
            "sha256": "831256acce5cdb9e52854ada150a415928cb28c9dca30e31efc96259287c0a29",
            "id": "IN-MAL-2026-008070",
            "versions": [
                "4.3.7"
            ]
        },
        {
            "import_time": "2026-07-08T15:19:06.028558117Z",
            "source": "amazon-inspector",
            "modified_time": "2026-07-08T14:33:56Z",
            "sha256": "8f822b2d8f0ae21a6e25a1f4ac0a5dff482e359852d575047deffe15124b6a64",
            "id": "IN-MAL-2026-008067",
            "versions": [
                "4.4.1"
            ]
        },
        {
            "import_time": "2026-07-08T15:19:06.680705478Z",
            "source": "amazon-inspector",
            "modified_time": "2026-07-08T14:34:40Z",
            "sha256": "bde7b9c84fd8da0192bbab30b047994ad5cc2e834c6b5e7129b7230526258a36",
            "id": "IN-MAL-2026-008072",
            "versions": [
                "4.3.6"
            ]
        },
        {
            "import_time": "2026-07-08T15:19:06.325148623Z",
            "source": "amazon-inspector",
            "modified_time": "2026-07-08T14:34:11Z",
            "sha256": "f3ed5d51fee2f7766b66f85a3396e49568c22be9970cab60647102b7f70ab1e1",
            "id": "IN-MAL-2026-008069",
            "versions": [
                "4.3.9"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / debugcli

Package

Affected ranges

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

Affected versions

4.*
4.3.5
4.3.6
4.3.7
4.3.8
4.3.9
4.4.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/debugcli/MAL-2026-6790.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "5002862896ed258d919235c64457fe2a78aba979cdb3f1bab465af4d2d14cbbe",
            "path": "package.json",
            "tlsh": "e7d02b144d7095331ac566a19e674006bfb51e57010cbc5c23c71148475e67749fe21f"
        },
        {
            "sha256": "62c57137e671c270c1d86fcd4916418facf3ac52764cd64fe0c028f483b24a48",
            "path": "install.js",
            "tlsh": "a94293fb16f71128b157e6ac960ba015212af143364af8a0b95c72951fce63481f2efd"
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "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",
        "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",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "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."
    }
]