Local administrator users on macOS can natively override standard Gatekeeper prompts using the “Open Anyway” option in System Settings. A standard Gatekeeper restriction can set the allowed app source, but it does not always prevent a local admin from manually approving a blocked app. To fully prevent this behavior, deploy a custom macOS configuration profile that enforces Gatekeeper lockdown using the DisableOverride key. This disables the Gatekeeper override option so local admins cannot approve blocked third-party apps manually.
Recommended approach:
- Create a non-encrypted
.mobileconfig profile using Apple Configurator, ProfileCreator, or another profile-generation tool.
- Configure the profile to disable Gatekeeper override by enabling the
DisableOverride key in the appropriate Gatekeeper/System Policy Control payload.
- In Hexnode, go to Policies > macOS > Configurations > Deploy Custom Configuration.
- Upload the
.mobileconfig profile.
- Assign the policy to the target Mac devices or device groups and save the policy.
Once the profile is applied successfully, the “Open Anyway” option is disabled, preventing local admins from bypassing Gatekeeper for blocked apps.