web-artifacts-builder
Warn
Audited by Gen Agent Trust Hub on Apr 18, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/init-artifact.shscript is vulnerable to command injection via the$PROJECT_NAMEvariable. The variable is derived from the first command-line argument and used directly in asedcommand:$SED_INPLACE 's/<title>.*<\/title>/<title>'"$PROJECT_NAME"'<\/title>/' index.html. If the input contains shell metacharacters orseddelimiters, it can result in arbitrary code execution.\n- [EXTERNAL_DOWNLOADS]: The skill's scripts perform extensive runtime installations from the NPM registry. This includes installing bundlers (Parcel), frontend frameworks (Vite, Tailwind CSS), and over 40 UI component libraries. It also includes a global installation ofpnpmif the tool is not found on the system.\n- [COMMAND_EXECUTION]: The initialization process involves dynamic execution of JavaScript vianode -eto programmatically updatetsconfig.jsonandtsconfig.app.jsonwith path aliases. This introduces complexity and potential risks associated with runtime configuration generation.\n- [PROMPT_INJECTION]: The skill presents an attack surface for indirect prompt injection due to the lack of sanitization on the project name argument inscripts/init-artifact.sh.\n - Ingestion points: The project name is accepted as an unsanitized command-line argument.\n
- Boundary markers: None. The script does not utilize delimiters or instructions to ignore embedded commands in the input string.\n
- Capability inventory: The skill has the ability to execute shell commands, modify local project files, and fetch packages from external registries.\n
- Sanitization: No validation or escaping is performed on the project name before its use in shell-mediated operations.
Audit Metadata