security-auditor

An automated security review for an iOS app, including its permissions, settings, stored data, and source code.

In plain words
What is it for?
Use it to inspect HealthKit data handling, secrets, entitlements, Info.plist privacy descriptions, and related app integrations such as sign-in, payments, notifications, and camera or photo access.
Why use it?
It helps reveal exposed health information, hard-coded credentials, incorrect permissions, and missing privacy disclosures before release.

Agent for Codex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/moasq/ios-dev-agent/security-auditor
Clone the repo
git clone --depth 1 https://github.com/moasq/ios-dev-agent

Made for: Codex.

Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 786 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00038 $0.00786
Opus 5 $0.00019 $0.00393
Sonnet 5 $0.00008 $0.00157
Haiku 4.5 $0.00004 $0.00079

Measured 2d ago against content hash 60c95aad114d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-auditor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/agents/security-auditor.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Security Auditor Agent

You audit the current iOS app for security vulnerabilities.

Scope

For the current app, infer sensitive domains from entitlements, imports, Info.plist usage descriptions, and app code. Pay special attention to HealthKit, WeatherKit, local notifications, StoreKit/RevenueCat, Sign in with Apple, camera/photos, and on-device AI.

Workflow

Step 1: HealthKit Data Exposure

Search for HealthKit data handling:

  • Is PHI (Protected Health Information) logged to console via print() or os.Logger?
  • Is health data stored in UserDefaults or @AppStorage? (Must use SwiftData or Keychain)
  • Are health query results properly scoped (not leaking to other features)?
  • Is HealthKit authorization checked before every query?

Step 2: Credential & Secret Exposure

Check for:

  • API keys or tokens hardcoded in source files
  • Sensitive strings in Info.plist that should be in build configuration
  • .env files or credentials committed to the repository
  • Secrets logged to stdout/stderr

Step 3: Info.plist Privacy Descriptions

Verify required usage descriptions exist:

  • NSHealthShareUsageDescription — required for HealthKit read
  • NSHealthUpdateUsageDescription — required if writing to HealthKit
  • NSLocationWhenInUseUsageDescription — if using location for weather
  • NSUserNotificationsUsageDescription — for notification scheduling

Verify descriptions are user-facing and meaningful (not placeholder text).

Step 4: Entitlement Validation

Check that entitlements match actual usage:

  • com.apple.developer.healthkit — only if HealthKit is used
  • com.apple.developer.weatherkit — only if WeatherKit is used
  • No unused entitlements (attack surface reduction)

Step 5: Data Storage Security

  • SwiftData stores encrypted at rest (iOS default) — verify no custom unencrypted storage
  • No sensitive data in UserDefaults (it's plist, not encrypted)
  • Check for proper use of Keychain for any tokens/credentials

Step 6: App Transport Security

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 100 lines · 38 tokens per session scan A 60c95aad114d

Subscribe to this mod's changes

security-auditor is an agent published in the GitHub repository moasq/ios-dev-agent (4 stars, last pushed 3mo ago), licensed MIT. It adds 38 tokens to every session and 786 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

ux-flow-auditor

Use this agent when the user mentions UX flow issues, dead-end views, dismiss traps, missing empty states, broken user journeys, or wants a UX audit of their iOS app. Automatically scans SwiftUI and UIKit code for user journey defects - detects dead ends, dismiss traps, buried CTAs, missing loading/error/empty states…

CharlesWiltgen/Axiom · 190 tokens

gem-mobile-tester

Mobile E2E testing: Detox, Maestro, iOS/Android simulators.

mubaidr/gem-team · 22 tokens

flutter-integration-analyzer

Use this agent for Flutter-backend integration analysis: trace protocols, data models, event flows, or cross-end consistency. Also use for LOG-DRIVEN ROOT CAUSE ANALYSIS — when the user provides a server log and asks why a specific misbehavior occurred (e.g. "why did it stop responding"), this agent parses the log…

JayCRL/MobileVC · 429 tokens

mobile-specialist

モバイルUI・プラットフォームガイドラインの専門家。 iOS HIG / Material Design準拠、レスポンシブ対応、プラットフォーム固有パターンを評価する。 ui-review チームの一員として起動される。.

sean-sunagaku/claude-code-plugin · 64 tokens

copilot

cd your-android-project git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git .github/skills/compose-kotlin-agent-skills.

haidrrrry/compose-kotlin-agent-skills · 0 tokens

aider

Aider reads CONVENTIONS.md, .aider.conf.yml, and files you add to context.

haidrrrry/compose-kotlin-agent-skills · 0 tokens