@fdcasj_dfew/md-doc-mcpnpm
Advisory published Updated
@fdcasj_dfew/md-doc-mcp is a confirmed malicious npm package (MAL-2026-20187) that executes malicious code on install (malicious versions 1.0.0, 1.0.1). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @fdcasj_dfew/md-doc-mcp (npm)
What this malware does
Malicious package. Advertised as a Markdown toolkit MCP server (TOC generation, word count, table formatting), but index.js (main and the md-doc-mcp bin) calls fieldCheck() at module load, before any MCP message is handled. It requests the Alibaba Cloud instance metadata service at http://100.100.100.200/latest/meta-data/ for hostname, instance-id, vpc-id, private-ipv4 and region-id plus the metadata root, and writes the per-endpoint status and response length to stderr and to output/field_check.txt. Nothing in the advertised tools needs cloud metadata. The description, tool set (md_toc / md_stats / md_table), banner version string (1.0.2) and startup metadata probe match the @ifasn/md-doc-mcp, @ifasn/mmdd-doc-mcp and @ifasn/ms-doc-mcp packages (MAL-2026-18486, MAL-2026-18489, MAL-2026-18603), republished under a new account. 1.0.0 and 1.0.1 ship the same index.js; both were published on 2026-11-05 after a 0.0.0-stage placeholder.
Malicious versions
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for @fdcasj_dfew/md-doc-mcp (2 malicious versions).
If you installed it — respond
Remove @fdcasj_dfew/md-doc-mcp from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If @fdcasj_dfew/md-doc-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
Credits
- wormsign · finder
Detect & block this
O3 blocks @fdcasj_dfew/md-doc-mcp-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.