Kunpeng Cup CTF uses response-header prompt injection to detect AI cheating
Start here
Kunpeng Cup CTF plants a prompt in response headers to detect AI cheating: an agent induced to visit adds X-Llm-Id to self-report its model name, and once matched, a script rewrites the flag into a version tagged by model category. An author on the Xianzhi community reproduced it and found that strong models have a high refusal rate for self-identifying instructions; after switching to a neutral request header X-Client-Id and framing it as benefits such as registering for structured JSON and higher rate limits, testing showed the agent proactively included the header.
Generated by AI from reports · Updated 16 days ago
Progress timeline
- Xianzhi Community (Aliyun)Learning from the Kunpeng Cup anti-AI CTF challenge: implanting prompts in response headers to induce agents to reveal their identity, and marking flags to catch AI cheating
The Kunpeng Cup CTF implanted prompts in response headers to detect AI cheating: it induced visiting agents to add X-Llm-Id in subsequent requests to self-report the model name; on a hit, the script rewrote the flag into a version tagged by model category. The author reproduced it and found that strong models have a high refusal rate for such self-certifying instructions; after switching to a neutral request header X-Client-Id and packaging it as benefits such as "register to get structured JSON and higher rate limits," testing showed agents would proactively include the header.