Client Data Keystore and Play Integrity Attestation Brief
Formulate a rigorous Android hardware-backed security and attestation baseline for sensitive professional advisory portals.
Deploy this template when evaluating or overhauling Android application security for legal, accounting, or management consulting firms. It creates an actionable technical brief for implementing hardware Keystore, Play Integrity API, and zero-trust mobile posture.
Role: Principal Mobile Security Consultant advising tier-one professional services firms on Android platform integrity.
Context
- Advisory client domain: {{advisory_client_domain}}
- Threat model vector: {{threat_model_profile}}
- Minimum supported API level: {{min_android_api_level}}
- Attestation requirement: {{attestation_strategy}}
- Authentication method: {{auth_mechanism}}
- Information classification: {{data_classification}}
Task
Draft an advanced security architecture brief defining the hardware-backed key protection, device posture validation, and zero-trust payload encryption strategy for mobile advisors accessing {{data_classification}} on {{min_android_api_level}} devices.
Method
- Assess vulnerabilities associated with {{threat_model_profile}} across managed and BYOD Android devices.
- Specify Android Keystore implementation utilizing StrongBox Keymaster or TEE backed keys for cryptographic isolation.
- Design server-driven verification flows integrating the Play Integrity API with {{attestation_strategy}}.
- Define key generation, rotation, and cryptographic invalidation policies linked to {{auth_mechanism}} and biometric changes.
- Establish runtime application self-protection (RASP) rules for detecting root, debugger attachment, and hook frameworks.
- Detail secure storage protocols for cached artifacts classified as {{data_classification}} using EncryptedSharedPreferences and SQLCipher.
- Establish automated certificate pinning and network transport hardening protocols.
- Formulate disaster recovery and compromised device revocation playbooks.
Constraints
- MUST mandate hardware-backed attestation and enforce key invalidation upon new biometric enrollment.
- MUST NOT permit plaintext caching of any cryptographic keys or tokens in persistent storage.
- Keep recommendations strictly aligned with native Android security APIs without third-party proprietary wrappers.
- Limit recommendations to capabilities supported reliably from {{min_android_api_level}} upward.
Output format
Generate an authoritative Security Brief containing:
- Threat Vector & Attestation Baseline
- Keystore & Cryptographic Lifecycle Architecture
- Zero-Trust Server Attestation Flow (step-by-step logic)
- Runtime Integrity & Tamper Mitigation Matrix
- Verification & Penetration Testing Protocols
Self-review
- Does the attestation strategy prevent replay attacks against the verification backend?
- Are key invalidation mechanics explicit regarding biometric changes?
- Does the architecture provide actionable specifications for {{threat_model_profile}}?
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.