Penetration testing has always been a race between the people who build systems and the people who break them. Artificial intelligence has not changed the goal of that contest, but it has changed the pace, the cost and the shape of it. It is worth being precise about what is genuinely new, because a great deal of what is claimed for AI in security is marketing, and a smaller, more important part of it is real.
Two separate things get bundled under the same phrase. The first is using AI to do penetration testing: language models that read code, suggest exploits, write scripts and summarise findings. The second is testing AI itself: probing the language models, agents and pipelines that organisations are now putting in front of customers and inside their own operations. They are different disciplines, and confusing them is the first mistake.
What AI Does Well for the Tester
The honest wins are in speed and breadth, not in judgement. A language model will read a large unfamiliar codebase faster than any human and point at the parts worth a closer look. It will draft a proof-of-concept, translate an exploit from one language to another, explain an obscure protocol, and turn a wall of scanner output into a readable summary. For reconnaissance, it can sift public data and correlate it in ways that used to take hours.
None of this replaces the tester. It removes the drudgery around the edges of the work, which is valuable, because the drudgery is where fatigue sets in and things get missed. The judgement about what matters, what is exploitable in context, and what a finding actually means for the business, stays firmly human.
Where AI Misleads
A language model is confident whether or not it is correct. It will invent a function that does not exist, cite a CVE that was never issued, and describe an attack path that does not survive contact with the real system. In security work, a plausible wrong answer is worse than no answer, because it wastes time and, if trusted, produces findings that do not hold up. Everything a model suggests has to be verified against the target, every time. Treated as a fast assistant whose output you check, it earns its place. Treated as an oracle, it is a liability.
The New Target
The more consequential change is on the other side. Organisations are shipping AI features at a speed that has outrun their security review. A support chatbot wired into a customer database, an agent that can call internal tools, a model that summarises documents it was given by a stranger: each of these is a new attack surface with failure modes that traditional testing was never designed to find. Prompt injection, training-data leakage, tool misuse and jailbreaks do not appear in a standard web-app methodology, and yet they are now some of the most exposed parts of a modern stack.
This is the part of the field that deserves the most attention, because the systems are live, the techniques are immature, and the people deploying them frequently do not know what they have exposed. A model that can be talked out of its instructions by a sentence in an email is a vulnerability, even though nothing in it is a buffer overflow.
What This Means in Practice
A tester working today needs both halves. Use AI to move faster through the parts of the job that are mechanical, and verify everything it tells you. Learn to test AI systems as their own category, with their own methods, because clients are deploying them whether or not anyone has checked them. The teams that treat these as two distinct skills, rather than one buzzword, are the ones producing work that means something.
The Short Version
AI changes penetration testing in two ways. It is a fast assistant for the tester that must always be checked, because it is confidently wrong often enough to be dangerous. And it is a new class of target, one that most organisations are deploying faster than they are securing. The interesting work is in taking both seriously and keeping them separate.
