mermaid-config
Warn
Audited by Gen Agent Trust Hub on Apr 29, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses the
findcommand to search the user's home directory for a specific directory structure. It then uses the result ($PLUGIN_DIR) as a base path to execute JavaScript files withnode. This dynamic path resolution is susceptible to search-order hijacking if a malicious directory with the same name is placed in a location scanned byfind.- [EXTERNAL_DOWNLOADS]: The skill's health check feature automatically invokesnpm installto download and install thebeautiful-mermaidpackage if it is missing. This introduces external code from the public NPM registry into the user's environment.- [REMOTE_CODE_EXECUTION]: Automatic installation of third-party packages from unverified sources (likebeautiful-mermaidvia NPM) creates a risk of remote code execution, as the package manager may run arbitrary installation scripts defined by the package author.- [PROMPT_INJECTION]: The skill ingests untrusted user input via the$ARGUMENTSvariable and incorporates it into a JSON configuration file. Ingestion point:$ARGUMENTSinSKILL.md. Boundary markers: None. Capability inventory:Writeto.claude/mermaid.json,Bashexecution of dynamic paths. Sanitization: None explicitly defined. This creates a surface for schema confusion if the configuration file is later processed by other agent components.
Audit Metadata