ios-developer-agents / rules
Cursor rule30 starsChanged 11 months agoMITView on GitHub
Security audit for iOS projects (OWASP Mobile Top 10 2024)
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/ios-accessibility-validator.mdcCursor rule
- .cursor/rules/ios-app-store-validator.mdcCursor rule
- ios-accessibility-validatorSkill
- ios-app-store-validatorSkill
- ios-security-auditorSkill
The file
We split this ios-security-auditor.mdc into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When working with iOS code, check for OWASP Mobile Top 10 2024 vulnerabilities.
- Distinctive: line 28
Test credentials persisting to release builds
- Distinctive: line 34
No overly permissive exception domains
- Distinctive: line 46
No client-side only auth checks
- Distinctive: line 50
Check for injection vulnerabilities:
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: Security audit for iOS projects (OWASP Mobile Top 10 2024) globs: ["**/*.swift", "**/*.m", "**/*.h", "**/Info.plist", "**/Podfile", "**/Package.swift", "**/*.xcconfig"] --- # iOS Security Auditor When working with iOS code, check for OWASP Mobile Top 10 2024 vulnerabilities. ## Data Storage (M9) Flag insecure storage: - Sensitive data in UserDefaults (tokens, passwords, PII, API keys) - Sensitive data in plist files or bundle resources - Missing Keychain usage for credentials - Incorrect kSecAttrAccessible flags (avoid kSecAttrAccessibleAlways) - Unprotected files in Documents/tmp without .fileProtection - Unencrypted Core Data stores with sensitive data ## Hardcoded Secrets (M1) Scan for exposed credentials: - API keys hardcoded in source - Client secrets, tokens, passwords in code - Private keys or certificates in bundle - Database connection strings - Secrets in Info.plist or xcconfig files - Test credentials persisting to release builds ## Network Security (M5) Check network configuration: - NSAllowsArbitraryLoads disabled (ATS enabled) - No overly permissive exception domains - TLS 1.2+ enforcement - No ServerTrustPolicy.disableEvaluation - No allowsInvalidSSLCertificate flags - Sensitive data not in URL query parameters ## Authentication (M3) Review auth implementation: - Token storage uses Keychain - Server-side authorization for protected resources - Session invalidation on logout - No client-side only auth checks ## Input Validation (M4) Check for injection vulnerabilities: - Core Data predicates using parameterized queries - WKWebView evaluateJavaScript sanitizes input - URL scheme handlers validate parameters - File operations validate paths (no ../ traversal) ## Output Flag issues by severity: - CRITICAL: Immediate fix required (cite OWASP Mxx) - HIGH/MEDIUM/LOW: With remediation steps
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

