MAL-2026-11118

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/array-sort-helper/MAL-2026-11118.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11118
Published
2026-07-28T08:17:41Z
Modified
2026-08-04T22:04:54Z
Summary
Malicious code in array-sort-helper (npm)
Details

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

Source: amazon-inspector (2c18cc0d6d922eb6bbfcb565415772dbd0bb246ca7595f18afe1f87f2f6c1a33)

The npm postinstall script in array-sort-helper@1.0.0 automatically runs on npm install and executes a shell reconnaissance and exfiltration routine. postinstall.js collects hostname, user, pwd, uname, container/docker markers, process tree, GitHub Actions CI variables (GITHUB_REPOSITORY, GITHUB_ACTOR, GITHUB_RUN_ID, RUNNER_NAME, CI), local IPs, /etc/resolv.conf, AWS and Tencent cloud instance-metadata (IMDS) probes, and a full dump of process environment variables (filtering only npm_* noise). The collected data is base64-encoded and sent via HTTP GET to a hardcoded Burp Collaborator subdomain at pzs5w7ntzhsnepwk564lyfdci3oucl0a.oastify.com/z?d=. The package presents itself as an array-sort utility but ships no such functionality; index.js contains unrelated color helper code. The behavior is credential and secret harvesting targeted at CI runners and cloud workloads.

Source: ossf-package-analysis (6cade78851ee1586c3bbf22b8c1393e0c2f8e51ac6c8496aaaf50cda425807cc)

The OpenSSF Package Analysis project identified 'array-sort-helper' @ 1.0.0 (npm) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.

  • The package executes one or more commands associated with malicious behavior.

Database specific
{
    "malicious-packages-origins":  [
        {
            "import_time":  "2026-07-28T08:22:36.63728308Z",
            "modified_time":  "2026-07-28T08:17:41Z",
            "sha256":  "6cade78851ee1586c3bbf22b8c1393e0c2f8e51ac6c8496aaaf50cda425807cc",
            "source":  "ossf-package-analysis",
            "versions":  [
                "1.0.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-011045",
            "import_time":  "2026-08-04T21:33:14.941094528Z",
            "modified_time":  "2026-08-04T21:24:32Z",
            "sha256":  "2c18cc0d6d922eb6bbfcb565415772dbd0bb246ca7595f18afe1f87f2f6c1a33",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / array-sort-helper

Package

Name
array-sort-helper
View open source insights on deps.dev
Purl
pkg:npm/array-sort-helper

Affected ranges

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "postinstall.js",
            "sha256":  "5826f6884581fbfa40d0793ff4c4b6f3b4e5e0a704bfd87bf7c4e3ec274b2ec9",
            "tlsh":  "8931fbf8b56ded72304dc5f8b75d14053846eaeb58e4ff74281b8875008e48420a9136"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "array-sort-helper-1.0.0.tgz",
            "hashes":  {
                "sha1":  "a52fff557272de9c6f23741b8e82215d59829c17",
                "sha512_sri":  "sha512-uewYf02Qe0eC199lHmvlLED8zwETay5vykvKfCsF/Flb274TcWKpfLO6ijmdpGfNKl5atDcV0bBaP7rewR/E4g=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/array-sort-helper/MAL-2026-11118.json"