story-generator
Fail
Audited by Gen Agent Trust Hub on Oct 5, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: Multiple scripts, including
generate_scene.py,assemble_story.py,editors_quality_room.py, andgenerate_pipeline_diagram.py, execute external binaries (ffmpeg,ffprobe,gcloud,dot) usingsubprocess.run(..., shell=True)orsubprocess.Popen(...). The commands are constructed using string interpolation of variables such asfile_path,project_dir, andimage_filewithout sanitization. An attacker who can influence these paths or filenames could achieve arbitrary command execution. - Evidence in
scripts/generate_scene.py:subprocess.run(f"gcloud storage cp {image_file} {gcs_uri}", shell=True) - Evidence in
scripts/editors_quality_room.py:subprocess.run(f"ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 {file_path}", shell=True) - Evidence in
scripts/assemble_story.py:subprocess.run(cmd, shell=True)wherecmdis an f-string includingvideo_pathandnorm_path. - [REMOTE_CODE_EXECUTION]: The identified command injection vulnerabilities provide a direct path for remote code execution on the system hosting the agent skill.
- [INDIRECT_PROMPT_INJECTION]: The skill processes user-supplied story scripts, character details, and multimedia prompts which are passed to generative models and MCP tools.
- Ingestion points: User-provided Story Bible content (narrative, prompts) defined in
SKILL.mdand processed bygenerate_scene.py. - Capability inventory: High-privilege shell execution via
subprocess, file system writes, and network operations viagcloudand MCP tool calls. - Boundary markers: Lacks robust delimiters or warnings to ignore embedded instructions in the narration text.
- Sanitization: Basic negative filtering is applied to music prompts, but is insufficient to prevent sophisticated prompt injection attacks.
Recommendations
- AI detected serious security threats
Audit Metadata