web-artifacts-builder
Warn
Audited by Gen Agent Trust Hub on Sep 22, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/init-artifact.shscript accepts a project name as a command-line argument which is subsequently used in shell commands andsedoperations without sanitization. - Evidence: The script uses
$PROJECT_NAMEdirectly inechocommands andsedpatterns (e.g.,$SED_INPLACE 's/<title>.*<\/title>/<title>'"$PROJECT_NAME"'<\/title>/' index.html), creating a vulnerability to shell injection or file corruption. - [PRIVILEGE_ESCALATION]: The initialization script attempts to perform a global installation of the
pnpmpackage manager. - Evidence:
scripts/init-artifact.shexecutesnpm install -g pnpm, which modifies the global environment and may require administrative privileges. - [DYNAMIC_EXECUTION]: The skill uses runtime JavaScript execution to modify configuration files.
- Evidence:
scripts/init-artifact.shcontainsnode -eblocks that programmatically rewritetsconfig.jsonandtsconfig.app.jsonbased on hardcoded strings. - [EXTERNAL_DOWNLOADS]: The skill downloads and installs numerous packages from the NPM registry.
- Evidence:
scripts/init-artifact.shandscripts/bundle-artifact.shinvokepnpm install,pnpm add, andpnpm create viteto fetch dependencies at runtime. - [REMOTE_CODE_EXECUTION]: The skill executes external scripts and package binaries downloaded during the setup phase.
- Evidence: Commands like
pnpm create viteandpnpm exec parcelexecute code fetched from external sources. - [INDIRECT_PROMPT_INJECTION]: The skill processes and bundles code intended for display as an artifact, creating an injection surface.
- Ingestion points: The skill processes user-developed source files in the project root and
src/directory (e.g.,index.html). - Boundary markers: Absent. The skill does not implement delimiters or warnings for embedded instructions in the generated artifacts.
- Capability inventory: The skill utilizes
parcel buildandhtml-inlineto process and aggregate file contents into a single executable HTML artifact. - Sanitization: Absent. The bundling process in
scripts/bundle-artifact.shdoes not include sanitization or validation of the input source code before inlining.
Audit Metadata