manage-terminal-title
Pass
Audited by Gen Agent Trust Hub on Jul 11, 2026
Risk Level: SAFEPROMPT_INJECTION
Full Analysis
- [PROMPT_INJECTION]: The
scripts/manage_terminal_title.pymodule facilitates indirect prompt/command injection by concatenating potentially untrusted data into terminal control sequences without sanitization. - Ingestion points: The
state_dictparameter in thecompose()and_compose_body()functions, specifically thecurrent_phaseandshort_descriptionfields which may contain user-provided text. - Boundary markers: No specific delimiters or escaping mechanisms are applied to the
short_descriptionorphasevalues before they are formatted into the title body. - Capability inventory: The composed string is intended for use in terminal OSC (Operating System Command) sequences (e.g.,
\x1b]0;{composed}\x07). If a phase or description contains control characters like\x07(BEL) or\x1b(ESC), it could truncate the title sequence and inject subsequent terminal commands. - Sanitization: The module performs basic whitespace stripping using
.strip()but does not filter for terminal control characters or ANSI escape sequences.
Audit Metadata