Back to skill

Security audit

静态海报动态化|AI-HIVE

Security checks for vulnerabilities and agentic risk

Overview

The skill broadly matches its poster-to-video purpose, but it needs review because downloaded AI results can be written outside the intended folder if the API response is unsafe.

Review before installing. Use only the official AI-HIVE base URL, provide only media you intend to upload to AI-HIVE, avoid running it with elevated privileges, and inspect downloaded files. The path handling bug should be fixed before broad use because a malicious API response could overwrite writable local files.

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/videogen.py:384
Finding

Remote API Response Can Escape the Intended Download Directory

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Note
Location
scripts/videogen.py:1
Finding

Unpinned Third-Party Dependency Installation

Content
View full analysis
Remediation
View remediation
\ --hash=sha256: ``` Install it with: ```bash python3 -m pip install --require-hashes -r requirements.txt ``` If transitive dependencies are listed separately, pin and hash every resolved package. ]]>
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (16)

Tp4

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The declared description presents a full production skill for animating static posters and optionally orchestrating AI-HIVE API operations to create assets and outputs. The supplied code only parses command-line arguments and saves a JSON file containing project fields, aliases, required facts, and artifact labels with status=draft. That makes the actual implementation a lightweight planning/brief generation utility, not the described animation/video-generation workflow. While a blueprint can be a supporting component of such a skill, this code chunk’s primary purpose is materially narrower and lacks the core promised capabilities.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The declared description centers on turning static posters into animated marketing videos and, when needed, using an external AI API pipeline. The supplied code does none of that. It only wraps ffmpeg/ffprobe for basic media operations: probing, trimming, reframing, muting, loudness normalization, and concatenation. While aspect conversion and trimming could be incidental parts of a video workflow, they do not implement the advertised core purpose. Therefore the description does not accurately represent the code’s actual behavior.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill advertises and demonstrates code paths that can use environment variables, local files, shell commands, and network access, but it does not declare any tool scope or allowed-tools boundary. In an agent environment, that omission weakens least-privilege controls and can let the skill invoke broader capabilities than reviewers or orchestrators expect, increasing the risk of secret exposure, unintended file access, or unreviewed outbound requests.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The natural-language instruction in the default prompt requires a "production-ready Chinese workflow," which imposes a specific language choice by default. This is a locale/language policy concern because the file does not indicate any user opt-in or alternative language selection.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The manifest describes a skill focused on static-poster animation and image-to-video generation using AI-HIVE OpenAPI, including configuration lookup, upload, routing, polling, and download. This script instead implements a standalone ffmpeg-based CLI for probing, trimming, reframing, muting, loudness normalization, and concatenating arbitrary video files, which is a materially different local editing capability rather than the described poster-dynamicization pipeline.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/edit_video.py (reported line 20)May include surrounding context.

python
def run(args: list[str]) -> None:
    print(" ".join(args))
    subprocess.run(args, check=True)


def main() -> None:

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

Commands such as probe, trim, mute, loudnorm, and concat provide broad short-video editing functionality for arbitrary media inputs. The manifest centers on animating authorized posters and generating motion deliverables through AI-HIVE, so these general-purpose media-manipulation features are not clearly justified by the stated skill purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The file is a broad AI-Hive CLI exposing chat, image generation, model discovery, uploads, account inspection, and task handling, while the advertised skill is a narrowly scoped poster-to-motion-video tool. This scope mismatch violates least privilege and increases the attack surface: any caller granted access to this skill can invoke unrelated remote capabilities and transfer arbitrary local media, which is more dangerous in an agent-skill context than in a standalone developer utility.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

This Python file contains user-facing natural-language strings and documentation entirely in Chinese, including setup guidance and runtime messages. Under the policy rule, forcing a specific language or locale without user opt-in is a natural-language policy violation when no alternative language choice is offered.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The general-purpose text chat endpoint is outside the stated function of poster/video generation and allows arbitrary prompts, optional system prompts, and image inputs to be sent to remote models. That turns a specialized media skill into a generic LLM access path, expanding opportunities for policy bypass, sensitive-data exfiltration, and unreviewed capability use.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

Standalone image generation is not required for converting a poster into motion video and materially broadens the skill's capabilities. In practice this gives users or upstream agents an unrelated content-generation channel, undermining the principle that the skill should only do the reviewed, declared task.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The upload flow sends arbitrary local files to remote object storage and then to the AI-Hive service, but the skill does not present an explicit privacy/data-transfer warning at the point of use. In an agent context, users may not realize that local media, including potentially sensitive images, audio, or videos, are being transmitted off-device to third-party infrastructure.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The module docstring and CLI description use Chinese-only natural-language strings ('静态海报动态化|AI-HIVE') with no indication that users may select another language or locale. Under the language/locale policy, forcing a specific language without user opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

Exposing user-info and wallet balance is unnecessary for generating animated poster videos and leaks account metadata beyond the skill's declared purpose. In an agent setting, this can enable unintended reconnaissance about the user's subscription state or account resources, even if it does not directly modify data.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

Full model enumeration across text, image, and video exposes unnecessary information about backend capabilities and available routing options for a specialized poster-animation skill. This reconnaissance can help misuse broader platform features that were not intended to be reachable through this skill.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
74% confidence
Finding

The polling flow automatically creates an output directory and writes downloaded image/video results to the user's Downloads path. While the code shows download progress, the skill description/docstring does not clearly warn that files will be created locally under the default output directory.

Content

No source excerpt is available for this finding.