Short answer: grey box penetration testing means testers start with partial knowledge of your system, usually working accounts for each user role and the API documentation, so they can test what a logged-in user or a stolen account can actually reach. For a web application or API, Pentestica typically plans 5 to 10 tester-days and prices the test at $2,500 to $5,500 per application or API.

On grey box engagements, the first thing we check is whether one user can open another user’s records by changing an ID in a request. That check needs at least two accounts in the same role, and it’s the kind of flaw a test without logins rarely reaches. For the wider picture, see our overview of types of penetration testing and the penetration testing methodology behind every test.

Last updated: November 30, 2026

What is grey box penetration testing, and what do testers receive?

It’s a penetration test run with partial knowledge of the target. PCI SSC guidance separates the three approaches by what testers know: black box testing happens “without prior knowledge” of the target’s internals, grey box testing “with partial knowledge” and white box testing “with knowledge” of them.

In grey box penetration testing, testers receive credentials for standard accounts in each role you want tested, often with API documentation and a short note on what each role should be allowed to do. Source code and admin access to your servers belong to white box.

That setup models three realistic attackers: a customer probing beyond their own data, a low-privilege insider and an outsider holding a stolen password. NIST SP 800-115 describes the same idea for internal tests, where assessors often get access as “general users” with the information “users with similar privileges would have.” You’ll also see it spelled gray box, the more common US form; it’s the same approach.

Black box vs grey box vs white box: what does each one show you?

Each approach answers a different question, set by what you share before day one.

ApproachWhat testers getWhat it simulatesWhat it finds wellWhat it can’t seeTypical effort
Black boxTargets only: domains, URLs or IP rangesAn outsider with no inside informationExposed services, forgotten hosts, weak login pagesMost business logic and everything behind the loginExternal tests: typically 3 to 8 tester-days
Grey boxAccounts per role, often API documentation and a test environmentA logged-in user, an insider or an attacker with stolen credentialsAuthorization gaps between users, roles and tenants; privilege escalation; logic flawsFlaws visible only in source code or server configurationWeb app or API: typically 5 to 10 tester-days; internal network: 5 to 10
White boxSource code or repository access, architecture diagrams, configuration, admin access where agreedAn attacker with full inside knowledgeFlaws in code paths, configuration and designThe realistic outsider’s view of your perimeterQuoted in tester-days after a scoping call; code review adds work

For applications with logins, grey box is the useful middle: less guessing than black box, less effort than white box’s code review. Our guides to black box penetration testing and white box penetration testing go deeper.

Compliance points the same way. PCI SSC notes that PCI DSS penetration tests “are typically performed as either white-box or grey-box assessments,” which “yield more accurate results” than “a pure black-box assessment.” The guidance doesn’t mandate an approach, so your auditor or QSA decides. The same goes for SOC 2 or ISO 27001 evidence.

What does grey box find that black box misses?

It finds authorization flaws: places where a logged-in user reaches data or functions their role shouldn’t allow, from horizontal to vertical privilege escalation. These checks need accounts, because the question isn’t whether someone can log in but what they can touch once they have. The OWASP Web Security Testing Guide treats authorization testing as its own section.

  • Object-level authorization (IDOR or BOLA): changing an ID in a request returns another user’s record. More in our guide to BOLA and mass assignment.
  • Horizontal privilege escalation: one customer reaches another customer’s data within the same role.
  • Vertical privilege escalation: a standard account calls an admin function that’s hidden in the interface but still answers on the server.
  • Tenant isolation: in multi-tenant SaaS, a user in one organization reads or changes another organization’s data.
  • Business logic: skipped workflow steps, amounts trusted from the client, limits that exist only in the UI.
  • Session handling: tokens that stay valid after logout, a password change or account deactivation.

What most guides miss: a scan can miss all of these, because the response is technically valid, with status 200 and well-formed data. The problem is that this user should never have received it.

From our testing: another user’s transaction history behind an ID change

In a grey box test of a financial platform’s API, we found that changing the account identifier in one of the endpoints let the tester read the transaction history belonging to another user. The endpoint checked that the caller was logged in, not that the requested account was theirs. An automated scanner didn’t flag it, because the server’s response was technically correct and returned HTTP 200. After we reported the problem, the client added a resource ownership check at the backend level. The retest confirmed the vulnerability had been removed.

What should you hand over for a grey box test?

Hand over working accounts for every role in scope, with at least two accounts in the same role, plus the access path and documentation your test type needs. Poorly prepared test accounts are a common grey box problem: with one account per role, testers can’t check whether user A reaches user B’s data. Send everything before day one, so tester-days go to testing rather than waiting.

A checklist you can copy:

  • Every grey box test: the written scope, testing hours, systems that must not be disrupted, a named contact for critical findings and tester IP addresses allowlisted where needed.
  • Web application: two accounts in each role you want tested in depth, one account in every other role up to admin, login methods, admin functions, integrations and the test environment URL. See web application penetration testing.
  • API: an OpenAPI specification or equivalent documentation, the authentication type and how to get tokens, accounts per role, accounts in at least two tenants if the API is multi-tenant, and external integrations in scope. See API penetration testing.
  • Internal network: VPN access or an on-site connection, a standard domain user account without admin rights, the ranges in scope, whether you run Active Directory and how many domains, and any segmentation you want verified. See internal penetration testing.
  • Cloud (AWS or Azure): a read-only role in each account or subscription in scope, the list of those accounts or subscriptions, the services you use and a short note on your IAM model. See cloud penetration testing.

Our guide to penetration test scope covers the scoping questions behind this list.

How should you set up, secure and revoke test accounts?

Create dedicated test accounts, settle MFA and the environment before testing starts, and revoke access once the test, or the retest, is over. Four decisions cover most of it:

  1. Dedicated accounts only. Create named test accounts for the engagement and never hand over a real employee’s or customer’s login; it muddies both the evidence and your audit trail.
  2. Keep MFA where production has it. Enroll each test account in MFA and give testers a way to complete it, so the login flow is tested the way users meet it. If you switch MFA off for test accounts, agree it in writing and expect the report to note that limit.
  3. Pick staging or production up front. Staging is safer for write-heavy actions such as payments, refunds or deletions, but only if it runs the same build and authorization rules as production, seeded with realistic test data. Production shows your real configuration; agree in writing which actions are off-limits and when testing runs.
  4. Revoke access after the test. Disable the test accounts, remove VPN profiles and cloud roles created for the testers, drop IP allowlist entries and rotate any API keys you issued. If a retest is planned, keep the accounts disabled rather than deleted, or recreate them for the retest window.

On our side, the credentials you hand over are stored separately and encrypted, and deleted when the test ends.

How does grey box change tester-days and cost?

Grey box doesn’t change the size of your scope; it changes where the tester-days go. Instead of spending much of the effort on discovery, testers spend it on roles, tenants and authorization paths. For web applications and APIs, a small single-application scope starts at about 5 tester-days and the typical range is 5 to 10.

Roles move the number more than endpoint counts do. Each extra role adds access-control combinations to check, because an endpoint can behave correctly for an admin and wrongly for a standard user or a user in another tenant. A SaaS product with about 40 API endpoints, three roles, an admin panel, MFA and a payment integration might take, for example, about 5 to 7 tester-days; the same endpoint count with one role and a simple data model needs less.

On price, web application and API tests run $2,500 to $5,500 per application or API: from $2,500 for a small app or API with one to three roles, up to $5,500 for multi-tenant products. Infrastructure and cloud tests run $5,000 to $12,000+ per agreed scope. The price is fixed for the agreed scope and confirmed in writing before testing; work outside the agreed scope can cost more. For the follow-up, a retest is available after fixes; whether it is in the price depends on the engagement. Prices exclude VAT where applicable; see penetration testing pricing for current figures.

When you compare quotes, ask how many roles and accounts each assumes, and ask for a sample penetration test report to see whether the days produce manual exploitation evidence.

Grey box decision table: scope, approach, handover and effort

Tester-day ranges are typical figures by test type, not a quote.

ScopeApproachWhat to hand overEffort
Internet-facing perimeter with no loginsBlack boxDomains, IP ranges, testing windowExternal tests: typically 3 to 8 tester-days
Small web app or API with one to three rolesGrey boxTwo accounts in the main role, one per other role, API documentationStarts at about 5 tester-days; from $2,500
Web app or API with several roles and an admin panelGrey boxAccounts per role up to admin, two in the same role, test environmentTypically 5 to 10 tester-days
Multi-tenant SaaSGrey box across tenantsAccounts for each role in at least two tenantsWeb/API range: 5 to 10 tester-days; up to $5,500 for multi-tenant products
Internal network or assumed breachGrey box from a standard domain accountVPN or on-site access, domain user, ranges in scopeTypically 5 to 10 tester-days
AWS or Azure environmentGrey box with read-only accessRead-only role per account or subscription, list of servicesTypically 8 to 15 tester-days; $5,000 to $12,000+
Payments, authentication or cryptography code before releaseWhite boxSource code or repository access, architecture diagrams, configurationQuoted in tester-days after a scoping call

When should you choose grey box, black box or white box?

  • Choose grey box when your application, API or network has logins, roles or tenants and the real question is what each user can reach.
  • Choose black box when the question is what an unauthenticated outsider can find on your internet-facing perimeter, as in our black box penetration testing case study.
  • Choose white box when a flaw in payments, authentication or cryptography code would be expensive and you can share source code and developer time.
  • We advise against grey box when the target has no logins to test, such as a brochure site or a bare perimeter, or when working accounts for each role won’t be ready by day one. In the first case black box answers the question; in the second, move the start date rather than burn tester-days waiting for access.

Our verdict: if your product has a login, start with grey box and two accounts in each key role, then add black box for the perimeter and white box for the code you can’t afford to get wrong.

Fixed-price quote

Planning a grey box test?

Tell us your roles, tenants and environment, and we’ll send a fixed-price quote in tester-days for the agreed scope. Web application and API tests start at $2,500.

Get a fixed-price quote

Sources: PCI SSC Information Supplement: Penetration Testing Guidance v1.1, sections 1.3 and 2; NIST SP 800-115, sections 2.4.1 and 5.2; OWASP Web Security Testing Guide, authorization testing; checked November 2026.

Pentestica - Your Trusted Partner in Penetration Testing

The Pentestica penetration testing team: 25 certified senior pentesters (OSCP, OSCE, CISSP) with 10+ years of offensive security operations and 500+ penetration tests behind them. Our testing is aligned with OWASP, PTES and NIST SP 800-115.