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
Bashtool to execute system commands includingffmpeg,ffprobe, andawk. 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_secondsfunction utilizes a Bash here-string (<<<"$1") to pass the segment timestamp toawk. 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 0flag. The-safe 0option 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"andffprobeon the source file path. If theINPUTvariable 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