ablevarghese/ios-claude-toolkit/cipher-security

Claude Code and agent skill by ablevarghese/ios-claude-toolkit

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

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-security

Semi-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)

RationalizationWhy It's WrongRequired 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 = YES disables 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-review instead, which is designed for differential analysis with blast radius calculation.
  • Investigating a production crash or error from Sentry -- use sentry-find-bugs to 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-review or sentry-code-review for 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

What kind of security concern is this?
|
+-- Secrets/Credentials
| +-- Hardcoded in source? --> SOP-1: Pre-Commit Security Scan (P0 Critical)
| +-- In wrong storage? --> Migrate to Keychain (see references/ios-security-patterns.md)
| +-- Rotation needed? --> SOP-5 step 4: Encryption Audit + rotation plan
|
+-- Authentication/Authorization
| +-- Auth bypass possible? --> SOP-5 step 3: Authentication Review (P0 Critical)
| +-- Missing permission checks? --> Add server-side + client-side validation
| +-- Biometric implementation? --> See references/ios-security-patterns.md biometric section
|
+-- Data Protection
| +-- Data at rest? --> Verify Keychain usage, encryption, accessibility levels
| +-- Data in transit? --> Verify TLS 1.3, certificate pinning, ATS config
| +-- Data in memory? --> Verify secure erasure after use (zeroing buffers)
| +-- Data in logs? --> Audit all logging for PII leakage
|
+-- Network Security
| +-- Missing pinning? --> Implement certificate pinning (P1 High)
| +-- ATS exceptions? --> Audit each exception, remove unnecessary ones
| +-- Cleartext traffic? --> Block all HTTP, enforce HTTPS
|
+-- Compliance
| +-- Financial (KYC/AML/PCI)? --> See references/fintech-compliance.md
| +-- Privacy (GDPR/CCPA)? --> Data mapping + consent + deletion audit
| +-- Healthcare (HIPAA)? --> Encryption + access controls + audit logging
|
+-- Platform Security
+-- Jailbreak detection? --> See references/ios-security-patterns.md
+-- Runtime protection? --> Anti-debug, integrity checks, obfuscation
+-- App Transport Security? --> ATS configuration audit

Behavioral Enforcement

Phase Gate: SECRETS SCAN (MUST Be First)

Cannot proceed to ANY other analysis until:

  • [ ] gitleaks detect --source . --verbose has 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 VectoriOS ContextDetection Method
Stolen session tokensTokens stored insecurely or transmitted without TLSGrep for token storage locations, check Keychain accessibility
Fake biometric authLAContext result bypassed or replayedReview LAPolicy usage, check for server-side verification
Deep link spoofingMalicious app registers same URL schemeCheck for Universal Links validation, URL scheme handling
Push notification spoofingFake push payloads triggering actionsVerify push payload validation, server-side origin check
T -- Tampering

Question: Can an attacker modify data, code, or behavior?

Attack VectoriOS ContextDetection Method
Jailbreak + runtime manipulationMethod swizzling, debugger attachmentCheck for jailbreak detection, anti-debug measures
Man-in-the-middleModified API responsesCheck certificate pinning, TLS configuration
Local data modificationModified Keychain, UserDefaults, Core DataVerify data integrity checks, server-side validation
Binary patchingModified IPA sideloadedCheck code signing verification, integrity hashes
R -- Repudiation

Question: Can a user deny performing an action?

Attack VectoriOS ContextDetection Method
Missing audit trailFinancial transactions without server-side loggingCheck audit log completeness, server-side event recording
Client-side-only loggingLogs that can be deleted by the userVerify critical events are logged server-side
Unsigned transactionsActions without cryptographic proof of originCheck for request signing, transaction receipts
I -- Information Disclosure

Question: Can sensitive data leak to unauthorized parties?

Attack VectoriOS ContextDetection Method
Log leakagePII in os_log, NSLog, print statementsGrep all logging calls for sensitive data patterns
Backup exposureSensitive data included in iTunes/iCloud backupsCheck isExcludedFromBackup on sensitive file URLs
Pasteboard leakageCopied passwords/tokens accessible to other appsCheck UIPasteboard usage for sensitive operations
Screenshot exposureSensitive data visible in app switcher snapshotCheck for overlay/blur on applicationWillResignActive
Memory dumpSensitive data in memory readable via debuggerCheck for memory zeroing after use
D -- Denial of Service

Question: Can an attacker make the app unavailable?

Attack VectoriOS ContextDetection Method
Force unwrap crashNil value in security-critical path crashes appGrep for ! in auth, crypto, and validation code
Resource exhaustionUnbounded data loading, infinite loopsCheck for pagination, timeouts, cancellation
Watchdog killMain thread blocked during security operationsVerify 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ablevarghese/ios-claude-toolkit/cipher-security/badge)](https://verified-skill.com/skills/ablevarghese/ios-claude-toolkit/cipher-security)

Something wrong with this skill or its page? Tell us.