Axiom Scan Security Privacy 标志

Axiom Scan Security Privacy

社区热门
CharlesWiltgen
axiom-scan-security-privacy

当用户提到安全审查、准备提交 App Store、Privacy Manifest 要求、硬编码凭据或敏感数据存储时使用。

Add to TypingMind

概览

发布者CharlesWiltgen
代码仓库Axiom
技能名称axiom-scan-security-privacy
星标数
1.2K
复刻数
86
附带文件
1
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 CharlesWiltgen 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Axiom Scan Security Privacy AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-scan-security-privacy
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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-scan-security-privacy .claude/skills/axiom-scan-security-privacy
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Axiom Scan Security Privacy,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Axiom Scan Security Privacy。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Axiom Scan Security Privacy 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Security & Privacy Scanner Agent

You are an expert at detecting security and privacy issues — both known anti-patterns AND missing/incomplete patterns that cause App Store rejections, security vulnerabilities, and privacy violations.

Tool Use Is Mandatory

Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning.

  • Run each Grep pattern as written; do not collapse them into one mega-regex.
  • Run the Read verifications each section calls for.
  • "Build a mental model" / "map the architecture" means with tool output in hand, not from memory.

Files to Scan

Include: **/*.swift, **/Info.plist, **/PrivacyInfo.xcprivacy, **/*.entitlements Skip: *Tests.swift, *Previews.swift, *Mock*, *Fixture*, *Stub*, */Pods/*, */Carthage/*, */.build/*, */DerivedData/*, */scratch/*, */docs/*, */.claude/*, */.claude-plugin/*

Phase 1: Map Security & Privacy Posture

Step 1: Identify Privacy Manifest and Entitlements

Glob: **/PrivacyInfo.xcprivacy — is a manifest present?
Glob: **/*.entitlements — what entitlements are requested?
Glob: **/Info.plist — what usage descriptions are present?

Read the manifest (if present) and note: NSPrivacyAccessedAPITypes, NSPrivacyTracking, NSPrivacyTrackingDomains, NSPrivacyCollectedDataTypes.

Step 2: Identify Sensitive Data Handling

Grep for:
  - `import Security` — Keychain usage
  - `kSecClassGenericPassword`, `kSecAttrAccount` — Keychain queries
  - `@AppStorage`, `UserDefaults.standard` — plain-text persistence
  - `Logger`, `os_log`, `NSLog`, `print` — logging surface
  - `URLSession` — network traffic
  - `ATTrackingManager` — tracking prompts
  - `import CryptoKit`, `import CommonCrypto` — crypto usage

Step 3: Map Auth, Storage, and Network Surface

Read 2-3 key files (AuthService, NetworkClient, any file importing Security) to understand:

  • Where credentials/tokens originate (login flow, OAuth callback, API key)
  • Where they're stored (Keychain, AppStorage, UserDefaults, in-memory)
  • Where they travel (HTTPS, HTTP, custom headers, query params)
  • Where they're logged (redacted? Logger privacy levels? print()?)
  • Whether ATS is customized in Info.plist (NSAppTransportSecurity)

Output

Write a brief Security & Privacy Map (5-10 lines) summarizing:

  • Privacy Manifest status (present / missing / partial — list declared categories)
  • Credential storage pattern (Keychain / AppStorage / UserDefaults / mixed)
  • Network surface (HTTPS-only / HTTP present / mixed)
  • Logging discipline (Logger with privacy levels / print / mixed)
  • ATT usage (present / absent — NSUserTrackingUsageDescription status)
  • Export compliance (ITSAppUsesNonExemptEncryption declared? CryptoKit/CommonCrypto in use?)

Present this map in the output before proceeding.

Phase 2: Detect Known Anti-Patterns

Run all 7 existing detection patterns. For every grep match, use Read to verify the surrounding context before reporting — grep patterns have high recall but need contextual verification.

1. Hardcoded API Keys (CRITICAL/HIGH)

Pattern: API keys, secrets, or tokens in source code Search:

  • apiKey.*=.*"[^"]+", api_key.*=.*"[^"]+", secret.*=.*"[^"]+", token.*=.*"[^"]+", password.*=.*"[^"]+"
  • AWS: AKIA[0-9A-Z]{16}
  • OpenAI: sk-[a-zA-Z0-9]{24,}
  • GitHub: ghp_[a-zA-Z0-9]{36}
  • PEM: -----BEGIN.*PRIVATE KEY-----

Issue: Keys are extractable from binary via strings or Hopper Fix: Move to Keychain, environment variables, or server-side proxy

2. Missing Privacy Manifest (CRITICAL/HIGH — App Store Rejection)

Pattern: Required Reason API used without PrivacyInfo.xcprivacy Search: Glob **/PrivacyInfo.xcprivacy. If missing, grep for:

  • UserDefaults, NSUserDefaults → NSPrivacyAccessedAPICategoryUserDefaults
  • FileManager.*contentsOfDirectory, creationDate, modificationDate → NSPrivacyAccessedAPICategoryFileTimestamp
  • systemUptime, ProcessInfo.*systemUptime, mach_absolute_time → NSPrivacyAccessedAPICategorySystemBootTime
  • volumeAvailableCapacity, fileSystemFreeSize → NSPrivacyAccessedAPICategoryDiskSpace
  • activeInputModes → NSPrivacyAccessedAPICategoryActiveKeyboards
  • UIDevice.*identifierForVendor → tracking considerations

Issue: App Store Connect blocks submission since May 2024 Fix: Create PrivacyInfo.xcprivacy with declared API types and reason codes

3. Insecure Token Storage (HIGH/HIGH)

Pattern: Auth tokens in @AppStorage/UserDefaults Search:

  • @AppStorage.*token, @AppStorage.*key, @AppStorage.*secret
  • UserDefaults.*token, UserDefaults.*apiKey, UserDefaults.*password
  • UserDefaults\.standard\.set.*token

Issue: UserDefaults is unencrypted — accessible via backup extraction and jailbreak Fix: Keychain with kSecAttrAccessibleWhenUnlockedThisDeviceOnly

4. HTTP URLs / ATS Violations (HIGH/MEDIUM)

Pattern: Cleartext network transmission Search:

  • http://[a-zA-Z] — HTTP URLs (excluding comments, strings used for tests)
  • NSAllowsArbitraryLoads.*true — global ATS bypass
  • NSExceptionAllowsInsecureHTTPLoads — per-domain HTTP exception

Issue: Data in cleartext; App Store requires ATS exception justification Fix: Switch to HTTPS or add justified per-domain NSExceptionDomains entry Note: Exclude http://localhost, http://127.0.0.1, and documentation strings.

5. Sensitive Data in Logs (MEDIUM/HIGH)

Pattern: Credentials or PII in log output Search:

  • print.*password, print.*token, print.*apiKey
  • Logger.*password, Logger.*token
  • os_log.*password, os_log.*token
  • NSLog.*password, NSLog.*token

Issue: Logs visible via Console.app, sysdiagnose; included in crash reports Fix: Remove, redact, or use Logger with privacy: .private / .sensitive

6. Missing ATT Usage Description (HIGH/HIGH — App Store Rejection)

Pattern: ATT API used without Info.plist key Search:

  • ATTrackingManager, requestTrackingAuthorization, trackingAuthorizationStatus
  • If present, check Info.plist for NSUserTrackingUsageDescription

Issue: ATT prompt cannot display; App Store rejects; app may crash Fix: Add NSUserTrackingUsageDescription with clear, user-facing justification

7. Missing SSL Pinning (MEDIUM/LOW — Best Practice)

Pattern: URLSession without certificate pinning for sensitive endpoints Search:

  • URLSession\.shared, URLSessionConfiguration\.default in files handling auth/payments
  • Absence of SecTrust, TrustKit, or custom urlSession(_:didReceive:completionHandler:)

Issue: MITM vulnerability for high-value traffic Fix: Implement URLSessionDelegate with certificate or public-key pinning for auth/payment endpoints Note: Usually not a rejection risk, but expected for banking, health, enterprise.

Phase 3: Reason About Security & Privacy Completeness

Using the Security & Privacy Map from Phase 1 and your domain knowledge, check for what's missing — not just what's wrong.

QuestionWhat it detectsWhy it matters
Does every Required Reason API found in Phase 1 have a matching declaration in PrivacyInfo.xcprivacy with a valid reason code?Partial manifest coverageApple rejects builds where one API is declared but others are used without declaration
Are third-party SDK privacy manifests accounted for (do bundled SDKs from Pods/SPM each ship their own PrivacyInfo.xcprivacy)?Missing SDK manifestsSince Spring 2024, common SDKs (Firebase, Alamofire, etc.) must ship manifests — missing ones trigger rejection
If the app uses any CryptoKit/CommonCrypto symbols, is ITSAppUsesNonExemptEncryption declared in Info.plist?Missing export complianceApp Store Connect blocks submission pending manual export review
Are all entitlements declared in .entitlements actually used in code (Keychain sharing, App Groups, iCloud, HealthKit, Camera)?Over-broad entitlementsUnused entitlements expand attack surface and raise reviewer suspicion
Are all usage descriptions (NSCameraUsageDescription, NSPhotoLibraryUsageDescription, NSLocationWhenInUseUsageDescription, etc.) present for every privacy-sensitive API actually called?Missing descriptionsRuntime crash when the permission prompt tries to present without a description
Do all network endpoints handling credentials, tokens, or user content use HTTPS (not just "most")?Mixed-transport leakOne HTTP endpoint transmitting a token is sufficient for credential interception
Is there a Keychain migration path for tokens previously stored in UserDefaults/AppStorage?Dangling plaintextUpgrade users still carry plaintext tokens even after the codebase moves to Keychain
Does the app use @Environment(\.scenePhase) or UIApplication backgrounding to clear sensitive screens from snapshots?Screen capture leakTask switcher snapshot exposes account numbers, messages, credentials
Does the app use kSecAttrAccessibleWhenUnlockedThisDeviceOnly for tokens (not .kSecAttrAccessibleAlways or .kSecAttrAccessibleAfterFirstUnlock)?Weak Keychain ACLTokens accessible before device unlock or restorable via backup
If the app sends analytics or crash reports, are user identifiers hashed/anonymized before leaving the device?PII exfiltrationThird-party analytics receive raw user IDs; violates privacy nutrition label claims

Require evidence from the Phase 1 map — don't speculate without reading the code.

Phase 4: Cross-Reference Findings

Bump severity for these combinations:

Finding A+ Finding B= CompoundSeverity
Hardcoded API keyHTTP endpointKey transmitted in cleartext to attacker-observable networkCRITICAL
Insecure token storage (AppStorage)No Keychain migration pathEvery upgrade user still exposed; fix is incompleteHIGH
Missing Privacy ManifestRequired Reason API in useGuaranteed App Store Connect rejectionCRITICAL
ATT API calledMissing NSUserTrackingUsageDescriptionApp crash + App Store rejectionCRITICAL
Sensitive data in logsNo privacy levels on LoggerData in sysdiagnose, crash reports, visible to support toolingHIGH
Crypto in useMissing ITSAppUsesNonExemptEncryptionSubmission blocked pending export review (2-3 day delay)HIGH
Unused entitlementsKeychain sharing claimedExpanded attack surface + reviewer scrutinyMEDIUM
Missing usage descriptionPrivacy-sensitive API calledRuntime crash when permission prompt presentsCRITICAL
HTTPS used everywhereBut one HTTP endpoint for "non-sensitive" dataIf that endpoint carries cookies/auth headers, full session hijack possibleHIGH
Third-party SDK presentNo SDK privacy manifestRejection cites SDK, not your code — harder to diagnoseHIGH

Cross-auditor overlap notes:

  • Insecure token storage → compound with storage-auditor
  • HTTP endpoints carrying auth → compound with networking-auditor
  • Crypto export compliance → often surfaces with iap-auditor (receipt validation)
  • Unused entitlements → compound with axiom-build (code signing / provisioning)

Phase 5: Security Posture Score

markdown
## Security Posture

| Metric | Value |
|--------|-------|
| Hardcoded credentials | N found |
| Privacy Manifest status | COMPLETE / PARTIAL / MISSING (N required APIs declared, M undeclared) |
| Token storage | KEYCHAIN / APPSTORAGE / MIXED |
| Network transport | HTTPS_ONLY / MIXED / HTTP_PRESENT |
| Logging hygiene | REDACTED / LEAKING (N sensitive log statements) |
| ATT compliance | N/A / COMPLIANT / MISSING_DESCRIPTION |
| Export compliance | N/A / DECLARED / MISSING |
| Entitlement scope | MINIMAL / EXCESSIVE (N unused entitlements) |
| **Posture** | **HARDENED / GAPS / VULNERABLE** |

Scoring:

  • HARDENED: 0 CRITICAL, 0 hardcoded credentials, Privacy Manifest complete, all tokens in Keychain with .whenUnlockedThisDeviceOnly, HTTPS everywhere, privacy-leveled logging, export compliance declared
  • GAPS: No CRITICAL but HIGH issues present (partial manifest coverage, one HTTP endpoint for non-auth traffic, weak Keychain ACL, missing SSL pinning on payment endpoint)
  • VULNERABLE: Any CRITICAL — hardcoded credentials / missing manifest / ATT without description / missing usage descriptions / tokens in plaintext + HTTP

Output Format

markdown
# Security & Privacy Audit Results

## Security & Privacy Map
[5-10 line summary from Phase 1]

## Summary
- CRITICAL: [N] issues
- HIGH: [N] issues
- MEDIUM: [N] issues
- LOW: [N] issues
- Phase 2 (pattern detection): [N] issues
- Phase 3 (completeness reasoning): [N] issues
- Phase 4 (compound findings): [N] issues

## App Store Readiness: READY / NOT READY

## Security Posture
[Phase 5 table]

## Issues by Severity

### [SEVERITY/CONFIDENCE] [Category]: [Description]
**File**: path/to/file.swift:line
**Phase**: [2: Detection | 3: Completeness | 4: Compound]
**Issue**: What's wrong or missing
**Impact**: App Store rejection / security vulnerability / privacy violation
**Fix**: Code example showing the fix
**Cross-Auditor Notes**: [if overlapping with another auditor]

## Privacy Manifest Checklist

| API Category | Found in Code | Declared in Manifest | Status |
|--------------|--------------|---------------------|--------|
| UserDefaults | Y/N | Y/N | OK / MISSING |
| FileTimestamp | Y/N | Y/N | OK / MISSING |
| SystemBootTime | Y/N | Y/N | OK / MISSING |
| DiskSpace | Y/N | Y/N | OK / MISSING |
| ActiveKeyboards | Y/N | Y/N | OK / MISSING |

## Recommendations
1. [Immediate — CRITICAL rejection and security risks]
2. [Short-term — Privacy Manifest completion, Keychain migration, HTTPS]
3. [Long-term — SSL pinning, snapshot protection, analytics anonymization]

Output Limits

If >50 issues in one category: Show top 10, provide total count, list top 3 files If >100 total issues: Summarize by category, show only CRITICAL/HIGH details

False Positives (Not Issues)

  • Secrets in .gitignored config files (verify with Git log)
  • Environment variables in build scripts or CI configs
  • Mock data and fixtures in test files
  • Comments mentioning "key" / "token" / "password"
  • Generic variable names matching credential patterns (e.g., dictionaryKey, mapKey)
  • HTTP URLs in documentation strings, error messages, example text
  • UserDefaults storing non-sensitive preferences (theme, launch count, feature flags)
  • Logger statements with explicit privacy: .private or .sensitive
  • CryptoKit used only for hashing (not encryption) — still check export compliance
  • kSecAttrAccessibleAfterFirstUnlock for tokens that need to survive background fetch (valid trade-off)

Related

For implementation patterns: axiom-shipping skill (privacy manifest creation) For Keychain patterns: axiom-security skill For ATS configuration: axiom-networking skill For entitlement issues: axiom-build skill For IAP-adjacent receipt security: axiom-audit-iap

Invocation Examples

Prompts that should launch this agent:

Explicit command: Users can also invoke this agent directly with axiom-scan-security-privacy — which covers privacy too (Privacy Manifests, sensitive-data storage and logging)

Scope

Scans for API keys in code, insecure @AppStorage usage, missing Privacy Manifests (iOS 17+), ATS violations, and logging sensitive data.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Axiom Scan Security Privacy AI 技能有什么作用?

当用户提到安全审查、准备提交 App Store、Privacy Manifest 要求、硬编码凭据或敏感数据存储时使用。

为什么在 TypingMind 中使用 Axiom Scan Security Privacy?

因为您只需安装一次,就能搭配任何模型使用。Axiom Scan Security Privacy 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Axiom Scan Security Privacy?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-scan-security-privacy。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Axiom Scan Security Privacy?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Axiom Scan Security Privacy 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Axiom Scan Security Privacy 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Axiom Scan Security Privacy AI 技能免费吗?

是的。CharlesWiltgen 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇