Back to skill

Security audit

have-a-nice-day

Security checks for vulnerabilities and agentic risk

Overview

This Tencent Maps skill is mostly map-service aligned, but it needs review because some workflows can expose a user's Tencent Maps API key in returned links while sending precise location and travel data to Tencent services.

Review this skill before installing. Use only a restricted, temporary Tencent Maps key with tight quotas and referrer or IP limits, avoid sharing generated links, and do not submit sensitive home, work, or third-party location data unless you are comfortable sending it to Tencent Maps. Rotate the key if it appears in chat logs or browser history.

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

T09 · Insecure Skill Coding Practices

Warning
Location
references/scene2-nearby-search.md:95
Finding

API Credential Disclosure in Nearby-Search Links

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
references/scene5-travel-planner.md:128
Finding

API Credential Disclosure in Travel-Planning Links

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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 (15)

Tp4

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

整体上,代码与声明的大方向基本一致:确实围绕腾讯地图位置服务,包含 POI 搜索、多种路径规划和旅游规划能力。代码还会访问腾讯地图 API,这与描述相符,并未发现明显的额外高风险或无关能力。However,声明中的“轨迹数据可视化”和“地图数据可视化”是较明确的能力表述,而实际代码并没有实现真正的可视化渲染、轨迹展示或地图展示,只是返回 POI/路线相关结构化数据,供外部系统可能进一步渲染。因此描述对可视化能力有明显夸大。另,“周边搜索”并非独立功能模块,但可通过 query_place 的 nearby boundary 参数部分实现。综合来看,存在描述大于实际实现的能力不匹配。

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill declares environment and implied network use but does not define an explicit tool/permission scope. That creates an authorization ambiguity where the runtime may permit broader access than users or reviewers expect, especially since the skill references API usage, external web services, and a secret-bearing environment variable.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger rules are very broad, including common verbs like “搜”, “找”, “查”, “附近”, and “规划”, which can cause the skill to activate for ordinary conversations unrelated to explicit map-service intent. In this skill context, accidental activation matters because user queries may include sensitive locations that would then be sent to Tencent mapping services or processed under the wrong workflow.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill does not clearly warn users that their supplied addresses, coordinates, route endpoints, and nearby-search terms will be transmitted to Tencent Map web services. This creates a privacy and data-governance risk, especially because location data is highly sensitive and the skill is designed around geocoding, POI lookup, and route planning.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The file emits user-facing console messages and error text entirely in Chinese, and similar hard-coded Chinese output appears throughout the skill. This imposes a specific language on users without any opt-in or locale selection, matching the language/locale policy violation criteria.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The reply template is written entirely in Chinese and instructs the skill to return a fixed Chinese response. This creates a language/locale policy issue because the file does not offer user opt-in or an alternative language, and no region-specific justification is provided.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill directs users to place a Tencent Maps API key directly into curl URLs and generated shareable links, which can expose the key through shell history, application logs, browser history, referrer leakage, screenshots, or copied links. Because the workflow also tells the agent to return the full URL to the user, the risk of accidental credential disclosure is materially increased by the skill context.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

Line L006 instructs to '不要生成代码后者调取其他脚本后者接口', which states the workflow should not call other scripts or interfaces. However, later instructions explicitly require invoking Tencent's geocoding API with a curl request at L036-L047, directly contradicting that earlier instruction.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The documentation instructs users to provide a temporary Tencent Maps API key and precise coordinates for POI and nearby searches, but it does not warn that sensitive location/query data will be transmitted to a third-party service. This can lead to uninformed disclosure of user location, search intent, and associated metadata, which is a real privacy/security concern in a location-services skill.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The documentation explicitly instructs users to send precise origin and destination coordinates to a third-party mapping API, but it does not provide any privacy warning, consent guidance, retention note, or data-minimization advice. Because location data is highly sensitive and route-planning workflows can reveal home/work patterns and travel habits, omission of privacy guidance increases the risk of inadvertent exposure or non-compliant data handling.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill directs the agent to send user-provided itinerary details and a Tencent Maps API key to external Tencent endpoints, but it does not clearly warn the user that their travel preferences and configured key will be transmitted to a third-party service. In this context, the omission is security-relevant because the workflow also instructs embedding the API key directly in generated URLs, which can expose the key via logs, browser history, referrers, or link sharing.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

The package description is written entirely in Chinese and does not indicate that the skill is China-specific or that other languages are supported. Under the language/locale policy, this can be a natural-language policy issue when a specific language is imposed without opt-in or justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The file presents all user-facing instructions and reply templates exclusively in Chinese and does not indicate that language selection is optional. Under the policy, forcing a specific language without user opt-in can be a locale-policy issue unless the restriction is clearly documented and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

Natural-language policy violations apply to all file types, including markdown. The document presents all instructions, parameter explanations, and examples only in Chinese and does not indicate that the user may choose another language or that the skill is intentionally restricted to a Chinese-language or region-specific context.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

All instructions, examples, and reply templates are specified exclusively in Chinese, and the skill does not indicate that users may choose another language. This can violate language/locale policy when a skill effectively forces a specific language without opt-in.

Content

No source excerpt is available for this finding.