Back to skill

Security audit

VidAU Video Generator

Security checks for vulnerabilities and agentic risk

Overview

The skill mostly does what it says, but it also asks the agent to make privileged system changes and can upload broad local files while leaving sensitive API activity in persistent local logs and caches.

Review this skill before installing. It is not clearly malicious, but only use it in an environment where Python is already installed, avoid allowing the agent to run sudo or package-manager installs, upload only non-sensitive media files you intentionally want to send to Vidau, and periodically delete or protect the Vidau log and cache files in your home directory.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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 (3)

T05 · Unauthorized Access and Privilege Escalation

Error
Location
scripts/upload_asset.py:57
Finding

Arbitrary Readable Local Files Can Be Uploaded to the Remote Vidau API

Content
View full analysis
Tuple[bytes, str]: """Build multipart/form-data body. Returns (body_bytes, boundary).""" boundary = uuid.uuid4().hex filename = os.path.basename(file_path) with open(file_path, "rb") as f: file_data = f.read() content_type = mimetypes.guess_type(file_path)[0] or "application/octet-stream" part = ( f'--{boundary}\r\n' f'Content-Disposition: form-data; name="{field_name}"; filename="{filename}"\r\n' f'Content-Type: {content_type}\r\n\r\n' ).encode("utf-8") + file_data + f'\r\n--{boundary}--\r\n'.encode("utf-8") return part, boundary ``` ```python path = os.path.expanduser(args.file) if not os.path.isfile(path): print(f"Error: not a file: {path}", file=sys.stderr) sys.exit(1) file_hash = _file_sha256(path) cache = _load_cache() cached = cache.get(file_hash) if cached and cached.get("url") and cached.get("assetId"): out = { "code": "200", "message": "success", "data": {"url": cached["url"], "assetId": cached["assetId"]}, } print(json.dumps(out, ensure_ascii=False)) return api_key = api_client.get_api_key() if not api_key: print( "Error: VIDAU_API_KEY is not set. Register at https://www.superaiglobal.com/ " "and set apiKey or env.VIDAU_API_KEY in OpenClaw skills.entries.vidau.", file=sys.stderr, ) sys.exit(1) body, boundary = _build_multipart_body(path, args.field) headers = { "Authorization": f"Bearer {api_key}", "Content-Type": f"multipart/form-data; boundary={boundary}", "Content-Length": str(len(body)), } try: req = Request(UPLOAD_URL, data=body, headers=headers, method="POST") with urlopen(req, time ...[truncated 2414 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/api_client.py:15
Finding

API Request and Response Data Is Persisted in a Plaintext Log by Default

Content
View full analysis
None: try: with open(LOG_PATH, "a", encoding="utf-8") as f: f.write("\n" + "=" * 60 + "\n") f.write(f"[{datetime.now().isoformat()}] API request\n") f.write("-" * 40 + "\n") f.write(f"URL: {url}\n") f.write(f"Method: {method}\n") f.write(f"Params: {params_or_body or '(none)'}\n") f.write("-" * 40 + "\n") f.write(f"Status: {response_status}\n") if error: f.write(f"Error: {error}\n") f.write(f"Body: {response_body[:2000]}\n") if len(response_body) > 2000: f.write("...(truncated)\n") f.write("=" * 60 + "\n") except OSError: pass ``` ```python params_str: Optional[str] = None if data: try: params_str = data.decode("utf-8") except Exception: params_str = "" try: req = Request(url, data=data, headers=headers or {}, method=method) with urlopen(req, timeout=timeout) as resp: raw = resp.read() status = getattr(resp, "status", 200) body_str = raw.decode("utf-8", errors="replace") _write_log(method, url, params_str, status, body_str) return raw, status except HTTPError as e: err_body = b"" try: err_body = e.read() except Exception: pass body_str = err_body.decode("utf-8", errors="replace") _write_log(method, url, params_str, e.code ...[truncated 2262 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/upload_asset.py:25
Finding

Remote Asset URLs and Content Fingerprints Are Stored in an Insecure Persistent Cache

Content
View full analysis
str: return os.environ.get("VIDAU_ASSET_CACHE", os.path.expanduser("~/.vidau_asset_cache.json")) def _file_sha256(path: str) -> str: h = hashlib.sha256() with open(path, "rb") as f: for chunk in iter(lambda: f.read(65536), b""): h.update(chunk) return h.hexdigest() def _load_cache() -> dict: p = _cache_path() if not os.path.isfile(p): return {} try: with open(p, "r", encoding="utf-8") as f: return json.load(f) except (OSError, json.JSONDecodeError): return {} def _save_cache(cache: dict) -> None: p = _cache_path() try: with open(p, "w", encoding="utf-8") as f: json.dump(cache, f, ensure_ascii=False, indent=2) except OSError: pass ``` ```python path = os.path.expanduser(args.file) if not os.path.isfile(path): print(f"Error: not a file: {path}", file=sys.stderr) sys.exit(1) file_hash = _file_sha256(path) cache = _load_cache() cached = cache.get(file_hash) if cached and cached.get("url") and cached.get("assetId"): out = { "code": "200", "message": "success", "data": {"url": cached["url"], "assetId": cached["assetId"]}, } print(json.dumps(out, ensure_ascii=False)) return ``` ```python data = out.get("data") or {} url_val = data.get("url") asset_id = data.get("assetId") if url_val and asset_id: cache[file_hash] = {"url": url_val, "assetId": asset_id} _save_cache(cache) ``` ### Technical Analysis After a successful upload, the script stores a mapping from the file's SHA-256 hash to the remote asset URL and asset identifier. The cache is persistent and uses the predictable default path `~/.vidau_asset_cache.json`. Th ...[truncated 1530 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
Findings (16)

Chaining Abuse

High
Category
Tool Misuse
Confidence
88% confidence
Finding

The chained command combines update and install steps with privileged execution, making it easier for an agent to perform multiple impactful actions in one shot without an intervening approval boundary. In the context of a skill whose purpose is API interaction, this kind of command chaining amplifies risk by coupling environment modification and package installation to ordinary task execution.

Content

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

md
1. Run `python3 --version` or `python --version`. If either succeeds, use that command when invoking the scripts below.
2. If both fail, try to install Python for the current platform:
   - **macOS**: `brew install python3` (requires Homebrew).
   - **Linux (Debian/Ubuntu)**: `sudo apt-get update && sudo apt-get install -y python3`.
   - **Windows**: `winget install Python.Python.3.12` if available; otherwise tell the user to download and run the installer from [python.org](https://www.python.org/downloads/).
3. If install fails (e.g. no permission or unsupported OS), reply with a short message that Python 3 is required and link to [python.org/downloads](https://www.python.org/downloads/), then stop. Do not run the Vidau scripts until Python is available.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
90% confidence
Finding

The skill declares capabilities requiring environment access, file read/write, and network access but does not constrain them with an explicit tool-scope or permissions declaration. This increases the risk of overbroad execution, because an agent may invoke more powerful primitives than are necessary for querying credits or generating a video task.

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

md
## When to use

- User asks to "generate a video", "create a short video with Veo3/Sora", "generate video from this prompt/image", "make a clip from this script", etc.
- User asks "how many credits do I have", "check my Vidau balance", "query Vidau credits", etc.
- User asks to "check my video task status", "has my Vidau task finished", "query task by UUID", etc.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill instructs the agent to install Python automatically using system package managers, including privileged commands, which goes beyond the core purpose of using an existing video API. This broadens the blast radius from API usage to host modification and can lead to unintended package installation, system changes, or execution in sensitive environments.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
97% confidence
Finding

The skill explicitly instructs use of sudo to install Python, introducing privileged execution unrelated to the primary task of generating videos. Privileged package-management commands can alter the host, install unintended software, and create a path for broader compromise if the environment or package sources are not fully trusted.

Content

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

md
1. Run `python3 --version` or `python --version`. If either succeeds, use that command when invoking the scripts below.
2. If both fail, try to install Python for the current platform:
   - **macOS**: `brew install python3` (requires Homebrew).
   - **Linux (Debian/Ubuntu)**: `sudo apt-get update && sudo apt-get install -y python3`.
   - **Windows**: `winget install Python.Python.3.12` if available; otherwise tell the user to download and run the installer from [python.org](https://www.python.org/downloads/).
3. If install fails (e.g. no permission or unsupported OS), reply with a short message that Python 3 is required and link to [python.org/downloads](https://www.python.org/downloads/), then stop. Do not run the Vidau scripts until Python is available.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The workflow directs uploading local image or video files to a third-party cloud service without requiring an explicit disclosure or confirmation that local file contents will leave the device. This is dangerous because users may supply sensitive local media, and the agent could exfiltrate it to an external API under the guise of normal task execution.

Content

No source excerpt is available for this finding.

Tainted flow: 'LOG_PATH' from os.environ.get (line 15, credential/environment) → 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/api_client.py (reported line 62)May include surrounding context.

python
error: Optional[str] = None,
) -> None:
    try:
        with open(LOG_PATH, "a", encoding="utf-8") as f:
            f.write("\n" + "=" * 60 + "\n")
            f.write(f"[{datetime.now().isoformat()}] API request\n")
            f.write("-" * 40 + "\n")

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/capabilities.md (reported line 7)May include surrounding context.

md
import api_client
from urllib.error import URLError

API_BASE = "https://api.superaiglobal.com/v1"
CREATE_TASK_URL = f"{API_BASE}/video/createTask"

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/parameters.md (reported line 36)May include surrounding context.

md
import api_client
from urllib.error import URLError

API_BASE = "https://api.superaiglobal.com/v1"
CREATE_TASK_URL = f"{API_BASE}/video/createTask"

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

python
import api_client
from urllib.error import URLError

API_BASE = "https://api.superaiglobal.com/v1"
CREATE_TASK_URL = f"{API_BASE}/video/createTask"

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

python
import api_client
from urllib.error import URLError

API_BASE = "https://api.superaiglobal.com/v1"
CREATE_TASK_URL = f"{API_BASE}/video/createTask"

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

python
import api_client
from urllib.error import URLError

API_BASE = "https://api.superaiglobal.com/v1"
CREATE_TASK_URL = f"{API_BASE}/video/createTask"

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

python
import api_client
from urllib.error import URLError

API_BASE = "https://api.superaiglobal.com/v1"
CREATE_TASK_URL = f"{API_BASE}/video/createTask"

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

python
import api_client
from urllib.error import URLError

API_BASE = "https://api.superaiglobal.com/v1"
CREATE_TASK_URL = f"{API_BASE}/video/createTask"

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

python
import api_client
from urllib.error import URLError

API_BASE = "https://api.superaiglobal.com/v1"
CREATE_TASK_URL = f"{API_BASE}/video/createTask"

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

The manifest says the skill should be configured with an API key, which implies using the provided credential for Vidau API access. The code also reaches into ~/.openclaw/openclaw.json to discover a key, adding local file access to unrelated host configuration that is not clearly justified by the stated purpose of generating videos or checking credits.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.