BetaMaShop is in public beta. We improve it continuously, and your feedback shapes what comes next.
MaShop/Blog/Tools/AI Penetration Testing: What It Speeds Up and What…
ToolsAugust 24, 2026
Read · 5 min
ai penetration testing · pentesting

AI Penetration Testing: What It Speeds Up and What It Fakes

AI penetration testing graded by phase: where models genuinely save time, where they fabricate exploits, and the authorization that has to be settled first.

Key takeaways
  • Using AI to test conventional systems and testing AI systems are two different jobs. This piece is the first. The second is red teaming, and conflating them is how confusion starts.
  • AI genuinely speeds up two phases of an engagement, triage from scanner output and report writing, and produces confident nonsense in a third, exploit development, that costs more time than it saves.
  • The research is blunt about why. Models are strong at individual subtasks and weak at holding the whole engagement in their head, losing session context across a multi step attack.
  • Nothing runs before written authorization. A rules of engagement document, signed by both sides, defines scope, timing, blackout windows, and data handling before a single packet is sent.
  • Pasting a client's live infrastructure detail into a hosted model is a disclosure most engagement contracts prohibit, so the data handling clause and your tool choice have to match.

Does AI automate the penetration tester out of a job? A manager read a headline claiming so and now wants an answer, and the honest one is more useful than the headline. AI accelerates some parts of an engagement dramatically, is worse than useless in others, and cannot touch the parts that made the job hard in the first place. The tester who knows which is which gets faster. The one who trusts the tool everywhere ships a report full of confident fiction and burns the time they thought they saved.

Before any of that, one distinction has to be nailed down, because two very different activities share the phrase and get mixed up constantly.

Testing with AI, or testing AI? Which is this?

This piece is about using AI to help test ordinary systems, networks, web apps, APIs, cloud accounts. It is not about testing AI systems for their own new weaknesses, which is a separate discipline with its own method. If your target is a language model feature and you need to probe it for jailbreaks, injection and agent abuse, that is the subject of our guide to red teaming an AI system, and the tools and mindset are different. Keeping the two apart matters, because a manager who has read about one often assumes it answers questions about the other, and it does not. Here the AI is the assistant, and the target is a normal system that has nothing to do with machine learning.

The reason the mix up matters is money and safety, not pedantry. A team that buys an AI red teaming tool expecting it to test their corporate network has bought the wrong thing, and a team that points a general purpose coding assistant at their language model feature and calls it a security review has tested almost nothing. The two share vocabulary and share almost no method. This piece answers only the first question, whether AI helps a human test ordinary systems faster, and the answer runs phase by phase rather than as a single yes or no.

Which parts of an engagement does AI actually speed up?

Grade it phase by phase rather than as one verdict, because the answer swings from real acceleration to active harm depending on where in the engagement you are. The sequence below is the honest grading, and the table after it names the failure mode for each, which is the part a manager needs to hear.

A five step sequence grading AI across a penetration test: recon is fast, triage is strong, exploit development is confident but often wrong, lateral movement loses the thread, and reporting is a reliable time saver
AI across the phases of an engagement, from recon to reporting, graded honestly.
Engagement phaseRealistic accelerationFailure mode to watch
Recon and asset enumerationHigh, it summarises and organises fastInvents hosts or services that do not exist
Vulnerability triage from scanner outputHigh, it reads noisy output wellConfidently downgrades a real finding, or upgrades noise
Exploit developmentLow, and negative once you count reworkProduces plausible exploit code that does not work
Lateral movement reasoningLow, it loses the thread across stepsForgets earlier results, repeats itself, stalls
Report writingHigh, the clearest real winOverstates severity if you do not check it

The research backs this shape rather than a hunch. The team behind PentestGPT, in their evaluation of language models for automated penetration testing, found that models are proficient at specific subtasks, using tools, interpreting their output, and proposing the next action, but struggle to maintain an integrated understanding of the whole engagement. The named causes are exact: context loss from token limits, a recency bias that fixates on the immediate task, and hallucination. That is precisely why triage, a read this output and judge it task, works, while lateral movement, a hold the whole board in your head across many steps task, does not. Their tool improved subtask completion by 58.6 percent over using a base model directly, and it did that by adding an external structure to track engagement state, which is the tell: the model needed scaffolding to remember what it had already learned.

So the two wins are triage and reporting, and they are worth having. Triage turns hours of reading scanner output into minutes of reviewing a prioritised list, as long as you verify the priorities. Reporting turns the least loved part of the job, writing up findings clearly for a client, into a draft you edit rather than a blank page you dread. The exploit development trap is the one to warn your manager about, because it is where the headline is most wrong. A model will happily write exploit code that looks right, references the correct concepts, and fails on contact, and debugging that fiction often takes longer than writing the exploit yourself. Confident nonsense is more expensive than an honest blank. If your job involves grading tasks by who carries the risk when the tool is wrong, the same logic we applied to legal work in the piece on legal AI sorted by task and by who pays for the error transfers directly to offensive security.

Triage rewards a specific habit: never let the model be the last word on a finding it downgraded. Its most expensive mistake is not upgrading noise, which wastes a little time, but quietly marking a real vulnerability as a false positive because it pattern matched to a benign one. That error is invisible unless you spot check the downgrades, so the workflow that works treats the model's prioritisation as a first pass that reorders your queue, with the low priority pile still getting a human skim before it is closed. Used that way the time saving is real and the risk is contained. Trusted blindly, it is how a finding that mattered ends up in the ignored column.

Recon deserves its own note, because it is where the acceleration is most seductive and the failure most quiet. A model is genuinely fast at taking raw enumeration output, an nmap scan, a list of subdomains, a pile of HTTP headers, and turning it into an organised summary of what is exposed and where to look first. The catch is the same hallucination that shows up everywhere else, since a model will occasionally list a host, a service, or a version that was never in the input, stated with the same confidence as the real ones. In recon that is dangerous precisely because it looks like helpful synthesis, so the rule is to treat the model's summary as a lead to verify against your own tool output, never as the source of truth. It reorganises what you found. It does not get to decide what you found.

The deeper reason full automation stalls is worth understanding, because it explains why the tools that work are assistants rather than autonomous agents. An engagement is a long chain of dependent decisions, where step twelve depends on what you learned at step three, and a model that loses that thread cannot run the engagement on its own. The PentestGPT work made this concrete by bolting an external memory onto the model, a task tree that tracks engagement state, precisely because the model could not hold that state itself. That scaffolding is the current state of the art, and it is a long way from the headline of an AI that pentests unattended. Read that gap as good news for the tester, since the part of the job the model cannot do is the part that was always the skill.

What does an AI assisted workflow look like in practice?

Concretely, it is a division of labour that plays to the wins and fences off the traps. You run your scanners and enumeration tools as you always did, then hand the raw output to the model to triage into a prioritised list, and you review that list rather than trust it. You do the exploitation and the lateral movement yourself, because those are the phases the model fails, using it at most as a reference for how a known technique works rather than as the author of the exploit. Then you hand your verified findings back to the model to draft the report, and you edit that draft for accuracy and severity. The pattern is simple. The model touches the start and the end of the engagement, the reading in and the writing up, and the human owns the dangerous middle. A tester who sets it up this way gets the real speed without inheriting the fiction, and the manager gets a faster engagement without a report full of invented findings.

What has to be settled before anything runs?

Authorization, in writing, before a single packet leaves your machine. This is not a formality that AI changes, and it is the first thing a responsible engagement establishes. A test without written authorization is illegal regardless of intent, and adding an AI assistant does not soften that in the slightest. The scope and the rules of engagement, signed by both the client and the testing team, are what make the work lawful and bounded.

A rules of engagement document, as a practical guide to penetration testing scope lays out, has to name the authorized targets exactly, the testing window with its blackout periods, the allowed and prohibited methods, an emergency stop and who can trigger it, the escalation path for a critical finding, and the rules for handling sensitive evidence. Some techniques sit off by default and need their own separate written approval, denial of service, social engineering, and physical access among them. None of this is new to a pentester, but it is worth restating in an AI context for one reason: an AI assistant that helpfully suggests a next step does not know or care what your scope says, so the human remains the one accountable for staying inside the lines the document drew.

An illustration card listing four things a penetration test must settle before it starts: written authorization signed by both sides, exact scope and targets, agreed blackout windows, and clear data handling rules

Can you paste client infrastructure into a hosted model?

Usually not, and this is the part teams get wrong in their first week of AI assisted testing. The moment you paste a client's IP ranges, internal hostnames, credentials, or a scanner report into a hosted model, that data leaves your environment and reaches a third party the client never authorized. Most engagement contracts contain a confidentiality clause that this breaks outright, so the convenient move is also the one that can end the engagement and your relationship with the client. The rules of engagement data handling clause and your choice of tool have to agree, and if the contract says client data stays in your control, a hosted model that trains on or retains your inputs is out.

The alternatives are real and worth setting up before you need them. Run a local model on your own hardware for anything touching client specifics, so the sensitive text never leaves your machine. Redact aggressively before any hosted call, stripping real hostnames and addresses down to placeholders that keep the technical shape without the identifying detail. Or keep a hard rule that hosted models see only generic, non client questions, the how does this class of vulnerability work kind, while anything with a real target in it goes to the local tool. The point is to decide this deliberately, because the failure here is quiet, a confidentiality breach leaves no error message, and you find out when the client does.

Redaction is worth a concrete picture, because done badly it leaks anyway. The goal is to strip the identifying detail while keeping the technical shape the model needs to be useful. A real internal hostname becomes a generic placeholder such as host one, a specific address range becomes a labelled subnet, and a customer name in a finding becomes the word target. What you keep is the vulnerability class, the port, the software version, the error text, everything the model needs to reason about the technical problem. What you remove is anything that identifies whose system it is. If that feels like too much friction for a quick question, that is the signal to run a local model instead, where the friction disappears because nothing leaves your machine in the first place.

Where does the responsibility actually sit?

With the human, always. It helps to have a framework that says so. The voluntary NIST AI Risk Management Framework organises the work into four functions, govern, map, measure and manage, and the govern function is the one that matters here: someone is accountable for how the AI is used, on what data, within what limits. In an engagement, that accountability does not transfer to the tool. If the AI suggests an out of scope action and you take it, you took it. If it hallucinates a finding and you ship it, you shipped it. The framework's value is that it makes the accountability explicit rather than assumed, which is exactly what a client, and your own insurer, will want to see.

There is a career reading of all this, and it is the manager's real worry stated plainly. The phases AI accelerates, triage and reporting, are the ones junior testers spent most of their hours on, while the phases it cannot do, exploitation and chaining and judgment under a live target, are the ones that separate a senior tester from a scanner. AI does not remove the tester. It shifts the value further toward the judgment that was always the hard part. The honest thing to tell a junior is that the routine work will shrink, so the skills worth building now are exactly the ones the model keeps failing at.

Put the whole thing together and the manager's question has a clean answer. AI makes a good pentester faster on triage and reporting, wastes their time on exploit development, and changes none of the judgment, the authorization and the accountability that were always the core of the job. It is a strong assistant and a poor replacement, and the tester who treats it that way pulls ahead while the one who trusts it blindly ships fiction. When an AI assisted engagement does go wrong, the reporting and accountability trail matters as much as the fix, a theme we picked up in the piece on why AI incident reporting has no playbook for autonomous agents. And whatever tools you adopt, the discipline that keeps this safe is the same one we hold ourselves to on the MaShop security page: the human decides, the tool assists, and the scope is never a suggestion.

Comments 0

0 / 4000Your email stays private.
No comments yet. Be the first.

Keep reading picked for you.

Describe it. MaShop builds it.

Commerce apps and websites from one sentence. No card to start.

Start building