refusal rate
Subscribe

How to use AI for CTF learning: what it does well by category, which events ban it, what Cybench and other benchmarks show, and how to practice legally.

[ fig. 01 — guide ]48×5
[ fig. 01 — guide ]16×5

Short answer

AI for CTF means using a language model as a tutor, code reader and script helper while you play capture-the-flag challenges. It works best for explaining concepts and reading unfamiliar code, and worst as an answer key. Rules vary by event, from outright bans to open agent divisions, so read the rules of the specific competition before you paste a challenge into any model.

Cybench
40 CTF tasks, 4 competitions, ICLR 2025 Oral
RITSEC 2026 disqualifications
About 100 of roughly 800 teams
Hardest Cybench task
24h 54m for human teams
Novice study sample
n = 1 (exploratory)

Key takeaways

  1. There is no universal rule. LakeCTF bans all generative AI, UMassCTF splits divisions, and RITSEC banned autonomous solving and disqualified about 100 of roughly 800 teams.
  2. Frontier models now solve most easy and medium challenges in some events, so an AI-assisted solve proves little about your own skill.
  3. A 2026 single-participant study found AI lowered early cognitive load for a novice but raised trust and dependency concerns.
  4. Use the model for explanations, code reading and debugging your own scripts. Attempt the challenge first and write the solution yourself.
  5. For practice, use permanent platforms and retired challenges where rules allow it, and run models locally if you want offline, private help.

Is using AI for CTF challenges allowed?

Whether AI for CTF play is allowed depends entirely on the event, and in 2026 the range is wide. Before you open a chat window during a live competition, find the AI clause in that CTF’s rules. If there isn’t one, ask the organizers.

Three published policies show the spread:

EventPolicyNotes
LakeCTFFull ban on generative AI and LLMsCovers agentic workflows, a chat window and Copilot-style autocomplete. Organizers say they rejected softer options in favor of one bright-line rule.
UMassCTF 2026Two divisionsAn “Old Fashioned” division bars autonomous agents that one-shot challenges, enforced on the honor system. A separate division allows LLM agents.
RITSEC CTF 2026Ban on using AI to autonomously solvePer the organizer’s write-up, asking an LLM a general question was fine, while feeding it challenge files was not.

RITSEC also shows what enforcement can look like. According to its organizer, about 100 of roughly 800 teams were disqualified. Triggers included hallucinated flags, near-instant solves on challenges built to take a human 10 to 30 minutes, and polished but hollow write-ups when teams were asked to explain a solve.

Some events go the other way: a CSAW 2025 track ran a separate agentic format where building the agent was the point. No AI clause turned up in the picoCTF rules pages available for research (2020 and 2023 seasons), which say participants must solve problems themselves. Check the current season’s rules page instead of assuming.

[ fig. 01 — Policies as described by each organizer: LakeCTF, RITSEC 2026 (via organizer write-up), UMassCTF 2026 and CSAW 2025. ]
CTF rules on AI range from LakeCTF's full ban through RITSEC's ban on autonomous solving and UMassCTF's split divisions to CSAW's agent track.

What is AI good at in CTFs, by category?

One engineer’s account of 404CTF is the most concrete: Copilot in VS Code was a strong investigation tool on web challenges, but it could not interpret raw pcapng files or binaries until the author exported them to text. Their summary: AI “mostly raises the floor, not the ceiling.” AI is strongest where the work is reading, explaining or scaffolding, and weakest where a challenge needs a long chain of custom reasoning. The picture changes quickly, so treat any category ranking as a snapshot.

A July 2026 mixed-methods paper from the University of Warwick (n = 3 interviews, so directional) says easy and intermediate cryptography, web and binary exploitation challenges are now reliably automated. It lists advanced lattice cryptography, request-smuggling chains, race conditions and kernel exploitation as still resisting.

CategoryWhere AI tends to helpWhere it tends to fail
WebExplaining unfamiliar config, listing candidate bug classes, reading backend codeSuggesting attacks that are impossible, then burning hours of your time
CryptoIdentifying the scheme, writing the math into codeNiche or advanced constructions; reported as mixed by one practitioner
Reverse engineeringExplaining decompiler or assembly text you paste inRaw binaries it cannot read directly
PwnStarter scripts, explaining a crashHard heap and kernel work, per the Warwick paper
ForensicsSummarizing filtered, exported trafficRaw captures with thousands of irrelevant packets

The web, forensics and reverse engineering rows come from that 404CTF account.

How do you use AI as a tutor, not an answer key?

Use the model to explain and check, and keep the decisions and the final solve yours. Research on novices points both ways. A 2026 single-participant case study found that an agentic framework gave a first-time player overview, structure and guidance, which lowered early cognitive load, while also raising concerns about trust and dependency. With one participant, treat that as a hypothesis, not a result.

A workflow that keeps the learning in:

  1. Attempt first. Spend a fixed time (say 30 minutes) with your own tools before asking anything.
  2. Ask for concepts, not solutions. “What does a padding oracle let an attacker learn?” teaches more than “solve this.”
  3. Paste small, specific pieces. A function, an error message, a Wireshark filter result. The 404CTF write-up found output matched needs only when prompts named the language, libraries and goal.
  4. Ask for a hint ladder. Request the next nudge only, not the full path.
  5. Verify everything. The same author reports hallucinated issues, impossible attack suggestions and a recommendation for an unmaintained library.
  6. Write the solution and the write-up yourself, then ask the model to critique your write-up.
[ fig. 02 — Workflow synthesized from the novice study (arXiv 2602.18172) and the 404CTF practitioner account. ]
A learning-first CTF workflow: you attempt first and write the solve yourself, and the model explains concepts, answers small questions, gives one hint and critiques your write-up.

On a practice platform where outside help is allowed, this is cheap. On a ranked event with a no-AI rule, none of it applies.

Which models and tools do CTF players use?

Community reports mention general coding agents, editor assistants and reverse engineering integrations, not CTF-specific models. These are practitioner reports, not our tests.

  • Coding agents. One April 2026 write-up from a security firm describes Claude Code and Codex solving nearly every challenge at BSides SF 2026, with a Ghidra MCP server for binaries. The author reports the top 10 teams fully automated solving.
  • Editor assistants. The 404CTF player used GitHub Copilot in VS Code alongside Binary Ninja.
  • Security agent frameworks. CAI from Alias Robotics lists Ollama among its model providers. Its CTF results are self-reported, and the repository is now archived. It tells users to run it only against systems they are authorized to test.
  • Local models for offline practice. If you want help without sending challenge material to a third party, or while offline, a local model through Ollama or LM Studio works. See run an uncensored LLM locally for hardware and setup.

One practical wrinkle: hosted assistants sometimes decline attack-themed questions even when you state the CTF context. The 404CTF author reported this with Copilot. Why LLMs over-refuse explains the mechanism. Rephrasing around a refusal on a hosted service is against that service’s terms in some cases, so a local model you are licensed to run is the cleaner route, subject to the model’s own acceptable-use terms.

What do players report in practice?

The community is split, and much of the disagreement is about what a CTF is for. Three views recur on Hacker News in discussion of a May 2026 essay arguing that frontier AI has broken the open CTF format:

  • Several commenters say beginners who lean on AI skip building the instincts the tools replace (thread comment).
  • One describes how teammates running an AI tool replaced the explanation-sharing they enjoyed with friends (comment).
  • Another suggests learners compete in human-only teams and notes that some CTFs now split rankings (comment).

The essay’s author, a long-time competitor, argues open CTFs have become pay-to-win and points beginners to permanent platforms such as picoGym and Hack The Box. These are opinions from individual players, not measurements. No r/securityCTF or r/LocalLLaMA thread had a snippet citable here, so this section leans on Hacker News and practitioner blogs.

What do CTF benchmarks say about AI capability?

Benchmarks show models solving tasks that take humans minutes to hours, with the hardest tasks out of reach in the original studies. They are capability context, not guidance on how you should learn.

  • Cybench (arXiv 2408.08926, ICLR 2025 Oral) has 40 professional-level tasks from 4 competitions. Across 8 evaluated models, agents without subtask guidance fully solved only tasks that took human teams up to 11 minutes. The hardest task took human teams 24 hours and 54 minutes.
  • NYU CTF Bench (arXiv 2406.05590) evaluated five LLMs against human performance on challenges from popular competitions.
  • Live events have moved faster than these papers. The Warwick paper reports an AI-assisted top team solving 27 of 30 challenges at one major event and notes that frontier-model task length is doubling every few months, per the UK AI Security Institute. It also reports one team spending around $8,000 in model credits at a single event.

Static benchmarks age fast. A 2024 Cybench result says little about what a 2026 model does on today’s challenges, so read dates before quoting a number.

How can you practice safely and legally?

Practice on systems built to be attacked, and only on those. A CTF challenge or a lab you signed up for is authorized by its organizer. Anything else is not, whatever tool you use.

  • Permanent platforms and retired challenges. picoGym and Hack The Box were recommended by the essay author above for building fundamentals. Check each platform’s terms for AI use.
  • Your own lab. Deliberately vulnerable apps and VMs on your machine, with no one else’s systems in scope.
  • Mixed-mode practice. Solve unaided first, then use a model to compare approaches and explain what you missed.
  • Keep work and CTF separate. Employer or client code and credentials do not go into a hosted model without permission. For professional work, see AI for authorized security research.

FAQ

Is it cheating to use ChatGPT or Claude in a CTF?

Only if the event’s rules prohibit it. LakeCTF bans all generative AI, while UMassCTF runs a division that allows agents. Read the rules for each event and, if unclear, ask the organizers before you play.

What is the best AI for CTF?

There is no verified single best. Players report using coding agents such as Claude Code and Codex, and editor assistants such as Copilot. Capability shifts every few months, so pick on the event’s rules and your learning goal rather than a ranking.

Can AI solve CTF challenges on its own?

On many easy and medium challenges, yes, according to 2026 practitioner and academic reports. Hard challenges still often defeat it. Benchmarks such as Cybench show the gap between minutes-long and day-long tasks.

Will relying on AI hurt my CTF skills?

It can. A 2026 study of one novice found lower early cognitive load alongside dependency concerns, and many players say skipping the struggle skips the learning. Attempt first, ask for hints, and write your own solution.

Can I run an AI for CTF practice offline?

Yes. A local model served through Ollama or LM Studio runs without sending data out. Model quality varies with your hardware, and each model’s license still applies.

Sources (10)
  1. The no-LLM policy, LakeCTF (EPFL)
  2. UMassCTF 2026: Old Fashioned Division
  3. RITSEC CTF 2026 write-up, sylvie.fyi
  4. CTFs in the AI Era, Laurence Tennant, Include Security (April 2026)
  5. Cybench: A Framework for Evaluating Cybersecurity Capabilities and Risks of Language Models, arXiv 2408.08926
  6. NYU CTF Bench: A Scalable Open-Source Benchmark Dataset for Evaluating LLMs in Offensive Security, arXiv 2406.05590
  7. The Disruptive Impact of Large Language Models on Capture the Flag Competitions and the Path Toward Fair Play, Macaulay et al. (July 2026)
  8. Can AI Lower the Barrier to Cybersecurity? Novice CTF Learning, Schachner and Wachter, arXiv 2602.18172
  9. Cracking the code: How Copilot supercharged my last CTF and where it fell short, Thomas Betous, DEV Community (June 2025)
  10. The CTF scene is dead (Frontier AI has broken the open CTF format), kabir.au

Keep reading

[ fig. 02 — guide ]18×8

How do security teams use AI for penetration testing?

Nov 2, 2026 · Guide

AI for penetration testing means using language models and agents to speed up work a tester is already authorized to do: reading code, triaging scanner output, analyzing logs, planning test steps and drafting reports. Research reviews describe it as early-stage and still human-supervised. The legal frame is unchanged: written authorization and a defined scope come first, and the model is only a tool inside both.

Read
[ fig. 03 — explainer ]18×8

What is LLM over-refusal, and why does it hit harmless coding questions?

Oct 29, 2026 · Explainer

LLM over-refusal is when a safety-tuned model declines a harmless request because it resembles a harmful one. Research points to lexical overfitting: alignment training ties surface cues like “kill,” “exploit” or “payload” to refusals, even in benign context. In XSTest, Llama 2 fully refused 38% of 250 safe prompts. Developers can often fix it with accurate context, a different model, or a local model.

Read
[ fig. 04 — pillar ]18×8

How do you run an LLM locally for private coding work?

Nov 2, 2026 · Pillar

To run an LLM locally, install a runtime (Ollama or LM Studio for most people, llama.cpp for control), pull a quantized GGUF model whose file fits in your GPU or unified memory with room left for context, and point your editor or coding agent at the local OpenAI-compatible endpoint. Raise the context length first: Ollama defaults to 4k below 24 GiB of VRAM, too small for agents.

Read