claude-plugin-converter
Pass
Audited by Gen Agent Trust Hub on Aug 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONREMOTE_CODE_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The
scripts/convert.pyscript generates Python source code for the converted plugin using f-strings without consistent application ofrepr()or string escaping for all external fields. Specifically, theconvert_hooksfunction directly interpolates a hook's URL into anhttpx.postcall using double quotes, and theconvert_commandsfunction interpolates command names. If an input plugin contains a URL or filename with crafted double quotes and Python syntax, it could escape the intended string literal and execute arbitrary Python code when the generated plugin is loaded. - [COMMAND_EXECUTION]: The converter is designed to generate
hooks.pyfiles that utilizesubprocess.run(..., shell=True, ...)to execute shell commands originally defined in the Claude plugin. While this is the intended functionality of the tool and is accompanied by prominent security warnings inSKILL.md, it creates a direct pathway for command execution that relies entirely on the user's manual auditing of the generated output. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted third-party plugin manifests and markdown files which act as the source for generated executable code.
- Ingestion points: Reads
.claude-plugin/plugin.json,hooks.json, andSKILL.mdfrom user-specified plugin directories. - Boundary markers: The generated output lacks logical boundaries or comment-based warnings between the boilerplate registration code and the untrusted command strings.
- Capability inventory: The converter possesses file system write capabilities to create the new plugin, and the generated output includes shell execution (
subprocess.run) and network requests (httpx). - Sanitization: The skill uses a
safe_nameutility to prevent path traversal during directory creation and usesrepr()for shell command strings, but fails to apply these protections to URLs and command names in the generation logic.
Audit Metadata