MAL-2026-13955

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/mutex-forge/MAL-2026-13955.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13955
Aliases
  • GHSA-2gqm-6m3p-62g5
Published
2026-08-13T16:20:23Z
Modified
2026-08-14T15:00:55.334895565Z
Summary
Malicious code in mutex-forge (npm)
Details

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

Source: amazon-inspector (d3e6d6c8a6e7f9463fa8a07604b4699b1dba8415ee6759e3145b0cab183f4421)

The package presents itself as a mutex/semaphore library but contains a hidden second-stage loader in lib/Mutex.js. When runExclusive is invoked with a callback carrying meta.jobId === 'cross-chain-transfer', it detach-spawns Node on the sibling obfuscated file lib/withLoad.min.js. That stage collects host reconnaissance (platform, release, arch, hostname, cpus, memory, uptime) and posts it to a hardcoded Telegram bot (api.telegram.org, chat -1003952553968) and a hardcoded Slack channel (slack.com chat.postMessage, channel C0B8XPGCKQS) using base64-encoded xoxb and Telegram bot tokens shipped in the file. It then connects to Ethereum Sepolia via Alchemy (eth-sepolia.g.alchemy.com) and Infura (sepolia.infura.io), reads encrypted TData1/TData2/getChunk fields from contract 0xE390863Dac96a7118C71227C2b099B50cF602D31, AES-GCM decrypts the payload using an X25519-derived key, writes the reassembled bytes to disk, and spawns them with process.execPath detached. A third stage (lib/tryLoad.min.d.js) polls slack.com/api/conversations.history every 10s with a hardcoded xoxb bot token, filters messages from a specific attacker userid, AES-GCM/PBKDF2 decrypts and reassembles chunked JSON into ~/subwatcher, chmod 755s it, and spawns it with Node — a persistent remote-command channel. The loader then unlinks lib/withLoad.min.js, lib/withLoad.min.d.js, and lib/tryLoad.min.d.js, rewrites lib/Mutex.js to strip the malicious branch (lines 25..40), and optionally edits../LICENSE, erasing the trigger after the assessment launches. All network destinations, contract address, channel ids, and bot tokens are concealed behind obfuscator.io-style rotated string arrays and base64. Live third-party Slack (xoxb-11307403103236-..., xoxb-11301867762550-...) and Telegram (8961878831:AAG4WTbRUcbXI5UCaN4VXK8k57ghqqkgqI) bot tokens are embedded in the shipped payload.

Source: ghsa-malware (3de0a9fa65df037ea65a1ecebdf98528c3733f77e524b21f4c28358262f7cd12)

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": "IN-MAL-2026-017638",
            "import_time": "2026-08-13T17:24:45.442594442Z",
            "sha256": "80f0f894a48e67fcc5d8ffb27da45f0f927244406d6c46fa9e0ee3aa5357caca",
            "versions": [
                "2.0.1"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-08-13T17:16:15Z"
        },
        {
            "id": "IN-MAL-2026-017636",
            "import_time": "2026-08-13T17:24:45.378460895Z",
            "sha256": "d3e6d6c8a6e7f9463fa8a07604b4699b1dba8415ee6759e3145b0cab183f4421",
            "versions": [
                "2.0.2"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-08-13T17:15:57Z"
        },
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "import_time": "2026-08-13T22:11:44.583263036Z",
            "id": "GHSA-2gqm-6m3p-62g5",
            "sha256": "3de0a9fa65df037ea65a1ecebdf98528c3733f77e524b21f4c28358262f7cd12",
            "modified_time": "2026-08-13T16:20:23Z",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-017801",
            "import_time": "2026-08-14T14:51:39.474016984Z",
            "sha256": "6ca08ce9c4002505be076822d267ee38d4eb281bdce138c335f19bf3ef6cda8f",
            "versions": [
                "2.0.0"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-08-14T14:38:28Z"
        }
    ]
}
References
Credits

Affected packages

npm / mutex-forge

Package

Affected ranges

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

Affected versions

2.*
2.0.0
2.0.1
2.0.2

Database specific

cwes
[
    {
        "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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "lib/Mutex.js",
            "tlsh": "7e41a08457f395165233b0dac76b9009b57c802b024cc8a5f94dc2db6f6506d87eabed",
            "sha256": "cd8ceff26e235e53afbb4d036617a4a50e8315c09102be3504fd98b1844de247"
        },
        {
            "path": "lib/withLoad.min.js",
            "tlsh": "544228887ba87e7107cab1ad8518390386989c657a1df481f58eda8f314d3848563fbd",
            "sha256": "cfc086b91a4ba2427a8beaa22ecf943bf4e419d8f3666945a0f5b1653219918e"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/mutex-forge/MAL-2026-13955.json"