Back to Blog
Mobile SecurityOWASPiOSAndroid

Mobile App Security: Understanding OWASP MAS Testing

October 14, 202510 min read
Mobile App Security: Understanding OWASP MAS Testing

A mobile app runs on a device you do not control, in the hands of a user who might be an attacker. That changes the testing model completely: you assume the phone is rooted, the traffic is intercepted, and the app binary is being pulled apart. The OWASP Mobile Application Security project (MASVS and MASTG) is the map we follow. Here is what that looks like in practice.

Start with local storage and secrets

The first question is what the app leaves lying around on the device. On Android we go through SharedPreferences, internal and external storage, WebView caches, and SQLite databases; on iOS, the Keychain, plists, and user defaults. A rooted device and a few commands surface most of it:

bash

# Pull an Android app's private data directory for review (test device you own)
adb shell run-as com.example.app tar -cf - /data/data/com.example.app   | tar -xf - -C ./app-data-review

# Grep the extracted files for tokens, keys, and passwords
grep -rniE 'token|secret|password|api[_-]?key|BEGIN .* PRIVATE KEY' ./app-data-review

Assume the device is hostile

Next we test runtime integrity. Root and jailbreak detection, SSL pinning, and anti-tampering should slow an attacker down, but the app must never rely on them as its only defense. We use Frida and Objection to instrument a running app and confirm that the server, not the client, enforces the important rules.

bash

# Inspect an app at runtime and test SSL pinning bypass resistance (authorized testing)
objection -g com.example.app explore
# within objection:  android sslpinning disable

The key principle: every check the app performs on the device can be bypassed by a determined attacker with a rooted phone. Client-side controls raise the cost of an attack; the server is what actually has to enforce authorization, ownership, and limits.

The API is the real target

Most serious mobile findings are not on the phone at all, they are in the API behind it. If the backend assumes the app enforces ownership, an attacker who swaps a token or an object ID gets someone else's data. That is broken object level authorization, and it is as common in mobile backends as it is in web APIs, we cover it in depth in why BOLA remains the number one risk.

Transport and sessions

TLS should be mandatory with modern ciphers and no cleartext fallback. Access tokens should be short-lived, refresh tokens should rotate, and biometric flows need server-side re-verification for sensitive actions so a local bypass does not equal account takeover.

Shipping an iOS or Android app that handles anything sensitive? Our mobile application security testing follows OWASP MAS end to end, app and backend. Get in touch to scope it.

Need Help With Security Testing?

Our experts can help you identify and fix vulnerabilities before attackers find them.

Ask for a quote

Get a fixed price

Tell us what you want tested and why now. We reply with a few scope questions, then a fixed quote.

Ask for a quote

150+

Pentests performed every year

800+

Vulnerabilities found in the past year

15+

Industries served

100%

Client satisfaction

Let's connect

How can we help you?

We use your details only to answer your message. Forms are delivered to our inbox by Web3Forms. Privacy statement

Protect what mattersLet's talk security

Ready to take your business's security to the next level? Our team is here to help you identify and resolve vulnerabilities before they become threats. Get in touch today through our contact form, and let's discuss how we can secure your digital environment with expert precision.

Got questions?We got the answers

Penetration testing, or "pen testing," is a simulated cyberattack against your systems to identify and exploit vulnerabilities. It's essential for organizations of all sizes because it helps uncover security flaws before malicious hackers can exploit them. Regular pen testing ensures your systems hold up and stay aligned with standards like PCI DSS and ISO 27001.

The frequency of penetration testing depends on several factors, such as the size of your business, the sensitivity of the data you handle, and regulatory requirements. However, we recommend at least annual penetration testing, especially after significant changes to your infrastructure or applications. This helps to ensure continuous protection against evolving threats.

A vulnerability assessment is a high-level review to identify potential security weaknesses, often through automated tools. A penetration test goes deeper, simulating real-world attacks to actively exploit vulnerabilities and determine their impact. The result is a detailed report, offering insights into how attackers could compromise your systems and providing actionable remediation steps.

No. At The Pentest Company, we conduct tests in a controlled environment to ensure minimal disruption. We work closely with your team to schedule testing during off-peak hours if necessary, and we provide a thorough plan before starting the test to ensure there are no surprises.

Absolutely. Our penetration testing services are designed to meet industry standards and frameworks, including OWASP Top 10, NIST, and PCI DSS. Our certified experts ensure that the tests are thorough, professional, and aligned with the specific compliance needs of your business.

Our tests start at EUR 2,500 for two days, including the report. Most web application tests fall between EUR 2,500 and 9,600, depending on size and the number of user roles. Our pricing page shows the typical range per test type. Your quote is a fixed price, and it does not go up if the test takes longer than we planned.

With years of experience and a team of certified experts, The Pentest Company focuses on actionable insights in detailed reports, helping you stay ahead of security threats. Our services are designed to meet industry standards, and we customize every test to meet the specific needs of your business.