Back to skill

Security audit

cross-border-patent-risk-screen

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly purpose-aligned for patent risk screening, but it can upload local product images to an external service to create a public URL without requiring explicit user consent or explaining retention controls.

Review carefully before installing. Do not provide confidential, unreleased, regulated, or trade-secret product images unless you are comfortable with them being uploaded to an external service and made available through a public URL; prefer public product links or already-public images, and ask for explicit confirmation and retention/deletion details before local-image uploads.

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:28
Finding

Public Exposure of Uploaded Local Product Images

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 28–32
Vulnerability Type: Local image upload to a publicly accessible URL without an explicit privacy safeguard
Risk Level: Medium

Vulnerable Code Snippet

markdown
**Step 1. Image Acquisition**
- If the user provides an image URL → use it directly
- If the user provides a product link → call `web_fetch` to retrieve the page and extract the primary product image URLs
- If the user provides a local image → call `mcp_patsnap-patent-search__upload_patent_image` to upload it and obtain a public URL

The final instruction corresponds to this original line:

markdown
- 若用户提供本地图片 → 调用 `mcp_patsnap-patent-search__upload_patent_image` 上传获取公开URL

Technical Analysis

The Skill directs the agent to send a user-provided local image to an external MCP service specifically to obtain a public URL. It does not require informed user consent before disclosure, warn that the image may become publicly accessible, or define authentication, URL expiration, retention, deletion, and access-control requirements.

Local product images may depict confidential prototypes, unreleased designs, manufacturing details, embedded identifiers, or metadata. Turning such an image into a publicly reachable resource crosses a trust boundary and can disclose sensitive intellectual property.

No evidence establishes that the generated URL is indexed, permanent, or discoverable without possession of the URL. The confirmed weakness is therefore the unsafe workflow requirement and absence of privacy controls, rather than confirmed broad publication.

Attack Path

  1. A user supplies a local image of a confidential or unreleased product for patent-risk analysis.
  2. The Skill invokes mcp_patsnap-patent-search__upload_patent_image.
  3. The external service stores the image and returns a public URL.
  4. The URL is passed through subsequent image-analysis and patent-search operations.
  5. Anyone who obtains or obs ...[truncated 855 chars]
Remediation
View remediation

Remediation Suggestions

  1. Require explicit, informed user consent before uploading any local image to an external service.
  2. Clearly disclose the service recipient, the purpose of the upload, whether the resulting URL is publicly accessible, and the applicable retention policy.
  3. Replace public URLs with private authenticated storage and short-lived signed URLs restricted to the required services.
  4. Set a minimal expiration period and automatically delete uploaded content after analysis.
  5. Avoid recording image URLs in reports, logs, telemetry, or persistent conversation state.
  6. Strip EXIF metadata and other embedded identifiers before uploading.
  7. Offer a preview and redaction step so users can remove confidential backgrounds, labels, serial numbers, or unrelated content.
  8. Refuse or request confirmation when an image appears to contain confidential, personal, or export-controlled information.
  9. Document provider-side encryption, access controls, deletion guarantees, and incident-response procedures.
  10. If private upload capability is unavailable, clearly state that local confidential images must not be submitted and allow a text-only analysis path.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (2)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill instructs the agent to upload locally provided images to upload_patent_image to obtain a public URL, but the user-facing description and flow do not clearly obtain informed consent or warn that the image becomes publicly accessible. In a patent-risk screening context, product images may reveal unreleased designs, supplier information, or trade secrets, so silent publication can cause irreversible confidentiality loss and downstream IP or business harm.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

The parameter table sets the user interface/report language to Chinese by default, which can impose a specific language choice. Although it notes English can be switched to, it does not clearly state that the user will be asked or can choose language up front.

Content

No source excerpt is available for this finding.