create-element
Warn
Audited by Gen Agent Trust Hub on Oct 12, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill requires the execution of a local TypeScript script via
bun run .claude/skills/create-element/scripts/scaffold-element.tsto perform its primary function of scaffolding new elements. - [DYNAMIC_EXECUTION]: The scaffolding script
scaffold-element.tsperforms dynamic code generation by writing TypeScript and JSON files to the filesystem based on user input and pre-defined templates. - [INDIRECT_PROMPT_INJECTION]: The
scaffold-element.tsscript is vulnerable to path traversal because it constructs filesystem paths using the unsanitizedcategoryandnamearguments. An attacker could potentially cause the agent to create or overwrite files in unauthorized directories by providing crafted names (e.g., using../). - Ingestion points: The
categoryandnamecommand-line arguments passed to the scaffolding script as defined in the Quick Start section (SKILL.md). - Boundary markers: None identified in the script or instructions to prevent processing of malicious path sequences or to delimit untrusted input.
- Capability inventory: The script uses
mkdirwithrecursive: trueandwriteFileto create directories and files (scripts/scaffold-element.ts). - Sanitization: There is no validation, normalization, or escaping of the
categoryornamevariables before they are used in path construction.
Audit Metadata