web-artifacts-builder

Fail

Audited by Gen Agent Trust Hub on Sep 6, 2026

Risk Level: HIGHCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The scripts/init-artifact.sh script is vulnerable to shell command injection. It accepts a project name as a command-line argument ($1) and uses it directly within shell commands (e.g., cd "$PROJECT_NAME", pnpm create vite "$PROJECT_NAME", and sed operations) without sanitization or escaping. This allows a crafted input to execute arbitrary commands on the host system.
  • [PRIVILEGE_ESCALATION]: The skill attempts to modify the global system state by executing npm install -g pnpm. Performing global software installations within the context of an AI agent skill is a privilege escalation risk, as it introduces persistent changes to the host environment beyond the project scope.
  • [COMMAND_EXECUTION]: The initialization script extracts a local archive shadcn-components.tar.gz into the project's source directory using tar -xzf. Because this archive is distributed as an opaque file and its full contents are not available for inspection in plain text, it acts as a vector for injecting unverified code into the workspace.
  • [INDIRECT_PROMPT_INJECTION]: The skill's handling of user-provided project names creates a surface for indirect prompt injection attacks.
  • Ingestion points: The project name is passed as a positional parameter to the initialization script in SKILL.md.
  • Boundary markers: There are no safety delimiters or boundary markers used to isolate the user input within the shell command execution context.
  • Capability inventory: The skill has broad capabilities including file system modification, package management, and arbitrary shell command execution.
  • Sanitization: The script lacks any validation, filtering, or sanitization logic for the project name input.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Sep 6, 2026, 11:21 AM