Back to skill

Security audit

Media Cli

Security checks for vulnerabilities and agentic risk

Overview

This skill is purpose-aligned for managing a media stack, but it asks users to install unaudited, mutable external code that can control media services and use stored API keys or SSH access.

Review the external GitHub repository before installing, prefer a pinned commit or signed release, and only configure API keys and SSH access for services you are comfortable letting an agent manage. Be especially careful with download removal, file deletion, and bulk pause or refresh commands.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Findings (1)

T03 · Remote Payload Retrieval and Execution

Warning
Location
SKILL.md:31
Finding

Unpinned Remote Repository Is Retrieved and Its Installer Is Executed

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (3)

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
80% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

media status

text

The setup wizard asks for API URLs and keys, saves to `~/.config/media-cli/config` (chmod 600).

## Commands

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill exposes destructive commands such as removing media, pausing/resuming all downloads, and deleting download data, but does not prominently warn users or agents about their side effects. In an AI-agent context, concise command examples can be executed automatically or suggested without sufficient confirmation, increasing the risk of accidental library changes or data loss.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
80% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
- Talks to *arr v3 APIs (Sonarr/Radarr), v1 (Prowlarr), v2 (qBittorrent WebUI)
- Python3 used strictly for JSON parsing (standard library)
- No telemetry, no analytics, no network calls except to your own services
- Config stored at `~/.config/media-cli/config` with chmod 600

Static analysis

No suspicious patterns detected.