T09 · Insecure Skill Coding Practices
- Location
scripts/imagegen.py:91- Finding
API Credential Disclosure Through an Unrestricted Base URL
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is mostly a disclosed AI-HIVE content workflow, but it handles API credentials and exposes configurable authenticated requests in ways users should review before installing.
Install only if you intend to use AI-HIVE and are comfortable storing an API key locally. Avoid setting custom AI_HIVE_BASE_URL or --base-url unless you fully trust the endpoint, review generated commands before running them, and confirm cost-bearing generation parameters before submitting jobs.
scripts/imagegen.py:91API Credential Disclosure Through an Unrestricted Base URL
The declared purpose is strategic GEO/AEO content planning, but the described behavior includes broader model operations, asset generation, account/resource access, and potentially wallet/user-info queries that are not clearly disclosed in the top-level contract. This mismatch can mislead users and reviewers about what the skill is actually capable of, enabling unexpected data access, spending, or external operations under a benign-seeming label.
The skill advertises executable workflows involving environment variables, local file access, shell commands, and network calls, but it does not declare any explicit tool scope or permission boundaries. In an agent environment, this increases the risk of over-privileged execution, unintended external requests, local file exposure, or command execution beyond what the user expects.
Standalone trigger keywords such as broad GEO/AEO-related terms can cause the skill to activate in contexts where the user did not intend to invoke a networked or execution-capable workflow. Overbroad auto-activation increases the chance of unnecessary exposure of user data, confusion, or accidental progression toward billable actions.
The adaptation/use condition is broad enough to cover generic requests to turn reference material into original content, scripts, prompts, code, or task lists without sufficiently tight scope boundaries. In practice, this can pull the skill into adjacent areas like content imitation, copyright-sensitive transformation, or tool-assisted generation beyond the stated GEO/AEO planning role.
The default prompt hard-codes Chinese output ('production-ready Chinese workflow') regardless of user preference, which can override user intent and reduce transparency about what the system will produce. While not directly enabling code execution or privilege abuse, it can degrade safety and usability by causing unexpected outputs, especially when paired with automatic skill selection.
The skill enables implicit invocation while providing only a broad marketing-oriented description, which increases the chance the agent will auto-select this skill outside a narrowly intended context. Because the skill is designed to generate workflows, runnable commands, and content artifacts, unintended invocation could cause the system to produce operational guidance or API-facing actions without clear user intent verification.
The file’s natural-language description and CLI description are hardcoded in Chinese branding/text without offering any language or locale choice. The policy allows locale constraints only when they are opt-in or clearly justified as region-specific, which is not stated here.
The manifest describes a narrowly purposed skill for GEO/AEO content-growth support, with image-material generation as an implementation detail via AI-HIVE. However, this file implements a general-purpose AI Hive CLI covering user account info, wallet balance, model enumeration, text chat, standalone media upload, and video generation, which is materially broader than the declared skill purpose.
This code file contains the primary skill description and nearly all user-facing prompts exclusively in Chinese, including the module docstring and CLI help text. Under the policy rule, forcing a specific language without user opt-in is a natural-language locale violation, and the file does not provide any option to select another language or explain a region-specific requirement.
For a skill whose stated purpose is producing GEO/AEO content assets through AI-HIVE, interactive browser launching to account pages and querying user-info/wallet data are ancillary platform-management capabilities rather than task-specific content functions. These capabilities are not described in the manifest and are not obviously necessary to the end-user intent of GEO/AEO content production.