device-integrity

Verify iOS app and device authenticity using DeviceCheck tokens and App Attest attestations.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/harshav167/build-ios-apps --skill device-integrity-harshav167
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: device-integrity
Source: https://github.com/harshav167/build-ios-apps/tree/main/skills/device-integrity
Command: npx skills add https://github.com/harshav167/build-ios-apps --skill device-integrity-harshav167

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Verify device legitimacy and app integrity for server requests using DeviceCheck and App Attest to prevent fraud and ensure authentic app instances.

Core Features & Use Cases

  • DeviceCheck integration to read per-device tokens (DCDevice) and guard server endpoints based on device state.
  • App Attest key generation, attestation, and assertion flows to cryptographically prove app legitimacy on a device.
  • Server-side verification, replay protection, and environment handling to defend backend services.
  • Use Case: Protect a backend API by requiring attested requests from genuine devices.

Quick Start

Enable DeviceCheck and App Attest in your iOS app, then implement server-side verification for attestation and assertions on protected endpoints.

Frequently Asked Questions about device-integrity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify iOS app authenticity and prevent spoofing on my backend?▼

Protect backend endpoints by validating DeviceCheck tokens and App Attest assertions to verify device authenticity. This coordinates per-device token generation with server-side cryptographic attestation verification to block fraudulent or tampered iOS app requests.

What is the difference between DeviceCheck and App Attest for fraud prevention?▼

DeviceCheck reads per-device tokens to guard endpoints based on device state, while App Attest uses per-user cryptographic keys to prove app legitimacy. Combining both provides layered fraud prevention by validating both the hardware device and the app instance integrity.

How do I implement server-side verification for App Attest attestations?▼

Implement server-side verification by validating App Attest attestations and assertions on protected endpoints. This requires verifying the cryptographic proof from the iOS app, applying environment-aware replay protection, and confirming per-user attested keys match the expected device.

Can I use DeviceCheck to guard server endpoints against tampered iOS apps?▼

Yes, you can use DeviceCheck to read per-device tokens and guard server endpoints based on device state. Integrating these checks across your backend prevents fraud, tampering, and spoofing by ensuring only legitimate devices access protected API routes.

Do I need environment-aware replay protection for iOS device integrity checks?▼

Yes, environment-aware replay protection is necessary for iOS device integrity checks to prevent assertion reuse. It defends backend services by ensuring attested requests and assertions are valid only within their specific intended environment, blocking replay attacks.

What are the limitations of using App Attest for server-side verification?▼

App Attest requires strict server-side verification of both attestations and assertions, plus environment-aware replay protection. Without properly coordinating per-user attested keys and validating cryptographic proofs, backend endpoints remain vulnerable to spoofing despite the attestation flow.