trackslash
VAULT-152 P2 For an agent

Turn on Enhanced Security for the AutoFill and widget extensions too

0
All issues

Description

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.

Sub-issues

0

Linked issues

0

GitHub

0

No branches or pull requests linked.

Comments

2
Bradley

Done in vault-app #761 (merged as 0985103c), after Bradley added the capability to the extensions' App IDs and targets.

  • Extensions: all four have ENABLE_ENHANCED_SECURITY and the apps' seven hardened-process entitlements.
  • Validation: make validate requires them of every extension.
  • Docs: G101 holds with no limit.
  • Shipped: the 2.2 builds 100018 and 100019 include it, signed for the App Store.
  • Follow-ups: App Store Connect's warnings on 100018 led to #762 (iOS 27, and the arm64e.x1 slice so the pointer-arithmetic overflow check takes effect) and #763 (UIRequiredDeviceCapabilities arm64).

Still to check from TestFlight: on an iPhone, AutoFill unlocks with the App Lock Password within the extension's memory limit. On an A20 Pro iPhone, nothing crashes under checked pointer arithmetic.

Bradley

Update from #750 (2026-10-19):

  • Pointer authentication is done for the extensions too. Pointer authentication makes the apps build arm64e. The Swift packages then had to build arm64e as well (iOSPackagesShouldBuildARM64e and macOSPackagesShouldBuildARM64e in Vault.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings). A Debug build then has only the arm64e slice, so the extensions had to be built with pointer authentication or they couldn't link. #750 sets ENABLE_POINTER_AUTHENTICATION = YES at the project level.
  • The rest of Enhanced Security needs the account changed first. I tried giving all four extensions ENABLE_ENHANCED_SECURITY and the hardened-process entitlements. Signing fails: "Provisioning profile "Mac Team Provisioning Profile: com.badbundle.vault.Widgets" doesn't include the Enhanced Security capability", and the same for …VaultAutofill. The capability has to be turned on for the extensions' App IDs, on iOS and the Mac, and their development and App Store profiles regenerated. The simplest way is to add the capability to each extension target in Xcode, so Xcode updates the App IDs. That changes the Apple Developer account, so it's Bradley's step.
  • Then: the code side of this ticket is unchanged (local-check.config.ts allowed and required lists, docs, G101's limit), plus regenerating the "Vault Mac AutoFill App Store" and "Vault Mac Widgets App Store" profiles, and the iOS ones.