Follow-up to turning on Apple's Enhanced Security for the iOS and Mac apps (2026-10-19, G101).
Today
Only the VaultApp and VaultMacApp targets have ENABLE_ENHANCED_SECURITY = YES and the com.apple.security.hardened-process* entitlements. The extensions don't:
- the AutoFill extensions (
VaultAppAutofill, VaultMacAutofill);
- the widget extensions (
VaultWidgetsExtension, VaultMacWidgets).
The AutoFill extensions open the vault with the App Lock Password, on iOS and the Mac. So they handle the same keys and secrets as the apps, and they're just as worth hardening.
Change
- Turn it on: in Xcode, add the Enhanced Security capability to all four extension targets, with the same settings as the apps (version 2, hardened heap, checked allocations with pointer-arithmetic overflow checks, read-only dyld state, platform restrictions version 2).
- Validation: in
local-check.config.ts, add enhancedSecurity's keys to the extensions' allowed lists, and pass it as required to their checkSignedEntitlements and checkSimulatorEntitlements calls.
- Docs: update docs/mac-app.md (the App Sandbox section's extension paragraphs) and G101 in docs/security-model.md, removing its limit.
- Memory check: AutoFill runs within an extension's memory limit and derives Argon2id keys. Check the hardened heap doesn't push the iOS AutoFill extension over that limit (see VAULT-131), and that AutoFill still unlocks with the App Lock Password on a device.
Done when
All four extensions are built with Enhanced Security. make validate requires it of them, G101 holds with no limit, and AutoFill still unlocks on iOS and the Mac.