AI penetration testing is one of the most overused phrases in security right now. Some products use it for a scanner with a chat window. Others use it for real attack agents that exploit a product and prove what they find. The label alone does not tell you which one you are buying. This guide explains what AI penetration testing is, how it works step by step, what proof you should expect, where it falls short and how to evaluate a tool.
If you want the broader background first, read what penetration testing is. For the difference between a scan and a test, see penetration testing vs vulnerability scanning. You can also find an overview of the approach on our AI penetration testing page.
What AI Penetration Testing Means
AI penetration testing is a security test in which software agents do the work a human tester would otherwise do. The agents receive a scope, which covers the domains, applications and roles that are allowed. They then map the product, plan attacks, run them, check the results and decide what to try next. The output is a report of weaknesses that the agents could actually exploit.
The word "AI" describes how the work is planned and carried out. The principle is the same as any penetration test: the goal is to find out what an attacker can do, prove it and explain how to fix it. A tool that matches patterns and writes a summary is a scanner, even when a language model writes the summary.
How an AI Pentest Works, Step by Step
A well-designed AI penetration test follows the same method as a manual one, but it runs in hours rather than weeks.
- Ownership and scope. The owner proves control of the domain, usually with a DNS TXT record, and signs an authorization. The scope is then enforced, so the agents cannot reach systems that were not listed.
- Mapping. The agents discover pages, forms, API endpoints, roles and technologies. Signed in as the test users, they can also see the parts of the product that logged-out visitors never reach.
- Planning. Based on the map, the agents choose which weaknesses to test first, such as access control between roles, input handling and authentication flows.
- Attack. The agents send requests, change parameters, replay sessions and try to use what they find. Several agents can work in parallel on different areas.
- Chaining. Small issues that look minor on their own can be combined into a real attack path, such as reading a leaked identifier and then using it to reach another customer's data.
- Verification. Each candidate finding is replayed. If the attack does not work, it is dropped or marked as unproven, not reported as a threat.
- Reporting and fixing. Each proven finding includes the request and response, the impact and a concrete fix. After the fix, a retest runs the same attack again.
Steps 4 and 6 are where AI testing differs most from scanning. A scanner stops at a match. An AI test asks whether the match can be used, and it keeps only the answers that hold up.
The OWASP Web Security Testing Guide describes many of the same test cases that a good AI pentest covers, including authorization, session management and input validation.
What Proof Should Look Like
Proof is the most useful part of an AI penetration test, because it lets you check the work yourself. A finding in a credible report should show:
- The exact request that was sent, including the method, path, parameters and the role used.
- The response that came back, enough to show what the server allowed.
- Why it matters in terms of your product, such as customer data or admin functions.
- How to reproduce it in a few steps, without guessing.
The table below compares what a scan and an AI penetration test typically deliver.
| Output | Scan | AI penetration test |
|---|---|---|
| Basis for a finding | Pattern or version match | Successful exploitation |
| Evidence | Rule name and affected version | Request and response that prove the problem |
| Unproven candidates | Usually reported | Dropped or marked as unproven |
| Access control across roles | Rarely covered | Tested with logged-in accounts |
| Fix guidance | Generic | Specific to the affected code path |
| Retest | Run again as a scan | Same attack replayed after the fix |
What AI Testing Does Well
AI agents are useful for work that is repetitive but requires judgment at every step:
- Breadth. They can apply the same authorization checks to hundreds of endpoints and every role, without skipping the ones that look boring.
- Speed. A run that would take a human team days can finish in hours, so testing can happen on every release.
- Consistency. The same checks run every time, which makes results comparable from one release to the next.
- Chaining. Agents can follow a long sequence of small steps and keep track of what they learned along the way.
These strengths matter most for the bugs that cause the most damage in web products, especially broken access control. The OWASP Top 10 entry on broken access control describes why these bugs are common and why they are easy to miss with pattern matching.
Where AI Testing Falls Short
A credible vendor will be clear about the limits:
- Business rules the system does not know. If a rule exists only in your team's heads, an agent has to discover it by reasoning or through a documented specification.
- Unusual environments. Custom protocols, industrial systems and specialized hardware often need human expertise.
- Creative, long-horizon attacks. A human can spend a whole afternoon following a hunch. An agent follows the paths its design allows.
- Risk decisions. Whether a finding is acceptable for your business is a judgment call. An AI report can describe the risk, but a person in your organization should accept or reject it.
- Coverage gaps you did not define. An agent can only test what is in scope and reachable with the accounts you provide.
This is why AI testing works best as frequent, proven coverage, with a human reviewer where the stakes call for one. The comparison of automated and manual testing describes how to split the work.
How to Evaluate an AI Penetration Testing Tool
Marketing copy will sound similar across tools, so use these questions to tell them apart:
- What controls the scope? Look for proof of domain ownership, a signed authorization and enforcement during the run, not only a list of targets in a settings page.
- Does it exploit or match? Ask for a sample finding with the request and response. If it is only a rule name, you are looking at a scanner.
- What happens to unproven findings? The answer should be that they are dropped or clearly labeled. A report that lists unverified possibilities as threats creates noise.
- Does it test logged-in areas and roles? Most serious bugs sit behind a login. Ask whether the tool uses multiple accounts to check access between users.
- What does the fix look like? A useful tool gives a fix for your stack, a test that reproduces the issue and guidance you can act on.
- Is there a retest? A fix without proof is a guess. Look for a retest that repeats the attack on the same evidence.
- Who is accountable? If your customers or auditors need a named reviewer, check whether a person checks the findings.
Our guide to how to choose a penetration testing company covers the same questions for providers of every kind.
How Hetz Uses AI Agents
Hetz is an autonomous penetration testing tool. Agents test your live product end to end, signed in as your test users, the way a real attacker would. Before any scan, you prove domain ownership with a DNS TXT record and sign an authorization, and a network firewall keeps the scan inside the scope you agreed to. Only findings with proof reach the report, each with the exact request and response. Every finding ships with a full fix: the patch for your stack, a test that reproduces the issue and a ready prompt for your coding agent or app builder. A one-click retest closes the finding once the fix is live.
Hetz does not ask you to trust the agents blindly. The proof is in the report, so your team can check each finding in minutes. For the most sensitive systems, the Elite plan adds a member of our team who reviews every finding and signs the attestation.
When AI Penetration Testing Fits
AI testing fits well when:
- Your product changes often, and you want proof on every release.
- You have many roles and endpoints that are hard to cover manually every time.
- You need a retest after fixes, without waiting for a booked engagement.
- You want a steady baseline between deeper manual reviews.
It fits less well as the only test for a product with unusual systems, regulated certification needs that require a named human engagement, or business rules that exist only in people's heads. In those cases, use it alongside a manual review.
Next Steps
Decide what you want to prove, list your domains, apps, APIs and roles, and check whether any tool you are evaluating can show you a real finding with its request and response. You can read the approach on the AI penetration testing page, see how a full run works on the home page, and compare plans on pricing. When you are ready, start a scan.
FAQ