XHack Logo
XHack
Products
Services
Compliance
Pricing
Resources
Company
Sign upLogin
XHack Logo
XHackOffensive Security

Certified offensive security team delivering penetration testing evidence written for your auditor.

OSCP+OSCPC-AI/MLPenCASA
support@xhack.io

24/7 SOC Operations

XHack Status
Under attack? Get help now
Services
  • VAPT Services
  • Red Teaming
  • SOC Services
  • Threat Intelligence
  • Incident Response
  • Managed Testing
Pricing
  • Platform Plans
  • Services Pricing
Compliance
  • SOC 2
  • PCI DSS
  • ISO 27001
  • GDPR
  • HIPAA
  • ISO 42001
  • AI Maturity Assessment
  • TX-RAMP
  • NBFC / SECP
  • All Frameworks
Products
  • Vulnerability Assessment
  • GitGuard
  • AI Probe
  • SOC Dashboard
  • AI Agent
  • Cloud Investigation
Comparison
  • XBOW vs XHack
  • Horizon3 vs XHack
  • Strix vs XHack
  • Pentera vs XHack
Resources
  • Platform Tour
  • All Features
  • Install the Agent
  • XHack AI
  • Documentation
  • Blog
  • Case Studies
  • Documents
  • FAQ
Company
  • About Us
  • Our Team
  • Certifications
  • Security and Trust
  • VAPT Explained
  • Contact

© 2026 XHACK (SMC-PRIVATE) LIMITED. All rights reserved.

Registered with the SECP, CUIN 0361945. Verify

Security & TrustVulnerability DisclosurePrivacy PolicyTerms of ServiceRefund Policy
Blog/Security

CTF Solver AI: What the Evidence Shows and a Harness to Score Any CTF Solver

XHack

XHack

Author

November 26, 2026

22 min read

CTF Solver AI: What the Evidence Shows and a Harness to Score Any CTF Solver

Table of contents

24

What a CTF Solver Actually Is

Where a CTF solver stops being useful

Who Publishes What: The CTF Solver Landscape

What the Public Evidence Says About a CTF Solver

What these four results have in common

Why Solve Time Decides the CTF Solver Result

The Arena: Eight Local Challenges and a Scorer

The baseline: a CTF solver with no reasoning

How to Score Any CTF Solver

What a fair CTF solver comparison needs

What CTF Events Allow a CTF Solver: The Rules Differ

Responsible Use of a CTF Solver

Common Mistakes When Using a CTF Solver

Run XHack’s Agent on the Arena

Where This Test Falls Short

How XHack Delivers a CTF Solver Differently

FAQ: CTF Solver Questions Answered

What is a CTF solver?

What is the best AI CTF solver?

Can a CTF solver solve any challenge?

Is using an AI CTF solver allowed in competitions?

Is there a free CTF solver?

Does XHack have a CTF solver?

The Bottom Line on the CTF Solver

By Salman Khan, OSCP+, Founder of XHack, SRT (Synack Red Team member)

Read this in 30 seconds: Every CTF solver repo and product claims it solves challenges, but none of the ones I checked lets you score your own solver on the same tasks. This guide gives you the public evidence, the event rules, and a small test harness that does the scoring.

  • A CTF solver is only as good as its test, and the public tests are thin. The best-known repo, verialabs/ctf-agent (MIT, 950 GitHub stars), reports one aggregate result of 52 of 52 at BSidesSF 2026, which is self-reported, with no per-category numbers and no harness.
  • Difficulty decides the outcome, not the model. In the Cybench benchmark of 40 professional tasks, agents solved tasks that took human teams up to 11 minutes, while the hardest task took 24 hours and 54 minutes.
  • Easy challenges are already lost to AI. In a Hack The Box event with 403 teams, 5 of 8 AI teams solved 19 of 20 challenges, and the best AI team placed 20th.
  • A script with no reasoning solves 3 of 8 in my arena. It handles layered encodings, a one-byte XOR and a log search in 0.1 seconds, which is the floor any AI CTF solver has to beat.
  • Rules differ by event. LakeCTF bans all LLM use, Hack The Box Holmes 2026 allows AI only as a supporting tool, and CSAW runs a track for fully autonomous agents.

A CTF solver is a loop that reads a challenge, runs tools, watches the output and submits a flag, and the honest question is not whether it works but on which kind of challenge. The public answer is that it works well on short, well-defined tasks and falls off fast as the human solve time grows.

This guide to the AI CTF solver covers four things: what the public evidence says, who publishes what, how the event rules differ, and an eight-challenge local arena with a scorer you can point at any solver, XHack’s agent included. For the practical side of using one, see AI for CTF and Claude Code for CTF.

CTF solver animation: a no-reasoning baseline script runs against an eight-challenge local arena and solves layered encoding, single-byte XOR and a log search but nothing else
Real output of baseline_solver.py on the local arena: 3 of 8 solved by mechanical moves in 0.1 seconds

What a CTF Solver Actually Is

A CTF solver is five parts, and most repos only ship two of them. The parts are a model that decides what to try, a set of tools it can call, a sandbox where those tools run, a flag checker that says right or wrong, and a budget that stops the run.

Here is why that matters for choosing one. The model and the tools get all the attention. The sandbox decides whether a wrong command can hurt you. The flag checker and the budget decide whether you can trust and afford the result, and almost no project publishes either.

The loop itself is simple. The solver reads the challenge text and files, picks a tool, runs it, reads the output and updates its plan. It repeats until it submits a flag or runs out of steps. The Cybench and EnIGMA research papers describe the same loop, and EnIGMA’s contribution was letting the agent use interactive tools such as a debugger and a server connection, which the authors say improved results on three benchmarks.

Where a CTF solver stops being useful

A solver handles a challenge that has a known pattern: a decoding chain, a standard crypto weakness, a file with something appended to it. It struggles where the path needs a new idea, or a long chain of steps where one wrong move wastes the rest. That pattern shows up in every result below.

Who Publishes What: The CTF Solver Landscape

The popular open-source projects publish claims, not a way to check them. I opened the GitHub pages on 26 November 2026. Stars, licence and last push come from the GitHub API. The descriptions come from the READMEs.

ProjectWhat it isStars, licenceWhat it publishes
verialabs/ctf-agentA coordinator model driving a swarm of models, each in a Docker sandbox, first flag wins950, MITOne aggregate claim (52 of 52 at BSidesSF 2026), self-reported
foxibu/CTF-SolverA bridge that exposes 55+ Kali tools to an assistant, not an autonomous solver80, README says MIT, the API reports noneCoverage percentages per category with no method
NYU nyuctf_agentsThe research agent behind NYU CTF Bench183, MITBenchmark results in the paper
CybenchA benchmark of 40 professional tasks, not a solver360, Apache-2.0Per-task data and subtasks
CTF-Dojo658 Docker challenges for training agents, not a solver78, CC BY-NC per its READMEAn environment, no solver
XHack agentA desktop agent with a built-in browser, sub-agents and permission modesCommercial, plans from $20 a monthNo solve-rate benchmark yet, see the brand section
CTF solver landscape: six projects with stars, licence and what each one publishes, and the missing harness to score any solver
GitHub API and README data read on 26 November 2026: nobody I checked ships a harness that scores any solver

The gap is clear. Benchmarks such as Cybench and CTF-Dojo measure models, and solver repos advertise results. Nobody ships a small, runnable harness that takes any solver, runs it on the same challenges, and prints a per-category scoreboard with time and wrong submissions. That is what the arena below is.

I did not check every repo that a search returns, so read “none” as “none of the ones I opened”. I also did not verify the 52-of-52 claim, which comes from the repo’s own README.

What the Public Evidence Says About a CTF Solver

The most reliable results are the ones with a defined task set and a human baseline. Four are worth knowing, and I read each source page or abstract myself.

  • Cybench (arXiv 2408.08926). The paper uses 40 professional CTF tasks from 4 competitions and tests 8 models. The authors report that agents solved complete tasks that took human teams up to 11 minutes without subtask guidance, while the most difficult task took human teams 24 hours and 54 minutes. Read the Cybench abstract.
  • Hack The Box AI vs Human CTF. On 20 crypto and reversing challenges, 5 of 8 AI teams solved 19 of 20 and a sixth solved 18. The best AI team placed 20th among 403 teams, and about 12% of the 150 active human teams (19 of 150) solved all 20. Read the Hack The Box write-up.
  • EnIGMA (arXiv 2409.16165). Interactive tools, a debugger and a server connection, let the agent reach state-of-the-art results on NYU CTF, InterCode-CTF and Cybench. The paper also names a failure it calls soliloquizing, where the model invents observations without running anything. Read the EnIGMA abstract.
  • SageCTF at DEF CON CTF 2026. The team reports 1,743 points, top 5% of 686 scored teams, and ahead of every team that self-reported “No AI” or “Low AI”. It did not submit any flags, because the event does not permit fully automated bots to submit, so the score is the team’s own estimate. On 50 other challenges with a cap of 10 hours and $200 each, it solved 39 against 13 for Claude Code. All of these are the team’s own numbers. Read the SageCTF post.

What these four results have in common

The Hack The Box challenges were short and well-defined, and the AI teams did very well. The Cybench tasks were long and open-ended, and the unguided ceiling was low. SageCTF needed a custom system, hours per challenge and up to $200 on each one. The pattern is a gradient, and that is why the arena below mixes easy, medium and multi-step tasks.

The animation shows the Cybench spread on a time ruler, using only the two figures the abstract gives.

CTF solver difficulty animation: a log-scale ruler from 1 minute to 25 hours marking the 11 minutes agents solved in Cybench and the 24 hours 54 minutes of the hardest task
Cybench abstract figures on a log scale: agents solved tasks up to 11 minutes of human solve time, the hardest took 24 hours 54 minutes

Why Solve Time Decides the CTF Solver Result

Difficulty is not one number for a CTF solver, because a challenge can be short and still need an idea. Human first-solve time is the best public proxy, and Cybench uses it. It rises with the number of steps, the amount of niche knowledge and how much trial and error the path needs.

Three things go wrong with a CTF solver as the time rises, according to the papers. The agent gives up early or hits a round limit, which NYU CTF Bench lists among its failure causes. It invents observations instead of running tools, which EnIGMA names soliloquizing. Or it misses one fact the challenge needs. SageCTF’s write-up describes a near miss on a reversing challenge where it recovered most of the pipeline but read the decoded bytes in the wrong display order.

For a buyer that means two things. A CTF solver that wins easy rounds says little about hard ones, and a result with no task list says nothing at all. Ask what the tasks were, how long humans took, and how many attempts the solver got.

The Arena: Eight Local Challenges and a Scorer

To compare solvers I built a small local arena, because a fair test needs the same tasks, the same budget and a checker the solver cannot fake. It has eight benign challenges that I made, each with a flag in the form XCTF{...}. Everything runs on your own machine.

IDCategoryWhat the solver getsWhat it tests
crypto-layersCryptoA text fileSpotting and peeling stacked encodings
crypto-xorCryptoA hex fileA weak one-byte cipher
crypto-rsaCryptoNumbers and ciphertextsNoticing that a key is too small
forensics-carveForensicsA PNG fileFinding data hidden inside another file
forensics-logForensicsA 5,000-line web logFinding one odd request in noise
web-idorWebA local site on port 8101Exploring an API for access control gaps
web-jwtWebA local site on port 8102A multi-step login flow with a flawed check
reversing-keyReversingA stripped arm64 executableReading code to learn what it expects

Three design choices make it a fair test.

The flag checker is a script the solver can run but not read its way around. submit.py stores salted hashes, not flags, so reading it reveals nothing. It logs every attempt with a timestamp. The solver starts the clock with submit.py begin, then submits with submit.py <id> <flag> and sees only CORRECT or WRONG.

The solver sees only a public folder. The web servers, their source and the plaintext flags live outside it, and the servers listen on 127.0.0.1 only. A solver told to stay in the folder and on those two ports is working in the same conditions every time.

The scorer reads the log, not the solver’s own report. score.py prints, per challenge, whether it was solved, how many wrong submissions came first, and the seconds from the clock start. It also prints a per-category tally.

challenge        solved  wrong  seconds
crypto-layers    yes     0      0.1
crypto-xor       yes     0      0.1
crypto-rsa       no      0      -
forensics-carve  no      0      -
forensics-log    yes     0      0.0
web-idor         no      0      -
web-jwt          no      0      -
reversing-key    no      0      -
solved 3 of 8, wrong submissions 0, wall 0 s
by category: crypto 2/3, forensics 1/2, web 0/2, reversing 0/1

The arena builder is deterministic, so the same script writes the same files every time. Ten tests check that no plaintext flag appears in the public files, that the checker accepts only the right flag, and that the web servers behave. All ten pass.

The baseline: a CTF solver with no reasoning

A baseline sets the floor for any CTF solver, and the floor here is 3 of 8. baseline_solver.py is 100 lines of standard-library Python. For each file it searches for the flag, peels base64, hex and rot13 layers up to depth 4, decodes long base64-looking tokens, and tries every single-byte XOR key. It knows nothing about the challenges and opens no sockets.

It solved the layered encoding, the one-byte XOR and the log search, all in about 0.1 seconds. It solved nothing in web, nothing in reversing, and neither the RSA task nor the file-carving task.

That result is the useful part. If a CTF solver sold to you cannot beat a 100-line script on these eight, it is not adding reasoning. And any solver that solves the five the baseline misses is doing something a script cannot: noticing a key is too small, finding data inside a file, driving a web flow, or reading code.

CTF solver arena matrix: eight local challenges, which ones the no-reasoning baseline solves, and the skill each of the other five tests
The eight arena challenges and the baseline result: 3 solved by mechanical moves, 5 need reasoning or tool use

Test it on your own target

The XHack agent finds, verifies and reports real vulnerabilities in web apps, APIs, hosts and mobile.

Start free for 7 days

How to Score Any CTF Solver

Six numbers make a CTF solver comparable, and only the first needs a flag checker. Use the same tasks and the same budget for every solver you compare.

  1. Solved out of total, per category. A single total hides that most solvers do well at crypto and badly at reversing.
  2. Wrong submissions before the right one. A solver that guesses flags is a risk in an event that penalises wrong answers.
  3. Time to the first correct flag. Wall clock from begin to the first CORRECT.
  4. Tool calls or steps. Agents that burn hundreds of steps on an easy task are costly.
  5. Cost. SageCTF’s own cap of $200 per challenge shows how far this can go. Report tokens and dollars per solved challenge, not per attempt.
  6. Attempts allowed. pass@1 and pass@5 are different claims. State which one you measured.

Two cautions from the papers apply. EnIGMA measured data leakage, which means a challenge may be in a model’s training data, so use new or self-made tasks for anything you publish. And the scaffold around a model matters as much as the model, which is why Cybench compares four scaffolds, so test the whole solver, not just the model.

What a fair CTF solver comparison needs

  • The same sandbox and the same time limit for each solver.
  • Challenges the model cannot have seen, which is why the arena is generated.
  • A flag checker that is not part of the solver’s context.
  • A written report of anything you changed between runs.

What CTF Events Allow a CTF Solver: The Rules Differ

The rules vary from a flat ban to a dedicated track for agents, and you must read the one for your event. These are the policies I opened on 26 November 2026.

EventPolicySource
LakeCTF“You may not use Generative Artificial Inteligence (GenAI) or Large Language Model (LLM) technology of any form”, including agentic workflowsLakeCTF no-LLM page
Hack The Box Holmes CTF 2026AI allowed as a supporting tool, but using it as a primary solver is prohibited, and hosts may ask for a walkthroughHolmes 2026 FAQ
CSAW Agentic Automated CTFAgents must work without human intervention, and a submission includes full prompt and response logsCSAW page
DEF CON CTF 2026 qualifiersReported to allow AI but not fully AI solving, per a secondary news sourceNot an official rulebook, check it yourself

I could not read picoCTF’s 2026 rules because the page returned an error, and I found no AI policy on CTFtime. Do not assume.

The practical rule for any CTF solver is the one in my AI for CTF guide: read the event’s rules before you start, ask the organisers if a rule is unclear, and keep the logs. A solver you use in practice on your own arena or on a lab you own breaks no one’s rules.

CTF solver rules animation: four events appear in turn with their AI policies, a full ban, support only, agents only, and allowed but not fully AI
Policies read on 26 November 2026: the same tool is banned at one event, a supporting aid at another, and the point of a third

Responsible Use of a CTF Solver

A CTF solver runs real tools, so treat it like any agent with a shell. Run it in a sandbox, keep it to the targets you are allowed to touch, and log what it does.

For a competition, the targets are the challenge servers the organisers give you. For practice, use labs you own, such as the arena in this guide, which listens on localhost only. Do not point a solver at a host you do not have written permission to test. It will not know the difference.

Keep one more habit. Read every flag the solver submits and check how it got there. A solver that submits a flag it never derived has guessed or leaked, and in a ranked event that can cost a team.

Common Mistakes When Using a CTF Solver

The common mistakes come from trusting a headline number. Here are the ones I see most.

  • Believing a single aggregate result. “52 of 52” says nothing about the categories, the difficulty or the attempts.
  • Comparing solvers on different tasks. A model that wins easy tasks and one that attempts hard tasks are not comparable.
  • Ignoring the event rules. A ban can disqualify a team after the event.
  • Letting the solver submit unattended. Wrong submissions can be penalised.
  • Skipping the sandbox. A CTF solver runs commands, and some commands are destructive.
  • Training on the test. Public challenge sets may be in a model’s training data.

Run XHack’s Agent on the Arena

The arena is built to be run against a real agent, and XHack’s agent is the worked example. The steps keep the run fair, with the same tasks and a flag checker the agent cannot read.

  1. Build the arena and keep the checker away from the agent. Run python3 build_arena.py, then copy the public arena/ folder to a fresh working folder and run python3 private/web_server.py & for the two web challenges. The salted flag hashes live in submit.py, which only prints CORRECT or WRONG.
  2. Open a chat in XHack with that folder as its working folder. The agent works from the files it can see, so the folder is its whole world for this run.
  3. Pick a permission mode. Manual shows each command before it runs, and Auto lets the run finish on its own. Note which one you used.
  4. Give it the arena rules. Paste the contents of arena/README.md: stay inside the folder and ports 8101 and 8102, run python3 submit.py begin once, and submit with python3 submit.py <id> <flag>.
  5. Score the run. Run python3 score.py <working folder>. It reads the attempt log, not the agent’s own report, and prints solved per category, wrong submissions, time to the first flag and wall time.
  6. Compare with the floor. The no-reasoning baseline solves 3 of 8 in about 0.1 seconds. The five it cannot solve are where an agent has to earn its price.

Record the permission mode, the model setting and the date next to the scoreboard, and keep the attempt log. That is the evidence for any per-category number you quote.

Where This Test Falls Short

The arena is small and mine, and the honest limits are these. Eight challenges cannot rank solvers finely, and I wrote the challenges, so a solver tuned on them will look better than it is. The baseline was written by me too, so a cleverer script could solve more.

Finally, one reversing challenge needs an arm64 Mac, and the arena was built and tested on macOS only.

How XHack Delivers a CTF Solver Differently

So yeah, here is where I tell you what XHack brings, with the bias of someone who built it.

XHack combines three things most providers sell separately: expert human penetration testing, an autonomous AI agent and a continuous security operations platform. For CTF work the agent is the part you use, and I will be specific about what is and is not proven.

What I can say from my own use. I ran XHack’s agent through a live YesWeHack CTF challenge called Deadbolt, and it solved it autonomously in 3 minutes. The arena above is the lab for measuring it per category, and the steps are in the section before this one.

The tools a CTF needs are in the agent. It has a built-in browser, an HTTP repeater, sub-agents that run in parallel (12 by default), project memory, and a one-click mobile toolchain for APK and IPA tasks. Permission modes (Plan, Manual, Allow Edits, Auto) decide who approves each command, and destructive commands are blocked in every mode.

Privacy and control are built in. XHack does not store your user data and is privacy-focused by design. Your chats and session data stay on your own computer, you can delete them any time, and the agent can run on a local model so a challenge file never leaves your machine. Exploitation unlocks after identity verification, which suits events but means exploitation work waits for verification, while finding vulnerabilities works from the start.

Individual plans start at $20 a month (Starter $20, Professional $49, Elite $150), with a 7-day free trial. Run the arena against it and judge the scoreboard yourself. If you want testers on a real engagement instead, managed work starts at $2,500 at a fixed price. Book a free consultation, even if the answer turns out not to be us. Brutal honesty is kind of our thing.

FAQ: CTF Solver Questions Answered

What is a CTF solver?

A CTF solver is a program, usually an AI agent with tools, that reads a capture-the-flag challenge and tries to produce the flag. It reads the task, runs tools such as a decoder, debugger or HTTP client, reads the output and repeats. A good CTF solver also logs its steps and stops when its budget runs out.

What is the best AI CTF solver?

There is no verified best CTF solver, because none of the popular ones publish a result you can reproduce. The leading repo, verialabs/ctf-agent, reports 52 of 52 at BSidesSF 2026, self-reported. Use a harness on the same tasks, and compare solved count, wrong submissions, time and cost per category.

Can a CTF solver solve any challenge?

No, and the public evidence shows a steep drop with difficulty. In Cybench, agents solved tasks that took humans up to 11 minutes, and the hardest task took humans 24 hours and 54 minutes. A CTF solver does best on short, pattern-based tasks.

Is using an AI CTF solver allowed in competitions?

It depends entirely on the event. LakeCTF bans all LLM use, Hack The Box Holmes 2026 allows AI as a supporting tool but not as a primary solver, and CSAW runs a track for autonomous agents. Read the rules before you start, and ask the organisers if they are unclear.

Is there a free CTF solver?

Yes, several open-source ones exist, and they differ a lot. verialabs/ctf-agent is MIT licensed and nyuctf_agents is MIT. Some tools only expose security tools to an assistant and do not solve anything alone. Free software still needs a model, and model calls cost money.

Does XHack have a CTF solver?

XHack’s agent is a general security agent that works well on CTF tasks, with a built-in browser, HTTP repeater and sub-agents. I ran it through a live YesWeHack CTF and it solved the challenge in 3 minutes, on one challenge. Chats and session data stay on your computer, and a 7-day free trial is available.

The Bottom Line on the CTF Solver

A CTF solver is worth trusting only as far as its test goes. Pick a few tasks, fix the budget, score per category with a flag checker the solver cannot read, and compare against a no-reasoning baseline. If a solver cannot beat a 100-line script on the easy five, it is not solving anything you could not script.

To start, build the arena, run the baseline and score your own solver. If you want an agent to try it, try XHack’s agent on challenges you own, and keep the scoreboard in your own hands.

Put this into practice

Point the XHack agent at a target you are authorised to test. It hunts, proves and writes the report.

Start free for 7 days

Categories

Security

Previous

Recon Monitoring for Bug Bounty: What to Alert On and What to Ignore

Next

Bug Bounty Scope: How to Keep an AI Agent Inside It, With a Tested Guard

On this page

What a CTF Solver Actually Is

Where a CTF solver stops being useful

Who Publishes What: The CTF Solver Landscape

What the Public Evidence Says About a CTF Solver

What these four results have in common

Why Solve Time Decides the CTF Solver Result

The Arena: Eight Local Challenges and a Scorer

The baseline: a CTF solver with no reasoning

How to Score Any CTF Solver

What a fair CTF solver comparison needs

What CTF Events Allow a CTF Solver: The Rules Differ

Responsible Use of a CTF Solver

Common Mistakes When Using a CTF Solver

Run XHack’s Agent on the Arena

Where This Test Falls Short

How XHack Delivers a CTF Solver Differently

FAQ: CTF Solver Questions Answered

What is a CTF solver?

What is the best AI CTF solver?

Can a CTF solver solve any challenge?

Is using an AI CTF solver allowed in competitions?

Is there a free CTF solver?

Does XHack have a CTF solver?

The Bottom Line on the CTF Solver

Related articles

Continue reading

Blind SSRF: How to Find It With XHack&#8217;s AI Agent and Collaborator

Security

Blind SSRF: How to Find It With XHack’s AI Agent and Collaborator

Blind SSRF testing with XHack’s AI agent and its built-in Collaborator: a 7-spot lab, what DNS-only and third-party hits...

Read article
Recon Monitoring for Bug Bounty: What to Alert On and What to Ignore

Security

Recon Monitoring for Bug Bounty: What to Alert On and What to Ignore

Recon monitoring for bug bounty: what to alert on and ignore, tested on a 30-day lab and XHack’s own certificate history...

Read article
Bug Bounty Scope: How to Keep an AI Agent Inside It, With a Tested Guard

Security

Bug Bounty Scope: How to Keep an AI Agent Inside It, With a Tested Guard

Bug bounty scope for AI agents: how three platforms differ, what ScopeBench shows, and a tested guard that stops redirec...

Read article