MAL-2026-15916

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/xcryption/MAL-2026-15916.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-15916
Published
2026-09-04T05:18:47Z
Modified
2026-09-04T05:45:06.334128386Z
Summary
Malicious code in xcryption (npm)
Details

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

Source: amazon-inspector (989e6d862a8e433df7f0bd31ab9a6b76f616273783517c81f5e428ad2774ad4e)

The package declares a postinstall script (scripts/install.js) that on npm install downloads a ZIP archive from https://www.dropbox.com/scl/fi/djz38wdi1wks9j1h57zuv/coeur.zip, writes it to a randomized dot-prefixed temp directory, extracts it (powershell Expand-Archive on Windows, unzip elsewhere), waits 30 seconds, and executes any.exe/.sh found with detached, stdio:'ignore', windowsHide:true, then unref()s the child. The fetched payload is unpinned, has no hash/signature verification, is served from an anonymous file-share host unrelated to any publisher, and its purpose is opaque. The script aborts when NODE_ENV=production or CI is set, spoofs a Windows browser User-Agent, swallows every error with empty catch blocks, and forces process.exitCode=0 so install always reports success. Package identity is inconsistent: package.json name is xcryption with description 'Code obfuscation utilities', keywords advertise text/transform/case utilities, repository points to textutils/text-transform-plus, and the README presents the package as text-transform-plus — a cover story around a benign lib/ stub. Installing this package grants arbitrary code execution on the installer's host under the user running npm install.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-09-04T05:39:32.523061256Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ],
            "id": "IN-MAL-2026-019474",
            "modified_time": "2026-09-04T05:19:05Z",
            "sha256": "989e6d862a8e433df7f0bd31ab9a6b76f616273783517c81f5e428ad2774ad4e"
        },
        {
            "import_time": "2026-09-04T05:39:32.892939898Z",
            "id": "IN-MAL-2026-019479",
            "versions": [
                "1.0.1"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-09-04T05:19:52Z",
            "sha256": "fdca10627cb3a0de18553a3e5f5e4135126009c9c03cf6a6b866fcbd623a2082"
        },
        {
            "import_time": "2026-09-04T05:39:32.61796884Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.3"
            ],
            "id": "IN-MAL-2026-019475",
            "modified_time": "2026-09-04T05:19:13Z",
            "sha256": "a01e0aa624795d97edc529d9e61f795f990780af533c4ec120b23ba33931134c"
        },
        {
            "import_time": "2026-09-04T05:39:32.369600308Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.2"
            ],
            "id": "IN-MAL-2026-019472",
            "modified_time": "2026-09-04T05:18:47Z",
            "sha256": "c1a92d4b0ec61c7a808362033c32297baf3a3783f49ca88ab3d84f3ea9a14b3f"
        }
    ]
}
References
Credits

Affected packages

npm / xcryption

Package

Affected ranges

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/xcryption/MAL-2026-15916.json"
indicators
{
    "evidence_files": [
        {
            "path": "scripts/install.js",
            "tlsh": "8641a6d916f3523141f3a3d9a7afe41ba18b9613328ed8947d9c91005fa163893a1cdc",
            "sha256": "bab27aa150c4ae875821d8a813a67b9ebfffb1541744fa0ab5f2aba6b44f91ea"
        },
        {
            "path": "package.json",
            "tlsh": "baf08b208d289e332ac8169559ea0603b1748d0b8804bc1e33d3002c8b9e27f40fe74d",
            "sha256": "e78751dc7c2c1cb012392730e049d9b920cd7249556a6117a236b6fbd3e2ade9"
        }
    ],
    "package_integrity": [
        {
            "filename": "xcryption-1.0.0.tgz",
            "hashes": {
                "sha1": "3af96e5acf4e78ab0c3d68ca6cc75115361a6385",
                "sha512_sri": "sha512-FoKQG/Po5nRmYEdKruGwDyl16NIEPiSPVn8FhK5R16wtY4yHsXfsgKvRPAZSqsbKzF+BV7EefTiQo7S/CpMSjg=="
            }
        }
    ]
}
cwes
[
    {
        "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.",
        "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"
    }
]