audit-security
Scan the codebase for security and privacy issues that risk credential exposure or App Store rejection.
What This Command Does
Launches the security-privacy-scanner agent to find credentials checked into source, sensitive data stored in the wrong place, missing Privacy Manifests required by iOS 17+, and ATS violations.
What It Checks
- API keys in code — credential-shaped strings (npm, AWS, Anthropic, OpenAI, Bearer tokens) anywhere in tracked files
- Insecure storage — tokens or PII in
UserDefaults/@AppStorageinstead of the Keychain - Missing Privacy Manifests —
PrivacyInfo.xcprivacynot present for SDKs that require declarations - ATS violations —
NSAllowsArbitraryLoadsor per-domain exceptions without justification - Logging sensitive data —
print/os_logcalls that emit tokens, emails, or other PII to the system log
Related Agent
- security-privacy-scanner — The agent that powers this command