dsh-mcp-audit: Auditing Supply Chain and Exposure Risks in MCP Configurations

Preface

In DeepSeek Harness (DSH) or various Agent development environments, Model Context Protocol (MCP) services are frequently utilized to extend capabilities such as reading and writing files or invoking tools. Configurations are often stored in local JSON files, which may not be committed to version control, and it is rare for them to be verified item-by-item against security baselines. A common approach involves using npx -y to fetch npm packages without locked versions. This means every startup may fetch the latest version from upstream; if the supply chain is compromised, the Agent will execute untrusted code when invoking that MCP. While npm dependencies have dedicated audit tools, the MCP server declarations (commands, arguments, remote URLs) represent a separate attack surface. Below is an introduction to dsh-mcp-audit (npm package name @deepwhale-cn/dsh-mcp-audit), classified under admin-security by maintainer feely0208 in the DSH plugin directory. It performs static rule checks on MCP configuration files and does not replace the code review of MCP service sources.

What is it

dsh-mcp-audit is a security-focused plugin for DSH, with the current npm version being 0.1.1 (MIT License). Its one-sentence positioning is: Auditing MCP configurations for unpinned remote packages, plaintext endpoints, and executable local services. Repository: https://github.com/feely0208/dsh-mcp-audit; Community Directory: https://www.skillhub.cn/plugins/feely0208/dsh-mcp-audit. Please note that DSH community plugin sites (such as dsh-plugin.org) are not officially affiliated with DeepSeek or High-Flyer (幻方). It is recommended to inspect the source code and license yourself before installation.

MCP services typically possess greater privileges than ordinary plugins (file, tool, and account-related capabilities), and when configurations are scattered across personal machines, they are harder to cover with team processes. This plugin only performs rule scanning on “what the configuration looks like” and has a clearly defined division of labor with dsh-dep-audit: the latter checks npm dependencies, while this plugin checks MCP configurations.

What it checks

The rules are graded as follows according to the README (specific items and rationales can be viewed using --list-rules):

Level Content
High Unpinned versions via npx -y; plaintext http:// endpoints
Medium Pointing to local executables or scripts
Low MCP configuration not found in the repository

The README uses an unpinned filesystem service as an example: when the configuration looks like "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem"], it fetches the latest package every time it starts, lacking a rollback-able version record; pinning the package name to a specific version (e.g., @2024.11.0) can mitigate risks such as “upstream silently changing the package.”

Installation and Enablement

Runtime Requirements (from package.json): Node.js >= 18, DSH >= 0.1.0-rc.6.

Install in DSH (Web profile):

dsh plugin --profile web add @deepwhale-cn/dsh-mcp-audit

If using it only as a CLI without the DSH plugin mechanism:

npx @deepwhale-cn/dsh-mcp-audit

The plugin reads MCP configuration paths on the local machine with the privileges of the current dsh / node process; before installation or npx execution, please ensure you trust the package source and have read the repository code.

Typical Usage

After installation, you can operate via the dsh-mcp-audit command line entry. Examples provided in the README:

First, view the demonstration checkout effect:

dsh-mcp-audit --demo

List rules and rationales to facilitate rectification:

dsh-mcp-audit --list-rules

Generate an HTML report (example output filename r.html):

dsh-mcp-audit --html r.html

The official README includes demonstration output, rule lists, and screenshots of HTML reports (hosted on deepwhale.org.cn plugin-assets), which can serve as reference for expected output.

Use Cases and Boundaries

Target Audience: Developers maintaining MCP configurations for Agents/IDEs locally or in CI; teams wanting a layer of configuration hygiene checks before integrating MCPs into their Agents.

Boundaries (explicitly stated in README):

  1. Audits configuration only, not the service itself —— This tool cannot see whether the service code sends data externally or if the logic is malicious.
  2. Locking versions is not absolute security —— It prevents “upstream silent changes” but cannot prevent “the package itself being malicious.”
  3. It is complementary to dependency audit plugins and cannot replace other guard capabilities like least privilege or secret scanning.

This plugin is a software tool; users must comply with local laws and regulations and bear responsibility for the consequences of usage.

Conclusion

dsh-mcp-audit consolidates several high-frequency risks in MCP configurations (unpinned remote packages, plaintext HTTP, local executable paths, missing configurations) into a repeatable CLI / DSH plugin workflow, making it suitable for performing a round of configuration audits before expanding MCP capabilities. For further information and installation:

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye