/OC-Anonymizer

Random script to censor sensitive fields in OpenCore's config.plist

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

macOS

OC Anonymizer – remove sensitive data from your config.plist

About

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.

Features

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 to Disabled → 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 to 3 (Default)
    • UEFI/APFS: Changes MinDate and MinVersion to -1 to maximize macOS compatibility

Instructions

  • 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.plistin the oc_anonymizer folder without sensitive data and changed settings as described.

Issues

If you encounter any issue, please file a bugreport here

Credits and Resources