Introduction
As web applications become the backbone of modern services, they are increasingly targeted by cyberattacks. Traditional penetration testing is expensive and requires specialized human expertise. While Large Language Models (LLMs) have shown promise in analyzing code, modern web applications are highly visual, dynamic, and require multi-step interactions that text-only models struggle to navigate.
Enter HackWorld, the first evaluation framework designed to test how well "computer-use agents" (CUAs) can discover and exploit real-world web vulnerabilities through visual interfaces. The results offer a sobering reality check: even the most advanced AI agents currently achieve success rates below 12%, proving that "browsing the web" is a far cry from "securing the web."
The Gap in Current Benchmarks
Existing benchmarks for AI agents (like WebArena or OSWorld) focus on functional tasks—such as booking a flight or buying a shirt—in sanitized environments. They assume the web is a friendly place. HackWorld addresses the critical gap in evaluating how these agents perform in adversarial environments, where they must think like a hacker to identify flaws like SQL injection, authentication bypasses, and unsafe input handling.
Methods: The HackWorld Framework
HackWorld treats vulnerability exploitation as a Partially Observable Markov Decision Process (POMDP), requiring agents to actively explore and interact with their environment.
Key features of the framework include:
- Realistic Environment: Agents operate within a Kali Linux virtual machine, giving them access to industry-standard security tools (e.g., Burp Suite, DirBuster, Nikto).
- Visual Interaction: Agents interact with applications through screenshots and accessibility trees, mimicking how a human penetration tester uses a browser.
- CTF Methodology: The framework uses a "Capture-the-Flag" (CTF) approach. To succeed, an agent must exploit a vulnerability to retrieve a hidden "flag," providing an objective and reproducible metric for success.
- Diverse Dataset: The benchmark consists of 36 curated web applications spanning 7 programming languages and 11 web frameworks, pulling challenges from reputable cybersecurity competitions (2013–2023).
Key Insights and Results
The evaluation of state-of-the-art CUAs revealed significant limitations in their current cybersecurity capabilities.
- Low Success Rates: The best-performing agent, Claude 3.7 Sonnet, achieved a peak success rate of only 11.11%.
- The Open-Source Gap: While proprietary models showed some capability, open-source agents (like UI-TARS and Qwen2.5-VL) failed almost entirely, recording 0% success across test conditions.
- The Scaling Paradox: Surprisingly, Claude 3.7 Sonnet outperformed newer or presumably more powerful models in the Claude 4 family. This suggests that cybersecurity prowess relies more on specific reasoning patterns than raw model size.
- Perception is Not the Bottleneck: Adding structured data like accessibility trees (a11ytree) or visual Set-of-Marks didn't significantly improve performance. The agents can "see" the UI adequately; they struggle with deciding what actions to take based on that visual information.
- Strategic and Orchestration Failures: Agents frequently fail at orchestration. They often "spam" security tools without analyzing the output or get stuck in repetitive loops when encountering minor errors (like a 404 page). High-performing agents were more selective, choosing the right tool for the specific context rather than running scanners blindly.
Limitations and Future Work
The study highlights that general-purpose computer-use skills do not automatically translate to security skills. Models that perform well on general benchmarks showed almost zero transferability to the adversarial tasks in HackWorld.
Future research directions include:
- Agent-Centric Tools: Most security tools are designed for human experts. There is a need for tools with "AI-friendly" interfaces that provide structured, easily parseable data.
- Adversarial Reasoning: Improving the planning and reasoning layers of CUAs specifically for cybersecurity, enabling them to pivot when an initial attack plan fails (failure recovery).
- Long-Horizon Planning: Developing agents capable of maintaining state and chaining multiple small vulnerabilities into a complex, multi-step attack.
Summary updated