Android
AuraScore 77/100

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.

Template

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

  1. Assess vulnerabilities associated with {{threat_model_profile}} across managed and BYOD Android devices.
  2. Specify Android Keystore implementation utilizing StrongBox Keymaster or TEE backed keys for cryptographic isolation.
  3. Design server-driven verification flows integrating the Play Integrity API with {{attestation_strategy}}.
  4. Define key generation, rotation, and cryptographic invalidation policies linked to {{auth_mechanism}} and biometric changes.
  5. Establish runtime application self-protection (RASP) rules for detecting root, debugger attachment, and hook frameworks.
  6. Detail secure storage protocols for cached artifacts classified as {{data_classification}} using EncryptedSharedPreferences and SQLCipher.
  7. Establish automated certificate pinning and network transport hardening protocols.
  8. 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:

  1. Threat Vector & Attestation Baseline
  2. Keystore & Cryptographic Lifecycle Architecture
  3. Zero-Trust Server Attestation Flow (step-by-step logic)
  4. Runtime Integrity & Tamper Mitigation Matrix
  5. 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}}?
AuraScore breakdown
77/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering8/12 · Adequate

Hard boundaries — what the model must and must not do.

Output specification6/14 · Thin

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency5/10 · Thin

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness3/5 · Adequate

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

developers
developers-android
professional-services
android-security
keystore
play-integrity