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
从一道反ai的ctf题中学习
AI summary
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.