Mobile applications: black-box vs grey-box vs white-box testing

Pick black-box for an outside view of the shipped app, grey-box when authenticated flows and backend APIs need depth, and white-box when source and build access can test client-side logic. Combine them for high-risk apps, with the MASVS profile and data sensitivity setting the scope.

On this page

Mobile app black-box vs grey-box vs white-box testing: which to choose

Set test depth by the identities and data the app can reach, then choose the testing box that gives testers that access. Black-box testing gives an outside view: the tester works from the installed app and its public API surface, which is closest to what an unauthenticated attacker sees, and it shows what leaks through network traffic, local storage and exposed endpoints. Grey-box testing adds a test account for each role, such as a customer and a support agent, so the tester can check whether the backend enforces object-level authorization. That check matters because the OWASP API Security Top 10 2023 ranks Broken Object Level Authorization first (API1). White-box testing adds source code, build configuration and signing material, which suits checks for hardcoded secrets, key handling and business logic that runs on the device.

Most mobile engagements combine the three. A workable sequence is black-box work on the installed app and its traffic, grey-box role testing against the backend, then source review of the code that handles tokens, local storage and cryptographic keys. NIST SP 800-115 makes the same point, noting that organizations often combine techniques to reach an in-depth assessment at an acceptable level of risk. Before work starts, confirm in writing which API version, which environments and which account roles are in scope, and whether testers may use production accounts. A grey-box test against a staging backend that differs from production will not prove what production enforces, so ask the provider how they verify that the test environment matches what users run.

The MASVS profile should set depth more than the label does. The OWASP Mobile Application Security Verification Standard v2.1.0, released on 18 January 2024, defines L1 for basic requirements that apply to most apps, L2 for apps that handle sensitive data, and R for resilience against reverse engineering and tampering. In an illustrative case, an L2 banking app with R requirements needs white-box work on obfuscation and tamper checks that a black-box test cannot prove, while an L1 retail app may need little more than grey-box role testing. Ask the provider which MASVS control groups each phase covers, from MASVS-AUTH to MASVS-RESILIENCE, and which MASTG test cases they run, since the current MASTG is v2.0.0, released on 30 June 2026. If you need an accredited provider, confirm whether the firm holds CREST's OWASP Verification Standard accreditation, which covers mobile assessments at Levels 1 and 2.

Mobile app black-box vs grey-box vs white-box testing, side by side on scope and evidence

This table compares black-box, grey-box and white-box mobile app testing on goal, access, scope, method, evidence, fit, risk and the rules of engagement each one needs. Read each column as a starting point, since providers define these labels differently, so confirm each provider's definitions of access and scope in the statement of work. The main takeaway is that grey-box with role-aware accounts usually covers the authorization gaps that matter most for apps with backends, while white-box adds depth on storage and code at higher setup effort.

FactorBlack-boxGrey-boxWhite-box
GoalShow what an outside attacker with no insider knowledge can reach in the app and its backend.Test what a user with a normal or limited account can reach, including authorization gaps between roles.Find weaknesses in code, storage and logic using source, build artifacts and configuration.
Starting access and credentialsPublished app store build only. No test accounts, source or documentation.Installed app plus one or more test accounts with defined roles, often with API documentation.Source code, build files, architecture notes and test accounts, sometimes with a debug build.
Typical scopeInstalled app behavior, network traffic and reachable backend APIs. Local storage and source are usually out of view.Client app, local storage, traffic and backend APIs, with role and business logic checks. Source review usually limited.Source code, build configuration, local storage, traffic and backend APIs, including manual code review.
Method at buyer levelMostly dynamic testing on test devices, with traffic interception and API probing.Dynamic testing with known roles and data, plus targeted static checks of the package and storage.Static analysis of code and binaries, combined with dynamic runs to confirm each finding.
Depth of evidenceShows exploitable issues reachable from outside. Limited view of root cause and internal controls.Shows issues tied to roles and data, with root cause often traced to a specific endpoint or setting.Deepest root-cause detail, with code paths and configuration evidence, but unconfirmed static findings need runtime validation.
Best fitOutside-in assurance and checks on what an external attacker can reach from a published build.Most consumer and enterprise apps with accounts, roles and a backend, where authorization is the main risk.Apps handling sensitive data, pre-release builds, or where MASVS L2 or R claims need code-level proof.
Main risk of choosing it aloneMisses client-side secrets, weak local storage and code flaws that never surface through traffic.Role coverage depends on the accounts given. Missed roles or unusual flows can leave gaps.Static findings can overstate risk, and the test may miss what only runtime or a live backend shows.
What the rules of engagement must settleTest devices and accounts, traffic limits, third-party API boundaries, and whether production is in scope.Which roles and test data are provided, who creates accounts, and how the tester handles personal data in the backend.Code and build access, where analysis runs, secrets handling, and who can see source and findings.

What each approach finds and misses in a mobile app

Each approach sees a different part of the mobile app and its backend, so each leaves gaps the others fill. The cards below separate what a tester can observe from the outside, what a tester can reach with test accounts, and what the source code shows. Read them with the MASVS control groups in mind: a finding in one group can need evidence from another before its severity is clear.

Black-box finds transport and exposed components

Black-box work starts from the installed app or the store package and the traffic it sends, with no source code and no test accounts. It typically surfaces weak transport under MASVS-NETWORK, such as cleartext requests or certificate checks that accept untrusted certificates, and exported components or unprotected deep links under MASVS-PLATFORM. Confirm that the provider can route app traffic through an intercepting proxy on a test device, because that setup decides how much of the network group gets tested. Findings show what an attacker on the network or another installed app can already reach, which makes them easy for a developer to reproduce.

MASVS control groups

Black-box misses object-level authorization

A tester without test accounts cannot judge object-level authorization. Without two users holding different data, the tester cannot tell whether changing an object identifier in an API call returns another customer's record, which is the top entry in the OWASP API Security Top 10 2023. Black-box work also misses secrets compiled into the binary and data kept on the device under MASVS-STORAGE unless the tester has device access. Before signing, ask the provider which accounts and device access they will use, and whether any MASVS-AUTH claims depend on them.

Grey-box finds authentication and token flaws

Grey-box testing gives the tester test accounts at different privilege levels, and often a debug or test build of the app. With those, the tester can check MASVS-AUTH flows such as login, session expiry, step-up prompts and token reuse across roles. It can also test the API risks behind the app, including Broken Authentication and Broken Object Property Level Authorization from the OWASP API Security Top 10 2023. Token handling for OAuth and OIDC, covered in chapter V10 of OWASP ASVS 5.0.0, is testable with real tokens. The output is evidence that one user can act as another, which a developer can reproduce.

Grey-box misses code-only weaknesses

Grey-box work sees the app through its UI and API, so it misses code that no test account can reach. Hardcoded keys and leftover debug switches under MASVS-CODE can stay hidden even when the tester holds valid credentials. Resilience against reverse engineering and tampering, which the OWASP MAS profile R addresses, needs its own scope decision, since it turns on the binary and its runtime protections. Ask whether the scope includes static analysis of the shipped binary, because that is where these weaknesses are usually found.

White-box finds storage and crypto design

White-box work starts from source code and build configuration, so it can trace where sensitive data is written, how keys are generated and which logs carry personal data. It reviews MASVS-STORAGE and MASVS-CRYPTO decisions directly, and it can follow MASVS-PRIVACY data flows that an outside test cannot see end to end. Mapping findings to MASWE weakness entries and to MASTG test procedures gives the team a repeatable check for the next release. Ask the reviewer which build the source matches, because a review of a different version says little about the app in production.

White-box misses live backend exploitability

A source review alone does not show exploitability on the live backend. An authorization check that looks broken in code may be enforced by a gateway, a server-side rule or a production setting that differs from the repository, and the review cannot see any of them. Production data, server configuration and the behavior of the deployed API stay outside the review unless the engagement tests them. Pair the review with a live test of the API the app calls, and ask the provider to label each finding as confirmed on the running system or inferred from code.

How access level changes a MASVS-based mobile test

The three approaches can share one MASVS checklist and the MASTG test procedures for Android and iOS, so the access level changes what the tester can reach while running them, and the control list stays the same. Fix the profile before you fix the access level. OWASP's MAS project defines L1 for basic security requirements that apply to most apps, L2 for advanced security in apps that handle sensitive data, and R for resilience against reverse engineering and tampering. An L2 test of an app holding health or payment data needs deeper storage and network checks than an L1 test of a catalog app, and R controls are only partly reachable from outside the binary. The MASWE catalog maps each weakness to the MASVS control it breaks and links it to the MASTG test that checks it. Ask each provider to tag every finding with its MASWE entry so reports from different access levels can be compared control by control.

Most mobile backends are APIs, and the OWASP API Security Top 10 2023 ranks Broken Object Level Authorization (API1) first, followed by Broken Authentication (API2). A black-box tester holding only the app sees what the client sends, but cannot confirm that the server checks ownership of each object unless they hold a second account. Grey-box access with two test accounts in different roles lets the tester change an object identifier while logged in as one user and check whether the other user's data is returned. OAuth and OIDC token flows, covered in chapter V10 of ASVS 5.0.0, need the same kind of setup. Checking token issuance, refresh and revocation requires test accounts with known roles and an agreed rule on whether those accounts may touch production data. Ask the provider to list the accounts, roles and environments in the written scope, and to confirm who holds the credentials when the engagement ends.

MASVS v2.1.0, released on 18 January 2024, added the MASVS-PRIVACY category, which covers minimizing access to sensitive data, preventing user identification, transparency about data collection and user control over personal data. Access level changes how much of that category a test can verify. A black-box tester can observe permissions, network destinations and data leaving the device, while a white-box tester can trace in code where personal data is stored and forwarded. Ask for a data inventory in the scope so both views are tied to the same data flows. Then fix the procedure version. The MASTG releases list v2.0.0, released on 30 June 2026, so ask each provider whether it tests against that version, and whether the report names the MASTG version used. Certification comes from independent bodies, so treat the report as test evidence.

What a black-box, grey-box or white-box mobile engagement delivers

This table compares what each mobile test approach hands back to the client, from the written findings report through to retesting. Read each column as the likely deliverable set, because the final list depends on the app access, accounts and code access agreed in writing. The main takeaway is that grey-box and white-box work add evidence tied to accounts, backend endpoints and code, so list the exact deliverables in the written scope before work starts.

DeliverableBlack-boxGrey-boxWhite-box
Written findings reportDelivered, with findings based on what an outside user can observe in the app and its traffic.Delivered, with findings tied to the test accounts and roles the tester was given.Delivered, with findings tied to code paths and configuration as well as observed behavior.
Reproduction steps and evidenceSteps with screenshots and captures from the app as an outside user sees it.Steps run with the supplied accounts, plus request and response captures from the backend.Steps plus code-level proof, such as decompiled logic or instrumented runtime traces, where access allows.
Mapping to MASVS controls or MASWE entriesPossible where the weakness can be confirmed from behavior. Confirm the mapping format in the written scope.Usually included, linking each finding to the MASVS control group it affects.Usually included, with MASWE entries linked to the code location that produces each weakness.
Code location referencesGenerally absent, since the tester has no source access.Limited to what the tester can infer from decompiled or runtime behavior.Included, with file and line references where source access was granted.
Backend endpoint and role matrixEndpoints the app calls are listed. A role matrix appears only if roles can be compared.Usually included, showing which endpoints each supplied role can reach.Included, with the full endpoint inventory and an authorization matrix, where backend code access is granted.
Prioritized remediation guidanceFix direction per finding, prioritized by severity and exposure. Confirm the ranking method before work starts.Fix direction per finding, with priority set by the roles and data each account can reach.Fix direction per finding, including code changes and configuration steps for the client's developers.
Retest of fixesIncluded only if the written scope lists it, with the number of retest rounds stated in writing.Included only if the written scope lists it, covering the same accounts and endpoints as the original test.Included only if the written scope lists it, covering the code paths and configuration changed by each fix.

What drives cost in mobile app black-box vs grey-box vs white-box testing

Mobile test pricing follows the scope inputs more than the testing label. The five drivers below show what the provider's testers do, what your developers must supply, and which costs are one-time or recurring. Ask every provider to price these inputs as separate lines so the quotes compare on the same basis.

Platforms and build count

Android and iOS each have their own MASTG test procedures, so a dual-platform scope adds platform-specific work on top of the shared MASVS controls. Each build you want tested is a separate target, and builds reissued during the engagement add retest effort. Provider testers are paid for this work. Your developers pay in time to produce signed test builds and release notes for each platform. The first build set is a one-time cost, and each later release is recurring. Ask the quote to price each platform and build set as its own line.

MASTG releases

MASVS profile and controls

MASVS v2.1.0 organizes requirements into eight control groups, and the profile you choose sets the control count. L1 covers basic requirements for most apps, L2 covers apps that handle sensitive data, and R covers resilience against reverse engineering and tampering. Moving from L1 to L2, or adding R, widens the controls the provider tests, so it is usually the largest scope lever in a quote. Testers are paid for the wider work, and your team pays in time to decide which data counts as sensitive. Ask which profile and control groups are in scope, including MASVS-PRIVACY, which v2.1.0 added.

MASVS overview

Backend API surface and accounts

Most mobile backends are APIs, and the OWASP API Security Top 10 2023 ranks Broken Object Level Authorization first, so access control testing depends on having test accounts for every role. The number of roles, object types and OAuth or OIDC token flows sets how many authorization paths a tester must walk. Testers are paid for that walk. Your developers pay in time to create accounts, seed test data and answer questions about each endpoint. Ongoing cost rises when new endpoints ship between test cycles. Ask the quote to list roles, test accounts, endpoint count and who provisions each of them.

API Top 10 2023

Source and build access for white-box

White-box work adds source code review, which NIST SP 800-53 control SA-11 lists among developer testing activities alongside static analysis and manual code review, so source access is the main white-box cost lever. Effort scales with code size, the number of modules and the number of separate code paths per platform. Testers need read access to repositories, build scripts and dependency manifests. Your developers pay in time to grant that access and explain how the builds are produced. Grey-box work needs less of this. Ask for module count per platform, the third-party SDK list, and whether reverse engineering of release builds is included for R.

Retest cycles and evidence

Retests confirm that fixes closed each finding, and the number of cycles depends on how many rounds your release process allows. Retest work recurs after the first report, so ask whether it is priced separately. CIS Safeguard 18.4 asks for security measures to be validated after each test, which is a different step from confirming fixes, so ask whether both are included. If a customer or app review expects an accredited assessment, confirm the provider holds CREST OVS accreditation for the MASVS level you need, since DeployOpen does not issue certifications. Ask for a fixed retest count and the evidence each round delivers.

CREST OVS announcement

When compliance frameworks call for each mobile test approach

The frameworks you will be asked to meet name techniques, and none of them uses the mobile box labels, so choose the box only after you read the technique each requirement names. DORA Article 25(1) lists source code reviews where feasible alongside penetration testing, so a financial entity should ask whether a source review is feasible for its app and, if it is not, write down why. NIST SP 800-53 control SA-11 lists static code analysis, manual code review and dynamic analysis among its developer testing enhancements. Static analysis and manual review usually need source or build access, which points toward grey-box or white-box work, while dynamic analysis can run against a built app. CIS Safeguards 18.2 and 18.5 ask for external and internal penetration tests at least annually, which sets the frequency but does not name a box.

PCI SSC's penetration testing guidance v1.1 describes the work as essentially manual and says that simply running an automated tool does not satisfy the penetration testing requirement, so a scanner-only mobile engagement will not meet a PCI test whatever box it uses. If your app sits in a cardholder data environment, confirm with your QSA which technique they accept and whether the backend APIs belong in the same test. The OWASP API Security Top 10 2023 ranks Broken Object Level Authorization first, and most mobile apps depend on those APIs for their data. Google's Mobile Application Security Assessment, run through the App Defense Alliance, checks apps against MASVS Level 1 using the MASTG, and the Alliance states these reviews are limited in nature and do not guarantee complete safety. A MASA review can support the Data safety section of a Google Play listing, but treat it as a penetration test only if your agreed scope says so.

CREST's OWASP Verification Standard accreditation, announced on 28 October 2022, covers mobile assessments against MASVS Levels 1 and 2 alongside web assessments against ASVS. That accreditation applies to the assessing company: it confirms the company meets CREST's standard for doing the work, and it says nothing about whether your app passed. Before you sign, ask the provider which technique they will use for each requirement, which MASVS level and MASTG tests they will map to, whether source access is included, and what retest sits inside the fixed scope. Record each answer against the clause it supports, so your evidence matches the requirement wording, and confirm the final mapping with your assessor, who decides whether a given technique satisfies the clause.

What buyers ask before commissioning a mobile app test

How much does a mobile app security test cost?

DeployOpen does not publish a price list, and a mobile app test is priced from its written scope, so no standard figure applies. The main cost drivers are the number of platforms (Android, iOS or both), the MASVS level and whether resilience testing against reverse engineering and tampering (the R profile) is included, the number of user roles and features, and whether the backend APIs are in scope. Backend APIs matter because mobile apps usually obtain tokens from OAuth or OIDC flows and call APIs whose authorization checks sit outside the app. Testing and reporting are one-time costs, while retests, upgrades and continuous testing usually recur under a retainer. Ask every bidder to itemize the quote by platform, level and API scope so you compare like with like.

How long does a mobile app security test take?

No duration is published for this work, so the timeline has to come from the written scope. Duration follows the same drivers as cost: the platforms, the number of screens, roles and API endpoints, whether the tester has source code or only builds, and how many findings need validation and retesting. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, so ask for dates tied to milestones: build hand-off, test window, draft findings, fix window and retest. Also ask whether the schedule depends on staging access or your release calendar, since delays there usually stretch the schedule more than the test itself.

What does a mobile app test need from our internal team?

The buyer's team supplies builds, test accounts, a staging backend, design documentation and one accountable contact before testing starts.

  • Release builds for each platform, plus debug or test variants if the tester needs them, with a note on which build matches production.
  • Test accounts for every user role, and a staging backend with the same authorization rules as production.
  • API documentation, data flow notes and a list of third-party SDKs.
  • A decision on the MASVS level and profile, and copies of the privacy declarations the app publishes.
  • A named engineer who answers questions within an agreed window and approves access to the backend.

Ask the provider to list each input in the written scope, with its owner and the date it is due.

Can our internal engineers run a MASVS assessment themselves?

Yes, in principle, because OWASP publishes both the requirements and the test procedures. MASVS sets the control groups and requirements, and MASTG gives the testing procedures for Android and iOS, so an internal team can work through them. The gaps are usually skill, tooling and independence: resilience checks for the R profile need specialist tooling, and developers who test their own code are poorly placed to produce an independent view. Check which MASTG release you follow, since MASTG v2.0.0 was released on 30 June 2026 according to its GitHub releases. If an auditor, customer or regulator will read the result, agree in writing who signs off the report, which MASVS level applies and how evidence is recorded. An internal run can feed the backlog, and an external test adds a view independent of the build team.

Does a MASA review or OVS accreditation replace a mobile app test?

No. Neither one replaces a test of your own app. Google's Mobile Application Security Assessment (MASA), run through the App Defense Alliance, has authorized lab partners validate apps against MASVS Level 1 using the MASTG, and developers can show the review in the Data safety section of their Google Play listing. The App Defense Alliance states that MASA reviews are limited in nature and do not guarantee complete safety, and developers stay responsible for accurate Data safety declarations. CREST's OWASP Verification Standard (OVS) accreditation, announced on 28 October 2022, covers mobile assessments against MASVS Levels 1 and 2 and describes the accredited supplier. It does not report on your app's findings. If a customer or regulator asks for an accredited supplier, confirm the accreditation, then scope the test to your app's own data and risks.

When should a mobile app be retested after a security test?

Retest each fix before closing its finding, and retest again after changes that alter the app's attack surface. NIST SP 800-115 suggests regularly scheduled scanning interspersed with periodic penetration testing, so a single test is a snapshot of one build. Plan for triggers such as a major release, a new sign-in or token flow, a new third-party SDK, a change in how data is stored or sent, a backend API change, or an OS release that affects the app's controls. In the written scope, state how many findings the retest covers, which build and environment it uses, and what evidence closes each item. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, which suits teams that release often.

Which MASVS level should a mobile app security test target?

Choose the level from the sensitivity of the data the app handles, then write that level into the scope. Level 1 covers basic security requirements that apply to most apps, Level 2 adds advanced controls for apps handling sensitive data, and the R profile tests resilience against reverse engineering and tampering. The levels are not interchangeable, so a Level 1 result does not show Level 2 coverage. MASVS v2.1.0, released on 18 January 2024, also added the MASVS-PRIVACY control group, covering data minimization, prevention of user identification, transparency about collection and user control over personal data. Confirm whether privacy controls are in scope, because a test that skips them leaves those requirements unchecked.

How to pick the access level for a mobile app test

The diagram starts with whether the tester gets source code and build access. Without it, the path asks whether the test must reach authenticated roles, backend APIs or sensitive data at MASVS L2, and a yes sends the work to a grey-box engagement. A no leaves a black-box baseline. With source and build access, the path asks whether the app needs L2 coverage or resilience testing (R). A no leads to a white-box code review, and a yes leads to a combined engagement. Confirm what access your team can actually provide before choosing a branch, because the access you can staff determines the evidence you receive.

Access level follows source availability, then roles, APIs, sensitive data and resilience needs.

How DeployOpen scopes, runs and supports mobile app security testing

DeployOpen agrees the scope in writing before work starts, so the access model (black-box, grey-box or white-box), the apps and backend APIs in scope, and the MASVS control groups and testing profile are settled up front. Findings are documented so your security and compliance teams can review the evidence behind each result. Engagements are fixed-scope, and ongoing support is available as a retainer.

How we scope

  • The written scope names the access model for each app: black-box, grey-box or white-box.
  • We agree which platforms, app versions, builds and backend APIs are in scope before testing starts.
  • The scope records the MASVS control groups and the L1, L2 or R testing profile the work targets.

How we test

  • Testing procedures follow the OWASP MASTG, with MASWE weakness entries mapped to MASVS controls.
  • Grey-box work uses the test accounts, roles and API documentation you provide, recorded in the scope.
  • White-box work needs source access that you provide, so code-level findings map to the MASVS requirement they affect.

How we hand over

  • Each finding names its MASVS control, any matching MASWE entry, the affected platform and reproduction steps.
  • The report states the access model used, the scope tested and the evidence behind each result.
  • Confirm in the written scope whether a retest of fixed findings is included.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for later app releases.
  • Confirm which MASVS and MASTG versions the engagement uses, with MASVS v2.1.0 and MASTG v2.0.0 as the latest releases.
  • DeployOpen does not issue certifications or audit reports, so confirm with the body you need before scoping.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.