They bypass it because the OTP is still valid and still delivered, but the receiving device is no longer trustworthy. Once a malicious app can read SMS messages, it can relay the code to the attacker in real time. The authentication system sees correct credentials and a correct OTP, but it cannot tell that the code was intercepted on the victim device.
Why This Matters for Security Teams
Malicious APKs defeat OTP-based authentication by moving the trust boundary from the identity system to the endpoint. The OTP may be correct, but the device receiving it is already compromised, which means the control is validating a code rather than a trustworthy user interaction. That gap shows up in real incidents where mobile malware reads SMS, overlays login screens, and relays credentials fast enough to beat human response.
This is why point-in-time authentication is not the same as trustworthy access. Security teams often overestimate the protection provided by one-time passwords and underestimate how easily Android malware can intercept the second factor after initial device compromise. NHI Mgmt Group’s research on the Ultimate Guide to Non-Human Identities shows that identity controls fail most often when credentials remain valid longer than the environment stays trustworthy. OTPs are still useful in some workflows, but they are not a defense against a hostile endpoint. In practice, many security teams encounter OTP bypass only after account takeover, not through deliberate validation of device trust.
Controls such as NIST SP 800-53 Rev 5 Security and Privacy Controls and ISO/IEC 27001:2022 Information Security Management both point toward layered access governance, but neither assumes SMS delivery alone can establish trust.
How It Works in Practice
The bypass usually follows a predictable chain: the victim installs a trojanised APK, the app requests SMS or accessibility permissions, and the malware silently captures incoming OTPs. From there, the attacker enters the code into the real login flow before the session expires. The authentication server sees a valid password, a valid OTP, and no obvious protocol failure, so the attack looks legitimate unless device integrity and behavioural signals are checked.
Effective defence depends on replacing OTP-centric trust with stronger signals. Current guidance suggests combining several controls:
- Use phishing-resistant factors such as FIDO2 or passkeys where possible.
- Bind authentication to device posture and attestation, not only to the OTP value.
- Detect suspicious APK sideloading, accessibility abuse, SMS permission abuse, and overlay behaviour.
- Shorten session lifetimes and step up authentication for high-risk actions.
- Correlate login attempts with telecom, endpoint, and mobile threat telemetry.
That approach aligns with the compromise patterns described in Schneider Electric credentials breach and the broader identity exposure patterns covered in Twitter Source Code Breach, where credentials were only part of the problem and trust in the access path was the real weakness. OTPs still have a role as a legacy step-up control, but best practice is evolving toward resistant authenticators and device-aware policy. These controls tend to break down when organisations allow sideloading, unmanaged Android devices, or SMS as a fallback for privileged access because the endpoint can be compromised without triggering the identity system.
Common Variations and Edge Cases
Tighter authentication often increases user friction and support overhead, so organisations have to balance usability against the risk of endpoint compromise. That tradeoff becomes sharper in environments where workers rely on BYOD, field devices, or markets where passkey adoption is still uneven.
There is no universal standard for this yet, but current guidance suggests treating SMS OTP as a transitional control rather than a strong proof of identity. In lower-risk consumer apps, OTP may still reduce opportunistic abuse. In regulated or high-value environments, it should be paired with device attestation, app integrity checks, and conditional access. The important edge case is that a malicious APK does not need to break encryption or guess the OTP. It only needs a path to observe the message or steal the session after submission.
Security teams should also watch for non-SMS variants such as push fatigue, notification abuse, and man-in-the-device malware. The common failure mode is assuming that “second factor” means “secure factor,” when the real question is whether the factor is delivered to a trusted endpoint. That distinction is central to modern identity assurance and to the operational lessons in NHI Mgmt Group’s identity research.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | PR.AA-01 | Addresses authentication assurance and identity verification under compromised endpoint conditions. |
| NIST AI RMF | Supports governance of risky automated or adaptive access decisions tied to identity assurance. | |
| OWASP Non-Human Identity Top 10 | NHI-03 | Relevant where stolen credentials and weak secret handling enable account takeover paths. |
| OWASP Agentic AI Top 10 | Applicable when malicious apps behave as autonomous tooling that can relay secrets in real time. | |
| CSA MAESTRO | Useful for runtime trust and access decisions in dynamic, tool-using software environments. |
Enforce contextual access policies and monitor execution paths for suspicious credential relay behavior.
Related resources from NHI Mgmt Group
- What is the difference between role-based access and API key governance for NHI security?
- What is the difference between risk-based access and traditional step-up authentication?
- How do JWTs compare with traditional session-based authentication for access control?
- Why do malicious PDFs still bypass traditional email security controls?