switch-chat
Pass
Audited by Gen Agent Trust Hub on Sep 16, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill facilitates state transfer between chat sessions by ingesting user-provided text and outputting it for later ingestion by the agent. This creates a surface for instructions to be embedded in the data stream.
- Ingestion points: The
scripts/gen.pyscript reads handoff content fromstdinor a file specified via the--fromargument. - Boundary markers: The skill does not use delimiters or include instructions to the reading agent to ignore embedded commands within the handoff data.
- Capability inventory: The agent utilizing this skill is intended to perform complex file and system operations based on the inherited task description.
- Sanitization: The input content is structured into sections but is not sanitized to remove or neutralize natural language instructions.
- [COMMAND_EXECUTION]: The skill requires the agent to execute local Python scripts and manage a temporary local web server.
- Evidence:
SKILL.mddefines workflows involvingpython3 scripts/gen.pyandpython3 scripts/read.py. - Details:
gen.pystarts a local HTTP server on127.0.0.1to handle save requests from the generated HTML interface. The server includes a 5-minute idle timeout for safety. - [DYNAMIC_EXECUTION]: The skill generates executable HTML and JavaScript content at runtime based on user input.
- Evidence:
scripts/gen.pyuses f-string interpolation to build an HTML document containing the handoff data and a JavaScript-based editor. The interpolation of the document title lacks proper HTML escaping, presenting a minor Cross-Site Scripting (XSS) surface in the generated file.
Audit Metadata