{"id":"MAL-2026-16032","summary":"Malicious code in feishu-docx-mcp (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0e7567437816acf6d56f5ef9e5303da39aa1663ac47d547f66552a0482158d19)\npackage.json declares `\"preinstall\": \"bun run index.js\"` and lists `bun` as a runtime dependency, so `npm install` fetches the alternate Bun runtime and executes the tarball's top-level `index.js` on the installer machine. `index.js` is a ~499KB file packed with obfuscator.io (rotating string array of 1732 entries, hex-named identifiers, decoder wrappers) plus a custom RC4/XOR cipher class keyed via `pbkdf2Sync(seed, salt, 200000, 32, 'sha256')` and exposed as a global decrypt function to reconstruct strings at runtime. After deobfuscation the payload contains GitHub Personal Access Token validation and scope enumeration logic: `Authorization: Bearer \u003ctoken\u003e` requests to `/user` and `/user/orgs`, parsing of the `x-oauth-scopes` response header, and checks for `repo`, `public_repo`, and `workflow` scopes plus `github-authentication-token-expiration`. The advertised functionality is a Feishu/Lark document MCP server, whose shipped code lives in `dist/` and is unrelated to the obfuscated top-level `index.js` that only preinstall runs. Bundling an alternate runtime purely to execute an obfuscated install-time blob that fingerprints GitHub credentials is the canonical alternate-runtime-dropper shape of an npm supply-chain attack.\n\n## Source: ghsa-malware (b63777418500ff54e64d53865054c1e1085566d10e7d062d62445c34907d2976)\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-q5c6-p5q5-g3px"],"modified":"2026-09-08T20:30:09.598534983Z","published":"2026-09-07T13:51:36Z","database_specific":{"malicious-packages-origins":[{"id":"GHSA-q5c6-p5q5-g3px","import_time":"2026-09-08T00:15:11.421538612Z","modified_time":"2026-09-07T13:51:41Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"b63777418500ff54e64d53865054c1e1085566d10e7d062d62445c34907d2976","source":"ghsa-malware"},{"versions":["0.3.2"],"id":"IN-MAL-2026-019711","import_time":"2026-09-08T20:17:35.24648152Z","modified_time":"2026-09-08T19:56:37Z","sha256":"0e7567437816acf6d56f5ef9e5303da39aa1663ac47d547f66552a0482158d19","source":"amazon-inspector"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-q5c6-p5q5-g3px"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/feishu-docx-mcp/v/0.3.2"}],"affected":[{"package":{"name":"feishu-docx-mcp","ecosystem":"npm","purl":"pkg:npm/feishu-docx-mcp"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.3.2"],"database_specific":{"indicators":{"evidence_files":[{"path":"package.json","sha256":"3f7616ea4f93ee1ab167c82ae9472ad6535b0a79341e2728daef9b5327b5dbf9","tlsh":"7d41a935cc19cda346c066aab8b95a82a56686078d50fd4833de126c4f8d4bf30fe75e"},{"sha256":"e37e3ddeeaaa9e0c4fdbcb829b4895a6521031c80053fc436625b61e6ee5b1a6","tlsh":"d5b4a31123d46960274b4fbb771bb5f2e88a09ee786d0c9fe124bc1066d9713fae8570","path":"index.js"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/feishu-docx-mcp/MAL-2026-16032.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}