Back to skill

Security audit

Calibre Convert

Security checks for vulnerabilities and agentic risk

Overview

This skill appears to convert ebook and document files with Calibre as advertised, with ordinary file-output caution but no evidence of hidden or malicious behavior.

Install this only if you intend to let the agent run Calibre's local ebook-convert command on files you choose. Confirm the input and output paths, avoid sensitive directories, and ask the agent to check before overwriting an existing output file.

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

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
92% confidence
Finding

The skill invokes shell-based functionality and explicitly instructs running a local script and ebook-convert, but it declares no tool scope such as allowed-tools or permissions. That mismatch can cause the agent to operate with broader-than-necessary execution capability, weakening least-privilege controls and making accidental or unsafe command execution more likely.

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

python
command = [converter, str(input_path), str(output_path), *normalize_extra_args(args.extra_args)]

    try:
        completed = subprocess.run(command, check=False)
    except OSError as exc:
        print(f"[calibre-convert] Failed to start converter: {exc}", file=sys.stderr)
        return 4

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The skill tells the agent to create output directories and produce output files, but it does not warn about overwriting existing files or other file-modification side effects. In a file conversion workflow this can lead to unintentional data loss or writes to sensitive locations if paths are chosen incorrectly or reused.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.