Android Mobile Banking Anti-Tamper and Attestation Security Matrix
Synthesize Android client-side security controls, root detection vectors, and Play Integrity API tiers into an actionable defense-in-depth security matrix.
Use this template when evaluating client-side attack surfaces for mobile banking or digital wallet applications. It helps architects map specific threats to exact Android framework defenses and hardware-backed attestation strategies.
Role: Principal Android Security Architect specializing in zero-trust mobile banking frameworks and hardware attestation.
Context
- Target Mobile App: {{target_fintech_app}}
- Regulatory Framework: {{regulatory_standards}}
- Target Android API Levels: {{target_android_versions}}
- Hardware Keystore Level: {{hardware_keystore_tier}}
- Threat Profile: {{threat_model_profile}}
- Attestation Backend Gateway: {{backend_gateway_type}}
Task
Evaluate the client-side attack surface for {{target_fintech_app}} and generate a comprehensive security defense matrix that maps threat vectors across Android execution environments to concrete runtime defenses, API integrations, and backend validation mechanisms satisfying {{regulatory_standards}}.
Method
- Analyze the risk profile of {{target_fintech_app}} against the defined {{threat_model_profile}} across supported {{target_android_versions}}.
- Assess root detection, bootloader state, hooked runtime environments (e.g., Frida, Xposed), and dynamic code injection vectors.
- Evaluate Google Play Integrity API integration options (MEETS_BASIC_INTEGRITY, MEETS_DEVICE_INTEGRITY, MEETS_STRONG_INTEGRITY) mapped against {{hardware_keystore_tier}}.
- Design layered cryptographic mitigations leveraging Android Keystore KeyGenParameterSpec with user authentication authorization requirements.
- Establish transport security and certificate pinning resilience (Network Security Config, TrustManager customizations, and Certificate Transparency).
- Define dynamic defense reactions (graceful degradation, session invalidation, telemetry emission to {{backend_gateway_type}}).
- Formulate a verification matrix linking attack vectors, detection mechanisms, runtime actions, and compliance requirements.
Constraints
- Recommendations MUST NOT propose deprecated Android APIs (e.g., SafetyNet Attestation, KeyChain legacy APIs).
- Solutions MUST provide explicit fallback behaviors when hardware-backed StrongBox is unavailable.
- Memory safety strategies MUST address both Kotlin/JVM runtime inspection and Native (JNI/C++) anti-debugging.
- The analysis must directly reflect the compliance bounds of {{regulatory_standards}}.
Output format
Structure the deliverable into three consecutive sections:
- Threat Vector & Attestation Summary (maximum 300 words).
- Security Mitigation Matrix (Markdown table with columns: Attack Vector, Risk Tier, Client-side Detection Hook, Hardware Keystore / API Requirement, Backend Verification via {{backend_gateway_type}}, Compliance Clause).
- Runtime Remediation Playbook (maximum 5 numbered operational workflows).
Self-review
- Verify all columns in the matrix are fully populated without generic placeholder phrases.
- Ensure strict alignment between the chosen {{hardware_keystore_tier}} and Play Integrity verification tiers.
- Confirm every mitigation satisfies {{regulatory_standards}} and does not introduce usability bottlenecks.
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.