What problem does it solve?
This Skill helps you prevent insecure iOS security implementations by providing correct, Apple-documented patterns for Keychain, biometric gating, CryptoKit cryptography, certificate trust, and compliance-ready review guidance.
Core Features & Use Cases
- Keychain correctness & safety: Implements SecItem CRUD using exhaustive OSStatus handling, explicit accessibility control, and safe add-or-update semantics to avoid silent failures and fragile credential lifecycle bugs.
- Biometric security that can’t be bypassed: Guides secure designs using SecAccessControl + keychain-bound authentication instead of LAContext evaluatePolicy boolean gates.
- Cryptography done right: Recommends correct CryptoKit primitives (AES-GCM/ChaChaPoly, HMAC, SHA-2/SHA-3 where available) and safe key derivation (HKDF, PBKDF2) with strong misuse prevention (e.g., nonce reuse).
- Certificate trust & pinning strategy: Covers SecTrust evaluation, SPKI/intermediate pinning approaches, mTLS handling, and ATS interactions with operational rotation guidance.
- Use Case: Review or implement an iOS app’s login/credential storage and TLS validation so tokens are stored safely, biometric-protected secrets unlock via the keychain, and server identity is verified with a resilient pinning strategy.
Quick Start
Ask the AI agent: "Review my Swift code that stores an OAuth token and uses Face ID, then rewrite it to follow Keychain + SecAccessControl best practices and provide the OSStatus-based error handling checklist."