MAL-2026-17624

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/documenclient/MAL-2026-17624.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-17624
Aliases
  • GHSA-648r-w4vm-vvvp
Published
2026-10-05T17:31:00Z
Modified
2026-10-08T04:00:04Z
Summary
Malicious code in documenclient (npm)
Details

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

Source: amazon-inspector (ffd20318a8d48dc20fee95097373ebd1039481031985164a651d2b68d366565a)

documenclient@1.0.5 publishes an npm package whose only shipped content is a heavily obfuscated PowerShell script embedded in the README. The script hides its console window via ShowWindow(hWnd, 0), positions the window off-screen at (-32000, -32000) via SetWindowPos, sleeps a randomized interval, concatenates ~140 string fragments into a base64 blob, XOR-decodes it with key 89, and executes the resulting payload via reflective [ScriptBlock]::Create invocation assembled from char-code type and method names. The declared main (index.js) is absent and files is empty, so the artifact has no legitimate JavaScript functionality — the dropper script is the entire payload. Console hiding, off-screen window placement, randomized sleep jitter, dynamic type/method resolution, and XOR+base64 layering have no legitimate purpose in an npm README and are canonical dropper and anti-analysis techniques. The decoded payload is not inspectable from the obfuscated form shipped, so the final behavior on a Windows host executing the script is unknown but attacker-controlled.

Source: ghsa-malware (fd77316cd00f6397a05779a443f939cd3a5e09efa8321c7d52bd4623ffe2855f)

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-648r-w4vm-vvvp",
            "import_time":  "2026-10-05T18:34:10.826030975Z",
            "modified_time":  "2026-10-05T17:31:02Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "fd77316cd00f6397a05779a443f939cd3a5e09efa8321c7d52bd4623ffe2855f",
            "source":  "ghsa-malware"
        },
        {
            "id":  "IN-MAL-2026-021126",
            "import_time":  "2026-10-08T03:50:29.571086558Z",
            "modified_time":  "2026-10-08T03:39:50Z",
            "sha256":  "ffd20318a8d48dc20fee95097373ebd1039481031985164a651d2b68d366565a",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.5"
            ]
        },
        {
            "id":  "IN-MAL-2026-021128",
            "import_time":  "2026-10-08T03:50:29.68301717Z",
            "modified_time":  "2026-10-08T03:40:07Z",
            "sha256":  "19f38811cd4bf975caf3f28d03d68dd1ff023af34ef94d700edf22fb731d59dc",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.4"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / documenclient

Package

Name
documenclient
View open source insights on deps.dev
Purl
pkg:npm/documenclient

Affected ranges

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

Affected versions

1.*
1.0.4
1.0.5

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"
    },
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "README",
            "sha256":  "e9dff49447937f8225a73dc235e067de051240d89523b6846813f7a2cd21a8fa",
            "tlsh":  "74a2af3c916097feec69e74549a3940a65257cf2c4a42c072f1ace6f54a7ec4ecbc18b"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/documenclient/MAL-2026-17624.json"