Back to skill

Security audit

Nano Banana Pro 直播带货图片

Security checks for vulnerabilities and agentic risk

Overview

The skill appears to be a disclosed AI Hive image-generation helper that uploads user-selected media and stores an API key, with some setup and hygiene caveats to review.

Install only if you are comfortable giving this skill an AI Hive API key and uploading the images you select to AI Hive for generation. Use a virtual environment, consider pinning requests yourself, and keep the API key file protected or delete it when no longer needed.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:72
Finding

Unpinned Third-Party Dependency Installation

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:72
Vulnerability Type: Unpinned runtime dependency installation
Risk Level: Medium

Complete Code Snippet:

bash
pip3 install requests

Technical Analysis

The installation instructions retrieve requests and its transitive dependencies from the user's configured Python package index without specifying exact versions or verifying package hashes. Consequently, the installed artifacts may change after the skill has been reviewed.

This creates a software supply-chain risk. A compromised package repository, malicious package-index configuration, dependency confusion condition, or compromised future dependency release could cause attacker-controlled installation code to execute when the user follows the documented setup instructions.

The audit found no evidence that the project intentionally retrieves a known malicious package. The risk arises from mutable, unverified dependency resolution.

Attack Path

  1. An attacker compromises a relevant package release, transitive dependency, or package index used by the target.
  2. A user follows SKILL.md and runs pip3 install requests.
  3. Pip resolves the dependency from the compromised or attacker-controlled source without enforcing a reviewed version or cryptographic hash.
  4. Malicious installation or imported runtime code executes with the privileges of the user running pip or the skill.
  5. The malicious dependency can access data and resources available to that user, potentially including the AI Hive API key and media files processed by the skill.

Impact Assessment

Successful exploitation could result in arbitrary code execution under the installing user's account. The accessible scope may include user-readable files, environment variables, the API key stored in ~/.ai-hive/config.json, submitted media, generated output, and network resources available to the process.

If installation is performed from an elevated shell or sys ...[truncated 193 chars]

Remediation
View remediation

Remediation Suggestions

  1. Add a reviewed dependency lock file containing exact versions and cryptographic hashes.
  2. Replace the mutable installation instruction with a hash-enforcing command, such as:
bash
python3 -m pip install --require-hashes -r requirements.txt
  1. Pin requests and every transitive dependency in requirements.txt, for example:
text
requests==<reviewed-version> --hash=sha256:<verified-hash>
  1. Generate hashes only from trusted artifacts and review dependency updates before changing the lock file.
  2. Recommend installation in a dedicated virtual environment rather than a system-wide Python environment.
  3. Document the expected trusted package index and advise users to inspect pip configuration for unauthorized indexes or mirrors.
  4. Consider automated dependency scanning and controlled update tooling to detect known vulnerable or compromised releases.
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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
Findings (11)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill invokes shell commands, installs packages, uses a Python script, and appears to rely on network and file operations, but it declares no explicit tool scope or permission boundaries. This creates an over-privileged execution posture where an agent may run with broader capabilities than users or platform policy expect, increasing the risk of unintended command execution, dependency installation, external requests, or filesystem modification.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The description contains broad activation phrases covering many common livestream, product-image, and cover-generation scenarios across multiple platforms. Overbroad triggers can cause the skill to be invoked in contexts the user did not specifically intend, which is risky here because the skill can lead to code/tool use and external model operations.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The file is presented as a dedicated Nano Banana Pro livestream-image skill, but it actually ships a generic AI Hive client capable of text chat, video generation, model enumeration, user info lookup, and arbitrary media upload. This capability mismatch violates least privilege and expands what an agent can do far beyond the declared purpose, increasing the chance of unintended data access, misuse, or policy bypass in environments that trust skill metadata.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

This code file contains natural-language descriptions and CLI guidance exclusively in Chinese, including the module docstring and later user prompts. That can violate language/locale policy when the skill forces a specific language without user opt-in or an explicit region-specific justification.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

Exposing user account inspection and model discovery is unnecessary for a livestream-image generation skill and gives the skill access to broader account metadata and available backend capabilities. In an agent setting, that extra visibility can support reconnaissance, reveal billing or model inventory information, and enable follow-on abuse using capabilities the user did not intend to grant to this skill.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

Including text-chat support in a skill advertised only for livestream image generation unnecessarily broadens the interaction surface and permits arbitrary prompt forwarding to the provider. In a tool-using agent environment, this can be abused to send unrelated sensitive content, bypass expected task scoping, or use the skill as a general-purpose LLM conduit rather than a constrained image tool.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

Full video-generation support materially exceeds the declared image-only purpose and introduces higher-cost, broader-content-generation functionality under the guise of a narrower skill. This mismatch is dangerous because agents or users may trust the skill with image-scoped permissions while it can actually trigger more powerful media-generation actions and process additional media inputs.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

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

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
65% confidence
Finding

The file contains natural-language instructions that effectively force a fixed behavior and present the skill primarily in Chinese, with some English appended, without stating whether the user may choose language or locale preferences. Under the language/locale policy, skills should not implicitly force a language or locale experience without opt-in or clear justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The example API key value includes Chinese text ('请替换为你的APIKey'), which imposes a specific language in user-facing configuration content. The file does not offer a language choice or document a justified locale-specific constraint.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The documentation says this is a generic AI capability tool while the fixed configuration claims it is a dedicated Nano Banana Pro livestream-image skill. This inconsistency can mislead reviewers, users, and agents about the tool's real behavior, making the broader capabilities harder to notice and increasing the risk of inappropriate trust or unsafe invocation.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.