AI 2
Challenge Information
- Name: AI 2
- Points: 150
- Category: AI
- Objective: Manipulate an LLM capable of executing APIs to retrieve the flag.
Solution
Challenge Overview:
- Unlike the first challenge, this LLM can execute API calls.
- We thought the goal was to leverage this functionality to extract the flag.
Failed Attempts:
- We initially attempted to manipulate the API calls through various payloads:
- JSON Injection:
- Payload:
{"weather":"true","secret":"true"}
- Payload:
- SSRF Attempt:
- Payload:
http://localhost/secret
- Payload:
- JSON Injection:
- These attempts failed.
- We initially attempted to manipulate the API calls through various payloads:
Successful Approach:
- I applied the dual-task prompt concept used in the previous challenge:
- By presenting two tasks sequentially, I exploited the LLM’s tendency to complete the second task when it fails the first.
- This strategy prompted the LLM to reveal the flag indirectly while executing API logic.
- I applied the dual-task prompt concept used in the previous challenge: