MAL-2026-11177

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@peptide-unit/js-unimode/MAL-2026-11177.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11177
Aliases
  • GHSA-hghj-5h7q-fq5h
Published
2026-07-29T16:15:24Z
Modified
2026-08-04T23:04:44.201144891Z
Summary
Malicious code in @peptide-unit/js-unimode (npm)
Details

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

Source: amazon-inspector (a4d2db0b951057e42b31006e9bfd3752cde6db494df5959f44e0243f802d7a32)

index.js is a repackaged copy of the legitimate emptyport/unimod peptide-modification lookup library with an obfuscator.io RC4 string-array IIFE appended after the exported listMods function. On require(), the appended payload loads childprocess, fs, os, path, and crypto, constructs a network URL keyed off the running Node major/minor/patch version, fetches a response, splits it on ':' into IV and ciphertext, AES-decrypts using a runtime-derived key (createDecipheriv + Buffer.from(iv,'hex')), writes the plaintext to a file under os.tmpdir() with writeFileSync flag 'w+', and invokes childprocess exec on that file with cwd set to tmpdir and windowsHide disabled. The 336-entry rotating string array with base64+RC4 decoders (functions b/c) conceals the endpoint hostname, module names, and exec command. Package identity impersonates the legitimate emptyport/unimod project: package.json declares name @peptide-unit/js-unimode while homepage/repository point at github.com/emptyport/unimod and author is listed as Michael Porter — a scoped-name reupload with malicious payload grafted onto preserved legitimate exports (getByName/getById/listMods).

Source: ghsa-malware (bc980d78557ad1dbd4c8b74d0f383ce26d360c48ae860e05d1685c7ee1dd847d)

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": [
        {
            "sha256": "bc980d78557ad1dbd4c8b74d0f383ce26d360c48ae860e05d1685c7ee1dd847d",
            "id": "GHSA-hghj-5h7q-fq5h",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "import_time": "2026-07-30T03:51:56.494192Z",
            "source": "ghsa-malware",
            "modified_time": "2026-07-29T16:15:24Z"
        },
        {
            "sha256": "a4d2db0b951057e42b31006e9bfd3752cde6db494df5959f44e0243f802d7a32",
            "id": "IN-MAL-2026-011138",
            "import_time": "2026-08-04T22:30:01.258896133Z",
            "versions": [
                "1.1.13"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-08-04T21:37:57Z"
        },
        {
            "id": "IN-MAL-2026-011136",
            "sha256": "a9c155f91db3991bf3ebddce491a0b7a812011d212ff83780f8665d70c96f00d",
            "versions": [
                "1.1.12"
            ],
            "import_time": "2026-08-04T22:30:01.083018137Z",
            "source": "amazon-inspector",
            "modified_time": "2026-08-04T21:37:39Z"
        }
    ]
}
References
Credits

Affected packages

npm / @peptide-unit/js-unimode

Package

Name
@peptide-unit/js-unimode
View open source insights on deps.dev
Purl
pkg:npm/%40peptide-unit/js-unimode

Affected ranges

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

Affected versions

1.*
1.1.12
1.1.13

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@peptide-unit/js-unimode/MAL-2026-11177.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "812c5c561aefa4c6e618f934cb37c38fdffd1e337c9468c1e280cad96dbddf52",
            "path": "index.js",
            "tlsh": "86c296cc3bc2f0d41227b0b7691b6991e1796c98b28c5488f7aef058ff58718d176b68"
        },
        {
            "sha256": "40bfbcf279408eab1ebea1e992ed65b1a80b02c3579ad85e6e14ba1764cf9fd2",
            "path": "package.json",
            "tlsh": "4b01f565ca7858a30bdd3d9059bd6046b262885b4c58bc2a73c3421c8b4e4af11fe79c"
        }
    ]
}