Home / Journal

The Role of AI in Modern Pentesting

The Role of AI in Modern Pentesting

If you've been in security for a while, you've heard this pitch before: a new tool that will "automate pentesting." Scanners promised it. Then frameworks. Now it's AI's turn — except this time something genuinely shifted. In 2025 an autonomous, AI-driven pentester reached #1 on HackerOne's US leaderboard, and a Google AI agent found a real, exploitable zero-day in SQLite that traditional fuzzing had missed. So let me cut through the noise: here's what AI actually does for a pentester today, what it can't do, and how to fold it into your workflow without fooling yourself.

Remember: the techniques shared here are for authorized testing and defensive research only. Test against your own systems or with explicit permission. We assume no liability for misuse.

What AI is genuinely good at

Pentesting is full of work that's important but repetitive — and that's exactly where large language models (LLMs) and AI tooling shine. Think of AI as a fast, tireless junior on your team:

  • Recon and enumeration triage. Point it at scan output and it'll cluster hosts, flag the interesting services, and suggest what to poke first. It reads nmap, gobuster, and Burp output far faster than you skim it.
  • Payload and script generation. Need a quick Python PoC, a reverse-shell one-liner for an awkward target, or a tweak to a tricky regex? An LLM drafts it in seconds. You still review and test it — but you start from a draft, not a blank page.
  • Explaining unfamiliar tech. Drop in a weird response header, a JWT, or a chunk of obfuscated JavaScript and ask "what is this and how might it break?" It's a great rubber duck for the parts of the stack you don't live in daily.
  • Report writing. This is the unglamorous one clients pay for, and it's where AI saves the most hours — turning your terse notes into clear findings, severities, and remediation steps. (Always check the facts; more on that below.)

None of this is magic. It's the same idea behind a good Note: in a wiki — it just compresses the boring parts so you spend your time on the actual hacking.

From assistant to autonomous: where it's heading

The bigger story is AI moving from helper to operator. A few real milestones worth knowing:

  • XBOW, an autonomous AI pentester, became the first non-human to top HackerOne's US leaderboard, filing over 1,000 vulnerability reports in roughly 90 days. (TechRepublic coverage.)
  • Google's Big Sleep agent found CVE-2025-6965, a memory-corruption bug in SQLite — the first public case of an AI agent catching a previously unknown, exploitable flaw in widely used software that fuzzing had missed.
  • DARPA's AI Cyber Challenge (AIxCC) wrapped at DEF CON 33 in 2025. Across the final round the competing systems found 77% of the planted bugs and even surfaced 18 real zero-days — automatically discovering and patching vulnerabilities, with all seven finalist systems released as open source.

On the tooling side, projects like PentestGPT wrap an LLM around the testing loop to suggest next steps, and mainstream tools (Burp, Nuclei, and friends) are bolting on AI features for spotting and verifying findings. The direction is clear: AI is becoming a teammate that can run parts of the engagement on its own.

The limits — and the new risks you're signing up for

Here's the part the marketing skips. AI is a force multiplier, not a replacement, and using it carelessly creates new exposure.

  • It hallucinates. LLMs invent CVE numbers, fake function names, and confidently wrong remediation advice. An unverified AI-written report is a liability, not a deliverable. Verify every factual claim before it reaches a client.
  • It has no real-world judgment. It doesn't know your scope, your rules of engagement, or that a particular host is production. Autonomy without guardrails is how you cause an outage — or step out of scope.
  • It's noisy. Autonomous bug hunters generate volume, and not all of it is signal. The flip side of XBOW's 1,000 reports is the triage burden that comes with machine-speed submissions.
  • The tools themselves are attack surface. The moment you give an AI agent shell access, browsing, or API keys, every piece of untrusted text it reads becomes a possible command. That's prompt injection, and it's the #1 risk in AI applications — I wrote about it in Prompt Injection: The New Injection Attack. If you build or use offensive AI tooling, you're now defending it too.
  • Don't leak the engagement. Pasting client data, credentials, or source into a public chatbot can violate your NDA and scope. Use tooling that keeps sensitive data out of third-party training pipelines.

How to actually use it on an engagement

My practical advice, learned the boring way:

  1. Keep a human in the loop for anything that acts. Let AI suggest the sqlmap command; you decide whether to run it. Never auto-execute against a live target without review.
  2. Use it to go faster, not to skip thinking. Treat its output as a hypothesis to verify, the same way you'd double-check a scanner's "high" finding before you believe it.
  3. Make it write the boring parts. Notes → findings, evidence → remediation steps. Then fact-check.
  4. Mind your data. Strip or anonymize client specifics before they hit a model you don't control.
  5. Learn to attack it. The skills that make you a good pentester — assume the input is hostile, give away the least power possible, verify before you act — are exactly what securing AI agents requires.

Where this leaves us

AI isn't coming for the pentester's job; it's coming for the pentester's busywork. Recon triage, first-draft payloads, and report scaffolding are getting automated, which frees you up for the parts that still need a human: creativity, chaining bugs into real impact, understanding business context, and judgment under a tight scope. The teams that win won't be "AI vs. humans" — they'll be humans who know how to drive AI well, and who understand its failure modes well enough to catch them.

For those of us who came up through security, that's a comfortable place to be. We already know how to trust nothing and verify everything. Now we just point that instinct at a new, very capable, occasionally lying teammate.

References


If you found this useful, subscribe to our RSS Feed and the YouTube Channel — more AI-security writeups are coming.

← All articles