2026 App ServicesApp Store, Distribution & MarketingBusiness & EducationPrivacy & Security
WWDC26 · 20 min · App Services / App Store, Distribution & Marketing / Business & Education / Privacy & Security
Secure your apps with App Attest
Harness App Attest to protect your app from unauthorized modification and fraud. Uncover how attackers exploit modified apps to spoof data and bypass security checks, and how App Attest defends against these threats. Learn to generate and manage App Attest keys bound to the Secure Enclave, validate attestations and assertions, and use the fraud metric to detect abuse. Discover best practices across all Apple platforms, including new signals in iOS 27 to strengthen your validation.
Watch at developer.apple.com ↗Chapters
Code shown on screen · 3 snippets
Generate a Secure Enclave–bound key
import DeviceCheck
let keyID = try await DCAppAttestService.shared.generateKey() Attestation API
import DeviceCheck
let keyId: String = ...
let clientDataHash: Data = ...
let attestation = try await DCAppAttestService.shared.attestKey(keyId: keyId, clientDataHash: clientDataHash) Assertion API
import DeviceCheck
let keyId: String = ...
let clientDataHash: Data = ...
let assertion = try await DCAppAttestService.shared.generateAssertion(keyId: String, clientDataHash: Data)