Oedipus: LLM-enchanced Reasoning CAPTCHA Solver

Gelei Deng, Haoran Ou, Yi Liu, Jie Zhang, Tianwei Zhang, Yang Liu

TL;DR

Researchers have developed OEDIPUS, a framework that enables Large Language Models (LLMs) to crack "reasoning CAPTCHAs"—tasks involving logic and 3D spatial awareness that were previously thought to be AI-resistant. By using a custom Domain Specific Language (DSL) to decompose complex puzzles into simple, verifiable sub-steps, OEDIPUS achieves a 63.5% success rate against modern commercial defenses.

What Problem Does This Paper Address?

For years, the "arms race" between CAPTCHA developers and bot-makers focused on text recognition and basic image labeling. As AI got better at these tasks, developers pivoted to reasoning CAPTCHAs. These require more than just "seeing" an object; they require logical deduction (e.g., "find the number 0 that shares the same orientation as the yellow letter W") or 3D spatial reasoning.

While state-of-the-art multimodal LLMs like GPT-4V are brilliant at reasoning, they surprisingly struggle with these CAPTCHAs. The authors identify a specific bottleneck: Moravec’s paradox. LLMs can understand the complex instructions perfectly, but they fail at the "simple" part—accurately identifying and attributing characteristics (like color or orientation) to multiple objects simultaneously within a single prompt. They hallucinate, lose track of steps, or misidentify object positions.

Methods

The authors introduce OEDIPUS, an end-to-end framework designed to bridge the gap between "human-easy" and "AI-hard" tasks. The core innovation is the CAPTCHA Domain Specific Language (DSL).

The workflow operates in two main phases:

  1. Offline Generation: A specialized LLM is fine-tuned to translate a CAPTCHA challenge into a script written in the custom DSL. This DSL uses four atomic operations: search, reason, locate, and operate.
  2. Online Solving:
    • Syntax Verification: A local verifier checks the DSL script for errors. If it fails, it provides feedback to the LLM to regenerate the script.
  3. Instruction Translation: The verified DSL is translated into simple, natural language instructions.
  4. Sequential Solving: A multimodal LLM (the "Solver") executes these instructions one by one using a Chain-of-Thought (CoT) approach. By focusing on one "AI-easy" sub-task at a time (e.g., "Find all red cylinders"), the model avoids the cognitive overload that leads to hallucinations.

Datasets

Since no open-source dataset for reasoning CAPTCHAs existed, the authors curated their own by collecting samples from three major commercial providers: Arkose Labs, Geetest, and NetEase Yidun.

  • Initial Study Set: 50 samples across 5 categories (Rotation, Bingo, 3D Space, etc.).
  • Transferability Set: Two brand-new CAPTCHA designs released in late 2023 (Arkose-AngularV2 and Geetest-IconCrush) to test if the framework could adapt to "unseen" challenges.

Key Insights and Ideas

  • Decomposition is King: The most significant finding is that LLMs can solve these puzzles, but only if forced to work through a structured, intermediate language. The DSL acts as a "cognitive scaffold."
  • The Multi-Object Bottleneck: LLMs are proficient at identifying a single object but their accuracy plummets when tasked with discerning attributes of multiple objects at once. OEDIPUS solves this by isolating each object identification into a separate step.
  • Zero-Shot vs. CoT: Standard "zero-shot" prompting (asking for the answer immediately) fails miserably. Even standard Chain-of-Thought fails because the model still tries to do too much in one "thought." The DSL-guided approach is what provides the necessary granularity.

Key Results

  • High Success Rate: OEDIPUS achieved an average success rate of 63.5% across the studied CAPTCHAs.
  • Model Comparison: GPT-4 proved to be the most effective backbone, significantly outperforming Gemini and open-source alternatives like miniGPT-4.
  • Adaptability: When tested on the 2023 "unseen" CAPTCHAs, OEDIPUS maintained a 44.1% success rate without any additional training, proving the DSL is flexible enough to handle new logic types.
  • Cost Efficiency: Using the Gemini API, the cost was as low as $3.10 per 100 solved CAPTCHAs, making it a viable (though slower) alternative to human-solving farms.

Limitations and Future Work

  • Latency: OEDIPUS is slow. It takes an average of 146.5 seconds to solve a challenge, whereas human solvers or specialized bots usually take under 20 seconds. This makes it less practical for high-speed automated attacks—for now.
  • Fine-grained Perception: The system still struggles with extremely precise orientation tasks (e.g., rotating an object by a specific small degree), as LLMs still lack pixel-perfect spatial precision.
  • Defensive Directions: The authors suggest that to counter OEDIPUS, CAPTCHA designers should move toward "Deceptive Object Recognition" (using adversarial images to confuse LLMs) or tasks that require an intuitive understanding of physical laws (like predicting the outcome of a video clip).

Summary updated

BibTeX
@inproceedings{deng2025oedipus,
  author = {Gelei Deng and Haoran Ou and Yi Liu and Jie Zhang and Tianwei Zhang and Yang Liu},
  title = {{Oedipus: LLM-enchanced Reasoning CAPTCHA Solver}},
  booktitle = {CCS},
  year = {2025},
  doi = {10.1145/3719027.3744872},
}
Figure