

- #EXCEL FOR MAC TRUST CENTER CODE#
- #EXCEL FOR MAC TRUST CENTER PASSWORD#
- #EXCEL FOR MAC TRUST CENTER WINDOWS#
To protect your systems, after testing, you should change this configuration to NO. As of Office for Mac version 16.20 (Released December 2018), Microsoft has released the configuration preference “TryDefaultPassword.” This configuration preference will default to YES, which means Excel will continue to silently decrypt these files for you. On Office for Mac, there wasn’t a matching configuration to disable this functionality. HKCU\Software\Microsoft\Office\1?.0\Excel\Security\TryDefaultPassword

On Windows, the following registry key can be set to 0 to disable this functionality:
#EXCEL FOR MAC TRUST CENTER PASSWORD#
Okay, now that we’ve given some high level background into this ancient default password that is used to automatically decrypt Excel workbooks… We can cover how it can be disabled. TryDefaultPasswordīefore we go into this new configuration, I’m going to reference a few articles: On macOS, these controls are per-user and apply to entire suite of Microsoft products. On Windows, these controls are per-user and per-application. There is one minor difference in the application of this control between the two operating systems. By default, access to the Object Model will be blocked. There will be a configuration preference “VBAObjectModelIsTrusted” that will allow administrators to control whether or not the Office Suite will allow access to the VBA Object Model. Microsoft will be deploying this setting to the other products in Office for Mac 2019 in version 16.21². Previously, in Office for Mac, this was only implemented in PowerPoint. To turn on access, select the check box."
#EXCEL FOR MAC TRUST CENTER CODE#
For automation clients to access the VBA object model, the user running the code must grant access. It is a per-user and per-application setting, and denies access by default, hindering unauthorized programs from building harmful self-replicating code. Select the Macro setting that you wish and check the Trust access to the VBA project model checkbox. This security option is for code written to automate an Office program and manipulate the VBA environment and object model. When the Trust Center window opens, select Macro Settings.
#EXCEL FOR MAC TRUST CENTER WINDOWS#
This is locked down on Windows in the Trust Center with a setting called “Trust access to the VBA project object model.” Microsoft describes this setting here¹: "Disallow or allow programmatic access to the Visual Basic for Applications (VBA) object model from an automation client. One opportunity was the ability for office documents opened in Office for Mac to dynamically generate Visual Basic for Applications (VBA) modules. We reached out to Microsoft on these gaps and they’ve provided two additional controls for Office for Mac to better secure macOS systems. As part of ongoing security research to try and bring the security of our macOS systems in line with our Windows systems, we identified several places where Office for Mac didn’t have the same controls as its Windows sibling.
