MAL-2026-11012

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/encryptstringadmin/MAL-2026-11012.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11012
Aliases
  • GHSA-x92w-56m5-jchf
Published
2026-07-22T20:39:04Z
Modified
2026-08-04T23:05:03Z
Summary
Malicious code in encryptstringadmin (npm)
Details

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

Source: amazon-inspector (4e396a16fd1b6b8b6d95060cebd22a123190c015f3de07a3763a872048175139)

index.js is a heavily obfuscated loader (rotated string-array decoder, control-flow flattening, self-defending/console-tamper stubs, debug-protection loop) whose only real behavior is a runtime fetch-and-eval. When any exported API (loadEncryptString/encryptStringAdmin/etc.) is invoked, the module fetches JavaScript text from cdn.jsdelivr.net/npm/encryptstringadmincore/ with cache: 'no-store' and a cache-busting query parameter _esa=Date.now(), then executes the response body in the consumer's process via new Function('CryptoJS', text +...)(CryptoJS). The URL is not version-pinned, no integrity check or signature verification is performed, and the cache-busting parameter defeats any caching layer, so the package author (or anyone able to publish to that CDN path) can change the executed bytes at any time. The mismatch between the trivial loader logic and the heavy obfuscation used to hide it is consistent with deliberate evasion of static review.

Source: ghsa-malware (6e862c6a1d5cf9a77c2060f767e7144e9a73b77913c801dbf23f571ca5d3e054)

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-x92w-56m5-jchf",
            "import_time": "2026-07-22T23:02:09.282646299Z",
            "modified_time": "2026-07-22T20:39:05Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "6e862c6a1d5cf9a77c2060f767e7144e9a73b77913c801dbf23f571ca5d3e054",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-011218",
            "import_time": "2026-08-04T22:30:05.657471864Z",
            "modified_time": "2026-08-04T21:49:26Z",
            "sha256": "4e396a16fd1b6b8b6d95060cebd22a123190c015f3de07a3763a872048175139",
            "source": "amazon-inspector",
            "versions": [
                "1.2.1"
            ]
        },
        {
            "id": "IN-MAL-2026-011310",
            "import_time": "2026-08-04T22:30:10.410825341Z",
            "modified_time": "2026-08-04T22:02:58Z",
            "sha256": "a1bcb4435355b77ccae36257c85151afe8285869feb81589cf9fb7ec682ef7f6",
            "source": "amazon-inspector",
            "versions": [
                "1.4.2"
            ]
        },
        {
            "id": "IN-MAL-2026-011175",
            "import_time": "2026-08-04T22:30:03.32424549Z",
            "modified_time": "2026-08-04T21:43:24Z",
            "sha256": "e083b6c69bba3c118ca4fca3856ccdd5e2e1720f1bdeb59047d83f246f0c9247",
            "source": "amazon-inspector",
            "versions": [
                "1.3.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / encryptstringadmin

Package

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

Affected ranges

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

Affected versions

1.*
1.2.1
1.3.0
1.4.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"
    },
    {
        "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": "index.js",
            "sha256": "ec67ab67e3e250f1e017e1341737e5ca232bb34352e0c22d706655bb073dc785",
            "tlsh": "a39273847ac1b080534b5bbba72ff1d8f82e1dd63498098ad228bd99fc71619c6f1735"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/encryptstringadmin/MAL-2026-11012.json"