T09 · Insecure Skill Coding Practices
- Location
scripts/imagegen.py:92- Finding
API Credential Disclosure Through an Unrestricted Custom Base URL
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill largely discloses its AI-HIVE media workflow, but it needs review because its scripts persist API keys and can send them to an unrestricted custom API endpoint.
Install only if you are comfortable with an AI-HIVE workflow that stores an API key locally, sends prompts and selected media to AI-HIVE, may query account/balance data, and downloads generated outputs. Avoid custom base URLs unless you fully trust the endpoint, prefer an environment variable or a tightly protected config file for the key, and consider using a virtual environment with pinned dependencies.
scripts/imagegen.py:92API Credential Disclosure Through an Unrestricted Custom Base URL
SKILL.md:124Unpinned Dependency Installation From a Mutable Package Source
The documented purpose suggests a content-planning/search-optimization expert, but the actual capability set appears to include local credential storage, browser-launch setup, account inspection, direct chat, model routing, media upload, and generated file download. Such under-disclosed functionality is dangerous because it can lead to credential mishandling, overbroad data access, and user deception about what the skill will do in their environment.
The documented purpose suggests a content-planning/search-optimization expert, but the actual capability set appears to include local credential storage, browser-launch setup, account inspection, direct chat, model routing, media upload, and generated file download. Such under-disclosed functionality is dangerous because it can lead to credential mishandling, overbroad data access, and user deception about what the skill will do in their environment.
The documented purpose suggests a content-planning/search-optimization expert, but the actual capability set appears to include local credential storage, browser-launch setup, account inspection, direct chat, model routing, media upload, and generated file download. Such under-disclosed functionality is dangerous because it can lead to credential mishandling, overbroad data access, and user deception about what the skill will do in their environment.
The implementation materially diverges from the declared skill purpose: instead of a DeepSeek search/citation expert, it exposes a generic AI-Hive image-generation utility with upload, generation, and download capabilities. This mismatch is dangerous because users, reviewers, or automated policy systems may grant the skill permissions and trust based on the manifest while it performs unrelated networked actions and processes local files, increasing the risk of deceptive capability smuggling.
The embedded SKILL_CONFIG explicitly declares GPT Image 2 image generation/editing behavior, which directly contradicts the manifest's DeepSeek search optimization and citation-focused identity. Such contradictory metadata can mislead operators and users into invoking a different external service than expected, causing unauthorized data transfer, incorrect trust assumptions, and weakened review controls.
The file implements a generic AI-Hive client for chat, image/video generation, media upload, account inspection, and browser-assisted API-key setup, while the skill manifest claims a DeepSeek search/citation optimization capability. This scope mismatch is dangerous because users and reviewers may grant the skill broader trust and permissions than its declared purpose warrants, enabling unintended access to local files, external network endpoints, and paid account resources.
The embedded SKILL_CONFIG repurposes the tool into a short-drama video generator, including fixed model mappings and a dedicated skill CLI, which directly conflicts with the published DeepSeek search/citation description. Hidden repurposing is dangerous because it masks the real behavior of the skill and can cause operators to invoke costly media-generation and file-upload actions under false expectations.
The skill advertises and demonstrates capabilities that imply use of environment variables, local files, network access, and shell execution, but it does not declare any explicit tool scope or permission boundaries. This creates an authorization ambiguity where a reviewer or runtime may permit broader access than users expect, increasing the risk of over-privileged execution, secret exposure, or unintended filesystem/network actions.
The manifest sets language: zh-CN, and the visible title, summary, and content are all fixed in Chinese. There is no indication that users may choose another language or that the skill is intentionally restricted to a China-specific compliance or regional use case, so this appears to impose a locale preference without opt-in.
The display name, description, and default prompt are all written in Chinese, and the file does not state that language selection is optional or user-configurable. This can violate language/locale policy where skills must not force a specific language without user opt-in.
The default prompt is phrased as a broad natural-language invocation and can be triggered in ordinary user requests without strong scope boundaries or explicit activation cues. This increases the chance of unintended skill invocation, causing the assistant to steer users into this workflow, potentially exposing user context or producing actions the user did not clearly request.
The module docstring and nearly all user-facing prompts/messages in the file are written only in Chinese, which imposes a specific language on users. The file does not offer an opt-in language selection or explain that the skill is intentionally region-specific, so this is a natural-language locale policy concern.
This Python file contains user-facing natural-language descriptions entirely in Chinese and presents the skill as a general-purpose tool, but it does not indicate that language is configurable or limited to a China-specific audience. Under the policy, forcing a specific language or locale without user opt-in is a natural-language policy violation.
The skill exposes a user-info capability that retrieves account information and wallet balance, which is unrelated to DeepSeek search/citation optimization. In the context of a misleadingly described skill, this unnecessarily expands access to potentially sensitive billing/account metadata and increases the blast radius if the skill is invoked or repurposed unexpectedly.
The example API key placeholder uses Chinese text ("请替换为你的APIKey"), which imposes a specific language in user-facing configuration content. There is no indication that the skill is intended only for Chinese-speaking users or that another language option is available.
The script's docstring, argument parser description, and output metadata are all fixed in Chinese-language strings such as 'DeepSeek AI搜索收录与引用' and related aliases. The policy allows locale constraints only when the user is given a language choice or the restriction is clearly documented and justified, which is not present here.
The manifest frames the skill as helping teams decompose goals into executable planning, content structure, evidence fields, and generation tasks for DeepSeek search inclusion/citation. This script does not perform search, citation work, or model orchestration; instead it serializes fixed planning fields into a local JSON file, which is a narrower production-brief generator behavior than the broader skill description suggests.