The smartphone has become the digital center of our lives and a key work tool. The mobile apps we install on it are today the main points of contact between customers and business - from banking and shopping, to booking services, to accessing corporate systems. Each such app is a de facto small, fully functional branch of your business, running on tens of thousands of different devices, on untrusted networks and in an environment over which, as a software developer, you have very limited control.
It is this specificity - operating on the client side, in a potentially “hostile” environment - that makes mobile application security a discipline with unique and complex challenges. Threats are no longer limited to the security of the server and the API with which the application communicates. A whole new attack surface is emerging: the app itself, its code, how it stores data on the device and how it communicates with the operating system. Conducting in-depth, specialized security testing of a mobile app is not an option today, but an absolute necessity to protect user data and a company’s reputation.
Shortcuts
- Why has mobile app security become such a critical area?
- What are the unique challenges and attack vectors in a mobile environment compared to web applications?
- What is the OWASP Mobile Application Security Verification Standard (MASVS) and how does it help with testing?
- What is the most common vulnerability - improper and unsecured data storage?
- Why is the lack of server certificate verification and “SSL pinning” so dangerous?
- How does nFlo perform comprehensive mobile application security testing?
Why has mobile app security become such a critical area?
The critical importance of mobile security stems from a combination of three factors: ubiquity, the value of the data and the unique attack surface.
Mobile apps have become the preferred interaction channel for many services. Users expect to be able to manage their finances, health data or business communications through them. This causes some of the most sensitive data to flow through and be stored in these apps, making them an extremely attractive target for attackers.
Most importantly, unlike a web application, which primarily runs on a server under our control, a mobile application is “handed over” to the user and installed on their device. This gives the attacker the ability to physically access the application’s code and data. He can install it on a “botched” or “jailbroken” (jailbroken) device, decompile it, analyze its operation in a controlled environment and try to extract hard-written secrets, such as API keys or passwords.
📚 Read the complete guide: OT/ICS Security: OT/ICS security - differences from IT, threats, practices
What are the unique challenges and attack vectors in a mobile environment compared to web applications?
While many threats are common (e.g., attacks on backend APIs), the mobile environment introduces a number of unique attack vectors that do not exist in the web browser world.
Unsecured data storage on the device: Mobile apps often store data locally to run faster or offline. If this data (e.g., session tokens, personal data, passwords) is stored unencrypted, in publicly accessible directories, an attacker with physical access to the device (or via malware) can easily steal it.
Unsecured communications: In addition to the standard attacks on TLS/SSL, in the mobile world there are risks associated with inter-process communications (IPC), where sensitive data can “leak” to other malicious applications installed on the same device.
Reverse Engineering: Attackers can download an app’s installation file (APK for Android, IPA for iOS) and analyze it to understand its logic, find hidden functions and extract permanently stored keys or passwords from the code.
Platform-specific vulnerabilities: Each operating system (Android, iOS) has its own unique security mechanisms and potential attack vectors that need to be considered during testing.
What is the OWASP Mobile Application Security Verification Standard (MASVS) and how does it help with testing?
As with other areas of security, the OWASP organization provides invaluable open standards to help structure the testing process. OWASP MASVS (Mobile Application Security Verification Standard) is a detailed framework that defines criteria for a secure mobile application.
MASVS is not a simple checklist. It is a maturity model that divides requirements into several levels of verification, from basic (L1) to the most stringent (L1+R, where “R” stands for additional resistance to reverse engineering). The standard is divided into eight key categories (V1-V8), which include:
-
V1: Architecture and Design
-
V2: Data storage and privacy
-
V3: Cryptography
-
V4: Authentication and session management
-
V5: Network communication
-
V6: Interaction with the platform
-
V7: Code quality and resistance to reverse engineering
-
V8: Resistance to tampering
For pentesters, MASVS, combined with its sister project OWASP Mobile Security Testing Guide (MSTG), which provides detailed “how to test” instructions, provides a comprehensive and internationally recognized methodology for conducting mobile application security audits.
What is the most common vulnerability - improper and unsecured data storage?
This is the absolute scourge of mobile apps and the number one threat on the OWASP Mobile Top 10 list. Developers, often for the sake of convenience, store sensitive information directly on the device in a way that does not adequately protect it.
The problem has many incarnations:
-
Storing data in plain text: Storing passwords, session tokens, API keys or personal data in plain text files, SQLite databases or in preferences files (SharedPreferences on Android, NSUserDefaults on iOS) without any encryption.
-
Poor implementation of cryptography: even if the data is encrypted, the key to decrypt it is often written “hard” in the application code, making it easy for an attacker to extract it using reverse engineering.
-
Data leakage into system logs: An application, in development mode, can write sensitive information in system-wide logs that can be read by other applications.
-
Storing data in backups: If application data is not properly flagged, it may be attached to an unencrypted backup of the device in the cloud (iCloud, Google Drive), from where it may leak.
Effective protection requires that all sensitive data stored on a device be encrypted with keys that are securely stored in system “key bundles” (Keychain on iOS, Keystore on Android) rather than in the app code.
Most common vulnerabilities in mobile applications (according to OWASP)
| Threat category | Risk description | A key defense mechanism |
|---|---|---|
| Improper storage of data | Storing passwords, tokens, API keys or personal data on a device in unencrypted form or with weak encryption. | Encryption of all sensitive data at rest. Use of secure, system-wide secret storage mechanisms (Keychain/Keystore). |
| Unsecured communication | No verification of server certificates (no SSL Pinning), transmission of sensitive data over unencrypted protocols (HTTP). | Enforcing communication over TLS only. Implementation of the “certificate pinning” mechanism (SSL/Certificate Pinning). |
| Improper authentication | Poor session management, storing credentials in code, no protection against PIN brute-force attacks. | Use of strong random session tokens. Implementation of biometrics. Secure storage of refresh tokens. |
| Poor code quality / Reverse engineering | Storing “hard” encryption keys and other secrets in the application code. Lack of mechanisms that make code analysis difficult. | Never put secrets in client-side code. Use obfuscation (obfuscation) techniques and detect “rooted” devices. |
Why is the lack of server certificate verification and “SSL pinning” so dangerous?
All secure communication of a mobile application with its backend is based on TLS (the successor to SSL) encryption. Fundamental to this process is verification by the application that the digital certificate presented by the server is authentic and trustworthy. Unfortunately, developers often make critical mistakes here.
The worst of these is to disable certificate validation altogether or configure the application to “trust” all certificates. This makes the application completely vulnerable to man-in-the-middle (MitM) attacks. An attacker, located on the same network as the victim (e.g., public Wi-Fi), can intercept the victim’s traffic, present the application with its own fake certificate, and then decrypt all communications, including transmitted logins, passwords and other sensitive data.
To prevent this, a technique called SSL/Certificate Pinning is used. It involves “sewing” into the application code information about what specific certificate (or its issuer) is expected from the server. If, during a connection attempt, the server presents any other certificate - even if it is formally correct, but does not match the “pinned” pattern - the application will immediately break the connection. This is an extremely effective protection mechanism against MitM attacks.
How does nFlo perform comprehensive mobile application security testing?
At nFlo, we have a dedicated team of experts specializing in offensive mobile application security. Our methodology is comprehensive, based on the internationally recognized OWASP MASVS and MSTG standards, and combines automated tools with the deep, creative manual analysis required to detect complex logic flaws.
Our testing process includes several key phases:
-
Static analysis (SAST): We decompile the application and perform a detailed analysis of its source code (if available) or disassembled code. We look for “hardwired” secrets, weaknesses in the implementation of cryptography and other bugs that are visible at the code level.
-
Dynamic Analysis (DAST): We run the application on controlled devices (including “rooted”/“jailbroken”) and, acting as a “man-in-the-middle,” intercept and analyze all its network communications. We test for resistance to query tampering, verify session management mechanisms and check that data is not “leaking” uncontrollably.
-
Data storage analysis: We examine the file system on the device to verify how the application stores data locally and whether it uses appropriate encryption and system mechanisms to do so.
The result of our testing is a detailed, technical report that not only identifies the vulnerabilities found and assesses their risk, but also provides developers with precise and implementable remediation recommendations, providing a valuable resource for the entire team.
Related Terms
Learn key terms related to this article in our cybersecurity glossary:
- Cybersecurity — Cybersecurity is a collection of techniques, processes, and practices used to…
- Cybersecurity Incident Management — Cybersecurity incident management is the process of identifying, analyzing,…
- Mass Storage System — A mass storage system is a technological infrastructure designed for storing,…
- Mobile Application Security Testing — Mobile application security testing is the process of evaluating and verifying…
- NIST Cybersecurity Framework — NIST Cybersecurity Framework (NIST CSF) is a set of standards and best…
Learn More
Explore related articles in our knowledge base:
- API security: How to protect the bloodstream of modern applications?
- Data storage infrastructure audit: Identify vulnerabilities, optimize performance and security
- OT vs IT security: How to effectively monitor and protect industrial networks?
- RidgeBot 6.0: AWS Security Audit and Advanced Windows Testing for Enterprises
- SD-WAN security: How to protect the wide area network in the era of cloud and remote working?
Explore Our Services
Need cybersecurity support? Check out:
- Security Audits - comprehensive security assessment
- Penetration Testing - identify vulnerabilities in your infrastructure
- SOC as a Service - 24/7 security monitoring
Explore Our Products
Solutions mentioned in this article that can help protect your organization:
- RidgeBot — Ridge Security
Cybersecurity for Your Industry
Learn more about cybersecurity in your industry:
Frequently asked questions
What is mobile application security testing and why is it necessary?
Mobile security testing is a systematic examination of an app's code, data storage, network communications, and API interactions to identify vulnerabilities that could expose user data or allow unauthorized access. It is necessary because mobile apps operate on devices and networks outside corporate control.
What is OWASP MASVS and how does it guide mobile security testing?
The OWASP Mobile Application Security Verification Standard (MASVS) is a framework that defines security requirements for mobile apps across categories such as data storage, cryptography, network communications, and authentication. It provides testers and developers with a common language and checklist for mobile security.
What are the most common security vulnerabilities in Android and iOS apps?
The most frequent issues include insecure local data storage (storing sensitive data in plaintext), weak or broken cryptography, missing SSL/TLS certificate validation, excessive app permissions, hardcoded secrets in the code, and insecure API communication with the backend.
What is SSL pinning and why does its absence create a security risk?
SSL pinning is a mechanism that forces an app to accept only a specific server certificate, preventing man-in-the-middle attacks even on networks with compromised or malicious certificate authorities. Without it, attackers on the same network can intercept and read all app traffic using a proxy tool.
How is mobile app security testing different from web application testing?
Mobile testing requires additional examination of the client-side app itself: its binary code, local storage on the device, inter-process communication, and hardware-specific features. It also involves platform-specific attack vectors on Android (APK reverse engineering) and iOS (jailbreak-based testing) that have no web equivalent.
