Skip to content
Agentmart
Submit a tool

ios-security-review

Comprehensive security audit procedure for iOS/Swift code covering data storage, transport security, authentication, input validation, deep links, third-party…

Skill by apexbymanish

IndexedMIT
Write a review

Chalk Labs

Need help deploying ios-security-review?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/apexbymanish-ios-security-review

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Comprehensive security audit procedure for iOS/Swift code covering data storage, transport security, authentication, input validation, deep links, third-party SDKs, and entitlements. Use when asked for a security review, "is this secure", to check for vulnerabilities, or to audit authentication/authorization.

Use cases: data, security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ios-security-review

What's inside

Skill name
ios-security-review
Description
Comprehensive security audit procedure for iOS/Swift code covering data storage, transport security, authentication, input validation, deep links, third-party SDKs, and entitlements. Use when asked for a security review, "is this secure", to check for vulnerabilities, or to audit authentication/authorization.
License
MIT
Instructions
192 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# iOS Security Review

Per `ios-evidence-reporting`'s "a pattern match is a lead, not a
finding" rule, every hit below is something to check, not a proven
exploit. This procedure is read-only reconnaissance; it produces
findings, not fixes.

## 1. Data storage & privacy

```bash
grep -rn "UserDefaults" --include="*.swift" . | grep -iE 'token|password|secret|credential|auth'
grep -rl "kSecClass\|SecItemAdd\|SecItemCopyMatching" --include="*.swift" . | wc -l   # Keychain usage at all?
grep -rn "NSFileProtectionType\|isExcludedFromBackup" --include="*.swift" .
grep -rn "UIPasteboard.general" --include="*.swift" .
```

Check for:
- Credentials/tokens/PII in `UserDefaults`, a plist, or unencrypted
  Core Data/SwiftData instead of the Keychain.
- Sensitive Keychain items using an appropriate accessibility class
  (e.g. `kSecAttrAccessibleWhenUnlockedThisDeviceOnly` for
  high-sensitivity secrets, not the default).
- Sensitive files not excluded from iCloud/iTunes backup when they
  should be (`isExcludedFromBackup`).
- Sensitive data placed on the general `UIPasteboard` without an
  expiration or local-only option — it can be read by other apps.
- Sensitive screens (auth, payment) not redacted in the app switcher
  snapshot (no handling of `UIApplication.willResignActiveNotification`
  to blank the screen before backgrounding).

**Known false positives:** a `UserDefaults` key whose name coincidentally
contains "token"/"password" but stores a non-sensitive flag (e.g.
`hasSeenTokenOnboarding`, `passwordFieldFocused` as UI state) rather
than a credential value — read what's actually assigned, not just the
key name, before flagging it.

## 2. Transport security

```bash
grep -A5 "NSAppTransportSecurity" **/*.plist 2>/dev/null
grep -rn "NSAllowsArbitraryLoads\|NSExceptionAllowsInsecureHTTPLoads" **/*.plist 2>/dev/null
grep -rn "didReceive challenge" --include="*.swift" . -A8 | grep -i "useCredential\|performDefaultHandling"
grep -rn "http://" --include="*.swift" . | grep -v "localhost\|127.0.0.1"
```

Check for:
- ATS weakened globally (`NSAllowsArbitraryLoads: true`) rather than a
  scoped, justified per-domain exception.
- TLS certificate/server-trust validation bypassed
  (`URLSession(didReceive:completionHandler:)` unconditionally calling
  `.useCredential` for any host) — this defeats TLS entirely, not just
  weakens it.
- If the app implements certificate or public-key pinning, that this
  feature's networking path doesn't route around it.
- Sensitive data (tokens, PII) placed in a URL query string instead of
  a header or POST body — query strings end up in server logs, proxy
  logs, and browser/webview history.

**Known false positives:** `NSAllowsArbitraryLoads` set to `false` at
the top level with a scoped `NSExceptionDomains` entry for one known
test/staging host is a justified, narrow exception, not a blanket
weakening — read the surrounding plist keys, not just whether the
string appears. A `.useCredential` response inside `didReceive
challenge` for `NSURLAuthenticationMethodClientCertificate` (presenting
a client certificate for mutual TLS) is not the same finding as
`.useCredential` for `NSURLAuthenticationMethodServerTrust` (bypassing
server validation) — check which authentication method the challenge
handler is actually branching on before treating it as a TLS bypass.

## 3. Authentication & session management

```bash
grep -rln "LAContext\|LocalAuthentication" --include="*.swift" .
grep -rn "func logout\|func signOut" --include="*.swift" . -A15
```

Check for:
- Biometric auth (`LAContext`/Face ID/Touch ID) gating access to an
  actual secret (a Keychain item with an access-control policy) rather
  than just flipping an app-level boolean that any code path could
  bypass — a boolean gate protects nothing if the underlying data is
  reachable without it.
- Token/session expiry and refresh actually enforced, not stored and
  reused indefinitely.
- Logout actually clears stored tokens/session state (Keychain,
  in-memory, cookies) rather than only navigating to a login screen
  while the old session remains valid underneath.

## 4. Input validation & injection

```bash
grep -rn "WKWebView\|UIWebView" --include="*.swift" .
grep -rln "WKScriptMessageHandler" --include="*.swift" .
grep -rn "URL(string:.*\\\\(" --include="*.swift" .   # string-interpolated URLs
```

Check for:
- `UIWebView` (deprecated, no process isolation) instead of `WKWebView`.
- A WebView loading arbitrary or user-supplied URLs without a
  scheme/host allowlist.
- A JS-to-native bridge (`WKScriptMessageHandler`) exposing more native
  functionality than the loaded content needs.
- URLs or query strings built by string interpolation/concatenation of
  unescaped user input rather than `URLComponents`.
- Deserialized JSON/response data used without validating shape/types
  before acting on it — a malformed or unexpected response shouldn't
  corrupt app state or crash.

## 5. Deep links & URL schemes

```bash
grep -rn "CFBundleURLSchemes\|associatedDomains" **/*.plist **/*.entitlements 2>/dev/null
grep -rln "func application.*openURL\|onOpenURL" --include="*.swift" .
```

Check for:
- A custom URL scheme used for anything sensitive — any app can
  register the same scheme and intercept it; prefer Universal
  Links/associated domains for anything security-relevant.

From apexbymanish/claude-ai-agents-ios, MIT.

More from apexbymanish/claude-ai-agents-ios

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 28, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from apexbymanish

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get ios-security-review running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying ios-security-review?

CallGet help
Cite this page

ios-security-review skill. Agent Mart. https://agentmart.dev/skills/apexbymanish-ios-security-review (last updated 2026-10-24)