MAL-2026-12318

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@hoteldev/common/MAL-2026-12318.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12318
Aliases
  • GHSA-62r9-p944-cjmg
Published
2026-08-05T12:34:06Z
Modified
2026-08-06T09:34:51.558531429Z
Summary
Malicious code in @hoteldev/common (npm)
Details

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

Source: amazon-inspector (9bb27849cbb16840b019ef47d6a84627d61eb9d48df28da5a9bc1a208e1ff758)

build/index.js appends an eval(atob(...)) block after the normal _exportStar section that decodes to an import-time loader. The loader resolves a C2 IP by reading an Ethereum transaction associated with wallet 0xa322E5f3D311D3080e6f0121063e9aDC2490Ef1a (via ethgetBlockByNumber), then issues HTTP requests to http://<derived-IP>:443/0x/cls and http://<derived-IP>:443/0x/ls with an x-payload-b64 header, XOR-decrypts the responses, and launches each decoded body through spawn('node', ['-e', <payload>], {detached: true, stdio: 'ignore', windowsHide: true}).unref(). Strings inside the payload (http, https, spawn, childprocess, ethgetBlockByNumber, x-payload-b64) are written as \u#### unicode escapes to hide the behavior from casual review. The loader runs on any require/import of the package, giving the operator of the on-chain-designated host arbitrary, hidden, detached code execution on the installer's machine, with the C2 address rotatable via a new Ethereum transaction.

Source: ghsa-malware (aacfc893117769583694bc71a02db63d49b37b36243c48e00fa492c68e6beb37)

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": [
        {
            "modified_time": "2026-08-05T12:34:06Z",
            "id": "IN-MAL-2026-014709",
            "import_time": "2026-08-05T13:08:39.654373966Z",
            "versions": [
                "1.0.9"
            ],
            "source": "amazon-inspector",
            "sha256": "9bb27849cbb16840b019ef47d6a84627d61eb9d48df28da5a9bc1a208e1ff758"
        },
        {
            "modified_time": "2026-08-06T06:22:59Z",
            "id": "GHSA-62r9-p944-cjmg",
            "import_time": "2026-08-06T09:23:22.928658496Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware",
            "sha256": "aacfc893117769583694bc71a02db63d49b37b36243c48e00fa492c68e6beb37"
        }
    ]
}
References
Credits

Affected packages

npm / @hoteldev/common

Package

Name
@hoteldev/common
View open source insights on deps.dev
Purl
pkg:npm/%40hoteldev/common

Affected ranges

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

Affected versions

1.*
1.0.9

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."
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "common-1.0.9.tgz",
            "hashes": {
                "sha512_sri": "sha512-ZZaZQ7mbVeC99qkSnBy/LzsyYJjtLFiO+KGCO2wUOmqBJbIQFFgGeIb2/a2Ei9qbRDmTGI1wHMriy/e8cDXh8A==",
                "sha1": "3de2ac4785f0d6764aaf59377a38c23b8972fafe"
            }
        }
    ],
    "evidence_files": [
        {
            "path": "build/index.js",
            "tlsh": "6e525faa16917aabcb4a3673fe97870d237150b236ac2f04310fd974b389c91755da0f",
            "sha256": "37b6a51f3da86d716d299280bbefe6f1f5a051e27fdafa26719e5b98fe892bb2"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@hoteldev/common/MAL-2026-12318.json"