
Axiom Security
FreeSecurely manage credentials and protect your applications.
Free · Opens the source repo
What Axiom Security does
Axiom Security is a comprehensive skill designed for developers and designers who need to implement robust security measures in their applications. This skill provides a structured approach to securely store credentials, encrypt data, and manage certificates, ensuring that sensitive information is protected from unauthorized access. It is particularly useful for those working with AI features, where prompt injection and data integrity are critical concerns.
The skill encompasses a variety of functionalities, including keychain management for storing tokens, passwords, and API keys securely. It also offers detailed guidance on encryption techniques and signing payloads, which are essential for maintaining application integrity. Developers can leverage the CryptoKit to utilize advanced cryptographic algorithms, ensuring that their applications meet modern security standards.
Additionally, Axiom Security addresses the implementation of passkeys, a modern alternative to traditional passwords, enhancing user experience while improving security. The skill also covers app integrity verification and fraud prevention, making it suitable for applications that require a high level of trust and security. Furthermore, it provides tools for code signing and certificate management, critical for CI/CD processes and ensuring that applications are properly signed before distribution.
Overall, Axiom Security is an essential tool for anyone involved in application development or design, particularly when security is a top priority. It streamlines the process of implementing security measures, allowing developers to focus on building features without compromising on safety.
When to use it
Use Axiom Security when developing applications that require secure storage of sensitive information, encryption, or code signing.
When not to use it
This skill may not be necessary for simple applications that do not handle sensitive data or require basic security measures.
What you can build with it
Secure API Key Storage
Use Axiom Security to securely store and manage API keys within your application, preventing unauthorized access.
Implementing Encryption
Encrypt sensitive user data using the CryptoKit features provided by Axiom Security to ensure data confidentiality.
Code Signing for Distribution
Manage certificates and provisioning profiles for code signing, ensuring your application is properly signed before release.
How to install Axiom Security
View source1. Install with the skills CLI
npx skills add charleswiltgen/axiom/axiom-security --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by charleswiltgenSecurity & Credentials
You MUST use this skill for ANY keychain, encryption, passkey, app integrity, agentic/AI feature security, file protection, or code signing work.
<!-- AXIOM_AUDITOR_INLINE_BEGIN — auto-maintained by scripts/build-inlined-auditors.ts; do not hand-edit --><!-- AXIOM_AUDITOR_INLINE_END -->Not on Claude Code? Where this router says "Launch
some-auditoragent", read that auditor's file in this suite and follow it inline — the same procedure, needing only file search and read.Available here:
skills/security-privacy-scanner.md.Agents that need Bash — builds, tests, simulators, crash symbolication — stay Claude Code-only; there is no inline equivalent for those.
Quick Reference
| Symptom / Task | Reference |
|---|---|
| Store tokens, passwords, API keys securely | See skills/keychain.md |
| Choose kSecAttrAccessible level, biometric protection | See skills/keychain.md |
| SecItem function signatures, attribute constants | See skills/keychain-ref.md |
| errSecDuplicateItem, errSecItemNotFound, errSecInteractionNotAllowed | See skills/keychain-diag.md |
| Encrypt data, sign payloads, key management | See skills/cryptokit.md |
| Hash functions, HMAC, AES-GCM, ChaChaPoly, ECDSA, EdDSA, key agreement | See skills/cryptokit-ref.md |
| Passkey sign-in, WebAuthn, ASAuthorizationController | See skills/passkeys.md |
One-time code AutoFill for credential providers OS27 | See skills/passkeys.md (Delivered Verification Codes) |
| App integrity verification, DCAppAttestService, fraud metric | See skills/app-attest.md |
| Prompt injection, securing AI agents / agentic features, tool confirmation | See skills/agentic-security.md |
| NSFileProtection levels, data protection at rest | See skills/file-protection-ref.md |
| SensitiveContentAnalysis verdict must never leave the device (no analytics/moderation queue/synced cache; license §3.3.3) | See axiom-vision (skills/vision-ref.md) |
| Certificate management, provisioning profiles, CI/CD signing | See skills/code-signing.md |
| Certificate not found, profile mismatch, entitlement errors | See skills/code-signing-diag.md |
| Certificate CLI, profile inspection, entitlement extraction | See skills/code-signing-ref.md |
| Apple Pay payment certs / pass type certs / Tap to Pay entitlement | See axiom-payments suite |
Decision Tree
digraph security {
start [label="Security task" shape=ellipse];
what [label="What do you need?" shape=diamond];
start -> what;
what -> "skills/keychain.md" [label="store/retrieve\ncredentials, tokens,\nsecrets"];
what -> "skills/keychain-ref.md" [label="SecItem API syntax,\nattribute constants,\naccess levels"];
what -> "skills/keychain-diag.md" [label="keychain errors\n(errSec codes)"];
what -> "skills/cryptokit.md" [label="encrypt data,\nsign payloads,\nSecure Enclave keys"];
what -> "skills/cryptokit-ref.md" [label="CryptoKit API\n(AES, ECDSA, HPKE,\npost-quantum)"];
what -> "skills/passkeys.md" [label="passkey sign-in,\nreplace passwords"];
what -> "skills/app-attest.md" [label="app integrity,\nfraud prevention"];
what -> "skills/agentic-security.md" [label="AI agent security,\nprompt injection"];
what -> "skills/file-protection-ref.md" [label="file encryption,\nNSFileProtection"];
what -> "skills/code-signing.md" [label="set up signing,\nprofiles, CI/CD"];
what -> "skills/code-signing-diag.md" [label="signing errors,\nupload rejections"];
what -> "skills/code-signing-ref.md" [label="CLI commands,\nprofile inspection"];
}
- Store tokens, passwords, API keys securely? →
skills/keychain.md1a. Need SecItem function signatures, attribute constants? →skills/keychain-ref.md1b. Keychain errors (errSecDuplicateItem, errSecItemNotFound)? →skills/keychain-diag.md - Encrypt data, sign payloads, manage keys? →
skills/cryptokit.md2a. Need CryptoKit API details (AES-GCM, ECDSA, HPKE, post-quantum)? →skills/cryptokit-ref.md - Implement passkey sign-in, replace passwords? →
skills/passkeys.md - Verify app integrity, prevent fraud? →
skills/app-attest.md - Securing an agentic/AI feature (prompt injection, tool confirmation, lock-screen intents)? →
skills/agentic-security.md - File encryption at rest, NSFileProtection levels? →
skills/file-protection-ref.md - Set up code signing, manage certificates, CI/CD? →
skills/code-signing.md7a. Code signing error troubleshooting? →skills/code-signing-diag.md7b. Certificate CLI commands, profile inspection? →skills/code-signing-ref.md - Build/upload failures after signing? → See axiom-build
- App Store submission prep? →
/skill axiom-shipping - Privacy manifests, tracking transparency? → See axiom-integration
- Data persistence (SwiftData, Core Data, storage strategy)? →
/skill axiom-data - TLS configuration, certificate pinning for network requests? →
/skill axiom-networking - Want automated security scan? → security-privacy-scanner (Agent)
Conflict Resolution
security vs axiom-build: When build fails with signing errors:
- Code signing errors (certificate, profile, entitlement) → use security
- Environment issues (Xcode version, simulator, Derived Data) → use axiom-build
- If unsure, check the error message:
CODESIGN,ITMS-90xxx,errSec→ security
security vs shipping: When preparing for App Store:
- Privacy manifests, submission checklists, rejections → use shipping
- Code signing for distribution, certificate management → use security
security vs axiom-data: When storing sensitive data:
- Tokens, passwords, API keys → use security (keychain)
- User preferences, non-sensitive settings → use axiom-data (UserDefaults/SwiftData)
- File encryption levels for database files → use security (file-protection-ref)
- SQLite-specific Data Protection (
.db/-wal/-shmtrio, widget-while-locked access) → See axiom-data (skills/grdb-app-groups.md) §4
security vs axiom-networking: When securing network communication:
- TLS configuration, certificate pinning → use axiom-networking
- Signing API requests, encrypting payloads → use security (CryptoKit)
Critical Patterns
Keychain (skills/keychain.md):
- SecItem mental model: uniqueness constraints, data protection classes
- Biometric access control (Face ID / Touch ID)
- Keychain sharing between app and extensions
- Background access pitfalls, Mac keychain differences
- Migration from UserDefaults/@AppStorage for sensitive data
Keychain API (skills/keychain-ref.md):
- SecItemAdd/CopyMatching/Update/Delete signatures
- Item class attributes, uniqueness constraint rules
- kSecAttrAccessible levels and when each applies
- Access control flags, biometric integration
- Complete error code reference
Keychain Diagnostics (skills/keychain-diag.md):
- errSecDuplicateItem from unexpected uniqueness constraints
- errSecItemNotFound despite item existing (query mismatch)
- errSecInteractionNotAllowed in background contexts
- Access group and entitlement mismatches
- Items disappearing after app updates
CryptoKit (skills/cryptokit.md):
- AES-GCM and ChaChaPoly authenticated encryption
- ECDSA/EdDSA digital signatures
- Secure Enclave hardware-backed keys
- Key agreement (ECDH) for end-to-end encryption
- HPKE for modern asymmetric encryption
- Post-quantum algorithms (ML-KEM, ML-DSA)
- CommonCrypto migration path
CryptoKit API (skills/cryptokit-ref.md):
- Hash functions (SHA-256/384/512, SHA-3), HMAC
- Symmetric encryption (AES-GCM, ChaChaPoly)
- Asymmetric signing (P256, P384, P521, Curve25519, Ed25519)
- Key agreement, key derivation (HKDF)
- Secure Enclave key creation and usage
- Swift Crypto cross-platform parity
Passkeys (skills/passkeys.md):
- ASAuthorizationController registration and assertion flows
- AutoFill-assisted requests (QuickType bar integration)
- Automatic passkey upgrades for existing users (iOS 18+)
- Combined credential requests (passkey + password + Sign in with Apple)
- Associated domains configuration for WebAuthn
App Attest (skills/app-attest.md):
- DCAppAttestService attestation and assertion flows
- Server-side validation of attestation objects
- macOS support + tampering signals (extensions, key access control) from the 27 cycle
- Fraud metric as an investigation signal
- DeviceCheck 2-bit per-device state
- Gradual rollout strategies for large install bases
- Handling unsupported devices gracefully
Agentic Security (skills/agentic-security.md):
- Threat modeling agentic features (indirect prompt injection, Lethal Trifecta)
- Deterministic vs probabilistic mitigations (redaction, spotlighting, confirmation, unlock gating)
- Foundation Models lifecycle modifiers (.onToolCall confirmation, .historyTransform)
- App Intents authenticationPolicy and schema risk metadata
File Protection (skills/file-protection-ref.md):
- NSFileProtection levels (complete, completeUnlessOpen, afterFirstUnlock, none)
- Hardware-accelerated encryption tied to device passcode
- Background file access requirements
- Keychain vs file protection comparison
Code Signing (skills/code-signing.md):
- Automatic vs manual signing tradeoffs
- Certificate and profile management across teams
- fastlane match for team-wide certificate sharing
- CI/CD signing setup (GitHub Actions, Xcode Cloud)
- Distribution build preparation (App Store, TestFlight, Ad Hoc)
Code Signing Diagnostics (skills/code-signing-diag.md):
- Certificate issues (expired, missing, wrong type, revoked)
- Provisioning profile issues (expired, missing cert, wrong App ID)
- Entitlement mismatches (capability in Xcode but not in profile)
- Keychain issues in CI (locked keychain, errSecInternalComponent)
- Archive/export failures (wrong export method, wrong cert type)
Code Signing CLI (skills/code-signing-ref.md):
security find-identity,security cms -Dfor profile inspectioncodesign -d --entitlementsfor entitlement extraction- Certificate types, validity periods, per-account limits
- fastlane match commands and Keychain management
Automated Scanning
Security audit → Launch security-privacy-scanner agent (scans for hardcoded credentials, insecure token storage, Privacy Manifest coverage gaps, ATS violations, missing ATT descriptions, missing export compliance, weak Keychain ACLs, and compound rejection risks; scores posture HARDENED/GAPS/VULNERABLE)
Anti-Rationalization
| Thought | Reality |
|---|---|
| "I'll store the token in UserDefaults for now" | UserDefaults is a plist file readable by any process with file access. Keychain takes 10 lines. skills/keychain.md shows the pattern. |
| "My app doesn't need encryption" | If you store any user data at rest, iOS file protection is free. skills/file-protection-ref.md covers protection levels. |
| "CommonCrypto works fine, no need to migrate" | CommonCrypto is C API with manual memory management and no compile-time safety. CryptoKit prevents buffer overflows and key misuse. |
| "I'll just use automatic signing" | Automatic signing works until CI, team scaling, or capability changes break it. Understand manual signing before you need it. skills/code-signing.md covers both. |
| "Passkeys are too new, passwords are fine" | Passkeys are phishing-resistant and supported since iOS 16. The migration path supports both simultaneously. skills/passkeys.md shows combined flows. |
| "I'll regenerate all certificates to fix this" | Regenerating revokes existing certs and breaks every teammate's build. Diagnose first. skills/code-signing-diag.md has the diagnostic flow. |
| "App Attest is overkill for my app" | If your app has any server-verified purchase, promotion, or competitive feature, tampered clients will exploit it. skills/app-attest.md covers gradual rollout. |
| "I'll use @unchecked Sendable on my crypto wrapper" | Hiding thread-safety issues from the compiler in security code is how data corruption happens. See axiom-concurrency for safe patterns. |
| "kSecAttrAccessibleAlways is fine" | Deprecated since iOS 12. Items are accessible even when device is locked and unencrypted during backup. Use kSecAttrAccessibleAfterFirstUnlock at minimum. |
| "Prompt injection won't hit our little AI feature" | Any external content reaching your model (a calendar invite, a feed post) is the attack surface, and the model picks the actions. skills/agentic-security.md has the threat model and the deterministic mitigations. |
Example Invocations
User: "How do I store an auth token securely?"
→ Read: skills/keychain.md
User: "errSecDuplicateItem when saving to keychain"
→ Read: skills/keychain-diag.md
User: "What are the SecItem attribute constants?"
→ Read: skills/keychain-ref.md
User: "How do I encrypt user data with AES?"
→ Read: skills/cryptokit.md
User: "What's the CryptoKit API for ECDSA signing?"
→ Read: skills/cryptokit-ref.md
User: "How do I add passkey sign-in to my app?"
→ Read: skills/passkeys.md
User: "How do I verify my app hasn't been tampered with?"
→ Read: skills/app-attest.md
User: "How do I protect my app's AI agent from prompt injection?"
→ Read: skills/agentic-security.md
User: "Should my Siri intent work from the lock screen?"
→ Read: skills/agentic-security.md
User: "What NSFileProtection level should I use?"
→ Read: skills/file-protection-ref.md
User: "My build fails with 'No signing certificate found'"
→ Read: skills/code-signing-diag.md
User: "How do I set up fastlane match for CI?"
→ Read: skills/code-signing.md
User: "How do I inspect a provisioning profile?"
→ Read: skills/code-signing-ref.md
User: "Scan my code for security issues"
→ Invoke: security-privacy-scanner agent
Frequently asked questions about Axiom Security
Similar skills
Secret Scanning
Protect your code by preventing secret leaks.
MCP Security Audit
Ensure your MCP configurations are secure and compliant.
iMessage Access Management
Control access to your iMessage channel securely.
Implementing Secret Scanning with Gitleaks
Automate detection of hardcoded secrets in git repositories.
Secrets Vault Manager
Manage and secure your secret infrastructure efficiently.
AWS Secrets Manager
Safely manage secrets without exposing plaintext values.
