Back to skill

Security audit

Nano Banana Pro 产品图生成

Security checks for vulnerabilities and agentic risk

Overview

The skill mainly matches its product-image purpose, but it can send the user's AI Hive bearer API key to any configured API base URL, including unsafe or non-AI-Hive endpoints.

Install only if you trust this AI Hive workflow and understand it stores an API key locally and uploads selected reference media. Keep the default HTTPS AI Hive endpoint, do not set `--base-url`, `AI_HIVE_BASE_URL`, or config `base_url` to an unknown or HTTP host, and consider installing dependencies in a virtual environment with pinned versions.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (2)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/imagegen.py:91
Finding

Bearer API key can be transmitted to an arbitrary or plaintext endpoint

Content
View full analysis
` header to every request made through `_request`. Consequently, a custom base URL can redirect authenticated requests to an arbitrary server. The implementation also accepts plaintext `http://` URLs, which can expose credential ...[truncated 1620 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Note
Location
SKILL.md:72
Finding

Runtime dependency installation is not version- or integrity-pinned

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (8)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
93% confidence
Finding

The skill invokes shell commands, installs packages, performs networked image-generation tasks, and reads/writes files, but it does not declare any explicit tool restrictions or permissions. That creates unnecessary ambiguity about what runtime capabilities the skill is allowed to use, increasing the risk of over-privileged execution or accidental misuse if an agent auto-enables broad tools for this skill.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The description lists many generic use cases such as product images, Amazon Listing, Shopify product images, SKU batch work, and new-product visuals, which makes activation scope broad and potentially ambiguous. It does not provide explicit trigger phrases, exclusions, or context limits to distinguish when this skill should activate versus other image-generation or e-commerce skills.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
81% confidence
Finding

The skill content and operational instructions are presented in Chinese, while the description also mixes Chinese and English use cases without stating that language is optional or user-selectable. This can violate language/locale policy when a skill implicitly enforces a specific language without opt-in.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The top-level docstring says the file wraps text chat, image generation, video generation, model queries, media upload, and task polling as a generic AI Hive OpenAPI tool, and the general parser repeats that framing. This actively conflicts with the embedded skill configuration and manifest, which present the file as a dedicated Nano Banana Pro product-image skill.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The module docstring and user-facing CLI text are written in Chinese, and later prompts/errors also assume Chinese throughout the interaction. This imposes a specific language/locale on users without offering any language choice or documenting a justified region-specific constraint.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The manifest describes a focused skill for generating brand-consistent product images via Nano Banana Pro, but this wrapper exposes additional user-facing commands to query arbitrary generation tasks and upload files independently of image generation. Those operations are broader than the claimed 'product image generation' purpose and make the skill act as a more general AI Hive media/task utility.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

This markdown file contains user-facing natural-language content exclusively in Chinese across the substantive entries. Under the policy rule for language or locale constraints, forcing a specific language without opt-in or justification can be a policy issue.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

The example API key placeholder uses Chinese text ('请替换为你的APIKey'), which imposes a specific language in user-facing configuration content. The file does not offer an alternative locale or indicate that the language choice is intentional or region-specific.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.