cut-segment

Pass

Audited by Gen Agent Trust Hub on Jun 13, 2026

Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill uses the Bash tool to execute system commands including ffmpeg, ffprobe, and awk. These commands incorporate user-provided variables such as the source file path and segment timestamps via shell expansion. While variables are wrapped in double quotes in the provided scripts, a risk of command injection exists if the input strings contain subshell execution patterns (e.g., backticks or dollar-parenthesis) and the execution environment does not perform additional sanitization.
  • [COMMAND_EXECUTION]: The to_seconds function utilizes a Bash here-string (<<<"$1") to pass the segment timestamp to awk. If the timestamp input is not strictly validated before being passed to this function, it could serve as an injection vector allowing arbitrary command execution within the shell context.
  • [COMMAND_EXECUTION]: The video concatenation feature uses the ffmpeg -f concat -safe 0 flag. The -safe 0 option permits the inclusion of arbitrary file paths and potentially network protocols in the concatenation list. If an attacker can influence the filenames or labels being stitched, this could be used to include unauthorized local files into the processed output video.
  • [COMMAND_EXECUTION]: The skill invokes realpath "$INPUT" and ffprobe on the source file path. If the INPUT variable is sourced from an untrusted user and passed directly to a shell for processing, it could lead to arbitrary command execution prior to the validation steps outlined in the procedure.
Audit Metadata
Risk Level
SAFE
Analyzed
Jun 13, 2026, 03:34 PM
Security Audit — agent-trust-hub — cut-segment