MAL-2026-17625

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/serpacksven/MAL-2026-17625.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-17625
Aliases
  • GHSA-297h-8m5x-925p
Published
2026-10-05T17:31:00Z
Modified
2026-10-06T04:30:45Z
Summary
Malicious code in serpacksven (npm)
Details

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

Source: amazon-inspector (89aa9ce877a176ce5c26aec2bce6e397ad287a6f26f625870cd5d6a5bef60cc9)

The tarball contains only package.json and json.txt. The declared main (index.js) is absent, so requiring the package fails — the package is not a functional JS library. json.txt is a heavily obfuscated PowerShell script that hides the console window via GetConsoleWindow + ShowWindow(0) and SetWindowPos to offscreen coordinates (-32000,-32000), performs randomized sleeps and junk-variable noise, concatenates ~150 base64 string fragments into one buffer, base64-decodes and XOR-decrypts it with key 89, then reflectively loads the decoded bytes as a.NET assembly through a runtime-constructed [System.Reflection.Assembly]::Load invocation whose type and method names are rebuilt from char-code arithmetic. The in-memory.NET payload is opaque and attacker-controlled. The package has no lifecycle scripts, so installation alone does not execute json.txt, but any environment that invokes the shipped file via powershell will run the embedded payload. The disguised.txt extension, cover-story main entry, console-hiding, anti-analysis obfuscation, and reflective load of an opaque buffer are the signature of a malware staging artifact rather than legitimate tooling.

Source: ghsa-malware (83d5c9ee440368733b7e3a6f0d61ab1dd3bd40ae8ef178b67ff5e550bc7b3dca)

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-297h-8m5x-925p",
            "import_time":  "2026-10-05T18:34:10.800050641Z",
            "modified_time":  "2026-10-05T17:31:02Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "83d5c9ee440368733b7e3a6f0d61ab1dd3bd40ae8ef178b67ff5e550bc7b3dca",
            "source":  "ghsa-malware"
        },
        {
            "id":  "IN-MAL-2026-021086",
            "import_time":  "2026-10-06T04:22:56.117422016Z",
            "modified_time":  "2026-10-06T03:56:45Z",
            "sha256":  "62be848fabb5ab2e9c3938e1b3bc178a8b4ba9ac45a79c87a994927f996331f4",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-021090",
            "import_time":  "2026-10-06T04:22:56.328260057Z",
            "modified_time":  "2026-10-06T03:57:25Z",
            "sha256":  "89aa9ce877a176ce5c26aec2bce6e397ad287a6f26f625870cd5d6a5bef60cc9",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-021091",
            "import_time":  "2026-10-06T04:22:56.390386717Z",
            "modified_time":  "2026-10-06T03:57:32Z",
            "sha256":  "cf6051a0a65d5cac5dd246a26415c5dcbbcf2deb3950a197d484325022933417",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.4"
            ]
        },
        {
            "id":  "IN-MAL-2026-021088",
            "import_time":  "2026-10-06T04:22:56.197817987Z",
            "modified_time":  "2026-10-06T03:57:04Z",
            "sha256":  "d0e606a9ce0c4bfd1efbad294248a700a289a8d2a475f2bfd520dcbbe1b6a42e",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.2"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / serpacksven

Package

Affected ranges

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

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.4

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"
    },
    {
        "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":  "client",
            "sha256":  "e9dff49447937f8225a73dc235e067de051240d89523b6846813f7a2cd21a8fa",
            "tlsh":  "74a2af3c916097feec69e74549a3940a65257cf2c4a42c072f1ace6f54a7ec4ecbc18b"
        },
        {
            "path":  "package.json",
            "sha256":  "cddd7b2571537c199762242e50ef2804639b851ddebd1f47cdd21a7c179fa1c7",
            "tlsh":  "e8d05e288aa2953305c556330d6a9652a661ee6f10447c0c37df241c87dfab26dfa26c"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/serpacksven/MAL-2026-17625.json"