Back to skill

Security audit

Biomarker Investigation Zhcn

Security checks for vulnerabilities and agentic risk

Overview

The skill is a legitimate-looking biomarker research workflow, but it asks users to place an API key in a URL and expands into legal and commercial intelligence tasks beyond its short description.

Review before installing. Use a narrowly scoped PatSnap API key, rotate any key previously placed in a query-string URL, and understand that the skill may use PatSnap MCP access for patents, papers, drugs, trials, news, deals, and company data, including legal-style patent-risk discussion.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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)

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:34
Finding

API Key Exposed Through MCP Endpoint Query String

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 34–35 and 73–74
Vulnerability Type: API credential exposure through a URL query parameter
Risk Level: Medium

Vulnerable Code

bash
claude mcp add --transport http pharma_intelligence \
  "https://connect.patsnap.com/096456/logic-mcp?apiKey=sk-xxxxxxxxxxxx"

The connection-error guidance repeats the same insecure pattern:

bash
claude mcp add --transport http pharma_intelligence \
  "https://connect.patsnap.com/096456/logic-mcp?apiKey=YOUR_API_KEY"

Technical Analysis

The setup instructions require the user to substitute a real PatSnap API key directly into an MCP endpoint URL. Although the endpoint uses HTTPS, transport encryption does not protect the credential from exposure at locations where the complete URL may be retained or processed.

The expanded URL may be recorded in:

  • Shell command history
  • MCP client configuration
  • Process diagnostics or support bundles
  • Application, proxy, gateway, and observability logs
  • Authentication and connection error messages

URL query parameters are commonly logged as part of request targets. Therefore, they are unsuitable for long-lived secrets unless every component guarantees query-string redaction. The external PatSnap connection is relevant to the Skill's declared biomarker-research functionality, but placing its credential in the URL is not required by least-privilege credential-handling practices.

The reviewed content uses a placeholder rather than a hardcoded live credential, and there is no evidence that the key is sent to an attacker-controlled domain. The risk arises when a user follows the instructions and replaces the placeholder with a valid key.

Attack Path

  1. A user creates a valid PatSnap API key.
  2. The user substitutes that key into the documented MCP endpoint URL and executes the command.
  3. The complete URL, including the API key, is retained in ...[truncated 904 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove the API key from the endpoint URL.
  2. Prefer an Authorization header, such as a bearer token, if supported by the MCP client and service.
  3. Otherwise, use a protected operating-system secret store, MCP secret facility, or unexpanded environment-variable reference.
  4. Ensure that the secret is not written in expanded form to shell history or persistent configuration.
  5. Configure clients, proxies, gateways, telemetry systems, and error handlers to redact credentials and sensitive query parameters.
  6. Assign narrowly scoped permissions and quotas to the key, with an expiration period appropriate to its use.
  7. Rotate or revoke any API key previously configured using the documented query-string method.
  8. Update both the initial setup example and the connection-error guidance so they use the same secure credential mechanism.
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

文件名中的 zhcn 与整体仅中文的技能说明共同表明该技能面向固定语言环境,但文档没有说明用户可切换语言,也没有解释该语言限制的必要性。根据规则,强制特定语言而无用户选择属于自然语言政策风险。

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill is presented as a literature-search capability, but the body instructs the agent to assess potential patent infringement risk. Legal-risk assessment is a materially different function with higher sensitivity and could lead the agent to produce compliance or freedom-to-operate style analysis the user did not knowingly request.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill’s declared purpose is limited to biomarker-related academic and patent literature search, but the implementation instructions expand into broader intelligence gathering across clinical, company, news, and deal data. This creates a scope mismatch that can cause over-collection of data and unexpected use of tools beyond user expectations, weakening consent and least-privilege boundaries.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

Introducing news, drug deal, and organization intelligence substantially broadens the accessible commercial context beyond biomarker literature search. Even if not overtly malicious, this expands the chance of unnecessary competitive-intelligence collection and response generation unrelated to the narrow user task.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
73% confidence
Finding

该段将输出结构固定为特定编号和文档样式,没有说明可按用户语言或格式偏好变更。虽然风险较低,但这仍是对输出 locale/格式的强约束,可能与用户偏好冲突。

Content

No source excerpt is available for this finding.