T09 · Insecure Skill Coding Practices
- Location
scripts/pubmed_search.py:49- Finding
NCBI API Key Exposed Through Chat, Process Arguments, URL Query Strings, and Plaintext Configuration
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly performs disclosed literature searches, but it mishandles optional API keys and includes anti-bot/CAPTCHA bypass guidance that users should review before installing.
Install only if you are comfortable sending research queries to PubMed, Google Scholar, and listed Scholar mirrors. Do not paste an NCBI API key into chat; prefer a secret manager or tightly scoped environment variable, and rotate any key already shared. Avoid using the Playwright/browser bypass path unless you have confirmed the target sites permit that access.
scripts/pubmed_search.py:49NCBI API Key Exposed Through Chat, Process Arguments, URL Query Strings, and Plaintext Configuration
SKILL.md:130Unpinned Playwright and Browser Installation Creates an Optional Supply-Chain Risk
Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.
Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.
Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.
Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.
The documentation describes specific source priority and coverage, but the analysis indicates the actual code path may only pass parameters through to sub-scripts and does not substantiate those guarantees. That mismatch is risky because users may depend on supposed official or preferred sources, while the skill may silently use different or fewer backends than claimed.
The documentation describes specific source priority and coverage, but the analysis indicates the actual code path may only pass parameters through to sub-scripts and does not substantiate those guarantees. That mismatch is risky because users may depend on supposed official or preferred sources, while the skill may silently use different or fewer backends than claimed.
The documentation describes specific source priority and coverage, but the analysis indicates the actual code path may only pass parameters through to sub-scripts and does not substantiate those guarantees. That mismatch is risky because users may depend on supposed official or preferred sources, while the skill may silently use different or fewer backends than claimed.
The guide explicitly instructs users to paste their email and NCBI API key into the chat, which can expose the credential in conversation history, logs, analytics systems, or to later operators of the agent platform. Although an NCBI API key is not as sensitive as a banking credential, it is still an account-bound secret and should not be solicited through chat without strong warnings and secure handling guidance.
This fallback text directly advises users to use Playwright headless browsing to bypass CAPTCHA after Scholar mirrors become inaccessible to plain HTTP requests. That is explicit circumvention guidance for technical access controls, making the skill more dangerous because its stated purpose is broad multi-source retrieval from sites known to deploy anti-bot protections.
The final fallback narrative tells users that Playwright can be used to bypass CAPTCHA via a headless browser when all Scholar sources are blocked. Because this is presented as recovery guidance in normal control flow, it effectively embeds anti-protection evasion instructions into the skill's user experience.
The changelog explicitly documents adding fixed parameters like hl=zh-CN and related values to bypass a site's anti-bot protections. Even though this is only a changelog entry, it describes implemented behavior that hard-codes locale and tuning values without user consent while also attempting to evade access controls, which raises both compliance and abuse concerns.
This entry again describes using a fixed hl=zh-CN parameter as part of a workaround to bypass 403 anti-crawling defenses on third-party Scholar mirror sites. In the context of a research-finder skill that automatically falls back across unofficial mirrors, this makes the behavior more concerning because it operationalizes evasion against multiple external services rather than a user-directed compatibility choice.
The README encourages activation through broad, natural-language phrases like 'just talk in plain language,' which can cause the skill to trigger on loosely related conversations. In an agent ecosystem, overbroad triggers increase the chance of unintended network access, external querying, or disclosure of user research interests without clear intent.
The English instructions similarly frame activation as unrestricted plain-language use, which can make the skill fire in contexts where the user did not clearly request external literature lookup. Because this skill performs network-based searches across multiple external sources, accidental invocation can expose sensitive topics or generate unintended outbound requests.
The skill declares tools that enable shell and network access but does not define an explicit permission boundary such as allowed-tools or scoped permissions. In an agent environment, that increases the blast radius of prompt injection or misuse because the skill can initiate external requests and subprocesses without a clearly constrained contract.
The description says the skill activates when users want to find literature, search papers, use PubMed, use Scholar mirrors, or get impact factor or citation data, which spans many loosely related intents. Because it does not clearly distinguish required trigger conditions or non-trigger cases, it may cause the skill to activate for routine discussion of research topics rather than explicit search requests.
The manifest trigger list contains generic phrases such as “找文献”, “检索论文”, “搜索文献”, “查论文”, “医学文献”, and “学术搜索”, which are broad enough to match common user requests outside a narrowly scoped invocation context. The file does not provide exclusion conditions, negative examples, or a constrained activation context to prevent unintended activation.
The instructions repeatedly require the assistant to produce results in Chinese, including “整理为中文报告” and Chinese summaries, without indicating that the user may choose another language. This imposes a locale/language preference as a default behavior rather than offering user choice.
The Scholar and unified-search workflow sections continue to require “整理为中文报告,” reinforcing a mandatory Chinese output policy across the skill. No opt-in or alternative locale behavior is described, so the language constraint appears unconditional.
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
0123456789abcdef0123456789abcdef0123
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
0123456789abcdef0123456789abcdef0123
The document states that hl defaults to zh-CN, which is a locale/language constraint expressed in natural language documentation. Under the policy, forcing a specific language without user opt-in is a reportable language/locale policy violation unless the constraint is explicitly justified as region-specific, which is not done here.
This code returns end-user error text in Chinese, and additional CLI/help-facing strings elsewhere are also Chinese-only. For a general PubMed search helper, forcing a specific language without user opt-in matches the language/locale policy violation criteria.
The --email and --api-key help strings are presented only in Chinese, which imposes a language choice on users of this general-purpose script. There is no indication in the file that the tool is region- or language-specific, nor any mechanism to choose locale.
The rate-limit guidance shown to users is only in Chinese, and the bulk hint later in the file is likewise Chinese-only. Because this is natural-language output in a general utility, it violates the policy against forcing a specific language without opt-in.
No suspicious patterns detected.