T09 · Insecure Skill Coding Practices
- Location
SKILL.md:35- Finding
API Key Exposed Through URL Query Parameter
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is generally coherent for biomarker research, but its setup and runtime instructions create avoidable API-key exposure and automatic external service calls that users should review before installing.
Install only if you are comfortable connecting Claude Code to PatSnap with your account. Prefer a safer credential mechanism than a URL query string if PatSnap or your MCP client supports one, restrict and rotate the API key, and be aware the skill instructs the agent to contact PatSnap on every load for a connectivity check.
SKILL.md:35API Key Exposed Through URL Query Parameter
SKILL.md:57Mandatory External Connectivity Probe Exceeds Minimum Necessary Network Access
The skill name explicitly indicates zhcn, suggesting a Chinese-language variant, but the file provides no user-facing option to choose another language or consent to locale-specific behavior. Under the policy rule, forcing a specific language without opt-in is a natural-language policy concern unless clearly documented as a justified region-specific constraint.
The skill’s advertised purpose is limited to biomarker-related academic and patent literature search, but the instructions expand into patent infringement risk assessment and broader R&D/commercial intelligence tasks. This scope expansion can cause the agent to access and synthesize more sensitive or off-purpose data than the user reasonably expects, increasing the risk of unauthorized analysis and data overreach.
The skill exposes access to news, drug deal, and organization/company intelligence that are not necessary for the stated biomarker literature and patent search function. Unnecessary tool exposure broadens the attack surface and creates opportunities for unintended data collection or mission creep beyond the user’s requested task.
The guidance says to preserve the user's language preference in queries, but the overall skill is written as a Chinese-only skill and does not clearly offer users a language choice for responses. Combined with the zhcn designation, this creates an implicit fixed locale behavior rather than an explicit opt-in or documented justified limitation.
L138 给出的原则是优先使用 MCP,只有在 MCP 无法满足需求时才考虑其他来源。L253-L289 则细化为在所有 MCP 检索完成后,只要结果严重不足或用户要求最新进展即可使用网络搜索;这不完全等同于“MCP 无法满足需求”,造成文档内部对外部来源使用门槛的表述不一致。