T09 · Insecure Skill Coding Practices
- Location
scripts/videogen.py:90- Finding
Bearer API Key Disclosure Through an Unrestricted Base URL
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill appears purpose-aligned for AI-HIVE video generation, but it needs review because it can send API credentials and user-selected media through insufficiently constrained network endpoints.
Review this before installing if you will use a real AI-HIVE key or sensitive media. Use only the default AI-HIVE endpoint, avoid setting AI_HIVE_BASE_URL or --base-url unless you fully trust the endpoint, and confirm tasks before running prompts that may incur cost or upload private assets.
scripts/videogen.py:90Bearer API Key Disclosure Through an Unrestricted Base URL
scripts/videogen.py:277Unvalidated Server-Supplied Upload and Download URLs
The skill describes and invokes capabilities equivalent to shell execution, network access, reading environment/config secrets, and file write/download behavior, but it does not declare any tool scope or allowed-tools boundary in the manifest. That creates an authorization ambiguity where a host or reviewer cannot easily determine the minimum required privileges, increasing the risk of overbroad execution, secret exposure, or unintended file/network actions.
The manifest explicitly sets language: zh-CN, which indicates a fixed locale preference. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale restriction is clearly justified, and no such user choice or justification is provided here.
The manifest enables implicit invocation while pairing it with a very broad default prompt that can trigger real external actions: submitting media-generation jobs, uploading assets, polling task status, and downloading outputs. Without explicit trigger constraints, confirmation gates, or exclusion conditions, the skill may be invoked in contexts the user did not clearly intend, causing unintended API usage, data transfer, and billing exposure.
The module docstring and user-facing help/instructions are written in Chinese, and the skill does not indicate that language is optional or region-specific. This creates a natural-language locale constraint that may exclude users expecting language choice.
Natural-language policy checks apply to all file types. The display name, description, and default prompt force a specific language presentation without offering a language/locale choice or documenting that the skill is intentionally limited to Chinese-speaking users.