Back to skill

Security audit

AI大模型专家|短剧BGM智能配乐

Security checks for vulnerabilities and agentic risk

Overview

Review recommended because the skill can store an AI-HIVE API key and send credentials plus selected media to a configurable, unvalidated API endpoint.

Install only if you are comfortable giving the skill an AI-HIVE API key and uploading selected media to AI-HIVE. Prefer environment variables over the init-created plaintext config file, avoid custom base URLs unless you fully trust the endpoint, and review generated upload/download destinations and costs before use.

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

T08 · Insecure Dependencies

Warning
Location
SKILL.md:120
Finding

Unpinned Third-Party Dependency Installation

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/videogen.py:641
Finding

AI-HIVE API Key Persisted in a Plaintext Configuration File

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/imagegen.py:641
Finding

Duplicate Plaintext API-Key Storage in Image Generation Client

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/videogen.py:90
Finding

Unrestricted API Endpoint Configuration Can Redirect Credentials and Selected Media

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/imagegen.py:90
Finding

Duplicate Unrestricted Endpoint Trust in Image Generation Client

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (20)

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The declared description promises a broad AI media-production workflow centered on short-drama BGM/intelligent scoring plus AI-HIVE-based image/video model orchestration. The supplied code does none of that. It only parses CLI inputs and writes a JSON brief to disk. While some labels in the JSON (e.g., search aliases and artifacts) echo the description, the implemented behavior is limited to metadata templating, which is materially narrower and different from the declared primary purpose. Therefore this is a clear description-behavior mismatch.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The description presents a broad AI media-production and soundtrack tool integrated with AI-HIVE services for model routing and task management. The supplied code does none of that. It is a straightforward local CLI wrapper around ffmpeg/ffprobe for basic video transformations and audio adjustments. While some functions loosely relate to editing outputs such as trims or aspect-ratio conversions, the central declared capabilities—AI-driven BGM, model usage, uploading/processing through a platform, and content abstraction/rewrite—are absent. This is a material description-behavior mismatch.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

There is a strong mismatch between description and implementation. The description markets a domain-specific short-video postproduction and BGM assistant, emphasizing soundtrack selection, editing workflow support, and content restructuring/rewrite use cases. The code does not implement music generation, soundtrack recommendation, editing automation, material organization, or rewrite logic. Instead, it is primarily an API client for AI-HIVE, with a skill wrapper hardcoded to the GPT Image 2 image-generation model. While the description mentions AI-HIVE as infrastructure for image/video models, that is only a small infrastructural overlap and does not align with the claimed primary purpose. The actual behavior is a generic/open image generation tool rather than a short-drama BGM intelligent scoring assistant.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The description emphasizes 短剧BGM/智能配乐/背景音乐 and a broader workflow for organizing existing materials into rough cuts, fine cuts, vertical adaptations, and rewritten deliverables. The supplied code does not implement music-specific composition, soundtrack retrieval, mood-music selection, editing/assembly, asset organization, or rewriting logic. Instead, it provides a general-purpose AI-HIVE API command-line client, plus a specific wrapper for short-drama video generation. Its primary behavior is calling text/image/video generation endpoints, uploading media, polling tasks, and downloading results. That is materially different from the declared BGM-focused editing/production assistant, so this is a clear description-behavior mismatch.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The file contains broad generic operations—text chat, image generation, video generation, user-info retrieval, model listing, media upload, and task management—that are not justified by a short-drama BGM scoring skill. In context, this creates an overprivileged skill surface that can be abused for unintended remote API actions, data upload, and content generation beyond what users and defenders would expect from the manifest.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The implemented skill behavior does not match the declared short-drama BGM smart-scoring purpose: it exposes a generic AI Hive image-generation interface with upload, task polling, and API initialization. This kind of scope mismatch is dangerous because users and policy layers may grant the skill permissions or trust based on the manifest, while the code actually enables unrelated remote content generation and file transfer capabilities.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
83% confidence
Finding

The skill advertises executable scripts, environment-variable usage, local file processing, shell-based ffmpeg invocation, and AI-HIVE network access, yet it declares no explicit permissions or allowed-tools boundary. That omission weakens least-privilege controls and can let a host agent expose broader capabilities than users expect, increasing the blast radius if the skill or its companion scripts are modified or misused.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill says it should respond when users say phrases like “短剧BGM、智能配乐、背景音乐、情绪音乐,” which are generic search terms that could appear in ordinary media discussions. The document does not provide exclusion conditions, negative examples, or narrower context to distinguish when the skill should activate versus when it should not.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill enables implicit invocation without any visible trigger constraints, so the agent may activate this skill in situations broader than the author intended. Because this skill can shape user workflows and generate executable commands for media-production tasks, overbroad auto-selection increases the chance of unintended invocation, prompt-scope confusion, or misuse in unrelated contexts.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The file’s natural-language description and skill-identifying strings are exclusively in Chinese (e.g. the module docstring, argparse description, and skill name), with no indication that users can choose another language or locale. This can violate a language/locale policy when a skill effectively requires a specific language without documented opt-in or justification.

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:

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The module docstring advertises broad generic AI capabilities including chat, image, video, model query, upload, and polling, which materially exceeds the advertised BGM-specific use case. This increases the risk of deceptive packaging and capability smuggling, making review, consent, and least-privilege enforcement less effective.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The file’s user-facing description and operational prompts are written entirely in Chinese, including setup and runtime guidance. This creates a language/locale restriction in natural-language behavior without any opt-in, fallback, or statement that the skill is intended only for Chinese-speaking users.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The file presents itself as a specialized short-drama BGM/scoring skill, but the implementation is a broad generic AI client supporting chat, image, video, model enumeration, uploads, and account access. This capability mismatch can mislead users and reviewers, increasing the chance that powerful functions are exposed under a narrower trust label than intended.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The module header and parser describe a generic AI tool, directly contradicting the marketplace identity of a specialized BGM/scoring skill. This inconsistency matters because security review and user consent depend on accurate representation of what the code can actually do.

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, including the module docstring and later CLI help text, with no indication that users may select another language. That creates a locale policy concern because the skill effectively forces a specific language without user opt-in.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

Text-chat and image-generation endpoints are unrelated to the stated BGM/scoring use case and expand the operational surface of the skill beyond what users would reasonably expect. In this context, hidden extra capabilities are dangerous because they enable unintended data handling and model interactions under the guise of a narrowly scoped media tool.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
86% confidence
Finding

The metadata sets the language to zh-CN, and the file does not state that users may choose another language or locale. Per the policy, forcing a specific language without user opt-in can be a natural-language policy violation unless the locale restriction is clearly documented and justified.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The ability to retrieve user account information and wallet balance is not necessary for short-drama BGM/scoring and introduces avoidable access to sensitive account metadata. While not an exploit by itself, this violates least-privilege expectations and can expose billing or identity details through a skill that users may trust for a much narrower purpose.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The init flow opens a browser URL that includes the skill name as a query parameter for attribution without a clear prior warning or consent prompt about transmitting that metadata. This is a privacy concern because it leaks usage context to the remote service, and it is more concerning here because the skill already overreaches beyond its advertised purpose.

Content

No source excerpt is available for this finding.