cli-demo-generator
Warn
Audited by Gen Agent Trust Hub on Sep 8, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill's core functionality is to execute arbitrary shell commands on the host system to capture their output. While intended for generating demos, this capability allows for general command execution which can be risky if the agent processes untrusted instructions.
- Evidence:
scripts/auto_generate_demo.pyandscripts/record_interactive.shboth invoke thevhstool to run and record shell commands. - [DYNAMIC_EXECUTION]: The skill dynamically constructs and executes
.tapefiles, which are scripts for thevhsrecording tool. This dynamic generation is the mechanism used to execute the user-provided commands. - Evidence:
scripts/auto_generate_demo.pywrites command strings directly into a temporary.tapefile before calling thevhsbinary. - [INDIRECT_PROMPT_INJECTION]: The skill is susceptible to injection attacks because it fails to sanitize command strings before inserting them into
.tapefiles. Specifically,scripts/auto_generate_demo.pydoes not escape double quotes, which could allow a malicious command to terminate theTypedirective and inject othervhsdirectives. This could be used to redirect the tool's output and overwrite or corrupt files. - Ingestion points: The
--commandarguments inscripts/auto_generate_demo.pyand thecommandsfield in configuration files used byscripts/batch_generate.py. - Boundary markers: None. Command strings are directly interpolated into the file template.
- Capability inventory: Execution of commands in a terminal shell and control over tool output paths.
- Sanitization: None. The script uses f-string interpolation:
f'Type "{cmd}" Sleep 500ms'.
Audit Metadata