Skip to content
Back to skills

Ios Security

ASecurity

Standards for Keychain, Biometrics, and Data Protection. Use when implementing Keychain storage, Face ID/Touch ID, or data protection in iOS. (triggers: **/*.swift, SecItemAdd, kSecClassGenericPassword, LAContext, LocalAuthentication)

  • 67 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
developmentrustgoswiftapibackendsecurity

Works with

  • api

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add ComeOnOliver/skillshub --skill ios-security --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ios Security?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ios Security
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/comeonoliver-ios-security/badge)](https://www.skillsdirectory.com/skills/comeonoliver-ios-security)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ios-security
description: 'Standards for Keychain, Biometrics, and Data Protection. Use when implementing Keychain storage, Face ID/Touch ID, or data protection in iOS. (triggers: **/*.swift, SecItemAdd, kSecClassGenericPassword, LAContext, LocalAuthentication)'
---

# iOS Security Standards

## **Priority: P0 (CRITICAL)**

## Implementation Guidelines

### Key Storage

- **Keychain**: Use for **Auth tokens**, passwords, and PII. Never store in **`UserDefaults`**.
- **SecItem API**: Use **`SecItemAdd`**, `SecItemUpdate`, and `SecItemDelete` for persistent secure storage. Use **`kSecClassGenericPassword`** for tokens.
- **Biometrics**: Use **`LocalAuthentication`** for **Face ID** or **Touch ID**. Use `LAContext` and verify availability with **`canEvaluatePolicy`** before evaluation.

### Data Protection

- **File Encryption**: Use **`Data.WritingOptions.completeFileProtection`** when saving files to disk.
- **App Sandboxing**: Respect the sandbox; do not attempt to access files outside of your container.
- **Sensitive Data**: Avoid storing PII in unprotected files.

### Network Security

- **ATS**: Don't disable **App Transport Security (ATS)** globally in `Info.plist`. In-transport encryption is mandatory.
- **SSL Pinning**: Use **ServerTrustManager** or **TrustKit** for backend-critical applications to prevent MITM attacks.

## Anti-Patterns

- **No secrets in UserDefaults**: Always use **Keychain**.
- **No unhandled LAError**: Check for userCancel, authenticationFailed, etc.
- **No PII/token logging**: Ensure sensitive logs are stripped in Release builds.

## References

- [Keychain & Biometrics Implementation](references/implementation.md)

## Related Topics

- common/security-standards
- architecture

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.