Back to skill

Security audit

video-shrink

Security checks for vulnerabilities and agentic risk

Overview

The verdict is benign with medium confidence: scanners found no AIG issues and treated the reported tool-scope and subprocess findings as consistent with a video-shrinking skill, though the scan was partial.

The scanners report a benign verdict, but confidence is medium and coverage is partial: a reference in SKILL.md could not be resolved. Before installing, consider whether the skill's file and shell capabilities fit your needs and whether you are comfortable with its undeclared tool scope.

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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • 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 (5)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: file_read, file_write, 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.

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

python
def probe(path: str) -> dict:
    p = subprocess.run(
        [FP, "-v", "error", "-print_format", "json", "-show_streams", "-show_format", path],
        capture_output=True, text=True, encoding="utf-8", errors="replace")
    if p.returncode != 0:

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

python
def nvenc_available(codec: str) -> bool:
    enc = "hevc_nvenc" if codec == "hevc" else "h264_nvenc"
    try:
        out = subprocess.run([FF, "-hide_banner", "-encoders"],
                             capture_output=True, text=True, timeout=30)
    except Exception:
        return False

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

python
def run_ff(cmd: list) -> tuple[bool, str]:
    p = subprocess.run(cmd, capture_output=True, text=True,
                       encoding="utf-8", errors="replace", timeout=7200)
    return p.returncode == 0, (p.stderr or "")[-300:]

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

python
shutil.copyfile(tmp, dst)
    dims = (info["w"], info["h"]) if "@orig" in name or name == "copy" else None
    if dims is None:
        p = subprocess.run([FP, "-v", "error", "-select_streams", "v:0",
                            "-show_entries", "stream=width,height", "-of", "csv=p=0", tmp],
                           capture_output=True, text=True)
        try: