feishu-docx-mcpnpm
Advisory published Updated
feishu-docx-mcp is a confirmed malicious npm package (MAL-2026-16032) that steals credentials and exfiltrates sensitive data (malicious version 0.3.2). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in feishu-docx-mcp (npm)
What this malware does
package.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 <token> 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.
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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for feishu-docx-mcp (version 0.3.2).
If you installed it — respond
feishu-docx-mcp is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If feishu-docx-mcp was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks feishu-docx-mcp-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.