yt-chapters
Warn
Audited by Gen Agent Trust Hub on Sep 27, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
chapters.pydynamically modifies the Python module search path at runtime. It usessys.path.insert(0, ...)to include a directory relative to the script's own path (../yt-edit) and subsequently imports thedeadairmodule. Loading executable code from computed relative paths is a risky practice as it assumes the parent directory structure is secure and cannot be manipulated by an attacker to inject malicious modules. - [COMMAND_EXECUTION]: The skill requires the agent to execute a local Python script using the
python3command. This script performs file system operations, specifically reading transcript files provided as command-line arguments. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to process untrusted external data in the form of video transcripts (
.srt,.vtt, or.jsonfiles). This represents a potential attack surface for indirect prompt injection if malicious instructions are embedded in the transcript text. - Ingestion points: The
chapters.pyscript reads the contents of the file path passed to it insys.argv[1]via theload()function. - Boundary markers: The skill lacks explicit boundary markers or instructions to the agent to ignore potentially malicious embedded content within the transcript.
- Capability inventory: The script has the capability to read files from the local filesystem and print formatted text to the agent's output buffer.
- Sanitization: The script performs basic sanitization during keyword extraction using the regular expression
[a-z']{4,}, which restricts the characters used to generate draft titles to lowercase letters and apostrophes, limiting the risk of control character injection into the final output.
Audit Metadata