Back to skill

Security audit

全球法规MCP连接器

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed local read-only regulatory knowledge connector, with ordinary dependency and configuration cautions but no artifact-backed malicious behavior.

Install in a virtual environment, consider pinning fastmcp to a reviewed version, and only set REG_HUB_REFS to a folder you intend the MCP server to expose through search and full-document retrieval. Treat the regulatory content as reference material and verify final decisions against official sources.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:50
Finding

Unpinned Third-Party Dependency Installation

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 50–53
Vulnerability Type: Unpinned third-party dependency and unsafe supply-chain resolution
Risk Level: Medium

Complete Code Snippet

bash
# 建议在虚拟环境中安装(可选但推荐)
python -m venv .venv && source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install fastmcp

The runtime subsequently imports the installed package in reg_connector_server.py, line 25:

python
from fastmcp import FastMCP

The protocol test also imports components from the same package in selftest_stdio.py, lines 13–14:

python
from fastmcp import Client
from fastmcp.client.transports import StdioTransport

Technical Analysis

The installation instructions resolve fastmcp and its transitive dependencies from the package index without a pinned version, lockfile, or cryptographic hash verification. Consequently, the actual code installed can differ between installations and can change after this Skill has been audited.

Python packages may execute code during installation and whenever imported. Because the server directly imports fastmcp, a compromised or malicious future release could execute with the privileges of the user running the installation or MCP server.

The use of a virtual environment limits Python package conflicts but does not prevent malicious package code from accessing files, environment variables, credentials, or the network with the invoking user's permissions.

No evidence shows that the currently intended fastmcp package is malicious. The vulnerability is the uncontrolled dependency-resolution process.

Attack Path

  1. An attacker compromises the upstream package publisher, distribution account, release pipeline, package index, or one of the transitive dependencies.
  2. The attacker publishes a malicious release that still satisfies the unconstrained package name fastmcp.
  3. A user follows the documented command:
    bash
    pip install fastmcp
    
  4. `p ...[truncated 1144 chars]
Remediation
View remediation

Remediation Suggestions

  1. Pin fastmcp to a specifically reviewed version rather than resolving the latest release:

    text
    fastmcp==REVIEWED_VERSION
    
  2. Generate and distribute a lockfile containing exact versions and SHA-256 hashes for every direct and transitive dependency.

  3. Require hash verification during installation:

    bash
    python -m pip install --require-hashes -r requirements.txt
    
  4. Review dependency source, maintainers, release history, and transitive dependency changes before updating the lockfile.

  5. Perform dependency updates intentionally through a controlled review process rather than permitting automatic resolution during user installation.

  6. Run installation and the MCP server as an unprivileged user in an isolated environment. Do not install or run the Skill with administrator or root privileges.

  7. Consider restricting outbound network access and limiting filesystem access for the MCP process so that a compromised dependency has a reduced impact.

  8. Update SKILL.md to replace the unconstrained installation command with the reproducible, hash-verified installation procedure.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (39)

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The documented behavior says the skill is a local read-only regulatory retrieval MCP server, but the detected behavior indicates it instead performs static auditing/self-check activity and reads other source files. This kind of description-behavior mismatch is dangerous because users and agent platforms may grant trust, permissions, or execution under false assumptions, and the repeated self-attestation language in the document should increase scrutiny rather than reduce it.

Content

No source excerpt is available for this finding.

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/FDA创伤敷料供应链穿透检查枢纽.md (reported line 1)May include surrounding context.

md
# 生物相容性测试规划枢纽

任何与人体接触(尤其是植入、血液接触、组织接触)的器械,注册前必须做生物学评价。本枢纽汇总 ISO 10993-1(第 6 版 2025)、FDA 指南、GB/T 16886.1、ISO/TC 194 的官方入口与测试终点选择框架,全部可点击直达。适用于研发、注册、质量岗位。

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/GMP质量体系与验证枢纽.md (reported line 1)May include surrounding context.

md
# 生物相容性测试规划枢纽

任何与人体接触(尤其是植入、血液接触、组织接触)的器械,注册前必须做生物学评价。本枢纽汇总 ISO 10993-1(第 6 版 2025)、FDA 指南、GB/T 16886.1、ISO/TC 194 的官方入口与测试终点选择框架,全部可点击直达。适用于研发、注册、质量岗位。

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/UDI全球标识枢纽.md (reported line 1)May include surrounding context.

md
# 生物相容性测试规划枢纽

任何与人体接触(尤其是植入、血液接触、组织接触)的器械,注册前必须做生物学评价。本枢纽汇总 ISO 10993-1(第 6 版 2025)、FDA 指南、GB/T 16886.1、ISO/TC 194 的官方入口与测试终点选择框架,全部可点击直达。适用于研发、注册、质量岗位。

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/上市后监管枢纽.md (reported line 1)May include surrounding context.

md
# 生物相容性测试规划枢纽

任何与人体接触(尤其是植入、血液接触、组织接触)的器械,注册前必须做生物学评价。本枢纽汇总 ISO 10993-1(第 6 版 2025)、FDA 指南、GB/T 16886.1、ISO/TC 194 的官方入口与测试终点选择框架,全部可点击直达。适用于研发、注册、质量岗位。

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/原材料供应商合规枢纽.md (reported line 1)May include surrounding context.

md
# 生物相容性测试规划枢纽

任何与人体接触(尤其是植入、血液接触、组织接触)的器械,注册前必须做生物学评价。本枢纽汇总 ISO 10993-1(第 6 版 2025)、FDA 指南、GB/T 16886.1、ISO/TC 194 的官方入口与测试终点选择框架,全部可点击直达。适用于研发、注册、质量岗位。

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/技术文件STED撰写枢纽.md (reported line 1)May include surrounding context.

md
# 生物相容性测试规划枢纽

任何与人体接触(尤其是植入、血液接触、组织接触)的器械,注册前必须做生物学评价。本枢纽汇总 ISO 10993-1(第 6 版 2025)、FDA 指南、GB/T 16886.1、ISO/TC 194 的官方入口与测试终点选择框架,全部可点击直达。适用于研发、注册、质量岗位。

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/标签与IFU枢纽.md (reported line 1)May include surrounding context.

md
# 生物相容性测试规划枢纽

任何与人体接触(尤其是植入、血液接触、组织接触)的器械,注册前必须做生物学评价。本枢纽汇总 ISO 10993-1(第 6 版 2025)、FDA 指南、GB/T 16886.1、ISO/TC 194 的官方入口与测试终点选择框架,全部可点击直达。适用于研发、注册、质量岗位。

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/注册周期费用有效期对比枢纽.md (reported line 1)May include surrounding context.

md
# 生物相容性测试规划枢纽

任何与人体接触(尤其是植入、血液接触、组织接触)的器械,注册前必须做生物学评价。本枢纽汇总 ISO 10993-1(第 6 版 2025)、FDA 指南、GB/T 16886.1、ISO/TC 194 的官方入口与测试终点选择框架,全部可点击直达。适用于研发、注册、质量岗位。

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/注册工程师资料枢纽.md (reported line 1)May include surrounding context.

md
# 生物相容性测试规划枢纽

任何与人体接触(尤其是植入、血液接触、组织接触)的器械,注册前必须做生物学评价。本枢纽汇总 ISO 10993-1(第 6 版 2025)、FDA 指南、GB/T 16886.1、ISO/TC 194 的官方入口与测试终点选择框架,全部可点击直达。适用于研发、注册、质量岗位。

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/生物相容性测试规划枢纽.md (reported line 1)May include surrounding context.

md
# 生物相容性测试规划枢纽

任何与人体接触(尤其是植入、血液接触、组织接触)的器械,注册前必须做生物学评价。本枢纽汇总 ISO 10993-1(第 6 版 2025)、FDA 指南、GB/T 16886.1、ISO/TC 194 的官方入口与测试终点选择框架,全部可点击直达。适用于研发、注册、质量岗位。

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill declares broad safety claims such as 'zero network' and 'read-only' but does not specify an explicit tool/permission scope in the manifest. In an agent ecosystem, missing declared restrictions can let the host grant broader capabilities than users expect, increasing the risk of unintended file, environment, MCP, or even network access.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

This markdown file presents all instructions and guidance exclusively in Chinese, and it does not indicate that the user can choose another language or that the skill is intentionally limited to a Chinese-speaking audience. Under the policy rule for natural-language violations, forcing a specific language without user opt-in is in scope.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This markdown file is entirely written in Chinese and does not indicate any user language choice, multilingual support, or justification for restricting output to Chinese. Under the policy rule for natural-language violations, forcing a specific language without opt-in is in scope.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The entire skill is written in Chinese and does not indicate that language is optional, selectable, or limited to a specific user population. Under the policy rule for language or locale constraints, this can be a natural-language policy violation unless the skill explicitly offers opt-in or clearly justifies the locale restriction.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The file’s natural-language content is presented only in Chinese from the title through the body, with no indication that users can select another language. Under the policy rule for language or locale constraints, forcing a single language without user opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The entire skill file is written in Chinese and presents all guidance in that locale without any indication that users may choose another language. Under the policy rule for natural-language violations, forcing a specific language without user opt-in is a reportable issue unless the locale constraint is explicitly documented and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

The document explicitly directs users to the 'PMDA 英文门户', which imposes an English-language interface for that workflow without offering a language choice or explaining why English is required. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

This code file embeds natural-language server description, features, runtime instructions, and tool documentation only in Chinese. That effectively forces a specific language/locale for users and integrators without any opt-in or alternative language path, which matches the language/locale policy violation criteria.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The server allows its data source to be redirected via the REG_HUB_REFS environment variable and then exposes the loaded markdown corpus through list/search/get operations. In practice, this expands the trust boundary from the packaged regulatory knowledge base to any local directory of .md files, enabling unintended disclosure of arbitrary local documentation if the environment is influenced by another user, wrapper, or deployment config.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

This JSON file includes substantive natural-language content entirely in Chinese in the method field, which can impose a specific language on users or downstream auditors. The file does not indicate that Chinese is optional, user-selected, or required for a justified region-specific purpose.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This Python file contains its primary docstring entirely in Chinese, including usage and behavioral descriptions, and later emits Chinese-only status messages. The policy requires flagging language or locale constraints when the skill forces a specific language without user opt-in, and no opt-in or region-specific justification is provided in this file.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The script prints all result headings and conclusions in Chinese only, which constitutes a language/locale policy issue under the natural-language rules. There is no mechanism for language selection and no stated justification that this tool is restricted to a Chinese-speaking environment.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This Python file contains natural-language instructions and status messages entirely in Chinese, including the main description and runtime outputs. The file does not offer any user language choice or document a justified region-specific constraint, which conflicts with the policy against forcing a specific language without opt-in.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

The statement '品牌署名统一用「注册老炮」' requires a fixed naming/labeling convention and forbids alternatives. This is a natural-language policy constraint that does not offer user opt-in or choice, which matches the language/locale-style policy concern defined for SQP-3.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.