pick-theme
Warn
Audited by Gen Agent Trust Hub on Jul 25, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes a Python utility (
scripts/discover-themes.py) to manage theme discovery. This script dynamically loads and executes an external component (validate-theme-manifest.py) usingimportlib.util. The path to this external script is constructed at runtime from environment variables and the local directory structure, representing a dynamic loading pattern from computed paths. - [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection. It reads and parses
theme.mdandmanifest.jsonfiles from both standard and workspace directories. Content from these files, such as theme names and descriptions, is extracted using regular expressions and used directly to generate options for theAskUserQuestiontool and as parameters for downstream skills. - Ingestion points:
theme.mdandmanifest.jsonin directories defined byCLAUDE_PLUGIN_ROOTandCOGNI_WORKSPACE_ROOT. - Boundary markers: No delimiters or instructions to ignore embedded content are used when processing the text extracted from theme files.
- Capability inventory: Access to
bashfor script execution, interactiveAskUserQuestion, and standard file manipulation tools. - Sanitization: Metadata from theme files is utilized directly without sanitization or validation against unexpected instructions.
- [COMMAND_EXECUTION]: The discovery script implements an auto-discovery mechanism that scans the user's filesystem (including home and cloud storage directories) for
.workspace-config.jsonfiles if configured paths are stale, which involves broad read-access to the local environment.
Audit Metadata