Xcode security settings
Security build-setting and entitlement decisions for iso, from an audit
adapted from Xcode’s audit-xcode-security-settings skill (2026-10-21). iso
is built with SwiftPM, not an Xcode project. Each Xcode setting is therefore
mapped to what SwiftPM and codesign can express: entitlements, the hardened
runtime and the build triple.
Shipped executables: iso, iso-proxy, iso-egress, iso-sandbox,
iso-macos-helper. Each is signed with the hardened runtime. iso-macos-helper
runs inside macOS guests. iso-ci (built from source, unsigned) and
IsoPolicyBench (not shipped) are out of scope.
Enabled settings
These entitlements live in
scripts/enhanced-security.entitlements.
iso-sandbox/iso-sandbox.entitlements
repeats them alongside com.apple.security.virtualization.
scripts/build-release.py refuses a bundle whose binaries lack any of these
keys.
com.apple.security.hardened-processcom.apple.security.hardened-process.enhanced-security-version-stringto"2"com.apple.security.hardened-process.hardened-heapcom.apple.security.hardened-process.dyld-rocom.apple.security.hardened-process.platform-restrictions-stringto"2": no first-party code uses raw Mach IPC ordlopen. Virtualization.framework and containerization use XPC.com.apple.security.hardened-process.checked-allocations: hardware memory tagging, enforced on M5 or later Macs. It also applies on plainarm64.com.apple.security.hardened-process.checked-allocations.soft-mode: memory tagging violations write a simulated crash report instead of terminating. Remove soft mode for enforcement once crash reports from M5 hosts have been reviewed.- Hardened runtime (
codesign --options runtime): already in place before this audit.
Plain swift build development binaries are linker-signed only and carry
none of these entitlements.
Strict memory safety (.strictMemorySafety() as an error) is SwiftPM’s
nearest equivalent to the extra diagnostic settings. It is on in the shared
core, configuration, policy, proxy and egress targets listed in
code style.
Disabled settings
None.
Deferred
Settings considered but not yet enabled. Revisit them later.
ENABLE_POINTER_AUTHENTICATION(arm64e): the mise-pinned Swift 6.4.0 toolchain cannot link arm64e, because itsusr/lib/swift/macosxruntime stubs have onlyx86_64,arm64slices. With the default build system,swift build --triple arm64e-…silently emitsarm64. Xcode 27’s toolchain (xcrun swift build --arch arm64 --arch arm64e) builds a working universal binary. Adopting it means moving the release builds to Xcode’s toolchain and updatingBUILD.json’sarchitectureandverify-candidate.py.#if arch(arm64)still holds on arm64e.com.apple.security.hardened-process.checked-allocations.enable-pure-dataandchecked-allocations.no-tagged-receive: optional memory tagging sub-options, not part of the default set.
Not applicable
- Compiler, static analyzer and clang-tidy warnings (
GCC_WARN_*,CLANG_WARN_*,CLANG_ANALYZER_SECURITY_*,CLANG_TIDY_*): no first-party C, C++ or Objective-C ships. Vendored C in dependencies isn’t configured here, andfuzz/libfuzzeris fuzz-only. ENABLE_HARDWARE_CHECKED_POINTER_ARITHMETIC_SLICEandchecked-allocations.enforce-checked-pointer-arithmetic-overflow: iOS and watchOS only.ENABLE_C_BOUNDS_SAFETYandENABLE_CPLUSPLUS_BOUNDS_SAFE_BUFFERS: no first-party C or C++ ships.