ablevarghese/ios-claude-toolkit/cipher-security
Claude Code and agent skill by ablevarghese/ios-claude-toolkit
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Is our data safe, check for vulnerabilities, security posture, before we ship. Security scanning, vulnerability assessment, and compliance auditing for iOS apps — secrets management, OWASP Mobile Top 10, KYC/AML/PCI DSS, encryption audits. Trigger on: 'are we secure', 'audit security', 'scan for secrets', 'hardcoded API keys', 'check authentication', 'compliance review', 'data protection', or pre-launch security review. For security review of a specific PR or diff, use trailofbits-differential-review instead. For production crash investigation, use sentry-find-bugs.
Install
npx vskill@latest install ablevarghese/ios-claude-toolkit/cipher-securitySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ablevarghese/ios-claude-toolkit/cipher-security.
Security & Compliance
Iron Law: "Never ship code that handles sensitive data without a security review. Velocity is not an excuse."
Assess application security posture, enforce compliance standards, and prevent credential exposure across iOS codebases and infrastructure.
Project Discovery: Before executing, determine project-specific values (project name, secrets configuration files, gitignore patterns, backend infrastructure) from project configuration files (CLAUDE.md, project.yml, .xcodeproj, .gitignore).
Rationalizations (Do Not Skip)
| Rationalization | Why It's Wrong | Required Action | |
|---|---|---|---|
| "Security review slows us down" | A breach costs 100x more than a review. Equifax lost $1.4B from one missed patch. | Schedule security review as non-negotiable sprint work. Budget time for it. | |
| "We're not a target" | Automated scanners don't care about your company size. Every app with user data is a target. | Apply baseline security controls regardless of perceived threat level. | |
| "The framework handles security" | Frameworks provide tools, not guarantees. Misconfigured Keychain is as bad as no Keychain. | Verify framework security features are correctly configured for your use case. | |
| "We'll add security later" | Security debt compounds. Retrofitting auth or encryption into a shipped product is 10x harder. | Build security in from day one. Every PR touching sensitive data gets reviewed. | |
| "It's just test data" | Test environments with real-looking data train developers to be careless. Test API keys in production happen constantly. | Use obviously fake test data. Never share credentials between test and production. | |
| "Apple's sandbox protects us" | Sandbox prevents some attack vectors, not all. Logic flaws, server-side attacks, and social engineering bypass sandboxing entirely. | Implement defense in depth. Do not rely on a single security boundary. | |
| "Our users wouldn't do that" | Users don't attack you -- attackers who compromise user accounts do. | Model threats from the attacker's perspective, not the user's. | |
| "It passed App Review" | App Review checks guidelines, not security. Apple does not audit your Keychain usage, API security, or business logic. | Treat App Review as a UX/policy gate, not a security audit. |
Red Flags -- HARD STOP
These are not warnings. Each is a BLOCKING condition. If encountered, STOP all other work until resolved.
- BLOCKED: Hardcoded API keys or secrets found anywhere in source code -- even in comments, even in tests, even "temporarily". STOP and remediate before any other work. Remediation: Remove from code, rotate credential, add to .gitignore, verify git history with
git log -p --all -S 'SECRET_VALUE'to confirm no exposure. - BLOCKED: PII appearing in application logs (NSLog, os_log, print, Logger) -- user emails, phone numbers, tokens, or financial data in log output. STOP. Remove logging immediately. Audit log storage for existing PII exposure. Notify owner.
- BLOCKED: Force unwraps (`!`) in security-critical code paths -- authentication, encryption, token validation, biometric checks. A crash in security code is a denial-of-service vulnerability. STOP. Replace with guard/if-let and proper error handling before proceeding.
- BLOCKED: Sensitive data stored in UserDefaults or plist files -- these are plaintext XML files trivially readable on jailbroken devices or via device backups. STOP. Migrate to Keychain with appropriate accessibility level before proceeding.
- BLOCKED: Missing SSL/TLS pinning in production builds -- without pinning, any CA-signed certificate is trusted, enabling man-in-the-middle attacks on any network. STOP. Implement pinning before shipping.
- BLOCKED: ATS exceptions allowing arbitrary HTTP loads --
NSAllowsArbitraryLoads = YESdisables all transport security. STOP. Each exception must be individually justified with documented business reason.
When NOT to Use This Skill
- Reviewing a specific PR or diff for security regressions -- use
trailofbits-differential-reviewinstead, which is designed for differential analysis with blast radius calculation. - Investigating a production crash or error from Sentry -- use
sentry-find-bugsto analyze the crash, then return here if the root cause is a security issue. - Performance profiling or optimization -- use
prometheus-performance. Performance and security occasionally intersect (e.g., timing attacks), but the primary skill should match the primary concern. - General code review without security focus -- use
ios-revieworsentry-code-reviewfor non-security-focused review. - Infrastructure or CI/CD security -- this skill focuses on application-level security. Infrastructure security (server hardening, network segmentation) is out of scope.
Decision Framework
Behavioral Enforcement
Phase Gate: SECRETS SCAN (MUST Be First)
Cannot proceed to ANY other analysis until:
- [ ]
gitleaks detect --source . --verbosehas been run (or equivalent) - [ ] Results reviewed -- zero secrets found, OR found secrets documented as P0 Critical
- [ ] If secrets found: STOP all other work. Report immediately. Rotate compromised credentials.
Why first: A hardcoded secret is a P0 Critical that makes everything else irrelevant. Finding it after spending an hour on STRIDE analysis wastes time. Find it first.
Phase Gate: STRIDE COMPLETION
Cannot proceed to findings until ALL 6 categories addressed:
- [ ] Spoofing -- identity threats analyzed
- [ ] Tampering -- data integrity threats analyzed
- [ ] Repudiation -- audit trail threats analyzed
- [ ] Information Disclosure -- data exposure threats analyzed
- [ ] Denial of Service -- availability threats analyzed
- [ ] Elevation of Privilege -- authorization threats analyzed
Missing category = incomplete threat model. Go back and address it.
Phase Gate: FINDINGS FORMAT
Every finding MUST follow this exact format: [SEC-XXX] | [STRIDE Category] | [Critical/High/Medium/Low] | [Description] | [Evidence] | [Remediation]
Findings without all 6 fields are INCOMPLETE. Generic findings like "improve security" are REJECTED.
Hard Stop: If a Critical finding is identified -- STOP all other analysis. Report it immediately. Critical findings block deployment.
Counter-Based Escalation
- Review pass #1: Normal. Work through STRIDE, document findings.
- Review pass #2: If revisiting because pass #1 missed something, write down what was missed and why.
- Review pass #3: STOP. If you are on your third pass, the scope may be too large or the architecture too complex. ESCALATE to human partner with: what you have found so far, what you are uncertain about, what you need clarified.
Threat Modeling: STRIDE for iOS
Before any security assessment, perform STRIDE analysis adapted for mobile:
S -- Spoofing (Identity)
Question: Can an attacker impersonate a legitimate user or component?
| Attack Vector | iOS Context | Detection Method | |
|---|---|---|---|
| Stolen session tokens | Tokens stored insecurely or transmitted without TLS | Grep for token storage locations, check Keychain accessibility | |
| Fake biometric auth | LAContext result bypassed or replayed | Review LAPolicy usage, check for server-side verification | |
| Deep link spoofing | Malicious app registers same URL scheme | Check for Universal Links validation, URL scheme handling | |
| Push notification spoofing | Fake push payloads triggering actions | Verify push payload validation, server-side origin check |
T -- Tampering
Question: Can an attacker modify data, code, or behavior?
| Attack Vector | iOS Context | Detection Method | |
|---|---|---|---|
| Jailbreak + runtime manipulation | Method swizzling, debugger attachment | Check for jailbreak detection, anti-debug measures | |
| Man-in-the-middle | Modified API responses | Check certificate pinning, TLS configuration | |
| Local data modification | Modified Keychain, UserDefaults, Core Data | Verify data integrity checks, server-side validation | |
| Binary patching | Modified IPA sideloaded | Check code signing verification, integrity hashes |
R -- Repudiation
Question: Can a user deny performing an action?
| Attack Vector | iOS Context | Detection Method | |
|---|---|---|---|
| Missing audit trail | Financial transactions without server-side logging | Check audit log completeness, server-side event recording | |
| Client-side-only logging | Logs that can be deleted by the user | Verify critical events are logged server-side | |
| Unsigned transactions | Actions without cryptographic proof of origin | Check for request signing, transaction receipts |
I -- Information Disclosure
Question: Can sensitive data leak to unauthorized parties?
| Attack Vector | iOS Context | Detection Method | |
|---|---|---|---|
| Log leakage | PII in os_log, NSLog, print statements | Grep all logging calls for sensitive data patterns | |
| Backup exposure | Sensitive data included in iTunes/iCloud backups | Check isExcludedFromBackup on sensitive file URLs | |
| Pasteboard leakage | Copied passwords/tokens accessible to other apps | Check UIPasteboard usage for sensitive operations | |
| Screenshot exposure | Sensitive data visible in app switcher snapshot | Check for overlay/blur on applicationWillResignActive | |
| Memory dump | Sensitive data in memory readable via debugger | Check for memory zeroing after use |
D -- Denial of Service
Question: Can an attacker make the app unavailable?
| Attack Vector | iOS Context | Detection Method | |
|---|---|---|---|
| Force unwrap crash | Nil value in security-critical path crashes app | Grep for ! in auth, crypto, and validation code | |
| Resource exhaustion | Unbounded data loading, infinite loops | Check for pagination, timeouts, cancellation | |
| Watchdog kill | Main thread blocked during security operations | Verify crypto and network operations are off main thread |
E -- Elevation of Privilege
Question: Can an attacker gain unauthorized access?
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cipher-security/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ablevarghese/ios-claude-toolkit/cipher-security)