MAL-2026-18366

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/dsh-redteam-mode/MAL-2026-18366.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18366
Aliases
  • GHSA-r4m9-8735-g966
Published
2026-10-29T05:23:36Z
Modified
2026-10-29T14:30:40Z
Summary
Malicious code in dsh-redteam-mode (npm)
Details

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

Source: amazon-inspector (4b10e8cb5b42b044dde881818592b20e43d2166d6641bd657bf90c2aa5a0c0a2)

Package name and shipped file names (score-rules.js, report-replay.js, store-core.js, tools.js, client.js) describe an offensive-security / red-team mode helper. Pattern matches fire on co-occurrence of curl invocations and HTTP GET/POST calls across several library files, which is expected shape for pentest tooling that constructs example requests, replays reports, and scores rules. No lifecycle script-driven install-time execution, no hardcoded exfiltration endpoint, no credential-store or home-directory secret enumeration, and no obfuscated remote fetch were identified in the evidence. The curl and POST tokens appear as part of library methods callers must explicitly invoke rather than install-time or import-time side effects. Offensive-security libraries are a legitimate category and installing them does not by itself attack the installer; however, the breadth of network/command primitives and the lack of traced-code confirmation of their call sites warrants human review.

Source: ghsa-malware (f8eb264928d14ca579b9ba3317a0dfd42d31091adc475676b63da142c54f44a9)

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-r4m9-8735-g966",
            "import_time":  "2026-10-29T06:29:38.362989651Z",
            "modified_time":  "2026-10-29T05:23:36Z",
            "sha256":  "f8eb264928d14ca579b9ba3317a0dfd42d31091adc475676b63da142c54f44a9",
            "source":  "ghsa-malware",
            "versions":  [
                "0.15.2"
            ]
        },
        {
            "id":  "IN-MAL-2026-022059",
            "import_time":  "2026-10-29T14:14:21.933025398Z",
            "modified_time":  "2026-10-29T13:43:27Z",
            "sha256":  "4b10e8cb5b42b044dde881818592b20e43d2166d6641bd657bf90c2aa5a0c0a2",
            "source":  "amazon-inspector",
            "versions":  [
                "0.15.2"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / dsh-redteam-mode

Package

Name
dsh-redteam-mode
View open source insights on deps.dev
Purl
pkg:npm/dsh-redteam-mode

Affected ranges

Affected versions

0.*
0.15.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":  "lib/client.js",
            "sha256":  "cdce3099d71f3166147fc113643ce28dfa0c527b41b8abfb5a476ed712b0a7a9",
            "tlsh":  "c97419a2e172403a5913d0a5a12ff82fb518640bee026975f9bc76005fce47d9fb96cc"
        },
        {
            "path":  "lib/report-replay.js",
            "sha256":  "2730c2492da678c61d0742b752f4b25c6fc3216f825ddb2706badcac330f1c14",
            "tlsh":  "1332a5e830596151036292f41a1b41f86575da63371b88edf4bc4a892fd58ace2f3fec"
        },
        {
            "path":  "lib/score-rules.js",
            "sha256":  "29072348e226aa881f5bab244c7677984ce8480f41af0c959dca76345f452e01",
            "tlsh":  "02433ab4cea9a4c0122195fd430f5115f518999b616e96a4fefc8e883fcc098cafbd71"
        },
        {
            "path":  "lib/store-core.js",
            "sha256":  "04a6c4eee0740e5cb8f3527f2ad1d18cc9a141957584d335d60f335dd67436ab",
            "tlsh":  "81843ab259f514241303d1b8290f5108f128e917758a98a4ffacd7887fc9578cabebf9"
        },
        {
            "path":  "lib/tools.js",
            "sha256":  "31708002ca5975b69621eeebdbcaa04a6a80e1b73fd01d44dce8fee5cf5c3cd8",
            "tlsh":  "23d307ca29b1f1314ed651a0681b311e7135d28b763628b0fb8d83242f4d6ddd2b6bbc"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "dsh-redteam-mode-0.15.2.tgz",
            "hashes":  {
                "sha1":  "60982a56fe904cd2e3c10e92757c469546ef05d3",
                "sha512_sri":  "sha512-ira5OUGTcmQUfRjs/H6NpITE2oVZgHydvG11f1eEDjPW+pttKaCE+tspaXObyfJon5K6JCbgFMBl5duE2/Ljnw=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/dsh-redteam-mode/MAL-2026-18366.json"