Implements Apple's device integrity APIs for fraud prevention and app authenticity verification. Covers DCDevice for simple per-device bit flags (like tracking promo redemptions) and the full App Attest flow for cryptographic proof that requests come from genuine, unmodified apps. The guide walks through key generation in the Secure Enclave, attestation with Apple's servers, and assertion signing for ongoing request validation. Use this when you need to protect sensitive endpoints, prevent device abuse, or verify that API calls originate from legitimate app instances. The examples include proper keychain persistence and server integration patterns, though you'll need to implement the server-side JWT signing and Apple API verification yourself.

skills.sh installs
3.8K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill device-integrity --agent claude-code

Installs into .claude/skills of the current project.

Files

Device Integrity

Verify that requests to your server come from a genuine Apple device running a legitimate instance of your app. DeviceCheck provides per-device bits for simple flags (e.g., "claimed promo offer"). App Attest uses Secure Enclave keys and Apple attestation to cryptographically prove app legitimacy on sensitive requests.

Contents

DCDevice (DeviceCheck Tokens)

Sponsors

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Backend & APIs, Code Review & Quality, Mobile Development
First seen
Apr 16, 2026

More from dpearson2699/swift-ios-skills

All 98
1giuseppe-trisciuoglio avataraws-rds-spring-boot-integrationgiuseppe-trisciuoglio/developer-kitProvides patterns to configure AWS RDS (Aurora, MySQL, PostgreSQL) with Spring Boot applications. Configures HikariCP connection pools, implements read/write sp3.8Kskills.sh installs
2dotnet avatarfetch-and-send-datadotnet/skillsCall APIs, load data into components, and handle the async lifecycle in Blazor. USE FOR fetching data from a backend, submitting data to an API, displaying load3.8Kskills.sh installs
3raroque avatarvibe-securityraroque/vibe-security-skillAudits codebases for common security vulnerabilities that AI coding assistants introduce in "vibe-coded" applications. Checks for exposed API keys, broken acces3.8Kskills.sh installs
4browser-use avataropen-sourcebrowser-use/browser-useDocumentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or T3.7Kskills.sh installs
5giuseppe-trisciuoglio avatarspring-boot-project-creatorgiuseppe-trisciuoglio/developer-kitCreates and scaffolds a new Spring Boot project (3.x or 4.x) by downloading from Spring Initializr, generating package structure (DDD or Layered architecture), 3.7Kskills.sh installs
6forcedotcom avatardeploying-ui-bundleforcedotcom/sf-skillsMUST activate when the project contains a uiBundles/*/src/ directory or sfdx-project.json and the task involves deploying, pushing to an org, or post-deploy set3.6Kskills.sh installs