building-react-web-application
Fail
Audited by Gen Agent Trust Hub on May 10, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/add-registry-component.jsscript executes shell commands usingexecFileSyncto interact with various package managers (npm, pnpm, yarn, bun) and theshadcnCLI. It passes user-provided arguments, such as registry names or URLs, to these commands without exhaustive validation or sanitization.\n- [REMOTE_CODE_EXECUTION]: Thescripts/add-registry-component.jsutility fetches component metadata from remote URLs. It automatically performs two high-risk actions based on the content of the fetched JSON: it installs npm packages listed in thedependenciesanddevDependenciesfields and writes code from thefilesarray directly to the local filesystem in thesrc/uidirectory. This creates a vector for remote code execution if a user is directed to a malicious registry URL.\n- [PROMPT_INJECTION]: The skill exposes an indirect prompt injection surface by processing untrusted data from external registry URLs through theadd-registry-component.jsscript.\n - Ingestion points: Remote registry URLs or component names are passed as CLI arguments to the script, which then fetches and parses external JSON payloads.\n
- Boundary markers: No boundary markers or specific instructions to the agent to ignore instructions embedded in the external content are implemented.\n
- Capability inventory: The skill possesses the capability to execute shell commands via
execFileSyncand modify the project structure usingfs.writeFileSync.\n - Sanitization: Although the script parses the data as JSON and applies basic regex-based code transformations, it does not verify the safety, origin, or integrity of the code or the dependencies being introduced into the project.
Recommendations
- AI detected serious security threats
Audit Metadata