regex-vs-llm-structured-text
Pass
Audited by Gen Agent Trust Hub on Oct 30, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill architecture is susceptible to indirect prompt injection because it processes untrusted source text through the
process_documentfunction inSKILL.md. Evidence: 1. Ingestion point: Thecontentparameter inprocess_documentandoriginal_textinvalidate_with_llm. 2. Boundary markers: The LLM promptText: {original_text}lacks explicit delimiters (like triple backticks or XML tags) or instructions to ignore embedded commands. 3. Capability inventory: The skill invokes an LLM message creation tool (client.messages.create) to process this data. 4. Sanitization: No sanitization or escaping of the input text is implemented before interpolation. An attacker could embed instructions in the text being parsed to manipulate the LLM's validation output. Mitigation involves using strict boundary markers and instructing the model to treat the input solely as data.
Audit Metadata