Back to skill

Security audit

中国商标查询 Skill

Security checks for vulnerabilities and agentic risk

Overview

The skill mostly does what it claims, but it can send a user's platform token to an arbitrary configured host, including plaintext HTTP when enabled, while performing billable account actions.

Review before installing. Use only a token you are willing to grant to this platform, set CHINA_TM_PLATFORM_BASE_URL to https://tm.zhengquai.com, do not enable ALLOW_HTTP except isolated local testing with non-production credentials, and confirm point costs before search, detail, or export actions. Also treat the trial-points documentation as inconsistent until the publisher clarifies it.

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
scripts/cli.mjs:323
Finding

Bearer Token Can Be Sent to an Arbitrary Host or over Plaintext HTTP

Content
View full analysis
controller.abort(), env.timeoutMs); const headers = { 'Accept': 'application/json', 'Authorization': `Bearer ${env.token}`, 'X-OC-Request-Id': env.requestId }; if (body !== undefined) { headers['Content-Type'] = 'application/json'; } const requestInit = { method, headers, signal: controller.signal }; if (body !== undefined) { requestInit.body = JSON.stringify(body); } let response; let ...[truncated 3117 chars]
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • 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
Findings (21)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The contract instructs clients to use a bearer token from an environment variable but does not clearly label it as a sensitive secret or warn against logging, sharing, or embedding it. In an agent/CLI integration context, this increases the risk of accidental credential exposure through debug output, screenshots, shell history, repositories, or misconfigured tooling, which could let an attacker invoke billed APIs and access account-scoped data.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

This markdown file documents operations that affect user billing and credits, including searches, detail retrieval, and export creation. Although costs are stated in the endpoint descriptions, there is no explicit warning or caution section advising users that invoking these operations will spend points and may impact their account balance.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

All user-facing natural-language content in the file is presented exclusively in Chinese, and there is no indication that the skill supports other languages or that Chinese is a justified regional requirement. Per the policy, forcing a specific language without user opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The English and Chinese trial-points sections materially contradict each other: English says 10 points expiring in 30 days, while Chinese says 100 points expiring in 90 days. In a billing and entitlement document, conflicting language can mislead users, create disputes, and cause inconsistent enforcement across locales; while not a code-execution issue, it is a real trust, compliance, and consumer-protection vulnerability.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The document provides compliance instructions exclusively in English and Chinese, with no indication that users may select another language or that these are merely example translations. Under the policy, forcing specific languages without user opt-in can be a natural-language locale violation unless the restriction is clearly justified.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
92% confidence
Finding

The skill instructs the host to invoke a local Node CLI and interact with a remote API, which implies network access and likely environment-based secret handling, but it does not declare any explicit tool scope such as allowed tools or permissions. This creates an authorization ambiguity: a host may grant broader-than-necessary capabilities, increasing the risk of unintended network access, secret exposure, or unsafe execution assumptions.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

The entire skill description and prescribed interaction flow are written only in Chinese, and there is no indication that users may choose another language or that the Chinese-only requirement is an explicit opt-in. Under the policy, forcing a specific language without user choice can be a natural-language policy violation unless the locale restriction is clearly documented and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The natural-language instruction begins with "Use $chinese_trademark_search_skill..." in English, while the skill name and description are Chinese-facing. This indicates a language preference being imposed by the skill rather than offering the user a choice or documenting a justified locale constraint.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The API contract is written entirely in Chinese and presents all user-facing messages, field labels, and workflow guidance only in Chinese. Under the language/locale policy rule, this is a natural-language locale constraint without any visible opt-in, alternative locale, or justification that the skill is region-specific.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
98% confidence
Finding

Line L463 says the Chinese steps and trialNotice mean new organizations receive 10 trial points valid for 30 days, but the actual Chinese trialNotice at L459 states 100 trial points valid for 90 days. This is an active contradiction in the documentation, not merely an omission, and could mislead users about billing and onboarding terms.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

This line states that the steps and trialNotice fields are returned by the platform in Chinese, which imposes a specific language on users. The file does not indicate any user choice, opt-in, or justified locale restriction for this behavior.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

This markdown file includes example requests to export query results as a file, which can affect user data handling on the system. The examples mention cost confirmation but do not warn that an export will create a file or describe storage/privacy implications.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

SQP-3 covers language or locale policy violations when a skill forces a specific language without user opt-in. This file is entirely bilingual in English and Chinese, but it does not indicate that users may select a preferred language or obtain the notice in another locale, which can be read as imposing fixed languages.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The document states that the skill provides Chinese trademark search results and directs users to Chinese trademark authorities, which indicates a fixed language/locale context. While this may be functionally related to the skill, the file does not explicitly offer a user language/locale choice or document the constraint as a justified region-specific limitation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
79% confidence
Finding

The document states that points are purchased at '1 CNY = 5 points' and presents CNY as the base purchase currency. While approximate USD/EUR references are provided, there is no explicit user choice of billing currency or explanation that the service is China-specific, which can be a natural-language locale policy concern.

Content

No source excerpt is available for this finding.

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · LEGAL_DISCLAIMER.md (reported line 28)May include surrounding context.

md
### Applicability

This Skill and the associated platform services are subject to export control and economic sanctions laws and regulations, including but not limited to:

- **United States Export Administration Regulations (EAR)**, administered by the Bureau of Industry and Security (BIS)
- **United States Office of Foreign Assets Control (OFAC)** sanctions programs

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · SANCTIONS_COMPLIANCE.md (reported line 12)May include surrounding context.

md
### Applicability

This Skill and the associated platform services are subject to export control and economic sanctions laws and regulations, including but not limited to:

- **United States Export Administration Regulations (EAR)**, administered by the Bureau of Industry and Security (BIS)
- **United States Office of Foreign Assets Control (OFAC)** sanctions programs

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · SANCTIONS_COMPLIANCE.md (reported line 47)May include surrounding context.

md
### Applicability

This Skill and the associated platform services are subject to export control and economic sanctions laws and regulations, including but not limited to:

- **United States Export Administration Regulations (EAR)**, administered by the Bureau of Industry and Security (BIS)
- **United States Office of Foreign Assets Control (OFAC)** sanctions programs

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
76% confidence
Finding

The package description explicitly scopes the skill to 'Chinese trademarks,' which is a locale-specific constraint expressed in natural language. In this file there is no accompanying statement that this is optional, user-selected, or justified as a region-specific compliance/business requirement.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The file initializes the current language to 'zh', and later language resolution also falls back to Chinese unless the user explicitly passes --lang en. This imposes a specific language by default rather than offering a neutral prompt or explicit opt-in, which matches the locale-policy concern described for natural-language policy violations.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

The natural-language strings in the tests show the CLI emits Chinese messages by default and only switches to English when the user passes --lang en. This suggests a language-default policy choice embedded in the skill behavior without evidence here of user choice or justification, which may violate language/locale neutrality requirements.

Content

No source excerpt is available for this finding.