Using AI to learn penetration testing for the OSCP, without hurting your exam
OffSec's exam rules restrict AI and LLM use during the OSCP exam, so read the current exam guide first. How to use AI well while studying — explaining tool output, a methodology checklist, notes, reviewing your writeups, legal labs — and why leaning on it too hard costs you.
· 6 min read
The best AI for OSCP study is the one you use to understand things faster, not the one that does the boxes for you. That distinction matters more for the OSCP than for almost any other goal, because of one rule that should shape everything else.
OffSec restricts the use of AI and LLM tools during the OSCP exam. Its exam guide lists AI chatbots and LLM-based assistants among the things you may not use while the exam is running, alongside its other tool restrictions. The rules change from time to time, and the wording is OffSec's to set, so read the current OSCP exam guide on OffSec's site before you plan your study around any tool. If the guide says something different from this article, the guide wins.
What that means in practice: on exam day it's you, your notes and the permitted tools, for nearly a full day, then a report. Everything below is about using AI in the months before that, in a way that leaves you more capable on your own — not less.
Using AI while you study
The useful jobs are the ones where the AI makes you understand, rather than decides for you.
Explaining tool output
This is the highest-value use. You run a scan or an enumeration script, get a wall of output, and don't know which parts matter. Paste it in and ask for an explanation, not an answer:
Here's my nmap output for a lab box. Don't tell me how to exploit it. Explain what each open service is, what version information is shown, and what an experienced tester would want to enumerate next on each port and why.
The same works for the output of enumeration scripts on a foothold (linPEAS, winPEAS), enum4linux, smbclient, or a web directory scan. The question you're training is "what am I looking at, and what does it suggest?" — exactly the question you'll be answering alone in the exam.
A good habit: before you ask, write your own guess in one line. Then compare. Over a few dozen boxes, your guesses should start matching the explanations, and that's the skill you need.
Building a methodology checklist
The OSCP rewards a repeatable method more than clever tricks: enumerate every port, every service, every web path, before going deep on one. AI is good at helping you build and refine that checklist, because it's a structuring task:
- Start from your own notes on what you do for each service (SMB, HTTP, FTP, SNMP, databases), and ask the model to point out gaps.
- Ask it to turn the checklist into a per-box template you fill in: ports, versions, findings, credentials found, what you tried, what worked.
- After each box, ask what step would have found the way in sooner, and add it.
The checklist is yours, in your words, and it's what you'll actually have on exam day.
Note-taking
Most people keep notes in Obsidian, CherryTree, Joplin or plain Markdown. AI helps keep them usable: turning messy session notes into a clean writeup, tagging commands by service, and building a searchable cheat sheet of the commands you actually used, with what each flag does. Have it explain any command you copied from somewhere — a command you don't understand is a command you can't adapt when the exam box is slightly different.
Reviewing your own writeups
After you root a lab box, write it up as if for the exam report: steps to reproduce, screenshots, the commands, the proof. Then ask the AI to review it as a strict grader would:
Review this writeup as an OSCP grader. Could someone reproduce every step from it alone? Where are steps missing, commands not shown, or claims not backed by a screenshot? Don't rewrite it; list the problems.
This trains the report half of the exam, which people under-practise and lose points on.
Quizzing you
Ask for questions, not answers: "Quiz me on Linux privilege escalation vectors, one at a time, and tell me what I missed after each answer." It's a cheap way to find gaps before a box finds them for you.
Where to practise, legally
Only practise on systems built for it, or that you own. Running tools against anything else is not studying, it's an offence in most countries. The well-trodden options:
- OffSec's own labs — the PEN-200 course labs and Proving Grounds (Play and Practice), which are closest to the exam's style.
- Hack The Box and TryHackMe — huge libraries of machines and guided rooms. Respect their rules about publishing writeups for active machines.
- VulnHub — downloadable vulnerable VMs you run on your own machine, offline.
- Local web targets — OWASP Juice Shop and DVWA in Docker on your own machine. The Juice Shop guide walks through practising web testing with an agent there; caveira's
/lab start juice-shopand/lab start dvwastart them bound to 127.0.0.1.
CTFs are a good complement for specific skills — web, binary exploitation, crypto — though they're puzzles rather than networks. What AI does and doesn't solve in CTFs is worth reading before you rely on it there.
Why over-relying on AI hurts you
The exam is built to test whether you can do it, and an agent that does the box for you trains the wrong thing.
- You learn to recognise answers, not to find them. Reading the AI's next step feels like learning. It isn't the same as generating it under time pressure when nothing works.
- You skip the frustration that builds the method. The hours stuck on a box are where you learn to go back and enumerate properly. If the AI unsticks you every time, the method never forms.
- Its mistakes become yours. Models are confidently wrong about exploit versions, file paths and flags. If you can't tell when, you'll carry wrong commands into the exam in your notes.
- The exam rules. If your whole workflow runs through an assistant, you'll arrive at an exam where it isn't permitted with a method that doesn't work without it.
A rule that works: for every box, try it fully on your own first, with a time box — an hour or two before any hint. When you do ask, ask for a nudge ("what category of thing am I missing?") rather than a solution. And for the last few weeks before the exam, do full boxes and full reports with no AI at all.
Which AI to use for study
For the uses above — explaining, structuring, reviewing, quizzing — any capable general assistant works, and most of it isn't the kind of request mainstream assistants refuse. Where they do sometimes balk is on exploit code and privilege escalation details for a lab box, even with context (what to do about that).
An agent with a shell is a different tool. On Kali it can run your enumeration and read the output with you, which is useful for understanding — and makes it very easy to let it drive. If you use one (options for Kali here), turn on its approval mode so you see and decide every command, and ask it to explain each step before running it. caveira is one option; its backend serves uncensored, abliterated open-weight models, so it won't refuse lab exploitation, and its approval mode (--confirm) and session logs fit a study workflow. Whatever you use, keep the rule: in study, the AI explains; in the exam, OffSec's current guide decides, and it restricts AI.