+MASTG-BEST-0047 Continuous Anti-Debugging Checks (Android)

MASTG-BEST-0047 Continuous Anti-Debugging Checks (Android)

Implement frequent anti-debugging checks during sensitive execution paths instead of relying on a one-time check at startup.

A one-time check is easy to bypass because an attacker can attach a debugger after initialization and continue analysis without triggering the initial detection logic. Re-checking debugger state at runtime raises attacker effort and improves resilience.

On Android, you can combine Java and native checks depending on your threat model. For example, use Debug.isDebuggerConnected()) in Java flows and complement it with native checks in sensitive JNI paths.

Furthermore, tight continuous polling loops can be resource heavy. A good balance is to implement checkpoint-based checks before sensitive actions (for example, key use, payment approval, privileged API calls, or secrets access) and short periodic checks only while sensitive flows are active. This model reduces overhead while still making post-start debugger attachment harder.

Treat anti-debugging as a defense-in-depth control, not as a standalone guarantee. Advanced attackers can still bypass checks through patching, instrumentation, or hooks.

1. Áttekintés

Megnevezés Szabvány

1.1 Hivatkozások

1.2 Azonosított követelmények

1.3 Kapcsolódó szabályozások

2. Azonosított követelmények

Követelmények
Forrás Követelmény

3. Kapcsolódó szabályozások

Szabályozások
Forrás Szabályozás

Kapcsolt feladatok

  • OWASP -

    EN: Publications of the OWASP Foundation, https://owasp.org/. OWASP® is a registered trademark of the OWASP Foundation, Inc.; GRCA is not affiliated with, nor endorsed by, the OWASP Foundation. Only the versions published by OWASP are authoritative.

    DE: Veröffentlichungen der OWASP Foundation, https://owasp.org/. OWASP® ist eine eingetragene Marke der OWASP Foundation, Inc.; GRCA steht in keiner Verbindung zur OWASP Foundation und wird von ihr nicht unterstützt. Maßgeblich sind allein die von OWASP veröffentlichten Fassungen.