Back to skill

Security audit

短剧生产

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious with high confidence because it reports concerns about provider requests, undeclared prompt changes, and incomplete analysis; the findings do not establish malicious intent.

Consider the suspicious verdict before installing. The main reported concerns are credential and download redirect handling, prompt changes after finalization, and the lack of confirmed creator approval in the supplied execution paths. Analysis is incomplete: six of seven components were fully inspected, and obfuscated instruction text in one script could not be fully evaluated.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (23)

Tainted flow: 'request' from os.environ.get (line 1155, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
94% confidence
Finding

Sending the configured provider credential as a Bearer token is necessary for this skill and is not itself exfiltration. However, the default urllib redirect handler can forward Authorization headers to a different host, including through an HTTPS-to-HTTP redirect; a malicious or compromised endpoint could therefore expose the provider credential despite the initial HTTPS validation.

Content

Scanner excerpt · scripts/provider_adapters.py (reported line 1160)May include surrounding context.

python
if body is not None:
        request.add_header("Content-Type", "application/json")
    try:
        with urllib.request.urlopen(request, timeout=180) as response:  # noqa: S310  # HTTPS enforced by _base_url
            raw = response.read(MAX_JSON_RESPONSE + 1)
            headers = dict(response.headers.items())
    except urllib.error.HTTPError as exc:

Tainted flow: 'url' from os.environ.get (line 1718, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

This URL comes from a provider response rather than directly from an environment credential, and the download does not attach the provider Bearer token. Nevertheless, accepting any HTTPS destination and following redirects allows a malicious or compromised provider response to trigger requests to internal services or redirect to HTTP; media-signature validation happens only after the request and cannot prevent SSRF.

Content

Scanner excerpt · scripts/provider_adapters.py (reported line 1522)May include surrounding context.

python
path = _output_root(job) / ("result" + Path(target).suffix.casefold())
    size = 0
    try:
        with urllib.request.urlopen(url, timeout=180) as response, path.open("xb") as handle:  # noqa: S310  # HTTPS checked above
            while chunk := response.read(1024 * 1024):
                size += len(chunk)
                if size > MAX_OUTPUT_BYTES:

Tainted flow: 'request' from os.environ.get (line 1761, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
94% confidence
Finding

Uploading selected reference images and authenticating to the configured OpenAI endpoint are expected production operations. The separate multipart request path nevertheless uses urllib's default redirect handling, which can forward the Authorization header across origins or downgrade to HTTP, exposing the API key if the endpoint returns an adversarial redirect.

Content

Scanner excerpt · scripts/provider_adapters.py (reported line 1765)May include surrounding context.

python
request.add_header("Authorization", f"Bearer {token}")
        request.add_header("Content-Type", content_type)
        try:
            with urllib.request.urlopen(request, timeout=300) as response:  # noqa: S310  # HTTPS enforced by _base_url
                raw = response.read(MAX_JSON_RESPONSE + 1)
                request_id = _request_id(dict(response.headers.items()))
        except urllib.error.HTTPError as exc:

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The core media-generation behavior matches the description. However, _prompt_with_reference_contract constructs new instructions describing what references may and must not control, then appends them to the original prompt; image and video payload compilers use this modified text. This exceeds simply forwarding finalized prompts. Also, main dispatches jobs directly to API runners, and _require_job checks modality, prompt, parameters, and outputs—not confirmation. An upstream component could enforce confirmation, but that safeguard is not established by this chunk. Reference uploads, credential access, polling, downloads, and task-handle persistence are supporting implementation details consistent with the declared purpose.

Content

No source excerpt is available for this finding.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 35)May include surrounding context.

md
详细字段与接口协议见 [生成接口协议规范](references/adapter-contract.md),命令行由 [production_tool.py](scripts/production_tool.py) 提供:

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/provider_adapters.py (reported line 260)May include surrounding context.

python
raise ValueError("provider adapter requires exactly one output")
    if len(outputs) > max_outputs:
        raise ValueError(f"provider adapter accepts at most {max_outputs} outputs")
    return prompt, dict(parameters)


ZH_ROLE_LABELS = {

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/provider_adapters.py (reported line 328)May include surrounding context.

python
bindings = job.get("reference_bindings", [])
    references = job.get("references", [])
    if not bindings:
        return prompt
    if (
        not isinstance(bindings, list)
        or not isinstance(references, list)

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/provider_adapters.py (reported line 403)May include surrounding context.

python
)
            )
    if _prompt_already_binds_references(prompt, bindings, reference_tokens):
        return prompt
    if language.startswith("zh"):
        heading = zh_heading
    elif language.startswith("en"):

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'uvx drama-providers'.

Medium
Category
MCP Rug Pull
Confidence
65% confidence
Finding

uvx/uv tool run commands without ==version create a rug-pull risk.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'uvx drama-providers'.

Medium
Category
MCP Rug Pull
Confidence
65% confidence
Finding

uvx/uv tool run commands without ==version create a rug-pull risk.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/builtin-providers.md (reported line 14)May include surrounding context.

text

- **必填环境变量**:`OPENAI_API_KEY`;模型 ID 须由 `parameters.model` 或 `OPENAI_IMAGE_MODEL` 显式配置(如 `gpt-image-2.6`,代码不硬编码任何模型版本;旧子命令 `"gpt-image-2"` 仅作向后兼容别名保留)。
- **可选环境变量**:`OPENAI_BASE_URL`(HTTPS 地址覆盖,默认 `https://api.openai.com/v1`)。
- **任务与路由**:`modality` 为 `image`,单次支持产出 1–16 张同格式图片(`.png`、`.jpg`/`.jpeg` 或 `.webp`),自动按 `n = len(outputs)` 请求并逐张解码 `b64_json` 写入临时中转目录。无参考图时调用 `POST /images/generations`;带 1–16 张参考图时调用 `POST /images/edits`(`image[]` 表单上传)。模型解析优先级为 `parameters.model` > `OPENAI_IMAGE_MODEL`(均缺失时在请求前安全失败)。
- **支持参数**:`model`(必填,或在环境变量 `OPENAI_IMAGE_MODEL` 中配置)、`width` + `height`(自动拼成 `size`)或直接传 `size`,另支持 `quality`、`background`(`auto` / `opaque` / `transparent`,按实际所选模型能力透传)与 `moderation`。

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/builtin-providers.md (reported line 39)May include surrounding context.

text

- **必填环境变量**:`MINIMAX_API_KEY`、`MINIMAX_VIDEO_MODEL`(账号已开通的模型 ID)。
- **可选环境变量**:`MINIMAX_VIDEO_BASE_URL`(默认海外站 `https://api.minimax.io/v2`;国内站账号请将域名改为 `api.minimaxi.com` 并保留 `/v2` 路径)、`MINIMAX_VIDEO_POLL_INTERVAL`(默认 `5` 秒)、`MINIMAX_VIDEO_TIMEOUT_SECONDS`(默认 `1800` 秒);`MINIMAX_VIDEO_ALLOWED_RESOLUTIONS`(兼容 `MINIMAX_VIDEO_RESOLUTIONS`)、`MINIMAX_VIDEO_ALLOWED_RATIOS`(兼容 `MINIMAX_VIDEO_RATIOS`)、`MINIMAX_VIDEO_MIN_DURATION` 与 `MINIMAX_VIDEO_MAX_DURATION` 用于按模型档位收窄校验(未配置时回退内置合法全集 `480P,768P,2K`、`adaptive,1:1,3:4,4:3,9:16,16:9,21:9` 与 `1–30` 秒)。
- **参数与多模态 `content`**:`modality` 为 `video`,单次产出 1 个 `.mp4`(支持音画同次生成);`duration` 与 `resolution` 必填,纯文生视频必填非 `adaptive` 的 `ratio`。当接口配置未显式填写 `reference_roles` 时,内置默认放行 `first_frame` / `last_frame`(首尾帧模式)或 `reference_image` ≤ 9、`reference_video` ≤ 3、`reference_audio` ≤ 3(全参考模式,两模式互斥)。提示词正文上限 7000 字符;已包含 `retention_analysis:` 原生结构或已显式写出全部 `<Picture N>` 等槽位时不再追加参考尾巴。提交 `POST {base}/video_generation` 后轮询 `GET {base}/query/video_generation/{task_id}`

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/builtin-providers.md (reported line 50)May include surrounding context.

{"command": ["python3", "<SKILL_DIR>/scripts/provider_adapters.py", "minimax-music"], "timeout_seconds": 600}

text

- **环境变量**:`MINIMAX_API_KEY`(必填);模型 ID 须由 `parameters.model` 或 `MINIMAX_MUSIC_MODEL` 显式配置(代码不硬编码模型版本);`MINIMAX_BASE_URL`(可选 HTTPS 地址覆盖,默认海外站 `https://api.minimax.io/v1`;国内站账号请将域名改为 `api.minimaxi.com` 并保留 `/v1` 路径)。
- **任务与调用**:`modality` 为 `music`,单次产出 1 个与 `format` 一致的 `.mp3` 或 `.wav`。`prompt` 填曲风、配器与情绪描述;支持 `model`(必填,解析优先级:`parameters.model` > `MINIMAX_MUSIC_MODEL`,均缺失时在请求前安全失败)、`lyrics`、`is_instrumental`、`sample_rate`、`bitrate` 与 `format`(不启用 `lyrics_optimizer` 自动改词:人声歌曲传定稿 `lyrics`,纯配乐不传歌词)。以 `output_format: "hex"` 调用 `POST /music_generation` 并解码 `data.audio`。

官方文档:[MiniMax 音乐生成 API](https://platform.minimax.io/docs/api-reference/music-generation)。

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/builtin-providers.md (reported line 61)May include surrounding context.

{"command": ["python3", "<SKILL_DIR>/scripts/provider_adapters.py", "minimax-speech"], "timeout_seconds": 600}

text

- **环境变量**:`MINIMAX_API_KEY`(必填);`MINIMAX_BASE_URL`(可选 HTTPS 地址覆盖,默认海外站 `https://api.minimax.io/v1`;国内站账号请将域名改为 `api.minimaxi.com` 并保留 `/v1` 路径)。
- **任务与调用**:`modality` 为 `tts`,单次产出 1 个与 `format` 一致的 `.mp3` 或 `.wav`。`prompt` 只放纯台词原文;必填 `model` 与预设 `voice_id`(取自 `short-drama-assets` 技能在《视觉设定.md》登记的角色声线设定),可选 `emotion`(`happy`、`sad`、`angry`、`fearful`、`disgusted`、`surprised`、`neutral`)、`speed`、`vol`、`pitch`、`sample_rate`、`bitrate` 与 `format`。本内置接口使用预设 `voice_id` 调用 `POST /t2a_v2` 合成;需上传角色参考录音做音色绑定的场景请走支持 `reference_audio` 的视频生成接口或自定义语音接口。

官方文档:[MiniMax 语音合成 API](https://platform.minimax.io/docs/api-reference/speech-t2a-http)。

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/production_tool.py (reported line 2195)May include surrounding context.

python
note = _confirmation_note(consumes_confirmation)
    with tempfile.TemporaryFile() as stdout, tempfile.TemporaryFile() as stderr:
        try:
            completed = subprocess.run(
                command,
                input=_canonical(payload),
                stdout=stdout,

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/provider_adapters.py (reported line 32)May include surrounding context.

python
from pathlib import Path
from typing import Any

OPENAI_BASE_URL = "https://api.openai.com/v1"
SEEDANCE_BASE_URL = "https://ark.cn-beijing.volces.com/api/v3"
MINIMAX_BASE_URL = "https://api.minimax.io/v1"
MINIMAX_VIDEO_BASE_URL = "https://api.minimax.io/v2"

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/builtin-providers.md (reported line 68)May include surrounding context.

md
## MiniMax 国内站与海外站地址说明

内置默认值面向海外站(`.minimax.io`):`MINIMAX_BASE_URL` 默认 `https://api.minimax.io/v1`(音乐/语音),`MINIMAX_VIDEO_BASE_URL` 默认 `https://api.minimax.io/v2`(视频)。
若使用 MiniMax **国内站**账号与 API Key,请在运行环境中将上述两个变量的主机名从 `api.minimax.io` 覆盖为 `api.minimaxi.com`(协议仍为 HTTPS,路径分别保持 `/v1` 与 `/v2`,且不要混用国内站与海外站 Key):

- `MINIMAX_BASE_URL`:指向国内站主机 `api.minimaxi.com` 的 `/v1` 接口

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/builtin-providers.md (reported line 68)May include surrounding context.

md
## MiniMax 国内站与海外站地址说明

内置默认值面向海外站(`.minimax.io`):`MINIMAX_BASE_URL` 默认 `https://api.minimax.io/v1`(音乐/语音),`MINIMAX_VIDEO_BASE_URL` 默认 `https://api.minimax.io/v2`(视频)。
若使用 MiniMax **国内站**账号与 API Key,请在运行环境中将上述两个变量的主机名从 `api.minimax.io` 覆盖为 `api.minimaxi.com`(协议仍为 HTTPS,路径分别保持 `/v1` 与 `/v2`,且不要混用国内站与海外站 Key):

- `MINIMAX_BASE_URL`:指向国内站主机 `api.minimaxi.com` 的 `/v1` 接口

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/provider_adapters.py (reported line 34)May include surrounding context.

python
OPENAI_BASE_URL = "https://api.openai.com/v1"
SEEDANCE_BASE_URL = "https://ark.cn-beijing.volces.com/api/v3"
MINIMAX_BASE_URL = "https://api.minimax.io/v1"
MINIMAX_VIDEO_BASE_URL = "https://api.minimax.io/v2"
MAX_JSON_RESPONSE = 128 * 1024 * 1024
MAX_OUTPUT_BYTES = 512 * 1024 * 1024

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/provider_adapters.py (reported line 35)May include surrounding context.

python
OPENAI_BASE_URL = "https://api.openai.com/v1"
SEEDANCE_BASE_URL = "https://ark.cn-beijing.volces.com/api/v3"
MINIMAX_BASE_URL = "https://api.minimax.io/v1"
MINIMAX_VIDEO_BASE_URL = "https://api.minimax.io/v2"
MAX_JSON_RESPONSE = 128 * 1024 * 1024
MAX_OUTPUT_BYTES = 512 * 1024 * 1024
MAX_REFERENCE_BYTES = 50 * 1024 * 1024

The adapter adds generation instructions to finalized prompts despite the manifest's explicit no-prompt-writing boundary.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

The adapter can append natural-language generation instructions after the supplied prompt has been finalized, conflicting with the skill's stated boundary against writing prompts. Although these instructions derive from reference-binding metadata rather than an apparent malicious payload, they can change a paid generation without showing the creator the exact submitted prompt, creating an approval-integrity gap.

Content

No source excerpt is available for this finding.

Public compile functions read environment configuration despite being documented as deterministic and I/O-free.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The module documentation at L0004 explicitly says the public compile_* functions are deterministic and perform no I/O. However, compile_openai_image_payload and compile_minimax_music_payload call _require_configured_model, which reads environment variables at L0854–L0856 when no model is supplied. Consequently, identical compilation arguments can select different generation models depending on ambient configuration, which matters when reviewing the payload for a paid production request.

Content

No source excerpt is available for this finding.