Back to skill

Security audit

asset-dashboard-search

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed Zhihuiya patent-search helper with some implementation and documentation quality issues, but I did not find hidden, destructive, persistent, or deceptive behavior.

Install only if you are comfortable granting a Zhihuiya API token for patent searches. Use the ZHIHUIYA_API_TOKEN environment variable rather than --token, avoid feeding untrusted applicant names directly, and treat P002 count results cautiously until the collapse_order_authority conflict is fixed.

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 (3)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/p002_applicant_search.py:55
Finding

API Token Exposure Through Command-Line Arguments

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/p002_applicant_search.py:25
Finding

Query-Language Injection Through Unescaped Applicant Name

Content
View full analysis
Remediation
View remediation

other

Note
Location
scripts/p002_applicant_search.py:14
Finding

Prohibited Collapse Authority Parameter Causes Search Result Integrity Errors

Content
View full analysis
dict: """按申请人名称检索专利,按 APNO 合并同族去重。""" headers = { "Authorization": f"Bearer {token}", "Content-Type": "application/json" } payload = { "query_text": f"ANCS:({applicant_name})", "collapse_by": "PBD", "collapse_type": "APNO", "collapse_order": "LATEST", "collapse_order_authority": COLLAPSE_ORDER_AUTHORITY, "page": page, "page_size": page_size } ``` ### Technical Analysis The implementation adds `collapse_order_authority` to the P002 request. The declared Skill contract in `SKILL.md` explicitly states that this field must not be included because it causes deviations in Chinese application counts. The script therefore does not implement the documented fixed request body. The additional field changes the API's collapsing and representative-selection behavior, which can affect counts and the records selected from patent families. This is a data-integrity defect rather than credential theft, code execution, or privilege escalation. It can nevertheless cause users to rely on incorrect search statistics. ### Attack Path No independent attacker-controlled exploitation step is required. 1. A user runs the P002 search as documented. 2. The script automatically includes `collapse_order_authority`. 3. The API applies authority-priority behavior that the Skill specification prohibits. 4. Returned counts or selected family representatives differ from the intended result set. 5. The altered data is presented as authoritat ...[truncated 621 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (5)

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

声明描述的是一个具备具体专利检索能力的技能,但实际代码只是最小化占位脚本,仅输出一行文本,没有任何与专利、网络请求、API 封装、查询参数处理或数据去重相关的实现。因此代码实际行为与声明用途存在明显且实质性的不一致,应判定为 mismatch。

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill documents use of environment-injected secrets and outbound network access, but it does not declare any tool scope or allowed-tools boundary. In an agent environment, missing explicit capability declarations can lead to over-broad execution privileges, making secret access and external API calls less governable and harder to audit.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The markdown specifies a fixed natural-language parameter lang: "cn" for A002, and the summary reiterates lang=cn as a required setting. This imposes a specific language/locale behavior in the skill documentation without offering opt-in, alternatives, or a clear justification that the skill is region-specific by policy.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/p002_applicant_search.py (reported line 32)May include surrounding context.

python
"page": page,
        "page_size": page_size
    }
    resp = requests.post(API_URL, headers=headers, json=payload, timeout=30)
    resp.raise_for_status()
    data = resp.json()
    if not data.get("status"):

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

This markdown file contains user-facing instructions only in Chinese, which can amount to a language/locale policy issue when no opt-in or alternative language is provided. The content does not indicate that the skill is region-specific or that Chinese-only documentation is required.

Content

No source excerpt is available for this finding.