demo-producer
Fail
Audited by Gen Agent Trust Hub on Feb 27, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The generator script
scripts/generate.shis vulnerable to shell command injection. Multiple functions, includinggenerate_cli_script,generate_skill_script,generate_agent_script, andgenerate_tutorial_script, use unquoted heredocs (e.g.,<< SCRIPT_HEADER,<< TITLE,<< ACTIVATION) to write shell scripts to disk. Variables containing user-supplied command arguments or data extracted from project files (such asDEMO_NAMEandDEMO_DESCRIPTION) are expanded by the shell during this process. If these inputs contain shell metacharacters like backticks or$(), arbitrary commands will be executed on the host system during the generation phase. - [COMMAND_EXECUTION]: The skill's primary functionality relies on dynamic code generation and execution. It programmatically creates bash scripts (
scripts/demo-*.sh) and VHS tape files, makes the scripts executable usingchmod +x, and executes them. This architecture provides a direct path for executing dynamically constructed logic on the user's machine. - [EXTERNAL_DOWNLOADS]: The skill implementation and documentation reference several external tools and frameworks that must be present or are invoked at runtime. These include
vhs,asciinema, andmanim(Python), as well as theremotionframework which is executed vianpxin thefull-pipeline.shscript. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection (Category 8) because it extracts metadata, such as names and descriptions, from external
SKILL.md,agent.md, andplugin.jsonfiles and incorporates them into its execution logic without sanitization. An attacker controlling these files could inject malicious content into the produced demo scripts or influence the generator's behavior. Evidence includes ingestion points inextract_skill_metadataandextract_agent_metadatawithinscripts/generate.sh, and the lack of sanitization when interpolating these values into heredocs.
Recommendations
- AI detected serious security threats
Audit Metadata