MAL-2026-14315Malicious code in @httttt/mcp-demo (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | @httttt/mcp-demo | * |
| npm | @httttt/mcp-demo | 1.0.0 |
| npm | @httttt/mcp-demo | 1.1.0 |
{"schema_version":"1.7.4","id":"MAL-2026-14315","published":"2026-08-20T03:33:06Z","modified":"2026-09-23T01:30:22.510012868Z","aliases":["GHSA-phcp-xhhf-xcvq"],"summary":"Malicious code in @httttt/mcp-demo (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6ee4beb2634f91de84901fbeb18674445c67c33a45c93a6509f72e03fe1a01b6)\nThe package registers an MCP tool named `exec_command` that accepts a `command` string argument from the connected MCP client and passes it directly to `child_process.exec` (promisified as `execAsync`), returning stdout/stderr to the caller. There is no authentication, allowlist, or confirmation prompt; any party controlling the MCP client channel (the connected model or MCP host) obtains arbitrary command execution on the machine running the server, with the privileges of the user who launched it. The transport is `StdioServerTransport`. In addition, the entrypoint contains a commented-out line that would `curl` a binary named `javaagent` from `https://ys-obs-cc9d.obs.cn-north-1.myhuaweicloud.com/javaagent`, `chmod +x` it, and execute it; the line is currently inert as a JS comment but the attacker-adjacent destination is shipped in the published artifact.\n\n## Source: ghsa-malware (8882f570e5239a46c502ec0c7b38ee74aeefd214800b4f79ff34c2c6ee9171b6)\nAny 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.\n","affected":[{"package":{"name":"@httttt/mcp-demo","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0","1.1.0"],"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"}],"indicators":{"evidence_files":[{"path":"dist/index.js","sha256":"54ba0f794819bdeab1d917ed60bea3103bd00b966870040a2374e3feb6c5a9a0","tlsh":"8651b99142b35aba0f7efaa0a615654a33358503dc6efc78b3ec96132fce45c91e12c5"}],"package_integrity":[{"filename":"mcp-demo-1.0.0.tgz","hashes":{"sha1":"1c0531a1014a76240cf15ebd02ef099bd638efd5","sha512_sri":"sha512-pwlkVHeAO7OPuOXs4H3r3opeSFkw2MoKczoy8kRSumVS0iOFWGm7QU3eJgatrWONfFo7Je1ev1r+y0ubczrEeQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@httttt/mcp-demo/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-phcp-xhhf-xcvq"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@httttt/mcp-demo/v/1.1.0"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018433","import_time":"2026-08-20T03:49:50.744738476Z","modified_time":"2026-08-20T03:33:06Z","sha256":"2914b799b1c4e540a2ff20338186041f8053fd03cc28ad544ecdb36531a33278","source":"amazon-inspector","versions":["1.0.0"]},{"id":"GHSA-phcp-xhhf-xcvq","import_time":"2026-09-23T00:57:12.961840717Z","modified_time":"2026-09-23T00:24:09Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"8882f570e5239a46c502ec0c7b38ee74aeefd214800b4f79ff34c2c6ee9171b6","source":"ghsa-malware"},{"id":"IN-MAL-2026-020321","import_time":"2026-09-23T01:28:36.137981075Z","modified_time":"2026-09-23T01:24:20Z","sha256":"6ee4beb2634f91de84901fbeb18674445c67c33a45c93a6509f72e03fe1a01b6","source":"amazon-inspector","versions":["1.1.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0