Aikido

Why code access drives higher ROI in AI Pentesting

Across more than 1,000 AI-powered penetration tests, whitebox engagements found 7x more high and critical vulnerabilities at half the agent cost per finding. The case for granting code access is no longer theoretical. It's measurable.

  • Cost efficiency. Whitebox engagements required 15 agent launches per finding versus 31 for greybox: a 2x cost differential that compounds across an entire security program.

  • Depth of discovery. Whitebox testing surfaced 7x more high and critical vulnerabilities, including broken access control, authentication logic flaws, and SSRF issues that are invisible without source code.

  • The access asymmetry. For AI agents, ingesting a full codebase takes seconds. The overhead that made whitebox a premium human engagement no longer applies, making code access the highest-ROI input to an AI pentest.

Summary

Greybox testing doesn't reduce risk. It reduces visibility into risk.

Without source code, AI agents are limited to the external attack surface. They can't reason about internal authorization logic, multi-step authentication flows, or data integrity issues that never appear in an HTTP response.

This report draws on data from over 1,000 AI-powered engagements on the Aikido platform. It covers:

  • Side-by-side whitebox vs. greybox metrics across total findings, severity, and cost
  • The three vulnerability classes where the gap is largest: Broken Access Control (5x deeper coverage), Authentication Logic Flaws (3x deeper coverage), and SSRF and Data Integrity Flaws (whitebox only)
  • How whitebox testing enables automated remediation, from finding to pull request, compressing a multi-week fix cycle into hours

What you’ll learn

When to default to whitebox, when greybox is the right call, and how to make the decision based on access timelines and application criticality, not habit.

Written by:
Shaun Brown

Shaun is Aikido Security's Technical Product Marketing Manager, translating complex security products into stories the market actually cares about. His background spans software testing and cybersecurity, grounded in a scientific education and career on the cutting edge of earth sciences research.

Key Findings

  • Cost efficiency. Whitebox engagements required 15 agent launches per finding versus 31 for greybox: a 2x cost differential that compounds across an entire security program.

  • Depth of discovery. Whitebox testing surfaced 7x more high and critical vulnerabilities, including broken access control, authentication logic flaws, and SSRF issues that are invisible without source code.

  • The access asymmetry. For AI agents, ingesting a full codebase takes seconds. The overhead that made whitebox a premium human engagement no longer applies, making code access the highest-ROI input to an AI pentest.

Summary

Greybox testing doesn't reduce risk. It reduces visibility into risk.

Without source code, AI agents are limited to the external attack surface. They can't reason about internal authorization logic, multi-step authentication flows, or data integrity issues that never appear in an HTTP response.

This report draws on data from over 1,000 AI-powered engagements on the Aikido platform. It covers:

  • Side-by-side whitebox vs. greybox metrics across total findings, severity, and cost
  • The three vulnerability classes where the gap is largest: Broken Access Control (5x deeper coverage), Authentication Logic Flaws (3x deeper coverage), and SSRF and Data Integrity Flaws (whitebox only)
  • How whitebox testing enables automated remediation, from finding to pull request, compressing a multi-week fix cycle into hours

What you’ll learn

When to default to whitebox, when greybox is the right call, and how to make the decision based on access timelines and application criticality, not habit.

Written by:
Shaun Brown

Shaun is Aikido Security's Technical Product Marketing Manager, translating complex security products into stories the market actually cares about. His background spans software testing and cybersecurity, grounded in a scientific education and career on the cutting edge of earth sciences research.