AI agent: indirect prompt injection and leakage
A corporate assistant LLM agent had tools for reading internal files (read_file) and loading external web pages (web_fetch). After an incident occurred, the security team exported the agent's full conversation and tool-call log: agent_transcript.jsonl.
When a secret file was read, the audit log masked its value as [REDACTED_BY_AUDIT_LOGGER], but that value had been passed into the LLM's context window. An indirect prompt injection hidden in one of the external web pages forced the agent to split the secret flag in its context into fragments and leak it to an external server through markdown image URLs:

The fragments were sent out over the network in mixed order and some were re-sent (retry). In addition, the log contains a honeypot sample from the system prompt and decoy images belonging to another (internal telemetry) domain. Assemble the fragments sent to the attacker's domain (img.evil.example) in the order of the i index, base64url-decode them and find the BAYROQ{AGENT_SIZDIRISH_...} flag (the last 16 characters are lowercase hex).