Logo Axiom Security

Axiom Security

Cộng đồngPhổ biến
CharlesWiltgen
axiom-security

Use when storing credentials securely, encrypting data, implementing passkeys, securing AI/agentic features against prompt injection, code signing, or managing certificates and provisioning profiles.

Tổng quan

Nhà phát hànhCharlesWiltgen
Kho mãAxiom
Tên kỹ năngaxiom-security
Sao
1.2K
Bản fork
86
Tệp đi kèm
13
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 13 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được CharlesWiltgen công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Axiom Security trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-security
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git /tmp/Axiom
mkdir -p .claude/skills
cp -r /tmp/Axiom/axiom-codex/skills/axiom-security .claude/skills/axiom-security
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Axiom Security trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Axiom Security ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Axiom Security với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Security & Credentials

You MUST use this skill for ANY keychain, encryption, passkey, app integrity, agentic/AI feature security, file protection, or code signing work.

Auditors are skills here. Where this router says "Launch some-auditor agent", invoke the matching Codex skill instead — same procedure, no Claude Code agent required.

Available: axiom-scan-security-privacy.

The ones that shell out — builds, tests, simulators, crash symbolication — need shell access to run.

Quick Reference

Symptom / TaskReference
Store tokens, passwords, API keys securelySee skills/keychain.md
Choose kSecAttrAccessible level, biometric protectionSee skills/keychain.md
SecItem function signatures, attribute constantsSee skills/keychain-ref.md
errSecDuplicateItem, errSecItemNotFound, errSecInteractionNotAllowedSee skills/keychain-diag.md
Encrypt data, sign payloads, key managementSee skills/cryptokit.md
Hash functions, HMAC, AES-GCM, ChaChaPoly, ECDSA, EdDSA, key agreementSee skills/cryptokit-ref.md
Passkey sign-in, WebAuthn, ASAuthorizationControllerSee skills/passkeys.md
One-time code AutoFill for credential providers OS27See skills/passkeys.md (Delivered Verification Codes)
App integrity verification, DCAppAttestService, fraud metricSee skills/app-attest.md
Prompt injection, securing AI agents / agentic features, tool confirmationSee skills/agentic-security.md
NSFileProtection levels, data protection at restSee 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 signingSee skills/code-signing.md
Certificate not found, profile mismatch, entitlement errorsSee skills/code-signing-diag.md
Certificate CLI, profile inspection, entitlement extractionSee skills/code-signing-ref.md
Apple Pay payment certs / pass type certs / Tap to Pay entitlementSee axiom-payments suite

Decision Tree

dot
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"];
}
  1. Store tokens, passwords, API keys securely? → skills/keychain.md 1a. Need SecItem function signatures, attribute constants? → skills/keychain-ref.md 1b. Keychain errors (errSecDuplicateItem, errSecItemNotFound)? → skills/keychain-diag.md
  2. Encrypt data, sign payloads, manage keys? → skills/cryptokit.md 2a. Need CryptoKit API details (AES-GCM, ECDSA, HPKE, post-quantum)? → skills/cryptokit-ref.md
  3. Implement passkey sign-in, replace passwords? → skills/passkeys.md
  4. Verify app integrity, prevent fraud? → skills/app-attest.md
  5. Securing an agentic/AI feature (prompt injection, tool confirmation, lock-screen intents)? → skills/agentic-security.md
  6. File encryption at rest, NSFileProtection levels? → skills/file-protection-ref.md
  7. Set up code signing, manage certificates, CI/CD? → skills/code-signing.md 7a. Code signing error troubleshooting? → skills/code-signing-diag.md 7b. Certificate CLI commands, profile inspection? → skills/code-signing-ref.md
  8. Build/upload failures after signing? → See axiom-build
  9. App Store submission prep? → /skill axiom-shipping
  10. Privacy manifests, tracking transparency? → See axiom-integration
  11. Data persistence (SwiftData, Core Data, storage strategy)? → /skill axiom-data
  12. TLS configuration, certificate pinning for network requests? → /skill axiom-networking
  13. 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/-shm trio, 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 -D for profile inspection
  • codesign -d --entitlements for entitlement extraction
  • Certificate types, validity periods, per-account limits
  • fastlane match commands and Keychain management

Automated Scanning

Security audit → axiom-scan-security-privacy (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

ThoughtReality
"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

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Axiom Security làm được gì?

Use when storing credentials securely, encrypting data, implementing passkeys, securing AI/agentic features against prompt injection, code signing, or managing certificates and provisioning profiles.

Vì sao nên dùng Axiom Security trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Axiom Security là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Axiom Security trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-security. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Axiom Security?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Axiom Security với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Axiom Security với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Axiom Security có miễn phí không?

Có. Kỹ năng này được CharlesWiltgen phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇