regex-vs-llm-structured-text
Pass
Audited by Gen Agent Trust Hub on Apr 11, 2026
Risk Level: SAFEPROMPT_INJECTION
Full Analysis
- [PROMPT_INJECTION]: The
validate_with_llmfunction inSKILL.mdis vulnerable to indirect prompt injection as it interpolates untrusted external content directly into an LLM prompt template. - Ingestion points: The
contentparameter provided toprocess_documentis passed asoriginal_textto the LLM validation step. - Boundary markers: None. The prompt template lacks delimiters (e.g., XML tags or triple quotes) or specific instructions for the model to ignore any commands found within the source text.
- Capability inventory: The logic depends on the LLM's response to correct data extractions; an attacker-controlled input could influence the final parsed output by providing malicious instructions.
- Sanitization: No input sanitization or validation is performed on the source text before it is used in the prompt.
Audit Metadata