Back to skill

Security audit

抖音电商视频生成与编辑

Security checks for vulnerabilities and agentic risk

Overview

The skill largely matches its Douyin e-commerce video purpose, but it needs review because its bearer API key can be sent to any configured API host.

Before installing, confirm you trust AI Hive with the product images, videos, prompts, generated outputs, and API key this skill will use. Do not set --base-url, AI_HIVE_BASE_URL, or ~/.ai-hive/config.json base_url to anything except the intended AI Hive host unless you are deliberately using a trusted compatible endpoint with separate credentials. Prefer installing dependencies in a virtual environment and avoid running pip or the skill as an administrator.

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

Bearer API Credential Can Be Sent to an Arbitrary Endpoint

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:69
Finding

Unpinned Runtime Dependency Installation Creates Supply-Chain Risk

Content
View full analysis
Remediation
View remediation
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 (10)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

This markdown file contains user-facing natural-language content exclusively in Chinese across the substantive changelog entries. Under the policy, forcing a specific language without user opt-in can be a natural-language policy violation unless the locale constraint is explicitly documented and justified, which is not present here.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
92% confidence
Finding

The skill includes executable shell commands and a Python script workflow that imply access to environment variables, filesystem, network, and shell, but it declares no explicit tool restrictions. Without scoped permissions, an agent may invoke the skill in a broader execution context than intended, increasing the chance of unintended file access, network calls, or command execution if the script or its inputs are abused.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

L03 says "Use this skill for" followed by a wide list of video-related scenarios, but it does not define explicit activation boundaries or exclusions. This broad invocation wording in a manifest file can cause unintended triggering for general requests about Douyin ecommerce videos.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The manifest describes a focused skill for generating and editing Douyin e-commerce product and livestream videos, but this file contains a reusable OpenAPI wrapper for unrelated capabilities including text chat, image generation, user-info lookup, model enumeration, and generic media upload. Those operations materially exceed the narrow product-video purpose rather than serving as unavoidable implementation details of it.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This Python skill includes user-facing description text entirely in Chinese, and later CLI help and status messages are also Chinese-only. Under the policy, forcing a specific language without offering a language choice or documenting a justified locale restriction is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The script's error/help text shown to users is in Chinese, and this pattern continues across prompts, status messages, and command help. Because the file does not offer any language/locale option or state that the skill is restricted to a Chinese-speaking context, it violates the language-choice policy.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

A dedicated Douyin e-commerce video production skill would reasonably need video generation, editing, upload, task polling, and result download, but a general text chat endpoint is not justified by that purpose. The code also wires this into a CLI command, making it an exposed capability rather than dead helper code.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

The manifest is centered on generating and editing product, SKU, livestream, and ad videos, not independent still-image generation. While image inputs for video generation are expected, a separate image-generation API and command add a distinct capability not clearly justified by the stated purpose.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The placeholder value for api_key includes Chinese text (请替换为你的APIKey), which imposes a specific language in user-facing configuration content. There is no indication that this skill is region-specific or that alternative language/localization options are supported.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

The top-level docstring says this is a '通用 AI 能力调用工具' covering text chat, image generation, video generation, model query, media upload, and task polling. That directly conflicts with the specialized manifest and embedded SKILL_CONFIG identifying this file as a Douyin e-commerce video generation/editing skill.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.