Mobile app security testing means checking a phone app for weak spots before attackers find them.
This guide is for students, new developers and anyone who pays for an app to be built. You do not need to test apps yourself to be affected: if your business has an app, its testing decides how safe your customers' data is.
In short
- Testers check an app in two main ways: by reading its code and files, and by watching it while it runs.
- They look at where the app stores data, how it talks to its servers and whether it hides passwords or keys inside itself.
- A free, widely used checklist from OWASP, a non-profit security community, sets out what a well-protected app should do.
- Testing works best early and often, with fixes checked again before each release.
What you will learn
- Explain the two main ways an app is tested.
- Spot the common weak spots testers look for.
- Check that an app test has a clear scope and written permission.
- Ask an app supplier how and when they test.
- Reading the parts (static testing)
- checking an app's code and files without running it.
- Watching it run (dynamic testing)
- using the app and watching what it does and sends.
- Taking it apart (reverse engineering)
- unpacking a finished app to see how it was built.
What is mobile app security testing?
Think of a crash test for a new car model. Before the car goes on sale, testers drive it into walls on purpose, so buyers do not find the weak spots the hard way.
App security testing does the same for a phone app. A tester tries to make the app leak data, skip its sign-in or trust the wrong server. They do this in a safe, agreed way, then report what they find so it can be fixed.
There are two main ways to test. Static testing means examining the code or the app's files without running them. Dynamic testing means testing the app while it runs, to see what a user can reach and how the app talks to its servers.[2] Good tests usually mix both.
Where the comparison stops working: a car is crash-tested once before sale. Apps change with every update, so one test before launch is not enough. Each big change can bring new weak spots.
Why does it matter?
Once an app is in an app store, anyone can download it and look inside. Whatever the app carries, a curious stranger can find.
A common mistake is leaving secrets inside the app itself, such as an API key, a password that lets the app use another service. A free security guide for app makers warns that anyone who downloads the app may be able to pull such secrets out. Attackers could then run up charges or reach the services behind the app.[3]
If you are learning to build apps
What could happen: a key you leave in your app is pulled out by a stranger and used on your account.
Check this: before each release, look for passwords and keys inside the app's files.
If you pay a supplier to build your app
What could happen: the app ships untested and leaks customer details.
Check this: ask for a test report before launch, and a retest after fixes.
If you are a student thinking of a testing career
What could happen: you test an app you do not own and break the law without meaning to.
Check this: practise only on apps you built or that are made for practice.
What does it look like?
Here is a made-up page from a test report. The app is a fictional food delivery app.
Example only. All values are made up.
APP TEST FINDINGS - "QuickBite" app, version 0.0-EXAMPLE
Scope agreed: Android and iPhone app, test servers only (1)
Finding 1 HIGH: map service key found inside the app files (2)
value seen: EXAMPLE-MAPKEY-0000-FAKE
Finding 2 MED: home address saved on the phone unprotected (3)
Finding 3 LOW: debug messages show internal server names (4)
Retest: booked for after fixes (5)
- What the tester was allowed to test, agreed in writing first.
- In a real file, this line would contain a key the tester pulled out of the app.
- Personal data left on the phone without protection.
- Leftover developer messages that give clues about the servers.
- The fixes are checked again before release.
Why this is risky: every copy of the app carries the key from finding 1. Anyone who downloads the app may be able to take it. The home addresses in finding 2 may be read by anyone who gets the phone's data.
The safer way: the app asks its own server to call the map service. The key stays on the server. The app saves as little personal data as it can, and uses the phone's built-in protection for the rest.
How does it work?
A typical test follows five stages, which match the OWASP mobile testing guide.[2]
- Agree the scope. The app owner and tester agree what will be tested, what data is sensitive and give written permission.
- Learn the app. The tester reads about how the app works and which servers it talks to.
- Map the weak spots. They list the ways in, such as screens, stored files and network calls, and rank the most likely problems.
- Test safely. They try to confirm each suspected problem, using static and dynamic testing, on test systems where agreed.
- Report and retest. They write up each finding, how serious it is and how to fix it. After fixes, they check again.

Testers also use a shared checklist. The OWASP Mobile Application Security Verification Standard, or MASVS, groups what a safe app should do into eight areas.[1] In plain words, they cover:
- where data is stored on the phone;
- how codes and locks (encryption) are used;
- how users sign in and what they may reach;
- how the app talks to its servers;
- how it uses phone features like permissions;
- the quality of its code and the shared parts it uses;
- how hard it is to take apart or tamper with;
- how it handles people's personal data.

Testing does not stop at launch. A UK government code of practice for app developers asks them to give people a way to report weak spots privately. It also asks them to release updates that fix security flaws. When a shared part inside the app gets a security fix, the app should be updated too. The code is voluntary.[4]
Organisations that use apps made by others can run a similar check before staff install them. This is often called app vetting: making sure an app meets the organisation's security needs.[5]
A worked example
Yara Falk runs a small, fictional bakery chain. A local developer has built her a new ordering app, and it launches in three weeks.
Yara remembers the crash-test picture. She would not sell a car that nobody had tested, so she books a test with Lars Strand, an independent app tester.
First they agree the scope in writing: both phone versions of the app, using the test server and fake customer accounts. Lars will not touch live customer data.
Lars starts by reading the app's files. Inside, he finds a key for the payment service's test system, left in by mistake. He then runs the app on a test phone. He sees that it saves customers' phone numbers without protection.
His short report lists both findings, rates the key as high risk and explains the fixes in plain words. Yara's developer removes the key from the app, has the server make those calls instead and cancels the old key. He also protects the saved phone numbers.
A week later Lars retests. Both problems are fixed, and he finds nothing new in the areas he checked.
The app launches on time. Yara adds one line to her supplier contract: every big update gets a short retest before release.
Myths and mistakes
| What people think | What is true |
|---|---|
| The app store checks apps, so we do not need to. | Stores run their own checks,[4] but they do not know your app's purpose or data. Your own test is still needed. |
| Nobody can see inside a finished app. | Anyone can download it and unpack it. Keys and passwords left inside can be pulled out.[3] |
| One test before launch is enough. | Each big update can add new weak spots. Test again when the app changes. |
| An automatic scan is the same as a full test. | Scanners catch common problems. A person is still needed to review results and check how the app really behaves.[2] |
| Hiding a key inside the code keeps it safe. | Hidden is not the same as safe. Keep keys on your server, not in the app. |
What can I do this week?
- Ask your app supplier when the app was last security tested, and by whom.
- Check that no passwords or keys are stored inside the app.
- Read the eight areas of the OWASP mobile checklist and note which apply to your app.
- Set up a simple way for people to report security problems in your app.
Checklist
- Every test has a written scope and permission before it starts.
- Tests use test servers and fake data unless agreed otherwise.
- The app holds no passwords, keys or other secrets.
- Both static and dynamic testing are used.
- Findings are fixed and retested before release.
- Big updates trigger a new test.
- Shared parts used by the app are kept up to date.
- People can report security problems privately.
Common questions
Is it legal to test an app?
It is legal when you own the app or have written permission from its owner. Testing someone else's app or servers without permission may break computer misuse laws. Students should practise on apps they built or apps made for practice. See Computer Misuse Laws for Beginners.
What is the difference between static and dynamic testing?
Static testing reads the app's code and files without running it. Dynamic testing watches the app while it runs and talks to its servers. Each finds problems the other can miss, so a good test uses both.
Do iPhone and Android apps need separate tests?
Usually, yes. The two systems store data and handle permissions differently, so the OWASP testing guide has separate sections for each.[2] A test can cover both, but the tester checks each version on its own.
How is app testing different from making my phone safe?
App testing is done by the people who build the app, before and after release. Keeping your own phone safe is about updates, settings and which apps you install. See Mobile App Security for Beginners for the user side.
Why does a key inside an app matter?
A key lets the app use another service, such as maps or payments. If it sits inside the app, anyone who downloads the app may be able to copy it and use that service in your name. Keep keys on your server instead.
Where next?
Ready for the detail? Read the practitioner guide: Mobile App Security Testing Guide. It goes further into how to scope a test, the testing tools and methods, and how to build testing into the release process.
Also useful:
- OWASP MASVS
- OWASP Mobile Top 10 for Beginners
- Code Scanning Tools for Beginners
- API Keys for Beginners
- Penetration Test Reports for Beginners
Related NHI Mgmt Group resources: SAST vs DAST · Secure Software Development Lifecycle for Beginners · Non-Human Identities for Beginners
Key terms
- Static application security testing
- Checking an app's code or files for weak spots without running it.
- Dynamic application security testing
- Testing an app while it runs to see how it behaves and what it sends.
- Reverse engineering
- Taking a finished app apart to see how it works.
- MASVS
- OWASP's free standard listing what a well-protected mobile app should do.
- API key
- A secret code one program uses to prove it may use another service.
- Hard-coded credentials
- Passwords or keys written straight into an app's code or files.
- Penetration testing
- An allowed, planned test attack to find weak spots before real attackers do.
Sources and further reading
- OWASP Mobile Application Security (MAS): MASVS, MASTG and MASWE. OWASP Foundation. https://mas.owasp.org/MASVS/, accessed 28 Nov 2026.
- OWASP MASTG: Mobile Application Security Testing. OWASP Foundation. https://mas.owasp.org/MASTG/0x04b-Mobile-App-Security-Testing/, accessed 28 Nov 2026.
- MASWE-0004: Sensitive Data Hardcoded in the App Package. OWASP Foundation. https://mas.owasp.org/MASWE/MASVS-STORAGE/MASWE-0004/, accessed 28 Nov 2026.
- Code of practice for app store operators and app developers (updated version). Department for Science, Innovation and Technology, UK Government, 24 October 2023. https://www.gov.uk/government/publications/code-of-practice-for-app-store-operators-and-app-developers/code-of-practice-for-app-store-operators-and-app-developers-new-updated-version, accessed 28 Nov 2026.
- NIST SP 800-163 Rev. 1: Vetting the Security of Mobile Applications. National Institute of Standards and Technology, April 2019. https://csrc.nist.gov/pubs/sp/800/163/r1/final, accessed 28 Nov 2026.