ui-styling
Pass
Audited by Gen Agent Trust Hub on Nov 7, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/shadcn_add.pyuses thesubprocessmodule to executenpx shadcn addcommands. This is used to programmatically install UI components into the project. The script avoids usingshell=Trueand constructs the command as a list, which mitigates shell injection risks. - [INDIRECT_PROMPT_INJECTION]: The skill's scripts ingest data from project-level configuration files which represents a potential attack surface if those files are controlled by an attacker:
- Ingestion points:
scripts/shadcn_add.pyreadspackage.jsonto determine the shadcn version andcomponents.jsonto identify installation paths. - Boundary markers: Absent for these configuration files, as they are expected to be valid JSON.
- Capability inventory: The skill can execute shell commands via
npxand write configuration files to the local file system. - Sanitization: The
_get_shadcn_versionfunction sanitizes the version string frompackage.jsonby splitting on whitespace. Thetailwind_config_gen.pyscript uses a strict regular expression (_VALID_PLUGIN_NAME) to validate plugin names before including them in arequire()call in the generated configuration, preventing arbitrary code injection into the project's build configuration.
Audit Metadata