1
0
mirror of https://github.com/TommyTran732/Microsoft-Edge-Policies synced 2024-12-22 08:01:33 -05:00
Enterprise Policies for Microsoft Edge
Go to file
Tommy 1810fea484
Grammar fixes
Signed-off-by: Tommy <contact@tommytran.io>
2023-12-03 21:18:23 -07:00
Linux Disable RelatedWebsiteSetsEnabled 2023-12-01 08:04:40 -07:00
macOS Disable RelatedWebsiteSetsEnabled 2023-12-01 08:04:40 -07:00
LICENSE Update LICENSE 2023-11-19 13:06:47 -07:00
README.md Grammar fixes 2023-12-03 21:18:23 -07:00

Microsoft Edge Policies

These policies are written with personal use in mind, so that I can configure Microsoft Edge for security and privacy on my personal systems. Certain features are disabled because I see them as unnecessary, annoying, or potentially privacy invasive. Microsoft has the tendency to implement features in the most privacy invasive way possible, so features that are not related to security are disabled unless they are explicitly documented to not have detremental effects on privacy.

Smartscreen is left as recommended to be be off, as it sends the FULL URLs of what are being visted to Microsoft. I decide whether to use it or not depending on the actual system that I am using.

For corporate environments, you will need make approprieate changes, including but not limited to:

  • Disabling DeveloperToolsAvailability. Users can be tricked into running malicious code in the browser console otherwise.
  • Setting DefaultWebUsbGuardSetting to "Block". In most cases, the websites will never need to use this API. I need it to flash GrapheneOS and StockOS on my phones.
  • Setting DefaultJavaScriptJitSetting to "Block". This will prevent users from adding exceptions to Enhanced Security Mode.
  • Further restricting permissions that websites can prompt for.
  • Madating that SmartScreenEnabled is set to disabled. TyposquattingCheckerEnabled is also potentially invasive, though I have not confirmed this. Please make an issue to let me know of your findings.

Linux

The mandatory prolicies should be put in /etc/opt/edge/policies/managed/managed.json, and the recommended policies should be put in /etc/opt/edge/policies/recommended/recommended.json

macOS

The mandatory prolicies should be put in /Library/Managed Preferences/com.microsoft.Edge.plist, and the recommended policies should be put in /Library/Preferences/com.microsoft.Edge.plist

macOS is problematic, as it will wipe /Library/Managed Preferences every boot if you are not using an MDM. I work around this by putting the policies in /Library/Tomster Corporation, and use a cronjob as root to copy it every boot:

@reboot sleep 5 && cp -r '/Library/Tomster Corporation/' '/Library/Managed Preferences'

I have also noticed that Microsoft Edge does not seem to reload Managed Preferences probably until the computer reboots. Note that this may not work after a macOS update, and you will need to reboot the computer again for the policies to apply. I am not sure if this is a macOS behavior or if it is caused because my machine is not enrolled in an MDM.

Alternatively, you can try to convert the .plist files to .mobileconfig files and install them as profiles.