Back to skill

Security audit

视频解说总入口

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this video recap skill suspicious because it reports risks around credential handling and automatic dependency installation, and the scan was incomplete.

Consider the skill suspicious and review it before installing. In particular, check whether you are comfortable with automatic dependency installation and with narration or audio being sent to configured speech services. The scan covered 38 of 41 components fully, with partial analysis of three, so its evidence is incomplete.

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
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
Findings (29)

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

Critical
Category
Data Flow
Confidence
94% confidence
Finding

Sending audio and the configured API key to an explicitly configured ASR service is expected functionality, not inherently exfiltration. However, this request accepts plaintext HTTP and uses urllib's default redirect handling, which can forward the Authorization header to another origin on a permitted redirect, exposing the credential outside the intended service.

Content

Scanner excerpt · scripts/transcribe.py (reported line 160)May include surrounding context.

python
method="POST",
        )
        try:
            with urllib.request.urlopen(req, timeout=180) as resp:
                data = json.loads(resp.read().decode("utf-8", errors="replace"))
        except urllib.error.HTTPError as exc:
            detail = sanitize_api_error(exc.read().decode("utf-8", errors="replace"), (api_key,))

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

Critical
Category
Data Flow
Confidence
95% confidence
Finding

Fish and OpenAI requests carry API credentials but use default urllib redirect handling because those callers do not enable no_redirect. A permitted cross-origin redirect can forward the Authorization header to an unintended host, and configurable URLs also permit plaintext HTTP; the IndexTTS redirect protection does not cover these credential-bearing branches.

Content

Scanner excerpt · scripts/tts.py (reported line 121)May include surrounding context.

python
last_err: Exception | None = None
    for attempt in range(retries + 1):
        try:
            with (opener.open(req, timeout=90) if opener else urllib.request.urlopen(req, timeout=90)) as resp:
                ctype, audio = (resp.headers.get("Content-Type") or "").lower(), resp.read(_MAX_WAV_BYTES + 1)
            if len(audio) > _MAX_WAV_BYTES:
                raise RuntimeError(f"{label} audio exceeded 64MB limit")

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 31)May include surrounding context.

md
| `tts.py` | 合成旁白并实测时长(绝不变速;Fish 默认 `s2.1-pro-free`,支持 `--whole-article`、内联 `[chuckle]` 标签与 `spoken_text`):`tts.py --timeline timeline.json --out-dir media/vo [

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 47)May include surrounding context.

md
4. **粗剪与实测时长**:写初版 `timeline.json`。有旁白先跑 `tts.py` 拿真实 `actual_s` 与 `overflow_s`,超窗改词或延画面,绝不变速硬塞;用 `render.py --preview` 快速出 480p 粗剪验节奏。

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 55)May include surrounding context.

md
- `tts.py`:仅当选用云端引擎(`fish` / `openai` / 自托管 `indextts`)时,将单句旁白文本(及用户授权的参考音色)发往对应端点;传 `--engine local`(严格离线)或省略云端密钥即保持纯本地合成。

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.

The packaging command specifies a Chinese-only title without user opt-in.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The title placeholder “纯中文剧名或看点” explicitly requires a purely Chinese show title or highlight. The document provides neither a user language choice nor a documented justification for restricting title output to Chinese.

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

python
def run_cmd(cmd: Sequence[str], *, timeout: float | None = None, check: bool = False) -> subprocess.CompletedProcess[str]:
    result = subprocess.run(
        [str(p) for p in cmd], stdin=subprocess.DEVNULL, capture_output=True,
        text=True, encoding="utf-8", errors="replace", timeout=timeout,
    )

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

python
def _probe_media(path: str) -> tuple[int, int, int]:
    """Return (duration_us, width, height) via ffprobe; images legitimately return 0 duration."""
    result = subprocess.run(
        ["ffprobe", "-v", "error", "-of", "json",
         "-show_entries", "format=duration:stream=width,height,codec_type", str(path)],
        capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=30,

MCP server referenced without pinned version: 'npx Remotion'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

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

python
text = "\n".join(ln.strip() for ln in lines if ln and ln.strip()) or " "
    cmd = [tool, "-size", f"{width}x{height}", f"xc:{palette.get('bg', '#111622E6')}", "-gravity", "center", "-fill", palette.get("title", "#FFF8EA")]
    cmd += (["-font", font_path] if font_path else []) + ["-pointsize", str(max(18, height // max(3, len(lines) + 1))), "-annotate", "+0+0", text, str(out_path)]
    return subprocess.run(cmd, capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=30).returncode == 0 and out_path.is_file()


def _esc_dt(text: str) -> str:

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

python
sz, col = int(base_sz * (0.76 if (i == 0 and len(clean) > 1) else 1.0)), _ff_color(accent_col if (i == 0 and len(clean) > 1) else title_col)
            filters.append(f"drawtext={f_opt}text='{_esc_dt(ln)}':fontsize={sz}:fontcolor={col}:x=(w-text_w)/2:y={start_y + i * step}")
    cmd = [ffmpeg, "-y", "-f", "lavfi", "-i", f"color=c=black@0.0:s={max(2, width)}x{max(2, height)}:d=0.1", "-vf", ",".join(filters), "-frames:v", "1", str(out_path)]
    return subprocess.run(cmd, capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=20).returncode == 0 and out_path.is_file()


def render_plate_png(out_path: str | Path, width: int, height: int, lines: list[str], palette: dict, *, font_file: str = "") -> dict:

Animated packaging automatically installs npm dependencies beyond the manifest's stated minimal toolchain.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

Rendering automatically runs npm install in the supplied project directory when dependencies are absent, without a separate installation approval. npm lifecycle scripts can execute with the agent's privileges, so an untrusted project or compromised dependency can turn a rendering operation into host code execution; this is more consequential than merely exceeding the advertised minimal toolchain.

Content

No source excerpt is available for this finding.

The speech-safe SFX placement claim is contradicted by checking only effect start times.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

The docstring at L398 promises placement that avoids protected speech windows, but L403–L414 test only an effect's start timestamp. An effect starting before dialogue, including one shifted to 0.12 seconds before a protected window, can continue playing over speech because its duration is never considered, even when allow_over_dialogue is false.

Content

No source excerpt is available for this finding.

Tainted flow: 'src' from os.environ.get (line 162, credential/environment) → shutil.copy2 (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/tts.py (reported line 86)May include surrounding context.

python
with wave.open(str(src), "rb") as wf:
                if wf.getsampwidth() == 2 and wf.getnframes() > 0:
                    if src != dst:
                        shutil.copy2(src, dst)
                    return
        raise RuntimeError("ffmpeg is required to transcode TTS audio to 16-bit PCM WAV")
    tmp = dst.with_name(f".{dst.name}.part.wav")

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

python
if ref_id:
            payload["reference_id"] = ref_id
        audio = _post_json_wav(
            os.environ.get("FISH_TTS_URL", "https://api.fish.audio/v1/tts").strip(), payload,
            {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json", "Accept": "audio/wav", "model": _fish_model(), "User-Agent": "video-recap/1.0"},
            "Fish Audio", secret=api_key,
        )

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

python
if not api_key:
            raise RuntimeError("OPENAI_API_KEY must be set for engine=openai")
        audio = _post_json_wav(
            os.environ.get("TTS_API_URL", "https://api.openai.com/v1/audio/speech").strip(),
            {"model": os.environ.get("TTS_MODEL", "tts-1").strip(), "input": text, "voice": voice or "alloy", "speed": float(speed), "response_format": "wav"},
            {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}, "OpenAI TTS", secret=api_key,
        )

Default TTS selection prioritizes remote services over local synthesis, contradicting the manifest's local-first TTS claim.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

The default auto mode selects Fish whenever its API key exists, or other remote providers when their configuration exists, without checking local synthesis first. In a skill advertised as local-first, inherited environment configuration can therefore cause private narration text to leave the host without a per-operation remote-processing choice.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
80% confidence
Finding

The caret range permits installation of newer, unreviewed @remotion/cli releases if installation is not constrained by a trusted lockfile. This creates a conditional supply-chain risk because the CLI executes locally with access to project files; the supplied manifest does not establish whether a lockfile mitigates it.

Content

Scanner excerpt · assets/remotion/package.json (reported line 11)May include surrounding context.

json
"typecheck": "tsc --noEmit"
  },
  "dependencies": {
    "@remotion/cli": "^4.0.418",
    "react": "^19.0.0",
    "react-dom": "^19.0.0",
    "remotion": "^4.0.418"

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
80% confidence
Finding

The React caret range allows dependency resolution to change without a manifest change when no trusted lockfile governs installation. An unexpected or compromised release could then enter the local rendering workflow, although no compromised release is demonstrated here.

Content

Scanner excerpt · assets/remotion/package.json (reported line 12)May include surrounding context.

json
},
  "dependencies": {
    "@remotion/cli": "^4.0.418",
    "react": "^19.0.0",
    "react-dom": "^19.0.0",
    "remotion": "^4.0.418"
  },

Unverifiable Dependency: react has 2 known advisory(ies) (CVE-2013-7035 (Cross-Site Scripting in react); GHSA-hg79-j56m-fxgv (Cross-Site Scripting in react)), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
40% confidence
Finding

OSV returned advisories for this package, but its resolved version is unknown. A package-name lookup does not establish whether the installed release is affected by those advisories.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
80% confidence
Finding

The react-dom range can resolve to newer, unreviewed releases during an unlocked installation. This is a conditional supply-chain weakness rather than evidence of an existing exploit, and a trusted lockfile could mitigate it.

Content

Scanner excerpt · assets/remotion/package.json (reported line 13)May include surrounding context.

json
"dependencies": {
    "@remotion/cli": "^4.0.418",
    "react": "^19.0.0",
    "react-dom": "^19.0.0",
    "remotion": "^4.0.418"
  },
  "devDependencies": {

Unverifiable Dependency: react-dom has 1 known advisory(ies) (CVE-2018-6341 (Cross-Site Scripting in react-dom)), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
40% confidence
Finding

OSV returned advisories for this package, but its resolved version is unknown. A package-name lookup does not establish whether the installed release is affected by those advisories.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
80% confidence
Finding

The Remotion caret range permits unreviewed version changes if a trusted lockfile is absent or ignored. Since this dependency participates in local rendering, a malicious update could affect local execution, but the manifest alone does not establish any installed compromise.

Content

Scanner excerpt · assets/remotion/package.json (reported line 14)May include surrounding context.

json
"@remotion/cli": "^4.0.418",
    "react": "^19.0.0",
    "react-dom": "^19.0.0",
    "remotion": "^4.0.418"
  },
  "devDependencies": {
    "@types/react": "^19.0.0",

Unverifiable Dependency: remotion has 2 known advisory(ies) (CVE-2026-30120 (Remotion: remote code execution (RCE) vulnerability); CVE-2026-30121 (Remotion: arbitrary file write vulnerability)), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
40% confidence
Finding

OSV returned advisories for this package, but its resolved version is unknown. A package-name lookup does not establish whether the installed release is affected by those advisories.

Content

No source excerpt is available for this finding.