Back to skill

Security audit

AI大模型专家|短剧人物设定与人物小传

Security checks for vulnerabilities and agentic risk

Overview

This skill mostly matches a short-drama AI-HIVE workflow, but it ships broad API-client code and unsafe network/download handling that users should review before installing.

Install only if you trust the AI-HIVE endpoint and are comfortable giving the skill an API key, uploading selected media, and writing generated files locally. Use a dedicated API key with limited balance, avoid custom base URLs unless you control them, run it in a virtual environment, and choose an output directory where accidental overwrites would not damage important 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 (4)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/imagegen.py:91
Finding

Arbitrary API Endpoint Configuration Can Expose Credentials and User Media

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/imagegen.py:395
Finding

Server-Controlled Task Fields Can Cause Output Path Traversal

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/imagegen.py:312
Finding

Unvalidated Result URLs Permit Unrestricted Downloads and Disk Exhaustion

Content
View full analysis
0: pct = int(downloaded * 100 / total) bar = "█" * (pct // 5) + "░" * (20 - pct // 5) print(f"\r {bar} {pct}% ({downloaded // 1024}KB)", end="", flush=True) ``` ```python result_url = item.get("resultUrl") if not result_url: continue ... download_file(result_url, out_path) for item in succeeded: last_frame = item.get("lastFrameUrl") if last_frame: out_path = out_dir / f"{task_type}_{task_id}_lastframe.png" download_file(last_frame, out_path) ``` ### Technical Analysis The API-provided `resultUrl` and `lastFrameUrl` values are passed directly to `requests.get`. The client does not validate the URL scheme or hostname and does not constrain redirects. It also does not enforce a maximum response size. Streaming limits memory consumption but does not prevent disk exhaustion. A missing or false `Content-Length` header causes the client to continue writing until the server ends the response or an external failure occurs. The declared content type is also not checked against the expected image or video type. ### Attack Path 1. An attacke ...[truncated 1037 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Note
Location
SKILL.md:117
Finding

Dependency Installation Instructions Use an Unpinned Package Version

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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 (16)

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

This is effectively the same underlying issue as the other TP4 finding: the skill presents itself as a domain-specific writing/planning assistant but appears to implement broad OpenAPI-style client behavior and video-generation workflows. Such under-disclosure is dangerous because reviewers or users may underestimate the extent of remote actions, data transfer, and potential billing/account effects enabled by the skill.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

This is effectively the same underlying issue as the other TP4 finding: the skill presents itself as a domain-specific writing/planning assistant but appears to implement broad OpenAPI-style client behavior and video-generation workflows. Such under-disclosure is dangerous because reviewers or users may underestimate the extent of remote actions, data transfer, and potential billing/account effects enabled by the skill.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The embedded SKILL_CONFIG repurposes the skill into GPT Image 2 product image generation/editing, which directly conflicts with the metadata describing a drama character-bible tool. This is dangerous because trust and authorization decisions may be made from the manifest, while the shipped code silently performs a different function, enabling capability smuggling and misleading users into providing prompts, files, or credentials to an unrelated service flow.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The file implements a broad AI Hive client with capabilities far beyond the declared skill purpose, including text chat, image generation, video generation, model discovery, task inspection, account queries, and arbitrary media upload. In a skill advertised as a short-drama character-bible tool, this scope mismatch creates a dangerous capability expansion: a caller expecting constrained functionality may unknowingly gain access to unrelated data access and content-generation operations.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The embedded SKILL_CONFIG explicitly rebrands the artifact as a short-drama video generation skill, which directly conflicts with the manifest describing a character-bible/人物设定 skill. This indicates the file is mispackaged or intentionally repurposed, making security review, policy enforcement, and user consent unreliable because the real behavior does not match the declared function.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
89% confidence
Finding

The skill advertises executable scripts that use shell, network access, filesystem operations, and environment variables, but the manifest does not declare any tool scope or permission boundaries. This creates an opaque trust boundary where a user or hosting platform cannot easily determine what capabilities the skill will exercise, increasing the risk of unintended command execution, network access, or secret handling.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The manifest explicitly sets language: zh-CN, and the skill title, summary, description, and instructions are entirely in Chinese without any indication that users may choose another language. Under the policy, forcing a specific language or locale without opt-in is a natural-language policy violation unless the locale restriction is clearly documented and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The display name, short description, and default prompt are all written exclusively in Chinese, which imposes a language choice in the skill's natural-language interface. The file does not offer a language option or explain that the skill is intentionally limited to a Chinese-speaking or region-specific context.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The file implements a broad AI-Hive client with account info lookup, model enumeration, chat, media upload, image/video generation, and task polling, which materially exceeds the declared drama character-bible skill purpose. This over-broad capability creates a scope mismatch that can expose unrelated account operations and turn a narrowly trusted skill into a general API wrapper, increasing the chance of unauthorized or surprising actions if invoked by an agent or user expecting only character-bible functionality.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The module documentation advertises a generic AI capability tool, contradicting the skill's claimed specialized character-bible intent. While this is partly a transparency/integrity issue, in a security context it matters because operators and orchestration layers may trust the declared narrow scope while the code signals and implements broader behavior, undermining least privilege and increasing the risk of misuse.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

This code file contains natural-language descriptions, prompts, and CLI help text in Chinese throughout, starting from the module docstring. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale constraint is clearly documented and justified, which is not present here.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

User-info retrieval exposes account-level metadata and wallet/balance information that is not necessary for a character-bible skill. Even if only the authenticated user can call it, bundling this endpoint into an unrelated skill increases the chance of unnecessary data exposure, misuse by downstream agents, and privilege creep under a misleading skill label.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

Model enumeration provides a generic inventory of platform capabilities that is unrelated to the advertised character-bible purpose. In context, this makes the skill more dangerous because it acts as a discovery primitive for other powerful models and routes, enabling capability probing and repurposing of the skill beyond user expectations.

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 value 请替换为你的APIKey forces Chinese in a user-facing configuration string. This can violate language/locale policy when no user opt-in or documented locale-specific scope is provided.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

The skill description and CLI metadata are entirely in Chinese, including the parser description and core labels, which effectively imposes a specific language context on users. The file does not offer a language choice or document that this is intentionally limited to a Chinese-language or region-specific workflow.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

This code writes a JSON file to a user-specified path, which is a file-system modifying operation covered by the warning requirement for code files. Although the filename is configurable, there is no confirmation prompt and no nearby user-facing disclosure beyond printing the resulting path after the write; the module docstring also does not mention that it creates or overwrites a local file.

Content

No source excerpt is available for this finding.