Skip to content

Instantly share code, notes, and snippets.

@andrewodri
Created July 1, 2021 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewodri/c569a8946f1c11c8de77975bdf55afb0 to your computer and use it in GitHub Desktop.
Save andrewodri/c569a8946f1c11c8de77975bdf55afb0 to your computer and use it in GitHub Desktop.
Enhanced XProtect imagineering

XProtect is the behind-the-scenes, developer opted-in version of Windows Defender from what I can tell. Wouldn't it be nice if it was as well throught out and integrated as Defender?

This is kind of a brain and internet dump of random XProtect facts that could be helpful in building a bit of control, UI, definition updates and regular scans that leverage XProtect as it's core.

It seems that following file is where you can opt-in your own apps: /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exceptions.plist

The Additions item will contain entries that look like this for opt-ins:

<key>org.m0k.transmission</key>
<dict>
<key>LSApplicationCategoryType</key>
<string>public-category.internet</string>
<key>LSFileQuarantineEnabled</key>
<true/>
</dict>

XProtect data is stored in the following location: /System/Library/CoreServices/CoreTypes/XProtect*

Downloading latest XProtect definitions from Apple:

sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool true
sudo softwareupdate --background-critical
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment