Archive SHA-256 e87c02487c0db09ea14dba0e40ebf5743792e15c6e5fc8e84ee1711012aa9ecb · 63.5 KB · built Dec 2, 2026
SECURITY.md
# Security and data handling: video-production
## Permissions (from `agent.json`)
| Permission | Value | Notes |
| --- | --- | --- |
| filesystem | `read_write` | Only the `render` tool: it reads input media and subtitles and writes outputs **inside the media folder** (`AGENTROVE_MEDIA_ROOT`, or the folder the CLI/MCP server started in), plus caption and concat-list files in a private temporary folder that it deletes. The other tools touch no files. (The CLI reads the `--input` file you name; that is the SDK runner, not a tool.) |
| processes | `ffmpeg`, `ffprobe` | Only `render` starts processes: your own FFmpeg install, located via `FFMPEG_PATH` / `FFPROBE_PATH` (absolute paths) or absolute `PATH` entries. |
| network | none | The allowlist is empty, so the SDK context refuses every request. FFmpeg inputs are opened with `-protocol_whitelist file`, so FFmpeg cannot fetch URLs either. |
| credentials | none | No API keys or tokens. `FFMPEG_PATH`, `FFPROBE_PATH` and `AGENTROVE_MEDIA_ROOT` are optional configuration, not secrets. |
## Side effects
- `plan_production`, `export_captions`, `ffmpeg_commands`: none. `ffmpeg_commands` returns command
**text** and `executed: false`.
- `render`: `writes_local_files`, `requires_confirmation: true`. It refuses to run without
`"confirm": true`, which a client should set only after the user approved the exact operations and
file names (preview them with `ffmpeg_commands`). Only `src/run.js` uses `child_process`; a test
checks that it uses `spawn` with `shell: false` and never `exec`.
## render safeguards
- **No shell, allowlisted argv.** FFmpeg is spawned with an argv array; every argv is rebuilt from
structured operations and validated against the option, value and filter allowlist before it runs.
`-nostdin` is always set. No free-form arguments, filters or encoder options are accepted.
- **Path confinement.** Every input, subtitles file and output must resolve, after following links,
inside the media folder. No URLs or FFmpeg protocols, no leading `-`, no `:` after a drive letter
(NTFS alternate data streams), no control characters, expected extensions only; outputs are not
written through symbolic links and folders are not created.
- **Never overwrites inputs.** An output may not be any operation's input (compared after resolving
links, case-insensitively on Windows). Existing outputs are kept unless `overwrite: true`.
- **Input validation with ffprobe** (`-protocol_whitelist file`): inputs must be MP4/MOV, Matroska or
WebM with a video stream (so a playlist or other format renamed to `.mp4` is refused); subtitles
must be SRT, WebVTT or ASS; inline `subtitles_text` must look like SRT or WebVTT and is limited to
512 KB.
- **Resource limits.** Per-operation timeout (default 600 s; the process is killed), output duration
limit (default 900 s; checked before running and enforced with `-t`), output size limit (default
1024 MB; enforced with `-fs`, and a cut-off output is removed), at most 10 operations per call.
- **Reduced environment.** FFmpeg receives only PATH, system, temp, home, locale and fontconfig
variables, never API keys or tokens from the parent process.
- **Failure handling.** Non-zero exits are reported with the exit code and the last FFmpeg messages;
a partial output that this run created is removed; completed earlier outputs are listed.
## Residual risks
- FFmpeg itself parses untrusted media. Use a current FFmpeg release from a source you trust and keep
it updated; this agent cannot sandbox FFmpeg's decoders.
- The media folder defaults to the start folder. Start the MCP server or CLI in the folder you want
it to work in, or set `AGENTROVE_MEDIA_ROOT`; anything in that folder can be read as an input.
- `overwrite: true` replaces existing output files (never inputs) without keeping a copy.
- Checks happen just before FFmpeg runs; files changed by other programs at the same moment are not
protected against (time-of-check/time-of-use).
## Data handling
- Script text is untrusted data: it is only ever written as caption, plan or EDL text (markup,
control characters and cue arrows removed; VTT entity-escaped; EDL text reduced to ASCII), never
executed, and instructions inside it are not followed.
- B-roll and source-card notes remind you to use only footage and screenshots you have the right
to use, with attribution. `render` processes only files you point it at; it does not download media.
- Nothing is stored beyond the outputs you request. No telemetry, no analytics, no calls to AgentRove
services.
## Reporting
Report vulnerabilities through the AgentRove listing's report button or the responsible-disclosure
channel published on the AgentRove site.