Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

etaleb

macrumors 6502a
Original poster
Apr 7, 2012
559
21
Folks - XProtect native in Macos has no built in functionality to scan a file like a large dmg file over 1gb for viruses/malware. Is there another tool I can use and what do you recommend

Thanks
 

unrigestered

Suspended
Jun 17, 2022
879
840
if it's not personal or confidential content, i'd upload to virustotal.com, which will check your stuff with 60+ scanners from Microsoft, Sophos, Kaspersky and other names you might (or not) know about, plus a couple of virtual machines.
they explicitly state though that they will be keeping these and advice you not to send them stuff that are either personal and/or confidential
 

etaleb

macrumors 6502a
Original poster
Apr 7, 2012
559
21
Yes virus total is my go to tool but my dmg is over 1gb so it exceeds their size limit. Any other tool I can download locally?
 

unrigestered

Suspended
Jun 17, 2022
879
840
yes, haven't noticed your file size

i'm not that familiar with scanners for Mac, but in my case, i would probably install clamAV, buti don't know how good it actually is in recognizing Mac specific stuff.

would wait for a couple more elaborate answers than mine before making a decision though
 
  • Like
Reactions: Chuckeee

etaleb

macrumors 6502a
Original poster
Apr 7, 2012
559
21
Thanks for the clam suggestion. I installed it but somehow I can't even find it or how to run it
 

unrigestered

Suspended
Jun 17, 2022
879
840
i've only been using it on linux.
it's command line based, so access is via the terminal, but there might also be a GUI for it available somewhere aswell.

anyway, to use it, the easiest way is to go to the location you want in Finder and use "open in terminal window" (or something similar)
if you are there, enter
this will scan that directory

other common uses:
clamscan -r
will scan everything in that directory including all subfolders

clamscan FILE.NAME
will scan a specified file

sudo clamscan -r /
will scan your whole HDD, but some directories will likely be protected by SIP i guess

clamscan -r /
basically the same as the one above and should be sufficient to use as SIP protected directories are practically immune to malware

and to manually update it's definitions to the most current:
sudo freshclam

clamAV is also just a scanner to reveal malicious files.
it will not isolate, or delete infected files, or even extract that code from files.
 
  • Like
Reactions: Laura w

gilby101

macrumors 68030
Mar 17, 2010
2,946
1,630
Tasmania
There are numerous virus scanner apps in the Mac App Store. I suggest Bitdefender Virus Scanner (free) - that is what I use in situations similar to yours. Bitdefender will find more malware than XProtect which is very focused on active macOS weaknesses.

Most virus scanners have settings which control how they scan archives (e.g. zip files), but not disk images. You will need to mount the dmg and run the virus scanner over the contents - Bitdefender warns of this if you try to scan the dmg.

You don't need to use a command line app, unless that appeals to you.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.