What problem does it solve?
This Skill prevents insecure and incorrect iOS/macOS security implementations by guiding correct Keychain Services usage, biometric authentication patterns, CryptoKit cryptography, certificate trust/pinning, and secure credential lifecycles.
Core Features & Use Cases
- Keychain & Access Control Review: Audit
SecItem* code for correctness, OSStatus handling, accessibility configuration, and add-or-update semantics, with security-focused findings and severities.
- Biometric Security That Actually Works: Replace insecure
LAContext.evaluatePolicy() boolean gates with keychain-bound SecAccessControl flows using .biometryCurrentSet and proper error/fallback handling.
- CryptoKit + Trust/Pinning Guidance: Implement safe symmetric/asymmetric crypto (AES-GCM/ChaChaPoly, HKDF, HPKE, Secure Enclave boundaries) and certificate validation/pinning using modern, non-deprecated APIs.
- Credential Lifecycle & Compliance Mapping: Store OAuth/API secrets safely, migrate legacy insecure storage, clear credentials on logout, and map outcomes to OWASP MASVS/MASTG categories.
Quick Start
Use this skill when you need to review or implement Keychain, biometric, or client-side crypto code; ask: "Review my Swift Keychain and biometric authentication code for correctness and security anti-patterns, then tell me the exact fixes and the relevant reference sections."