Back to skill

Security audit

pikpak-media-index

Security checks for vulnerabilities and agentic risk

Overview

This skill creates a private media-library list using disclosed, read-only account access, with no malicious behavior found in the inspected files.

Use a trusted PikPak CLI and authorize the account you intend to index. Select a folder to avoid the default whole-library scan, and keep reports private because names, paths, and source identifiers remain sensitive. The inspected code does not substantiate the pre-scan malicious signal; scanner incompleteness includes expected output paths and a missing example fixture.

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
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • 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
Findings (3)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_write, network, 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/media_index.py (reported line 162)May include surrounding context.

python
cli_timeout = int(os.environ.get("PIKPAK_TIMEOUT", "90"))
    timeout = min(cli_timeout, timeout) if timeout is not None else cli_timeout
    try:
        proc = subprocess.run(cmd, capture_output=True, text=True, timeout=timeout)
    except FileNotFoundError:
        die("cli_unavailable (exit_code=127)")
    except subprocess.TimeoutExpired:

Tainted flow: 'cmd' from os.environ.get (line 154, credential/environment) → subprocess.run (code execution)

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

python
cli_timeout = int(os.environ.get("PIKPAK_TIMEOUT", "90"))
    timeout = min(cli_timeout, timeout) if timeout is not None else cli_timeout
    try:
        proc = subprocess.run(cmd, capture_output=True, text=True, timeout=timeout)
    except FileNotFoundError:
        die("cli_unavailable (exit_code=127)")
    except subprocess.TimeoutExpired: