cli-demo-generator
Warn
Audited by Gen Agent Trust Hub on Sep 24, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONOBFUSCATIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/auto_generate_demo.pyandscripts/record_interactive.shscripts facilitate the execution of arbitrary shell commands within a terminal recording environment via thevhsutility. While this is the intended purpose of the skill, it provides a powerful capability that can be abused to run dangerous commands on the host system. - [OBFUSCATION]: The skill documentation in
SKILL.mdandreferences/advanced_patterns.mdexplicitly promotes using Base64 encoding as a workaround for VHS parser limitations. This technique allows for the execution of complex shell scripts, including functions and redirects, that are not directly visible in the tape file text, potentially hiding malicious intent from simple inspection. - [COMMAND_EXECUTION]: The script
scripts/record_interactive.shis vulnerable to shell command injection. It uses an unquoted here-document (<< EOF) to generate configuration files, which causes the shell to evaluate and execute any command substitution sequences (e.g.,$(...)or backticks) contained within the$OUTPUTor$CAST_FILEvariables at runtime. - [DYNAMIC_EXECUTION]: The Python script
scripts/auto_generate_demo.pydynamically constructs.tapescripts from user-provided command strings and executes them usingsubprocess.run. There is no validation or sanitization of the input commands before they are written to the executable script file. - [INDIRECT_PROMPT_INJECTION]: The skill exposes a significant attack surface for indirect prompt injection by processing untrusted data (CLI commands) and executing them with full shell capabilities.
- Ingestion points: Command-line arguments
-c,--bootstrap, and--filterinauto_generate_demo.py, and YAML configuration files inbatch_generate.py. - Boundary markers: None identified. Instructions are directly interpolated into the execution context.
- Capability inventory: Full shell access through the
vhsrecording environment, file system operations (cp,rm,sed), and subprocess management. - Sanitization: None. The scripts do not escape or validate the provided shell commands before execution.
Audit Metadata