Back to skill

Security audit

AI大模型专家|短剧 AI选角与定妆

Security checks for vulnerabilities and agentic risk

Overview

This is a Chinese-language AI-HIVE media-generation helper that uses an API key and user-selected media, with some disclosure and packaging issues but no hidden destructive or exfiltration behavior found.

Before installing, users should be comfortable giving this skill an AI-HIVE API key, uploading selected media to AI-HIVE/object storage, and paying for any generation tasks they submit. Prefer using a virtual environment with a pinned requests dependency, review generated commands before running them, and use a revocable API key with limited exposure.

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:119
Finding

Unpinned Third-Party Dependency Installation

Content
View full analysis

Vulnerability Details

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

Vulnerable Code

bash
pip3 install requests

Technical Analysis

The documented setup command installs requests without a fixed version, a cryptographic hash, or an explicitly trusted package index. Consequently, the installed artifact depends on the package versions and repository configuration available when the command is run.

This creates supply-chain exposure. A compromised upstream release, malicious package-index configuration, or future incompatible release could cause users to install unreviewed code. Python packages may execute code during installation and subsequently run with the privileges of the user invoking the Skill.

No evidence was found that the project intentionally references a typosquatted package or malicious package source. The issue is the absence of reproducible dependency controls.

Attack Path

  1. An attacker compromises a future requests distribution or causes the victim's pip configuration to resolve packages through a malicious index or mirror.
  2. The user follows the documented first-time setup command:
    bash
    pip3 install requests
    
  3. Pip resolves and installs an artifact that was not pinned or verified by hash.
  4. Malicious installation or runtime code executes with the invoking user's permissions.
  5. The malicious dependency could access data available to that user, including the AI-HIVE API key in the environment or ~/.ai-hive/config.json, and could modify user-accessible files or network traffic.

Impact Assessment

Successful exploitation could obtain the same privileges as the user running pip or the Skill. Potential scope includes:

  • Reading or modifying files accessible to that user.
  • Stealing environment variables and locally stored API credentials.
  • Intercepting prompts, uploaded media, generated results, or API responses.
  • Ma ...[truncated 328 chars]
Remediation
View remediation

Remediation Suggestions

  1. Define dependencies in a version-controlled requirements or lock file using reviewed, exact versions:

    text
    requests==<reviewed-version>
    
  2. Generate and record cryptographic hashes for all direct and transitive dependencies, then enforce them:

    bash
    python3 -m pip install \
      --index-url https://pypi.org/simple \
      --require-hashes \
      -r requirements.txt
    
  3. Prefer an isolated virtual environment rather than installing into the global interpreter:

    bash
    python3 -m venv .venv
    . .venv/bin/activate
    python3 -m pip install --require-hashes -r requirements.txt
    
  4. Review and update pinned dependencies through a controlled process that includes vulnerability scanning and compatibility testing.

  5. Warn users not to install dependencies with administrator privileges and to verify that pip is configured to use an approved repository.

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 (14)

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The documented purpose does not disclose that the skill can retrieve account information, wallet balance, enumerate models, support general chat, and act as a broad AI-HIVE API wrapper. In context, this is more dangerous because the skill also instructs users to configure API keys; combining secret handling with undeclared account/API operations can lead to privacy issues, unexpected charges, or abuse of a user's AI-HIVE account beyond the advertised casting workflow.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The documented purpose does not disclose that the skill can retrieve account information, wallet balance, enumerate models, support general chat, and act as a broad AI-HIVE API wrapper. In context, this is more dangerous because the skill also instructs users to configure API keys; combining secret handling with undeclared account/API operations can lead to privacy issues, unexpected charges, or abuse of a user's AI-HIVE account beyond the advertised casting workflow.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The documented purpose does not disclose that the skill can retrieve account information, wallet balance, enumerate models, support general chat, and act as a broad AI-HIVE API wrapper. In context, this is more dangerous because the skill also instructs users to configure API keys; combining secret handling with undeclared account/API operations can lead to privacy issues, unexpected charges, or abuse of a user's AI-HIVE account beyond the advertised casting workflow.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The manifest describes a specialized skill for 短剧 AI选角与定妆, turning character/story/brand requirements into reusable visual assets and potentially continuing to video generation. However, the actual skill wrapper hard-codes a generic GPT Image 2 model and only exposes generic image generation, task query, upload, and init flows, with no casting-, role-, storyboard-, or drama-specific logic. This is a substantive mismatch between the claimed purpose and the implemented behavior.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
90% confidence
Finding

The skill advertises executable commands and references scripts that imply shell, network, environment-variable, and local file capabilities, but it does not declare an explicit tool/permission scope. That creates an authorization and review gap: a host or user may not understand that the skill can access secrets, read/write files, and make outbound requests, increasing the risk of unintended data exposure or misuse.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The display name, description, and default prompt are all written in Chinese, which suggests a fixed language/locale experience. The file does not indicate that the user can choose another language or that the Chinese-only behavior is intentionally limited to a justified region-specific use case.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill enables implicit invocation with no visible activation constraints, so the agent may select and run it based on broad similarity rather than clear user consent. Because this skill can drive generation workflows and produce executable prompts/commands, unscoped auto-activation increases the chance of unintended invocation, prompt-surface expansion, and accidental use in contexts the user did not request.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This code file contains natural-language strings that present the skill as a general-purpose tool, but all visible instructions, help text, and prompts are Chinese-only. Because the skill does not offer user opt-in for language selection or document that it is intentionally restricted to Chinese-speaking users, it violates the language/locale policy criteria.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The manifest says the skill can continue on to generate video, which implies an end-user-facing capability for video workflows. In this file's actual skill entrypoint, the exposed commands are only generate, task, upload, and init; there is no video subcommand in the skill parser even though generic helper code elsewhere supports video. Users invoking this skill as packaged cannot access the advertised video capability.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The file is presented as a skill for short-drama casting/makeup video generation, but the script actually exposes a broad generic AI-Hive client with chat, model enumeration, uploads, image generation, video generation, and task polling. This scope expansion violates least-privilege for skills and can let a caller use the skill as a general-purpose gateway to capabilities outside the declared workflow, increasing misuse and data exposure risk.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This code file contains user-facing natural-language descriptions entirely in Chinese, presenting the tool as a general-purpose skill without indicating that Chinese is required or optional. For a general skill, forcing a specific language/locale without opt-in matches the language/locale policy violation criteria.

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 placeholder uses Chinese text ('请替换为你的APIKey'), which imposes a specific language in user-facing configuration content. There is no indication that this file is intended only for Chinese-speaking users or that alternative locales are supported.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The user-info endpoint retrieves account and wallet information, which is unrelated to the manifested casting/makeup generation purpose. Even if protected by the user's API key, exposing account metadata through an unrelated skill increases unnecessary access to sensitive billing/profile data and widens the blast radius if the skill is misused.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

The initialization flow launches a browser to an external site and appends 'from=cli-skill' and 'skill' query parameters for backend attribution. For a skill whose stated purpose is AI casting/makeup and reusable visual/video asset generation, browser launching and attribution tracking are ancillary capabilities not justified by the core creative task itself.

Content

No source excerpt is available for this finding.