Key points
- AI penetration testing uses AI tools to plan and run parts of a security test: finding assets, scanning, trying many attack paths and re-testing after changes. It is not a full test on its own.
- AI is good at breadth and speed. It is weak at business logic, context and judging real impact, and it reports issues that are not real.
- Every finding still needs an engineer to reproduce it, and every test still needs written rules of engagement.
- In Singapore since 11 April 2022, and in Malaysia under the Cyber Security Act 2024, companies that sell penetration testing need a licence. Using AI does not change that.
AI penetration testing means using AI tools to do parts of a penetration test that people used to do by hand. Attackers already use AI to scan and probe faster, so defenders are doing the same. This guide explains what AI penetration testing can and cannot do, how it compares with a normal yearly test and with a plain scanner, and what to ask before you hire a provider. For the wider picture of how AI helps defenders, see our overview of AI in cyber security defence.
What is AI penetration testing?
A penetration test is an authorised, simulated attack on your systems to find weaknesses and show what an attacker could reach. The US National Institute of Standards and Technology (NIST) guide on security testing, SP 800-115, splits the work into planning, testing and analysis of findings. The OWASP Web Security Testing Guide describes what a tester should check in a web application.
In AI-driven testing, AI tools help with the testing step. They can read tool output, suggest the next step and try many more inputs than a person would. The term covers a wide range, from a scanner with an AI label to an agent that chains several steps together. Ask any provider which one they mean.
What AI penetration testing is not:
- It is not a replacement for a tester's judgement. Someone still has to decide what matters to your business.
- It is not "set and forget". An AI agent that sends real requests to production systems needs limits and a person watching.
- It is not the same as testing your own AI features. Testing a chatbot for prompt injection is a different job; see what is prompt injection.
What AI does well
- Asset discovery. Listing subdomains, exposed services, API endpoints and forgotten test sites. Many breaches start on a system nobody remembered.
- Scanning at scale. Checking every endpoint and every user role, not just a sample, in the time a person would test a few.
- Trying many paths. Testing many input variations, parameter combinations and request orders, then reading the results to decide what to try next.
- Re-testing after every change. Running the same checks after each release, so a fix that breaks later is caught in days, not at next year's test.
- Writing up. Drafting finding descriptions and fix steps, which an engineer then checks.
Published research backs up both sides. The PentestGPT study (Deng and others, 2023, revised 2024) found that large language models handle specific steps well, such as using testing tools and reading their output, but "encounter difficulties maintaining an integrated understanding of the overall testing scenario". In other words, they are good at the parts and weaker at the whole.
Where AI fails
- False positives. AI tools report issues that are not real, or that are real but harmless. Unchecked, these waste your developers' time and hide the real problems.
- Business logic. A flaw like "a customer can approve their own refund" or "a discount applies twice" breaks no technical rule. Finding it needs someone who understands how the business should work.
- Context. An AI tool may flag a "data leak" that is public information anyway, or miss that a low-risk bug on one system opens a path to payment data on another.
- Safety. An agent that tries thousands of requests can lock accounts, fill databases with test records or slow a production system. It may also wander outside the agreed scope if not tightly limited.
Why every finding needs an engineer
A penetration test report is evidence. Boards, auditors and regulators read it to decide what is safe. A finding that has not been reproduced by a person is a guess. An engineer should confirm each issue, remove false positives, check whether issues can be chained together, and rank them by business impact, not by a tool's default score.
Written rules of engagement matter even more when tools act on their own. NIST SP 800-115 treats planning and rules as part of the test itself. Before any AI-driven test starts, agree in writing:
- Exactly which domains, IP addresses, apps and APIs are in scope, and which are off limits.
- Testing windows, request rate limits and who to call if something breaks.
- Whether testing runs on production or on a staging copy first.
- What the tools are not allowed to do, such as deleting data, sending emails to real customers or running denial-of-service checks.
- How test data and logs are stored and deleted afterwards.
Annual test vs scanner vs AI penetration testing
| Traditional annual test | Automated scanner | AI-driven testing with human verification | |
|---|---|---|---|
| How often | Once a year, or before a major launch | Daily, weekly or monthly | Deep test plus re-testing after each release |
| Coverage | Deep, but limited by testing days | Wide, but only known issue types | Wide, with deeper checks on high-risk areas |
| Business logic flaws | Found by skilled testers | Mostly missed | Found by engineers in the manual stage; AI helps cover more roles and paths |
| False positives | Low; testers confirm findings | Common; you sort them out | Removed by engineers before the report |
| Chained attack paths | Yes | No | Yes, confirmed by a person |
| Gap between tests | Up to a year untested | Short, but shallow | Short, and changes are re-tested |
| Main risk | Out of date within weeks | False sense of safety | Over-trusting AI output if no one checks it |
For the difference between scanning and penetration testing in general, see VAPT explained. For whole-organisation exercises, see red teaming vs penetration testing.
How to evaluate an AI penetration testing provider
Ask these questions before you sign. Get the answers in writing.
- Human sign-off: Does an engineer reproduce and approve every finding in the report? Which parts are automated and which are manual?
- Audit trail: Is every request the tools and testers send logged with a time stamp? Can you get the log if something goes wrong?
- Data handling: Where do your data, screenshots and logs go? Which AI models process them, and where are those models hosted? When is everything deleted?
- No training on client data: Will your data or findings be used to train any AI model, the provider's or a third party's?
- Safe-testing controls: Are there rate limits, scope locks and a kill switch? Are methods non-destructive? Can testing start on staging?
- Licence and accreditation: Does the company hold a licence where required (below)? Is it accredited by a body such as CREST, and are the named testers certified?
- Sample report: Can you see one, with false positives already removed and issues ranked by business impact?
- Re-testing: Is a re-test of fixes included?
Be wary of any provider that sells "fully autonomous" testing with no human review, or that cannot say which AI models touch your data. A cheap test that produces hundreds of unchecked findings can cost more in developer time than a proper one.
What regulators expect
- Singapore: The Monetary Authority of Singapore (MAS) Technology Risk Management Guidelines expect systems reachable from the internet to be penetration tested "at least once annually or whenever these systems undergo major changes or updates". See our MAS TRM guide. Separately, since 11 April 2022, any company that provides penetration testing services in Singapore needs a licence from the Cyber Security Agency of Singapore (CSA).
- Malaysia: Under the Cyber Security Act 2024, companies that provide penetration testing services need a licence from the National Cyber Security Agency (NACSA), which opened its licensing portal on 1 October 2024. See our Cyber Security Act 2024 guide.
- Hong Kong: Banks follow the HKMA's testing expectations and C-RAF, and critical infrastructure operators must do yearly risk assessments under the law in force since 1 January 2026. See our C-RAF and critical infrastructure guide.
None of these rules says how much of a test may be automated. They do expect testing that is competent, documented and tracked to closure. An AI-driven test with engineer sign-off and a full log meets that bar more easily than one without.
How RiposteSecurity runs AI-driven testing
AI-driven testing covers the attack surface in depth, followed by manual investigation of high-risk areas. Engineers confirm each finding, remove false positives and rank issues by business impact. We do not test without signed scope and written rules of engagement. Every action is logged in a full audit trail, methods are non-destructive, and an NDA is standard. Client data is never used to train AI models. See our penetration testing service.
Related guides
- AI vulnerability management and patching: what to do with the findings, and how fast.
- AI code review for security: finding flaws in source code before they reach production.
Sources
- NIST, SP 800-115 Technical Guide to Information Security Testing and Assessment, September 2008: csrc.nist.gov
- OWASP, Web Security Testing Guide (stable version 4.2): owasp.org
- Deng and others, PentestGPT: An LLM-empowered Automatic Penetration Testing Tool, arXiv 2308.06782, revised June 2024: arxiv.org
- CREST, Penetration Testing: crest-approved.org
- Monetary Authority of Singapore, Technology Risk Management Guidelines, January 2021, section 13: mas.gov.sg
- CSA, CSA kicks off licensing framework for cybersecurity service providers, 11 Apr 2022: csa.gov.sg
- NACSA, Application for licensing of cyber security service providers: nacsa.gov.my
- Office of the Commissioner of Critical Infrastructure (Computer-system Security), Code of Practice version 1.0, 1 Jan 2026: occics.gov.hk
- RiposteSecurity home page: ripostesec.com
This guide summarises public documents as of 26 November 2026. It is not legal advice; check the regulator's current text.