Skip to main content
Challenges RAG chatbot: indirect prompt injection trace
Artificial Intelligence Medium LLM/RAG security: indirect prompt injection and data leakage via tool Solves: 2

RAG chatbot: indirect prompt injection trace

Author: CyberSamSU
Points
50

The university's 'SamSU Yordamchi' RAG chatbot (which searches documents from the knowledge base to answer, using the search_kb, fetch_url, create_ticket tools) is suspected of leaking a secret INTERNAL_SERVICE_KEY. The logging system masked the key value in the system prompt ([REDACTED-IN-LOG]), but traces may remain elsewhere. You have the full log of eight sessions: chat_log.jsonl.

Format: one JSON event per line: t, sid (session), seq, role (system, user, retrieval — with a docs list: id, source, text..., assistant, tool_call — name, args, call_id, tool_result — status and output).

Task: (1) find in which session and through which retrieved document indirect prompt injection occurred; (2) determine how the bot leaked the key (the hidden instruction in the document also specifies the encoding method); (3) recover the key actually leaked in the production environment — this key is the flag itself: BAYROQ{PROMPT_INYEKSIYA_LOG_xxxxxxxxxxxxxxxx} (last 16 characters lowercase hex). Be careful: the log also contains other injection-like texts and failed attempts.

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

First solvers

1. Odam 25.11.2026
2. Mirjaxon Qaxxarov 25.11.2026