prompt-chaining

Pass

Audited by Gen Agent Trust Hub on Jun 22, 2026

Risk Level: SAFEPROMPT_INJECTION
Full Analysis
  • [PROMPT_INJECTION]: The analyze_document function in SKILL.md is vulnerable to indirect prompt injection through its document processing pipeline.
  • Ingestion points: The function accepts an unvalidated text string which is directly interpolated into the first LLM prompt.
  • Boundary markers: There are no delimiters (e.g., XML tags, clear separators) or system instructions provided to the LLM to distinguish between the prompt instructions and the untrusted content in the {text} variable.
  • Capability inventory: The skill uses the anthropic SDK to perform sequential message creation. A successful injection in the first step could influence the structured output (extracted['title'], extracted['key_points']), which is then fed into Step 2 and Step 3, leading to a chained injection attack.
  • Sanitization: The code lacks any sanitization, filtering, or validation of the input text before it is used in prompt construction.
Audit Metadata
Risk Level
SAFE
Analyzed
Jun 22, 2026, 02:31 PM
Security Audit — agent-trust-hub — prompt-chaining