capacitor-ios-security-hardening
БесплатноЗапускает вложенные скриптыНе проверенAudits and progressively hardens Xcode security build settings for a Capacitor iOS app (ios/App/App.xcodeproj, scheme App) and native plugin code…
от Cap-go★ 79 звёзд на GitHubОб этом скилле
Capacitor iOS Security Hardening
Audit the security-relevant Xcode build settings of a Capacitor app and its native plugins, then enable them in stages the user approves. This skill changes build settings and entitlements only. It never touches web code, ATS, signing, or secrets.
When to Use
TRIGGER when:
- The user wants to audit or harden the iOS build configuration of a Capacitor app
- The user asks about Enhanced Security,
ENABLE_ENHANCED_SECURITY, hardened-process entitlements, pointer authentication, arm64e, or memory tagging - After enabling Enhanced Security, the link step fails with errors that mention
arm64e - A plugin author wants stricter warnings or static analysis for plugin Swift/ObjC/C code
- The user wants "Build and Analyze" /
xcodebuild analyzein CI
Do not use:
- ATS, TLS pinning, signing, secrets, WebView config, Capsec scans:
capacitor-security - App Store privacy manifest and review checklist:
capacitor-apple-review-preflight - The AppDelegate to SceneDelegate migration:
capacitor-uiscene-migration - Android R8, network security config:
capacitor-security
Facts that change the plan
- Build settings do not cross project boundaries. Settings on the App target do not apply to Pods (
ios/App/Pods/Pods.xcodeproj), to SPM packages (plugins,CapApp-SPM), or to the Cordova plugin package thatnpx cap syncgenerates. Hardening plugin code is done in the plugin repo (podspec / Package.swift), not in the app. - The App target of a stock Capacitor app is pure Swift (
AppDelegate.swift,SceneDelegate.swift). Clang warnings and analyzer checkers only matter if the app target has.m,.mm,.cor.cppfiles. Detect languages before proposing them. - The Capacitor 8 templates already set three Stage A warnings at project level (
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR,GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE,GCC_WARN_64_TO_32_BIT_CONVERSION = YES). Report them as already hardened. Do not re-add them. - WKWebView content is not affected. JavaScript and JIT run in WebKit's own processes. Enhanced Security entitlements apply to the app process and the native code linked into it (Capacitor runtime, plugins, SDKs).
- Pointer authentication adds an
arm64eslice to device builds. Every binary linked into the app must also havearm64e, or the link fails. This is the main breakage risk in Capacitor apps. See references/enhanced-security.md. - Do not edit generated files.
ios/App/Pods/**,Pods-App.*.xcconfig,ios/App/CapApp-SPM/Package.swift,ios/capacitor-cordova-ios-plugins/**andios/debug.xcconfig(SPM template, Debug only, CLI-managed) are rewritten by CocoaPods ornpx cap sync. Put settings in the App project (Xcode Build Settings, which writesproject.pbxproj) or in an xcconfig the team already owns. - The user owns the result. Enhanced Security turns latent memory bugs into crashes. Report findings and get approval before changing anything. Test on real hardware before shipping.
References
Only load a reference when its topic is in play.
| File | Load when |
|---|---|
| references/settings-catalog.md | Building the audit table: every tracked setting, its hardened value, language scope, risk |
| references/reading-build-settings.md | Running xcodebuild -showBuildSettings, using the audit script, telling "explicitly disabled" from "default off" |
| references/enhanced-security.md | Enabling the Enhanced Security capability, entitlements, pointer authentication with CocoaPods/SPM/binary SDKs, memory tagging |
| references/plugin-authors.md | Hardening plugin code: podspec pod_target_xcconfig, Package.swift warning settings, analyzing a plugin repo, shipping arm64e xcframeworks |
| references/decision-log.md | Creating or updating the team's decision document |
Script: scripts/audit-build-settings.mjs filters xcodebuild -showBuildSettings -json output to the tracked settings and marks each as hardened, default, or explicitly set (when given the pbxproj).
Workflow
1. Brief and check source control
Tell the user in two or three sentences: you will audit first, write a plan, and change nothing until they approve. If the project has no git, recommend committing first. Stop if they decline.
2. Discover (read-only)
- Confirm the iOS project:
ios/App/App.xcodeprojexists. Note SPM (ios/App/CapApp-SPM/) vs CocoaPods (ios/App/Podfile,App.xcworkspace). - Read the Capacitor version from
package.json(@capacitor/ios). Capacitor 8 deploys to iOS 15, Capacitor 9 to iOS 16 and needs Xcode 27. - Detect languages in the App target folder:
find ios/App/App -name '*.m' -o -name '*.mm' -o -name '*.c' -o -name '*.cpp'. Also run `grep -
Установить capacitor-ios-security-hardening в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл capacitor-ios-security-hardening?
Audits and progressively hardens Xcode security build settings for a Capacitor iOS app (ios/App/App.xcodeproj, scheme App) and native plugin code (Swift/ObjC/C, Package.swift, podspec). Covers `xcodebuild -showBuildSettings -json`, security compiler warnings, static analyzer checkers (`xcodebuild analyze`), Xcode Enhanced Security (ENABLE_ENHANCED_SECURITY, com.apple.security.hardened-process entitlements, pointer authentication / arm64e, memory tagging soft mode), what is safe for a WKWebView hybrid app vs what breaks CocoaPods, SPM binary xcframeworks or Cordova plugins, staged adoption, and a decision log. Use for "harden my iOS build", "enable Enhanced Security", security build settings audit, arm64e link errors after enabling pointer authentication, or Build and Analyze setup. Do not use for ATS/TLS, signing, secrets or WebView rules (capacitor-security), or App Store review (capacitor-apple-review-preflight).
Как установить скилл capacitor-ios-security-hardening?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл capacitor-ios-security-hardening запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic