video-understand
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The main script
scripts/understand_video.pyperforms extensive command execution usingffmpegandffprobeto extract metadata and video frames. The implementation usessubprocess.runwith argument lists rather than shell strings, which follows best practices for preventing shell injection. - [DYNAMIC_EXECUTION]: In
scripts/understand_video.py, the function_check_and_offer_installoffers to install theopenai-whisperpackage viapipif it is missing. This operation targets a well-known package from a reputable service and includes an interactive user confirmation prompt, though it technically involves runtime modification of the environment. - [INDIRECT_PROMPT_INJECTION]: The skill facilitates the processing of untrusted external data (video files) and converts it into natural language text (transcription) for the agent's consumption.
- Ingestion points: Audio content is ingested and transcribed into text in
scripts/understand_video.pythrough thetranscribe_with_whisperfunction. - Boundary markers: The output is structured in a JSON schema which provides clear data boundaries; however, there are no instructions to the agent to treat the
transcriptortextfields as untrusted content. - Capability inventory: The script has the capability to run local shell commands (
ffmpeg,ffprobe) and perform file system writes (creating frame directories and outputting JSON). - Sanitization: No sanitization or filtering is performed on the transcribed text content before it is passed to the agent, potentially allowing an attacker to embed instructions in a video's audio track.
Audit Metadata