Contents
App penetration testing is a controlled attack by security experts that uncovers vulnerabilities in your app, APIs and backend before real attackers find them. It is particularly worthwhile before the first launch, after major changes and for apps that handle sensitive data or payments. This guide explains when to test, what a good pentest covers and how to make the most of the results.
What an app pentest is – and what it is not
In a penetration test, testers use the methods of real attackers to bypass security controls: extracting data, taking over other users' accounts, escalating privileges or tampering with the app. Unlike automated scans, a pentest combines tools with manual analysis and creativity. Logic flaws in particular – for example a user seeing someone else's orders simply by changing an ID – are not reliably found by any scanner.
A pentest is no substitute for secure development, though. It is a snapshot that checks whether the built-in protections hold. The foundation is secure architecture, code reviews and automated testing during development, as described in our article on app security according to OWASP Mobile.
When a penetration test pays off
Not every app needs a pentest every quarter. These are the typical triggers:
- Before the first go-live if the app processes personal data, health data, payments or business data.
- After significant changes to authentication, permissions, payment processing, APIs or infrastructure.
- Regularly, often annually, for apps with high protection needs.
- On request from customers, partners, insurers or regulators, for instance in tenders or supplier audits.
- Under regulatory pressure, for example in finance or healthcare, or when your customers fall under NIS2. Background in NIS2 and the Cyber Resilience Act.
For a simple information app without login or user data, automated scans and a careful review are often enough. The more sensitive the data, the stronger the case for manual testing.
What gets tested in an app
A mobile app is only the tip of the system. Most critical vulnerabilities sit in the APIs and backend. A complete test therefore covers several layers:
| Area | Typical checks |
|---|---|
| App binary | Hard-coded keys, reverse engineering, tamper protection, debug leftovers, third-party SDKs |
| On-device data storage | Unencrypted data, plain-text tokens, logs, caches, backups |
| Network communication | TLS configuration, certificate validation, certificate pinning where appropriate, data leaks |
| Authentication and sessions | Login, password reset, token lifetimes, passkeys, social login, brute-force protection |
| API and backend | Object-level authorisation, input validation, rate limiting, error messages, admin access |
| Platform integration | Deep links, intents, WebViews, permissions, push content |
The OWASP Mobile Application Security Verification Standard (MASVS) and its testing guide, along with the OWASP Top 10 lists for web and APIs, are commonly used as the reference framework. Ask providers which standard they follow.
Black, grey or white box: which approach fits?
- Black box: Testers receive only the app, like an external attacker. Realistic but time-consuming – a lot remains undiscovered because time is spent on reconnaissance.
- Grey box: Testers receive test accounts with different roles, API documentation and architecture information. In practice usually the best ratio of effort to insight.
- White box: Additional access to the source code. Especially thorough, worthwhile for high protection needs or combined with a code audit.
For most business apps we recommend a grey-box test. It focuses testing time on actual vulnerabilities rather than information gathering.
The app pentest process in seven steps
- Scoping: Which apps, platforms, APIs and environments are in scope? What is explicitly excluded?
- Agreement: A written engagement with test window, contacts, emergency contact and permission from hosting providers where their terms require it.
- Provide a test environment: Ideally a production-like staging environment with test data and test accounts for every role.
- Execution: Static and dynamic analysis of the app, manual testing of the API and business logic.
- Report: Vulnerabilities with severity, evidence, risk and a concrete recommendation, plus a management summary.
- Remediation: Prioritise by risk, fixes by the development team.
- Retest: Verify that the fixes work – agree on this step when you commission the test.
Costs and choosing a provider
Costs depend mainly on scope: number of platforms, size of the API, number of roles and desired depth. As a rough guide, the range runs from a few thousand euros for a focused test of a manageable app into five figures for extensive platforms with many interfaces. Get several quotes based on the same scope, otherwise they are not comparable.
When choosing a provider, look for:
- demonstrable experience with mobile apps, not just web applications,
- a sample report that is clear and concrete,
- independence from the development team,
- clear rules on confidentiality and handling of test data,
- an included or fixed-price retest.
Schedule the pentest so there is still time for fixes before launch – ideally two to four weeks. More items for the final phase are in the app launch checklist. If you build an app with us, we factor security requirements and test windows into the fixed-price offer from the outset; you can request one via the offer wizard.
Note: Penetration tests may only be carried out with the explicit permission of the system owner. This article is not legal advice.
Agentic coding workshop for your team? From €799 net – request a quote by e-mailConclusion
A penetration test pays off whenever an app handles sensitive data or payments, before the first launch and after major changes. Test not only the app but above all the API and backend, choose a grey-box approach with a clear scope and plan time for remediation and retesting. That turns the pentest from a compliance chore into a genuine quality gain.
Frequently Asked Questions
How often should an app be penetration tested?
At least before the first launch and after significant changes to security-relevant functions. For high protection needs, an additional regular test – often annually – is common.
Isn't an automated security scan enough?
Scans find known patterns such as outdated libraries or misconfigurations. They rarely detect logic flaws in permissions and workflows – that requires manual testing.
How long does an app pentest take?
The actual testing phase usually takes a few days to a few weeks depending on scope. Preparation, reporting, remediation and retesting come on top and should be part of your project plan.
Should the pentest be run in production?
Testing is usually done in a production-like staging environment with test data. Production testing is possible but requires special arrangements to avoid data loss and outages.