Not sure what you are asking. Do you have a "Malware Removal Tool" already installed on your Mac? And if so, what is the name of it?
Open System Information (option-Apple) is a quick way. Then select Applications (under Software) in the left column. MRT will be in the resulting application list, along with the version number and date installed.
running in Terminal
Good find!A quick web search returned this:
![]()
How to Check XProtect Version in Mac OS
Need to know what version of Gatekeeper and Xprotect are installed on a Mac? You can find this information through the command line of Mac OS. GateKeeper, MRT (Malware Removal Tool), and XProtect a…osxdaily.com
set MacOSVers to do shell script "defaults read /System/Library/CoreServices/SystemVersion.plist ProductVersion"
set MacOSBuild to do shell script "defaults read /System/Library/CoreServices/SystemVersion.plist ProductBuildVersion"
set XProtectVers to do shell script "defaults read /System/Library/CoreServices/XProtect.bundle/Contents/Resources/XProtect.meta.plist Version"
set XProtectDate to do shell script "GetFileInfo -d /System/Library/CoreServices/XProtect.bundle/Contents/Resources/XProtect.meta.plist"
set GatekeeperVers to do shell script "defaults read /private/var/db/gkopaque.bundle/Contents/version.plist CFBundleShortVersionString"
set GatekeeperDate to do shell script "GetFileInfo -d /private/var/db/gkopaque.bundle/Contents/version.plist"
set SIPVer to do shell script "defaults read /System/Library/Sandbox/Compatibility.bundle/Contents/version.plist CFBundleShortVersionString"
set SIPDateShort to do shell script "GetFileInfo -d /System/Library/Sandbox/Compatibility.bundle/Contents/version.plist"
set MRTVer to do shell script "defaults read /System/Library/CoreServices/MRT.app/Contents/version.plist CFBundleShortVersionString"
set MRTDate to do shell script "GetFileInfo -d /System/Library/CoreServices/MRT.app/Contents/version.plist"
set SIPStatus to do shell script "/usr/bin/csrutil status"
set GatekeeperStatus to do shell script "spctl --status | sed -e s/'assessments'//g"
display dialog tab & tab & tab & "MacOS " & MacOSVers & " (" & MacOSBuild & ")" & return & return & "Component " & tab & tab & "Version " & tab & tab & "Updated " & return & return & "XProtect " & tab & tab & XProtectVers & tab & tab & XProtectDate & return & "Gatekeeper " & tab & tab & GatekeeperVers & tab & tab & tab & GatekeeperDate & return & "SIP" & tab & tab & tab & tab & SIPVer & tab & tab & tab & SIPDateShort & return & "MRT " & tab & tab & tab & MRTVer & tab & tab & tab & MRTDate & return & return & SIPStatus & return & "Gatekeeper Status:" & GatekeeperStatus & return buttons {"Close"} default button 1
May I ask you where do you look for code when needed. Do you have a book with Terminal instructions and if there is such a book may I know it’s name and the author?
Thank you very much in advance!
Ed
Thank you!No, I do not have a book to suggest you, but google is your best friend
Came
Thanks for that, it's more compact than system_profiler SPInstallHistoryDataType | grep -A 4 "MRTConfigData"softwareupdate --history --all --verbose | grep MRT
You already have a solution but I wanted to point out another very easy method using the softwareupdate utility in terminal, eg:
softwareupdate --history --all --verbose | more
This shows all your installs including XProtect and MRT updates. If you're only interested in the MRT stuff you can adjust the command to something like:
softwareupdate --history --all --verbose | grep MRT
softwareupdate --history --all --verbose | grep Gatekeeper
@camelia yes. Actually you can shorten it somewhat, which may please @bogdanw, to:
softwareupdate --history |grep Gatek
on my current machine that will output the following:
Gatekeeper Configuration Data 181 28/08/2019 at 17:14:29
Gatekeeper Configuration Data 174 01/08/2019 at 08:24:31
Gatekeeper Configuration Data 173 23/07/2019 at 17:21:12
Gatekeeper Configuration Data 172 17/07/2019 at 19:30:40
Gatekeeper Configuration Data 171 03/07/2019 at 07:54:27
Gatekeeper Configuration Data 170 25/06/2019 at 18:54:03
Gatekeeper Configuration Data 169 18/06/2019 at 05:13:21
Gatekeeper Configuration Data 167 04/06/2019 at 09:52:26
Gatekeeper Configuration Data 166 13/05/2019 at 20:24:02
Gatekeeper Configuration Data 165 18/04/2019 at 20:31:59
Gatekeeper Configuration Data 164 26/03/2019 at 07:54:44
Gatekeeper Configuration Data 163 21/02/2019 at 07:46:22
Gatekeeper Configuration Data 162 07/02/2019 at 23:54:02
Gatekeeper Configuration Data 160 23/01/2019 at 09:12:24
Gatekeeper Configuration Data 158 09/01/2019 at 18:43:21
Gatekeeper Configuration Data 157 06/12/2018 at 23:59:53
Gatekeeper Configuration Data 156 31/10/2018 at 15:15:29
Gatekeeper Configuration Data 155 25/09/2018 at 20:33:12
Gatekeeper Configuration Data 154 08/09/2018 at 15:39:51
If you only want to see the last installation of Gatekeeper (or whatever) you can add a -m flag like so
softwareupdate --history |grep -m 1 Gatek
which would output:
Gatekeeper Configuration Data 181 28/08/2019 at 17:14:29
voilà HTH.
May I ask you what macOS do you have installed in your Mac? (HS, Mojave or Catalina)
Mojave. Did you try this on Catalina ?
Nop, I haven't install Catalina yet, what I have read in this forum Catalina still has some bugs...
Came
I tried the 'softwareupdate --history --all --verbose | more' command in Catalina and it does work.Mojave. Did you try this on Catalina ?