Python Script for removing sensitive data from OpenCore's config.plist
. Useful if you plan to share your Config/EFI online. Also resets some settings to default values which should not be carried over to a differnt system. Check the feature list for more details.
Changes the following Settings/Parameters in the config.plist:
- Anonymizes SMBIOS data for:
PlatformInfo/Generic/MLB
PlatformInfo/Generic/ROM
PlatformInfo/Generic/SystemSerialNumber
PlatformInfo/Generic/SystemUUID
- Security Settings:
Misc/Security/ApECID
=0
Misc/Security/ScanPolicy
=0
Misc/Security/SecureBootModel
=Disabled
→⚠️ Disables Apple Secure Boot hardware model to avoid issues during Installation. Re-enable it in Post-Install so System Updates work when using an SMBIOS of a Mac model with a T2 Security Chip.Misc/Security/Vault
=Optional
- Other Settings:
- Sets
Misc/Boot/LauncherOption
toDisabled
→ To avoid changing boot menu entries on the target system's Firmware/BIOS. - Removes custom entries from
Misc/BlessOverride
- Removes custom boot loader entries from
Misc/Entries
- Sets
Misc/Debug/Target
to3
(Default) UEFI/APFS
: ChangesMinDate
andMinVersion
to-1
to maximize macOS compatibility
- Sets
- Install Python if you haven't already
- Click on "Code" > "Download ZIP" and upack it.
- Copy/move the OC-Anonymizer-master folder to your Desktop
- Start Terminal
- Enter:
cd desktop/OC-Anonymizer-master
- Next, enter
python3 oc_anonymizer.py PATH_TO_CONFIG.plist
(you can also drag and drop the config into the terminal) - Hit
ENTER
This will create a censored_config.plist
in the oc_anonymizer folder without sensitive data and changed settings as described.
If you encounter any issue, please file a bugreport here
- Acidanthera for OpenCorePkg
- 1alessandro1 for the initial idea
- Dreamwhite for the original Python script
- Guide for removing sensitive data manually