Follow By Email

Tuesday, November 1, 2022

[New post] Everything you need to know about XProtect’s malware protection

Site logo image hoakley posted: "macOS has extensive security protection built into it. This article describes how it protects against malware using two related tools known together as XProtect, and how they differ in macOS Catalina and later. Older versions of macOS have two separate d" The Eclectic Light Company

Everything you need to know about XProtect's malware protection

hoakley

Nov 1

macOS has extensive security protection built into it. This article describes how it protects against malware using two related tools known together as XProtect, and how they differ in macOS Catalina and later.

Older versions of macOS have two separate defences against malware: XProtect and Apple's Malware Removal Tool, MRT. When you open apps or run other executable code subject to Gatekeeper's checks, it's checked for matches against the signatures of known malware contained in XProtect's data file. MRT scans storage looking for the tell-tale signs of the malware it knows; should it find any, it attempts to remove or 'remediate' it. Periodically, Apple distributes updates to XProtect's data bundle, and the MRT app.

This year, this has changed for Macs running macOS Catalina and later. For those, Apple has replaced MRT with a completely different form of XProtect, commonly known as XProtect Remediator. MRT hasn't been updated since April 2022, while XProtect Remediator is currently updated every two weeks. MRT still works on older Macs, but as time passes its protection will wane, and older versions of macOS may benefit from additional protection to compensate.

XProtect

Although in the past XProtect has had other functions, such as blocking the use of vulnerable versions of Java and Flash Player, its main purpose now is to provide the macOS security system with a dictionary of signatures for known malware. This is delivered in a 'Yara' file within XProtect.bundle in the CoreServices folder, and stored on the Data volume for ease of updating. Updates are titled XProtectPlistConfigData, and are pushed at irregular intervals, every few weeks, when Apple's security team needs to update them for changing malware threats. It's essential for all Macs to keep this data up to date, to ensure that malware can be detected effectively.

This form of XProtect runs on demand: when the macOS security system's rules call for an app or other code to be checked, current signatures are used in a scan of that app or code. If malware is detected, you're informed, and the app or code is blocked from being run, so you can remove it before it does any damage.

XProtect Remediator

This was introduced in Monterey 12.3, and has progressively taken over from MRT in scanning for signs of known malware, and removing it. It can only run on macOS Catalina and later, and isn't available for earlier versions of macOS. Although called XProtect, it's separate from the regular XProtect system and operates quite differently. When your Mac is awake (not asleep), but you're not using it actively, XProtect Remediator (XPR) runs its scanning modules to look for signs of known malware. If it finds any, it then attempts to remove or 'remediate' it. This is similar to the way that some of the better third-party anti-malware products work, only this is integrated into macOS and designed to be completely unobtrusive to the user.

XPR is found alongside the XProtect.bundle in the CoreServices folder on the Data volume, where it's named XProtect.app. It's currently updated every two weeks on a regular cycle, those updates being titled XProtectPayloads, so they can be easily distinguished from updates to regular XProtect detection signatures.

Regular updates let Apple's security engineers tune XPR's settings, change the frequency of its scans, as well as update individual scanning modules. If you've been watching XPR's scans over the last few months, you'll have noticed that those for DubRobber are less frequent now than they were in the summer, because Apple's assessment of its threat has changed over that period.

Normally, at present, XPR scans run roughly every 24 hours, each consisting of two separate series, one run as the current user, and the other as root. Both are important because of their differing privileges, so allowing XPR to examine different files and folders.

XPR writes the results of its scans to the Unified log, where most users won't find them. In Ventura, though, they are part of the package of data made available through Endpoint Security. If you have third-party software using that in Ventura, then it will now be able to report the results of XPR scans. The current snag with this is that there are bugs affecting Endpoint Security software, which may make it unusable for the moment. Apple is working on an early fix for those.

Are they up to date?

To get maximum benefit from XProtect and XPR, your Mac needs to have the current version installed. You can check the version of XProtect.bundle and XProtect.app in the Finder, but Apple doesn't publish their current versions. You'll find them listed on this page for Ventura, and explained in full detail here. It's simpler still to check using SilentKnight or LockRattler, either of which can also find and install pending updates. SilentKnight checks the current version automatically, offers more, and is my first choice.

sk221

You can't rely on just having installed a macOS update to ensure these are up to date: Apple frequently delivers much older versions, and expects your Mac to catch up later. For example, the Ventura upgrade brought version 62 of XPR, which dates from June, and it's essential that the current version is installed immediately after upgrading.

SilentKnight also goes a bit further and tells you whether XPR has been scanning in the last 24 hours, and whether it reported anything out of the ordinary in that time. This is just a quick check: there are lots of innocent reasons why there may be no scans in that period, and this lets you follow them up when you want to.

Checking XPR reports

If your Mac is running Ventura and you have security software using Endpoint Security, that's the best way to check the results of scans made by XPR.

For Catalina to Monterey, and those not using suitable third-party security software, XProCheck provides a basic set of tools you can use to check the results of XPR scans, and any issues with XPR itself.

xprocheck122

XProCheck provides two main features: it checks your Mac's logs for reports entered there by XPR's scanning modules, and it lets you run a set of checks manually. Set the time period to a few days and click on the Check XProtect button. After a pause of a few seconds, all scans completed and reported into the log over that period will be listed in that window.

Normally, when running recent versions of XPR and in the absence of any malware, you should just see a list of each of the scans completed and reported. Those that don't return a 'normal' result are marked with a yellow triangle ⚠ so you can inspect them more carefully. This doesn't mean that something is wrong, just that entry needs inspection.

If your Mac is running an old version of XPR, such as 62 distributed with Ventura, expect to see many of those warning triangles, as XPR didn't write 'normal' log entries in that version. If it's running a more recent version and there are any warning triangles, then you'll need to read them carefully, as they could report the presence and remediation of malware.

If there are no scan reports found, that doesn't necessarily mean there's a problem. Try increasing the period to a few days, and check again. If your Mac has spent those days working hard or shut down (or asleep), then it's possible that XPR hasn't run any checks in that time. Try leaving your Mac idling awake for an hour or so to give XPR a chance to run automatically, then check again.

Running a manual XPR scan in XProCheck is most useful as a test of its reporting. Once it has completed, if you click on the Check XProtect button, you should see its reports from the log. If no reports appear, it suggests that your Mac may have problems with its log, which are examined here. Because those checks are run only in user mode, they are no substitute for its automatic scans, but are better than nothing, and helpful in diagnosing problems.

Recommendations

  • Ensure your Mac's security systems are kept fully up to date.
  • If your Mac is running an older version of macOS before Catalina, consider using third-party security protection to make up for the effective loss of MRT.
  • Check XProtect and XPR regularly, perhaps using SilentKnight or an equivalent, to ensure they're current.
  • If your Mac is running Ventura, consider running third-party software using Endpoint Security to keep an eye on XPR.
  • If your Mac is running Catalina, Big Sur or Monterey, or Ventura without an Endpoint Security product, use XProCheck regularly to keep an eye on XPR.
  • If your Mac has problems with XProtect or XPR, take them seriously and get them fixed. Your Mac's security depends on them.

Further reading

SilentKnight's Help Reference (via its Help menu) has extensive details.
XProCheck's Help (via its Help menu) has additional information

macOS now scans for malware whenever it gets a chance
SilentKnight 2.2 helps you avoid unintended updates, and copes with failed installs
What does SilentKnight check and why?
XProCheck 1.2 checks macOS malware scans better

Comment
Like
Tip icon image You can also reply to this email to leave a comment.

Unsubscribe to no longer receive posts from The Eclectic Light Company.
Change your email settings at manage subscriptions.

Trouble clicking? Copy and paste this URL into your browser:
http://eclecticlight.co/2022/11/01/everything-you-need-to-know-about-xprotects-malware-protection/

Powered by WordPress.com
Download on the App Store Get it on Google Play
at November 01, 2022
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

[New post] Godzilla Library Edition by James Stokoe, John Layman, Chris Mowry, Alberto Ponticelli, Dean Haspiel

...

  • [New post] Everyone Wants to Be a Cat
    Donna...
  • Open for a sneak peek inside August's box 👀
    Spoiler alert... ...
  • Your Ambitious Menu: 5 recipes to cook this week
    New on Ambitious Kitchen ...

Search This Blog

  • Home

About Me

PH News Net
View my complete profile

Report Abuse

Labels

  • 【ANDROID STUDIO】Data Binding
  • 【ANDROID STUDIO】Data Binding Show or Hide Progressbar
  • 【ANDROID STUDIO】Data Binding with object
  • 【ANDROID STUDIO】Live Data
  • 【ANDROID STUDIO】Live Data with Data Binding
  • 【ANDROID STUDIO】View Model
  • 【ANDROID STUDIO】ViewModel Data Binding
  • 【ANDROID STUDIO】ViewModel Data Binding Factory
  • 【FLUTTER ANDROID STUDIO and IOS】Common Weight and Mass Conversions
  • 【FLUTTER ANDROID STUDIO and IOS】custom lite rolling switch
  • 【FLUTTER ANDROID STUDIO and IOS】Managing State
  • 【FLUTTER ANDROID STUDIO and IOS】Simple Stopwatch
  • 【FLUTTER ANDROID STUDIO and IOS】Specify Height and Width in Percent with respect to the screen
  • 【FLUTTER ANDROID STUDIO and IOS】tab key or shift focus to next text field
  • 【FLUTTER ANDROID STUDIO and IOS】Weight Convert
  • 【GAMEMAKER】Display
  • 【GAMEMAKER】Draw Name
  • 【GAMEMAKER】enemy fire continously
  • 【GAMEMAKER】Energy
  • 【GAMEMAKER】Explosion
  • 【GAMEMAKER】Health Bar
  • 【GAMEMAKER】Hearts
  • 【GAMEMAKER】Highscore
  • 【GAMEMAKER】Horizontal Shooter
  • 【GAMEMAKER】Inventory
  • 【GAMEMAKER】keep the player facing the mouse pointer
  • 【GAMEMAKER】one way to do a fog of war
  • 【JAVASCRIPT】implements draggable progress bar
  • 【JAVASCRIPT】Math Quiz GAME export CSV
  • 【LARAVEL】PHPWord pass dynamic values when export to ms docx and download using PHPWord
  • 【PYTHON OPENCV】Image classification in Keras using several models for image classification with weights trained on ImageNet
  • 【PYTHON PYTORCH】metric classification accuracy
  • 【PYTHON PYTORCH】metric classification report
  • 【PYTHON】algorithm compare all classification models
  • 【PYTHON】algorithm evaluation k fold cross validation
  • 【PYTHON】leave one out cross validation
  • 【PYTHON】metric confusion
  • 【PYTHON】metric regression mae
  • 【VISUAL Csharp】Enumerate network resources
  • 【VISUAL Csharp】File Properties
  • 【Visual Studio VB NET】Clear Saved Passwords
  • 【Visual Studio VB NET】Swap mouse button
  • 【Visual Studio VB NET】System Properties Remote
  • 【Visual Studio Visual Csharp】Get computer name
  • 【Visual Studio Visual Csharp】Get Disk Free Space
  • 【Visual Studio Visual Csharp】Get processor type
  • 【Visual Studio Visual Csharp】IP Address
  • 【VISUAL VB NET】Delete Form Data
  • 【VISUAL VB NET】Delete History
  • 【VISUAL VB NET】Hibernate
  • 【VISUAL VB NET】Keyboard Properties
  • 【VISUAL VB NET】Sound
  • 【VISUAL VB NET】Tray Icon
  • 【VISUAL VB NET】Web Browser
  • 【Vuejs】 table implements adding and deleting
  • 【VUEJS】seamless carousel effect Marquee using transition

Blog Archive

  • October 2023 (25)
  • September 2023 (1209)
  • August 2023 (1224)
  • July 2023 (1259)
  • June 2023 (1245)
  • May 2023 (1194)
  • April 2023 (1137)
  • March 2023 (1163)
  • February 2023 (1107)
  • January 2023 (1313)
  • December 2022 (1358)
  • November 2022 (1353)
  • October 2022 (1300)
  • September 2022 (1208)
  • August 2022 (1279)
  • July 2022 (1228)
  • June 2022 (1164)
  • May 2022 (1176)
  • April 2022 (1184)
  • March 2022 (1337)
  • February 2022 (1232)
  • January 2022 (1321)
  • December 2021 (1932)
  • November 2021 (3065)
  • October 2021 (3186)
  • September 2021 (3078)
  • August 2021 (3175)
  • July 2021 (3198)
  • June 2021 (3136)
  • May 2021 (1856)
Powered by Blogger.