Skip to content
Grey-box penetration testing

Test what each of your users can really reach

You give us an account for each role. Our testers sign in as each one and try to reach data and actions that belong to other users, roles and tenants, with AI triaging the results. It is the usual fit for SaaS apps, APIs and mobile apps.

  • One account per role
  • Cross-role and cross-tenant checks
  • AI triage, expert verified

AI-powered, expert-verified

How WhyXpose AI works on this test

On a grey-box test, AI triages the results of cross-role and cross-tenant checks, so testers spend their time on real access-control flaws. Certified pentesters verify every finding.

  • Verified under the Cyber Verification Programs for Anthropic Claude and OpenAI Codex
  • Self-hosted open-source AI models
See the AI engine
  1. AI-guided recon
  2. AI scanning
  3. AI triage
  4. Expert verification
  5. AI-drafted report
Starting point

What the tester knows

Grey box (also spelled gray box) means partial knowledge: enough to sign in as each of your users, and nothing that only an insider would have.

Given

  • The apps, APIs or hosts in scope
  • A test account for each role, from read-only user to admin
  • For multi-tenant apps, accounts in at least two tenants
  • API documentation you already have, such as an OpenAPI file or a Postman collection
  • For mobile tests, the Android and iOS builds to install

Not given

  • Source code
  • Server, database or cloud console access
  • Data beyond what each test account can see

Use test accounts and test data. Testers never need a real customer’s login.

Trade-offs

What grey-box testing finds, and what it misses

It is strongest on the access-control flaws that expose customer data. It cannot see what only the code shows.

What it finds well

  • Insecure direct object references and broken object level authorization (BOLA)
  • Privilege escalation from a regular user to admin
  • Tenant-to-tenant data exposure in multi-tenant apps
  • Business-logic abuse in signed-in flows such as checkout, approvals and invites
  • Injection, session and token flaws in authenticated pages and endpoints

Blind spots

  • Weaknesses only visible in the code, such as weak cryptography or hard-coded secrets on the server
  • Features and endpoints that none of your test accounts can reach
  • Coverage depends on what you share: a role you leave out is a role we do not test
  • Less time on outside-in discovery, unless you add external recon to the scope
When to choose it

When grey-box is the right call

Choose it whenever your users sign in. That covers most SaaS apps, APIs and mobile apps, and internal networks where you assume one account is already lost.

  • You run a SaaS app with roles and tenants

    You need proof that users only see their own data, and that one customer cannot read or change another customer’s.

  • You publish an API

    Customers or partners call your API with keys or tokens. Grey-box tests what each key can reach, endpoint by endpoint.

  • You ship a mobile app

    Your Android or iOS app signs users in and talks to a backend. Testers need an account to get past the login screen.

  • You want an assumed-breach view

    You want to know what one compromised staff account or laptop on your internal network can reach next.

Can you share source code for a critical system? Testing goes deeper with it. See white-box penetration testing

Compare

Black-⁠box vs grey-⁠box vs white-⁠box

The more the tester knows, the deeper they get in the same time. What changes is what you share and what is simulated.

  • Black-box

    Starting knowledge
    Target names only: domains, URLs or IP ranges
    Accounts provided
    No
    Source code
    No
    What it simulates
    An anonymous attacker on the internet
    Depth per day of effort
    Lowest: much of the time goes on discovery
    Typical fit
    Internet-facing estates and external network tests
    What you provide
    Target domains, URLs or IP ranges
  • Grey-box

    This page
    Starting knowledge
    Accounts for each role, plus any API docs you have
    Accounts provided
    Yes, one per role
    Source code
    No
    What it simulates
    A signed-in user, customer or partner, or a stolen account
    Depth per day of effort
    Higher: time goes on what each role can reach
    Typical fit
    Most SaaS apps, APIs and mobile apps
    What you provide
    Test accounts per role, API docs if available
  • White-box

    Starting knowledge
    Accounts, architecture notes, configuration and source code
    Accounts provided
    Yes, one per role
    Source code
    Yes, read-only
    What it simulates
    An insider, or an attacker who knows how the system is built
    Depth per day of effort
    Highest: the code points testers at the riskiest paths
    Typical fit
    Payment, authentication and other critical code
    What you provide
    Accounts, architecture notes, source code access

Read about the other two approaches

How it runs

How a grey-box pentest runs

Five stages, from test accounts to verified fixes.

  1. STEP 01

    Scoping

    We agree the apps, APIs or hosts in scope, the roles to test, test windows and anything off-limits. You create the test accounts.

  2. STEP 02

    Mapping each role

    Testers sign in as each role and record every page, request and API call it can make, using your API docs where you have them.

  3. STEP 03

    Cross-role testing

    Each role’s requests are replayed as other roles and tenants. AI triages the results, and testers verify them alongside hands-on tests for injection, sessions and logic.

  4. STEP 04

    Reporting

    AI drafts the write-up and a tester reviews it. Each finding names the role that could exploit it, with a CVSS 3.1 vector, proof of concept and fix, in your dashboard and a branded PDF.

  5. STEP 05

    Retest

    When a fix ships, testers replay the same requests with the same accounts and update the status of each finding.

See how findings, CVSS 3.1 scores and fixes look in the final PDF.

View sample report (PDF)
From the blog

Choosing a pentest approach: guides

  • Penetration testing

    Black-Box vs White-Box vs Grey-Box Penetration Testing

    Black-box, white-box and grey-box penetration testing compared: what testers know in each, coverage and cost trade-offs, and how to pick the right one.

    8 min read
  • Penetration testing

    7 Types of Penetration Testing and Which One You Need First

    Types of penetration testing explained: web, API, mobile, network, cloud and social engineering tests, what each one finds, and which to buy first.

    10 min read

All penetration testing guides

FAQs

Grey-box penetration testing: FAQs

What is grey-box penetration testing?

Testers get partial knowledge: user accounts for each role and any documentation you already have, but not source code. They attack your app or API as real signed-in users would, and check whether each role can reach data or actions it should not.

Which test accounts should we give you?

One account for each role your app has, from the most limited user to admin. For multi-tenant apps, give us accounts in at least two separate tenants, so we can test whether one customer can reach another customer’s data. Use test accounts, not real users.

Do we need API documentation?

No, but it helps. An OpenAPI file or Postman collection shows testers endpoints the front end may not call, so less time goes on discovery and more on testing. Without docs, testers map the API from real traffic.

Where does AI fit in a grey-box test?

Replaying every role’s requests as other roles and tenants produces a lot of results. AI triages them: it filters out false positives and puts the likely access-control and tenant-isolation flaws first. A pentester then confirms each one by hand, so every reported finding is verified by a pentester. AI also drafts the write-up, which a tester reviews.

Is grey-box less realistic because you have accounts?

No. A real attacker can sign up as a customer, use a partner’s access, or buy or phish an account. Giving testers accounts up front skips work a patient attacker would do anyway, so your test budget goes on finding flaws.

Can a grey-box test also cover the outside view?

Yes. You can add an outside-in recon pass to the scope, so testers also map your subdomains and exposed hosts before signing in. We recommend the right mix on the scoping call.

Most attack paths cross more than one target. Test them together under one scope and one report.

  • Web application penetration testing

    Hands-on testing of your web apps for broken access control, injection, session flaws and business-logic abuse.

  • API penetration testing

    Every endpoint tested for object and function level authorization, token handling, data exposure and rate limits.

  • Mobile application penetration testing

    Your Android and iOS apps tested for storage, transport and binary protection flaws, together with the APIs they call.

Find out what your users can really reach