Back to skill

Security audit

seedance2.0开源版

Security checks for vulnerabilities and agentic risk

Overview

The scanners report that this video-generation skill can send its API key to an unvalidated media download destination, so ClawScan marked it suspicious.

Consider avoiding installation until the API key is kept out of media-download requests and downloads are restricted to verified HTTPS destinations. Also consider whether you are comfortable sending prompts and reference-image URLs to an external service; scanning was partial, so the evidence is incomplete.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/videogen.py
Finding

API credentials are forwarded to media download destinations

Content
View full analysis

Impact

A media recipient can obtain the user's API key and potentially make authenticated requests or consume paid credits within the key's permissions. The actual returned media hosts and key permissions were not available for verification.

Vulnerability Patterns
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Rogue AgentSelf-Modification, Session Persistence
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (7)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The reported shared-session behavior sends the Redfox credential to the API-returned video-download URL, even when that URL belongs to an unrelated host. Downloading generated media is legitimate, but disclosing the API key to media hosts is unnecessary and could enable unauthorized paid API usage if the destination is attacker-controlled.

Content

No source excerpt is available for this finding.

The usage instructions omit a privacy warning about sending prompts and reference-image URLs to an external video-generation service.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The workflow instructs users to supply scene descriptions and reference images for API-based video generation without warning that this content is transmitted to a third-party service. The API-key security and billing sections explain credentials and costs, but do not disclose the user-content transfer or caution against submitting sensitive material.

Content

No source excerpt is available for this finding.

The generation workflow lacks a privacy warning about sending prompts and reference images to an external service.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The usage workflow submits user descriptions and reference images for API-based video generation. Although the README explains API credentials and paid usage, it does not warn that these inputs are shared with the external generation service, which matters when prompts or images contain confidential or personal information.

Content

No source excerpt is available for this finding.

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

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.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

md
|----------|------|------|
| **环境变量**(推荐) | 设置一次,全局生效 | `export REDFOX_API_KEY=ak_你的密钥` |
| **命令行参数** | 临时使用,单次生效 | `python3 "$SKILL_PATH/scripts/videogen.py" "prompt" --api-key ak_你的密钥` |
| **配置文件** | 持久化存储,跨会话保留 | `mkdir -p ~/.qoder/apis && echo '{"api_key":"ak_你的密钥"}' > ~/.qoder/apis/redfox.json` |

---

Tainted flow: 'filepath' from requests.get (line 261, network input) → open (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/videogen.py (reported line 273)May include surrounding context.

python
resp.raise_for_status()
        total_size = int(resp.headers.get("content-length", 0))
        dl = 0
        with open(filepath, "wb") as f:
            for chunk in resp.iter_content(chunk_size=8192):
                if chunk:
                    f.write(chunk)

The HTTPS-only claim at L375 is not enforced for video downloads.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

Setting session.verify to true verifies certificates for HTTPS connections but does not reject HTTP download URLs or HTTPS-to-HTTP redirects. Because downloads also use the credential-bearing session, an HTTP media URL can expose the API key and media traffic in plaintext, while allowing an on-path attacker to modify the downloaded content.

Content

No source excerpt is available for this finding.