ux-audit
Fail
Audited by Gen Agent Trust Hub on Jul 30, 2026
Risk Level: HIGHCOMMAND_EXECUTIONPROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/generate-figma-variables.mjsis vulnerable to command injection. It usesexecSyncto execute a shell command that interpolates thedesignSystem.versionvalue directly from the.ux-audit.jsonconfiguration file without sanitization. An attacker could place a malicious configuration file in a repository, and running the audit skill on that project would trigger arbitrary code execution. - [COMMAND_EXECUTION]: The script
scripts/run-audit-agent.shcontains a command injection vulnerability where a user-provided project name or directory is interpolated directly into a Python command string executed viapython3 -c. A crafted project name can escape the intended Python string and execute arbitrary commands. - [COMMAND_EXECUTION]: The script
scripts/scan-hardcoded-values.shusesevalto execute aripgrepcommand constructed from user-provided file extensions and exclusion patterns. This provides an additional vector for shell command injection if the project configuration or command-line arguments are untrusted. - [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection. It uses
WebFetchto scrape content from external portfolio and case study URLs provided in the configuration. The agent is then instructed to extract narrative context from this untrusted content, which could be used by an attacker to influence the agent's behavior or poison the generated audit report. - [EXTERNAL_DOWNLOADS]: The skill automatically downloads assets from
registry.npmjs.orgusingcurlandtarduring the token mapping phase. While the source is a standard registry, the execution method is insecure due to the lack of input validation as documented in the command execution findings.
Recommendations
- AI detected serious security threats
Audit Metadata