Back to skill

Security audit

Video

Security checks for vulnerabilities and agentic risk

Overview

This media-processing skill is broadly scoped and has some weak safety guidance, but its file, network, and command capabilities are disclosed and fit its video-processing purpose.

Install only if you expect the agent to process user-selected media files or URLs. Keep it unprivileged, use dedicated input/output folders, avoid administrator execution, prefer HTTPS sources, and review generated FFmpeg commands before running them on untrusted media.

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 (2)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:333
Finding

Unsafe Recommendation to Run with Administrator Privileges

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:333
Vulnerability Type: Least-privilege violation
Risk Level: Medium

Relevant source row, translated into English:

markdown
| Insufficient permissions | The current user lacks read/write permissions | Check file permissions and run as administrator |

Technical Analysis

The troubleshooting guidance recommends running the Agent or video-processing operation as an administrator when file permissions are insufficient. Video processing ordinarily requires access only to explicitly selected input files, output directories, and temporary storage.

Elevating the entire process grants FFmpeg, the Agent, and any generated commands substantially more authority than the task requires. This increases the consequences of command injection, path manipulation, malicious media-file exploitation, or a vulnerability in the media-processing stack. The document mentions sandboxing and command allowlisting elsewhere, but it does not make those controls mandatory before recommending elevation.

Attack Path

  1. An attacker supplies or influences a video file, network URL, file path, or processing instruction.
  2. Processing encounters a permission error, or the attacker deliberately selects a protected destination to trigger one.
  3. Following the troubleshooting guidance, the operator restarts the Agent or command with administrator privileges.
  4. Attacker-controlled input reaches FFmpeg or a generated system command under the elevated security context.
  5. If command injection or a media-processing vulnerability is present, the resulting operation executes with administrator privileges rather than the limited permissions required for video processing.

Impact Assessment

Successful exploitation could provide access to protected files, system-wide configuration, other users' data, and privileged output locations. Depending on the operating system and the elevated acco ...[truncated 282 chars]

Remediation
View remediation

Remediation Suggestions

  • Remove the recommendation to run the Agent or FFmpeg as an administrator.
  • Resolve access failures by granting the current user narrowly scoped read or write permission only to the required files and directories.
  • Restrict processing to dedicated input, output, and temporary directories owned by an unprivileged service account.
  • Execute FFmpeg inside a sandbox or container with no unnecessary host filesystem access, capabilities, or device access.
  • Reject protected system paths, path traversal sequences, and unexpected symbolic links.
  • Pass command arguments through structured process APIs without shell interpolation.
  • If a privileged helper is unavoidable, expose only a narrowly defined operation with strict path validation rather than elevating the complete Agent process.

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:219
Finding

Plaintext HTTP Used in the Network Video Processing Example

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:219-227
Vulnerability Type: Unauthenticated plaintext transport
Risk Level: Medium

python
from video import video_process

# Process a network video
result = video_process(content="http://example.com/video.mp4", mode="json")

# Print the result
print(result)

Technical Analysis

The network-processing example uses an http:// URL. Plaintext HTTP does not authenticate the remote server and does not protect the response against interception or modification. This contradicts the document's later recommendation to use HTTPS and validate TLS certificates.

If users copy this pattern with a real media host, a network-positioned attacker could replace the requested video with attacker-controlled content. The substituted file would then be processed by FFmpeg, expanding the risk beyond content integrity to potential exploitation of media parser vulnerabilities. The specification also does not define URL-scheme restrictions, redirect validation, download-size limits, or destination-address controls.

Attack Path

  1. A user supplies or copies a plaintext HTTP media URL.
  2. An attacker with control over a network intermediary, compromised proxy, or untrusted access point intercepts the request.
  3. The attacker returns a modified or malicious media file instead of the intended video.
  4. The Agent passes the substituted content to the video-processing pipeline.
  5. The attacker causes output manipulation, parser denial of service, or, if a vulnerable media decoder is present, execution in the processing context.

Impact Assessment

A network attacker could compromise the confidentiality and integrity of downloaded media and influence generated output. Malformed replacement content could consume excessive resources or trigger vulnerabilities in the installed FFmpeg version. Any resulting code execution would inherit the permissions and filesystem access of ...[truncated 103 chars]

Remediation
View remediation

Remediation Suggestions

  • Replace the example URL with https://example.com/video.mp4.
  • Permit only HTTPS for remote media unless an explicit, documented exception is required.
  • Validate TLS certificates and hostnames using the platform's trusted certificate store.
  • Revalidate the scheme and destination after every redirect, and reject HTTPS-to-HTTP downgrades.
  • Consider an allowlist of trusted media domains.
  • Block loopback, link-local, private-network, and cloud-metadata destinations unless they are explicitly required, reducing server-side request forgery exposure.
  • Enforce download timeouts, maximum response sizes, media-type checks, and storage quotas.
  • Process downloaded files as untrusted content inside a least-privilege sandbox using a maintained FFmpeg release.
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (2)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill description is extremely broad and says it should be used whenever video/audio/media conversion or dubbing is needed, which can cause the agent to invoke a tool-capable skill in many loosely related contexts. Because the skill declares read/exec/write capabilities and accepts local paths or URLs as input, overbroad routing increases the chance of unnecessary command execution or file modification on user systems.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The markdown does not give a prominent warning that the skill may execute system commands and modify files, even though the tool list includes exec and write and the runtime model is 'MD+execute()'. In a skill that processes local paths and network links, missing disclosure makes accidental unsafe use more likely, including executing ffmpeg-like commands on unintended inputs or overwriting local artifacts without informed consent.

Content

No source excerpt is available for this finding.