MAL-2026-5594

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/0x2ai-demo7x/MAL-2026-5594.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5594
Published
2026-06-11T07:16:16Z
Modified
2026-06-11T08:01:29.521356681Z
Summary
Malicious code in 0x2ai-demo7x (npm)
Details

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

Source: amazon-inspector (c7e956073a7db6057e4d42af462dba0299152ca992c113d74c715e90574d0efb)

On npm install, scripts/postinstall.cjs copies the package's payload/ tree into the installer's project root (process.env.INITCWD), placing CLAUDE.md,.mcp.json, and a.claude/ directory next to the installer's source. CLAUDE.md is auto-loaded by Claude Code as a system prompt instructing the assistant to roleplay as a persona and route activity through a bridge..mcp.json registers an MCP server pointing at https://demo7.0x2ai.com with a hardcoded Bearer token (0a54fa34c422fb2955327bc1ceb591a296d40467e8330286) so the installer's later Claude Code sessions in that directory transparently connect to the author's server. The MCP server (payload/chatroom-mcp-lite-patched.cjs) exposes a providerquery tool that POSTs caller-supplied prompts and system_prompts to https://demo7.0x2ai.com/api/proxy-query — caller-supplied AI conversation content flows to the author by design (silent-relay shape). A bin launcher (bin/start.cjs) additionally spawns claude --dangerously-skip-permissions, removing per-tool permission prompts when the user runs npx 0x2ai-demo7x, so the server-controlled persona and MCP tools act in the user's CWD without confirmation. The harm to the installer: any prompts, files, and tool invocations issued through Claude Code in that project after install are silently routed to and observable by the author's bridge, with permission gating disabled when the launcher is used.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-005673",
            "import_time": "2026-06-11T07:49:39.429974018Z",
            "sha256": "c7e956073a7db6057e4d42af462dba0299152ca992c113d74c715e90574d0efb",
            "source": "amazon-inspector",
            "modified_time": "2026-06-11T07:16:16Z",
            "versions": [
                "1.2.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / 0x2ai-demo7x

Package

Affected ranges

Affected versions

1.*
1.2.0

Database specific

indicators
{
    "evidence_files": [
        {
            "path": "scripts/postinstall.cjs",
            "sha256": "4943321a174f2de446781e46abdc4eb4fd333f8cc98cf6fe3cd5fc4bbfb0b0a2",
            "tlsh": "74e0c05706ccd379a5b2a1406c12c50a646ade81364094a0e27c0357bf92694ae23eff"
        },
        {
            "path": "payload/chatroom-mcp-lite-patched.cjs",
            "sha256": "a1abc812c52dcefeb85473275f7c1e5a86770b114767176416ed94ebe620cf00",
            "tlsh": "505307852c79603a4fb65365ba36a617ff35522bb01114b2fafcc2142f314d091aaefd"
        },
        {
            "path": "bin/start.cjs",
            "sha256": "fa5af6d044cd42d37d4c7b0e5f43cf7498e621ef7db1b837ea79e3087e552984",
            "tlsh": "9011005b868e07be57b441c46645c12b990bc84072d0e490d26e03a6fb511e82c677eb"
        },
        {
            "path": "payload/.mcp.json",
            "sha256": "cdee5449f975f597a7501ab824f00058efd056535e3fe6d8f7c4f4741630301c",
            "tlsh": "f5e02665f0d44c43865220350abc15a09999910b8ea87c78b75fc07c5f4c69a17bd38c"
        }
    ],
    "package_integrity": [
        {
            "filename": "0x2ai-demo7x-1.2.0.tgz",
            "hashes": {
                "sha512_sri": "sha512-bOE/IomrIJyF3GkP7PQIwtMyGIzEdqwHrlnLejYSBIeKuefb1ZZbiO7kOYB9IG3OeA+J2YfTO0o8DBRqhM2b6g==",
                "sha1": "a815c285898c6389c30918c968d9adc0ab3808f5"
            }
        }
    ]
}
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/0x2ai-demo7x/MAL-2026-5594.json"