capacitor-plugin-upgrade-v4-to-v5
Pass
Audited by Gen Agent Trust Hub on Oct 12, 2026
Risk Level: SAFEDYNAMIC_CONTEXT_INJECTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_CONTEXT_INJECTION]: The skill utilizes the
!command syntax inSKILL.mdto execute shell commands when the skill is loaded by the agent. - A Node.js one-liner script reads and parses the project's
package.jsonto extract basic metadata (name, version) and Capacitor-related dependencies. - A
findcommand is used to locate relevant project subdirectories (example-app,ios,android). - These operations are used to provide the agent with immediate project context and do not perform network operations or access sensitive system files.
- [INDIRECT_PROMPT_INJECTION]: The skill possesses an attack surface for indirect prompt injection via the ingestion of project metadata.
- Ingestion points: Content from the local project's
package.jsonfile is read into the agent's context during skill initialization via dynamic context execution inSKILL.md. - Boundary markers: The data is injected directly into the skill snapshot without explicit delimiters or instructions to ignore embedded content.
- Capability inventory: The skill is configured with
allowed-toolsforBash(node -e *)andBash(find *)as defined in the YAML frontmatter ofSKILL.md. - Sanitization: The injected script performs JSON parsing and key-based filtering, which provides validation for the structure and content of the input data.
- [COMMAND_EXECUTION]: The skill is configured to use command-line tools for project analysis and modification.
- The
allowed-toolssection explicitly permits the use ofnode -eandfindwithin the Bash environment. - These tools are used for legitimate project discovery and management tasks associated with the intended upgrade process.
Audit Metadata