T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/imagegen.py:257- Finding
Unrestricted Local File Upload Exceeds the Skill's Required Scope
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This appears to be a real AI marketing-image skill, but it needs review because it can upload arbitrary local files to an external service when given a path.
Install only if you trust AI Hive with the reference images and local files you explicitly pass to the tool. Avoid giving it paths to documents, secrets, source files, or broad home/workspace locations, and consider pinning dependencies before use.
scripts/imagegen.py:257Unrestricted Local File Upload Exceeds the Skill's Required Scope
SKILL.md:74Unpinned Third-Party Dependency Installation
This markdown file contains substantive user-facing natural-language content almost entirely in Chinese, but it does not indicate that the skill is region-specific or provide any user opt-in for the enforced language. Under the policy criteria, forcing a specific language without choice or justification is a natural-language policy violation.
The skill invokes shell commands, installs packages, accesses files, and appears capable of network activity, but it declares no explicit tool scope or permission boundaries. That creates a privilege gap where the agent may execute broader actions than users expect, increasing the chance of unsafe file access, package installation, or command execution if the skill is triggered in an untrusted context.
The description uses broad trigger language for common marketing and image-generation tasks, making the skill likely to auto-match a wide range of ordinary user requests. When a skill with code execution and file/network capabilities is too broadly invocable, it can be selected unexpectedly and expose those capabilities in contexts where the user did not intend to run operational commands.
The file presents the skill name and all operational instructions in Chinese and does not indicate that users may choose another language or locale. Under the language/locale policy, forcing a specific language without opt-in is a natural-language policy concern unless the constraint is clearly documented and justified.
The file header and parser descriptions frame the code as a general-purpose AI capability tool, while the packaged skill claims to be a specialized Nano Banana Pro marketing-image skill. This inconsistency is dangerous because it obscures the true behavior and scope of the tool, undermining informed consent and making risky capabilities easier to hide inside a seemingly narrow skill.
This code file contains user-facing natural-language descriptions and help text in Chinese, starting from the module docstring, and the CLI continues that pattern throughout. Because the skill does not offer users a language/locale choice or explain that it is intentionally region-specific, it can violate language/locale policy requirements.
The skill is presented as a narrowly scoped Nano Banana Pro marketing-image generator, but the implementation still exposes generic API operations such as account/task introspection, upload utilities, and initialization flows beyond the advertised purpose. This scope mismatch increases attack surface and can mislead users into granting credentials or invoking broader platform capabilities than expected.
The sample API key value includes Chinese text ('请替换为你的APIKey'), which imposes a specific language in user-facing configuration content. There is no indication that the skill offers language choice or that a Chinese-only locale is required for a documented regional purpose.
The skill's stated purpose is creating Nano Banana Pro marketing visuals, but cmd_init opens a browser, guides a login flow, and writes persistent credentials to the user's home directory. Credential bootstrapping is operational account management, not an obvious part of the business purpose described in the manifest.
No suspicious patterns detected.