Loading...
background

AI in Penetration Testing: The Good, Bad, and Ugly

post image

AI in Penetration Testing: The Good, Bad, and Ugly

AI in Penetration Testing: The Good, The Bad, and The Ugly

Penetration testing is being reshaped by AI from two directions at once. AI tools are changing how testing itself gets done, faster reconnaissance, automated exploit chaining, AI-assisted reporting. At the same time, AI systems themselves, particularly LLMs and autonomous agents, have become a target that traditional penetration testing methodology was never built to assess. A security leader evaluating a testing program in 2026 has to account for both shifts simultaneously.

This piece works through what's actually good, bad, and ugly about where AI and penetration testing currently intersect.

The Good: What AI Genuinely Improves

Speed and Coverage at Scale

AI-assisted tools can compress reconnaissance and initial vulnerability discovery from days to hours, correlating findings across a larger attack surface than a manual team could cover in the same engagement window. That doesn't replace deep manual testing on critical systems, but it meaningfully expands what a fixed-size team can cover in a given cycle.

Continuous, Not Just Annual, Testing

Breach and attack simulation (BAS), sometimes extended into continuous breach and attack simulation (CBAS), runs automated attack scenarios against an environment on an ongoing basis rather than during a single annual engagement window. That shift matters because an environment that was secure during last year's pentest can drift out of that state within weeks, and continuous simulation is what catches that drift between formal engagements rather than after the fact.

Structured, Repeatable Methodology via MITRE ATT&CK

The MITRE ATT&CK Matrix gives penetration testers and AI-assisted tooling a shared, structured taxonomy of adversary tactics and techniques, initial access, execution, persistence, privilege escalation, and so on, rather than an ad hoc list of exploits. AI-assisted platforms increasingly map their automated attack paths directly to ATT&CK technique IDs, which makes findings easier to communicate to a board or a compliance team and easier to compare across engagements and vendors over time. For AI-specific threats, MITRE's companion ATLAS framework extends the same structured approach to adversarial machine learning techniques specifically.

The Bad: Where AI-Driven Testing Falls Short

False Confidence From Automated Coverage

An AI-driven scan that reports "no critical findings" can create a false sense of completeness. Automated tools are generally strong at breadth and pattern-matching known vulnerability classes, and weaker at the kind of creative, business-logic-specific exploitation a skilled human tester finds by understanding how a specific application is actually used. Treating automated coverage as equivalent to expert manual testing is one of the most common and costly mistakes organizations make when adopting AI-assisted tools.

Noisy, Low-Context Findings

AI-generated findings can arrive without the business context a human tester would normally attach, a flagged vulnerability with no assessment of actual exploitability or business impact just becomes more noise for an already stretched security team to triage.

Continuous Testing Without Continuous Remediation Capacity

Running automated scans more frequently only helps if remediation capacity scales with it. An organization that moves from annual to continuous automated testing without also building a faster remediation workflow ends up with a permanently growing backlog of findings rather than a genuinely more secure environment.

External vs. In-House: Neither Is a Free Win

  • External testers bring outside perspective, dedicated adversarial expertise, and independence that supports audit and regulatory requirements, but engagements are episodic by nature and can miss context an internal team would have.
  • In-house testing (including in-house-run AI-assisted continuous testing) offers deeper system knowledge and faster iteration, but can suffer from the same blind spots as the team that built the systems being tested, and rarely carries the same independent weight for a regulator or an auditor.

Most mature programs run both: continuous, largely automated internal testing supplemented by periodic, independent external engagements, particularly for systems with the highest regulatory or business exposure.

AI accelerates penetration testing, introduces new pitfalls, and creates an entirely new class of vulnerabilities to test for. A practical guide for security leaders navigating all three at once.

The Ugly: AI-Specific Vulnerabilities Traditional Pentesting Wasn't Built For

Traditional penetration testing methodology assumes deterministic systems. LLMs and autonomous AI agents are not deterministic in the same way, and they introduce entirely new vulnerability classes that a standard web application or network pentest checklist simply doesn't cover.

The OWASP Top 10 for LLM Applications

OWASP's 2025 list identifies the ten most critical risks specific to LLM-based applications: Prompt Injection, Sensitive Information Disclosure, Supply Chain, Data and Model Poisoning, Improper Output Handling, Excessive Agency, System Prompt Leakage, Vector and Embedding Weaknesses, Misinformation, and Unbounded Consumption. The most recent revision reflects how LLM applications have evolved: three categories were added specifically to address system prompts holding business logic and credentials worth protecting, RAG-specific risks like poisoned embeddings and embedding inversion, and resource-exhaustion attacks including token floods and runaway API costs. Testing against this list means going well beyond a standard web app scan, probing whether crafted input can override system instructions, whether the model leaks training data or proprietary prompts, and whether retrieval pipelines can be poisoned to manipulate output.

The OWASP Top 10 for Agentic Applications

Published by the OWASP GenAI Security Project in December 2025, this is a distinct framework for a distinct problem: autonomous agents that plan, call tools, and act with real permissions in production systems. The ten categories, designated ASI01 through ASI10, cover Agent Goal Hijack, Tool Misuse and Exploitation, Identity and Privilege Abuse, Agentic Supply Chain Vulnerabilities, Unexpected Code Execution, Memory and Context Poisoning, Insecure Inter-Agent Communication, Cascading Failures, Human-Agent Trust Exploitation, and Rogue Agents. Several of these describe failure modes that have no real analog in traditional pentesting: an agent whose objective gets silently redirected through a poisoned document, or one agent's compromised output cascading into failures across a multi-agent workflow that no single-system test would catch. Identity and privilege abuse in particular is worth flagging directly, since agents granted more access than their function actually requires, through shared API keys, inherited user sessions, or over-permissioned service accounts, is the structural vulnerability underlying most high-severity incidents reported across recent enterprise AI agent surveys.

AI Based GRC Software For Compliance

When Agents Misbehave

Testing "when agents misbehave" is a genuinely different exercise than traditional exploitation testing. It means deliberately probing whether an agent can be manipulated into taking a harmful action it was technically authorized to take, refunding money it shouldn't, exposing data it had legitimate access to, or escalating its own privileges through a chain of individually reasonable-looking steps. That's closer to red-teaming a decision-making process than scanning for a technical flaw, and it requires testers who understand how the agent's underlying model reasons, not just how its infrastructure is configured.

Human Testers vs. AI Agents: Where Each Actually Wins

Neither replaces the other cleanly, and the honest comparison depends on what's actually being tested.

Where AI Agents Win

  • Speed and breadth. An AI agent can enumerate endpoints, correlate known vulnerability signatures, and chain simple exploit sequences across a large attack surface far faster than a human working the same scope manually.
  • Consistency and repeatability. An agent runs the same test the same way every time, which is genuinely useful for regression testing, confirming a previously identified vulnerability actually stayed fixed, and for continuous testing cadences where a human repeating identical steps weekly isn't a good use of expert time.
  • Tireless coverage of routine attack paths. Agents don't get fatigued or skip steps late in a long engagement, which matters for the unglamorous, repetitive parts of a test that are easy for a tired human tester to shortcut.
  • Cost efficiency at scale. Extending coverage to more systems or a higher testing frequency scales more cheaply with automation than with additional expert headcount.

Where Human Testers Win

  • Business-logic exploitation. A human tester who understands what a specific application is actually for can find the kind of flaw that only matters in context, a workflow that lets a user bypass a business rule, not just a technical misconfiguration a scanner would flag.
  • Creative, novel attack chaining. Skilled human testers regularly combine several individually low-severity findings into a single high-impact exploit path, a kind of lateral, creative reasoning current AI-driven tools don't reliably replicate.
  • Judgment under ambiguity. Deciding whether a finding is genuinely exploitable, how severe it actually is in context, and whether a workaround introduces new risk requires judgment an automated tool can approximate but not fully substitute for.
  • Testing an agent's judgment, not just its infrastructure. As covered above, evaluating whether an AI agent can be manipulated into misusing its own legitimate permissions is itself a job for a human tester who understands how the underlying model reasons, not a job an automated scanner can perform on itself.

The Practical Split

The strongest 2026 testing programs use AI agents for what they're genuinely good at, breadth, repeatability, and continuous baseline coverage, and reserve human expert time for what agents still can't reliably do: business-logic exploitation, creative chaining, and evaluating the judgment of the AI systems themselves. Treating this as a substitution question, AI agents replacing human testers, misses the actual shift, which is a reallocation of human expert time toward the problems that specifically require it.

Penetration testing's regulatory footing shifted meaningfully in 2026, and AI-specific testing is increasingly named explicitly rather than implied.

  • The EU AI Act's general application deadline landed August 2, 2026, with specific testing obligations: Article 9 testing requirements, Article 15 cybersecurity provisions, and Article 55 adversarial testing requirements for general-purpose AI models carrying systemic risk.
  • DORA's threat-led penetration testing (TLPT) requirement, in force since January 2025 for in-scope EU financial entities, mandates testing under Articles 24 through 27 on a roughly three-year cycle for selected entities.
  • The Federal Reserve's SR 26-2, issued in April 2026, replaces the older SR 11-7 model governance guidance with a more explicit, testing- and validation-oriented framework.
  • NYDFS's cybersecurity regulation (23 NYCRR Part 500) has long required annual penetration testing and vulnerability scanning as an explicit part of its security program requirements for covered New York financial institutions, and remains one of the clearest state-level examples of a hard testing mandate.
  • US state AI legislation continued to fragment rather than consolidate in 2026, with California, Colorado, New York, and Texas each enacting AI-specific statutes targeting discrete risks rather than comprehensive, uniform regulation, meaning multistate organizations increasingly need to track overlapping and sometimes inconsistent state requirements alongside federal and international ones.
  • Authorization boundaries for automated and AI-driven testing remain a live legal question. Under the CFAA, the scope of what counts as "exceeding authorized access" was narrowed by the Supreme Court's Van Buren decision, but platforms retain wide latitude to impose and enforce technical access controls, which can still trigger CFAA exposure if circumvented. For AI-driven or agentic testing specifically, that means scope, rules of engagement, and technical guardrails need to explicitly define not just which systems an agent may touch, but what autonomous actions it's authorized to take without a human in the loop.

The practical upshot: legal review of a testing program's scope and authorization language matters more, not less, as testing becomes more automated and more autonomous, since an AI-driven tool can act far outside intended scope faster than a human tester would notice, let alone correct.

Continuous vs. One-Time Testing: Choosing the Right Model

  • One-time (annual or point-in-time) testing remains appropriate for satisfying specific compliance checkpoints and for deep, manual assessment of the highest-value systems, where expert time is worth concentrating rather than spreading thin.
  • Continuous testing (automated scanning, BAS/CBAS, and continuous control monitoring) is better suited to catching configuration drift and newly introduced vulnerabilities between formal engagements, exactly the gap a once-a-year test structurally can't close.

Most mature 2026 programs don't choose one model exclusively. They run continuous, largely automated testing as the baseline, with periodic, deeper manual and external engagements layered on top for systems carrying the highest regulatory or business risk.

Frequently Asked Questions

What is the OWASP Top 10 for LLM Applications?

It's OWASP's ranked list of the most critical security risks specific to LLM-based applications, including prompt injection, sensitive information disclosure, supply chain risk, data and model poisoning, and unbounded consumption, used as a standard reference for scoping AI-specific penetration testing.

What is the OWASP Top 10 for Agentic Applications?

Published by the OWASP GenAI Security Project in December 2025, it's a distinct framework (ASI01 through ASI10) covering security risks specific to autonomous AI agents, including goal hijacking, tool misuse, identity and privilege abuse, and cascading multi-agent failures, risks that don't have a direct equivalent in traditional application security testing.

Is AI-driven penetration testing a replacement for manual testing?

No. AI-assisted tools are strong at speed and broad coverage but weaker at the creative, business-logic-specific exploitation a skilled human tester performs. Most mature programs use AI-driven and continuous testing as a baseline, supplemented by periodic manual and external testing for the highest-risk systems.

Should I use human testers or AI agents for penetration testing?

Both, applied to different problems. AI agents are better suited to speed, repeatability, and continuous baseline coverage across a large attack surface. Human testers remain better suited to business-logic exploitation, creative multi-step attack chaining, and evaluating whether an AI agent's own judgment can be manipulated, tasks that require contextual reasoning current automated tools don't reliably replicate.

What legal considerations apply specifically to AI or agentic penetration testing?

Authorization needs to define not just which systems can be tested, but what autonomous actions an AI-driven tool or agent is permitted to take without human approval. CFAA exposure remains a live concern where technical access controls are circumvented, and organizations operating internationally also need to track EU AI Act testing obligations and DORA's threat-led penetration testing requirements where applicable.

How does the MITRE ATT&CK Matrix apply to modern penetration testing?

It provides a shared, structured taxonomy of adversary tactics and techniques that both human testers and AI-assisted tools can map findings against, making results easier to compare across engagements and communicate to non-technical stakeholders. Its companion framework, MITRE ATLAS, extends the same

Share: