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

Ev0d3vil

macrumors 6502
Original poster
Sep 22, 2014
480
84
Hi guys, my gatekeeper setting is set to default. Is it possible to get viruses from DMG files ? and how do i scan them for viruses or spyware?
 

Gregg2

macrumors 604
May 22, 2008
7,188
1,179
Milwaukee, WI
No known virus affects Mac OS X.
Spyware, maybe - from a dmg file? Don't know. A brief search told me it's not likely.
 

KALLT

macrumors 603
Sep 23, 2008
5,361
3,378
DMG files are disk images; they are containers, like ZIP files. Think of them as virtual CDs. They are not themselves dangerous, at least I don’t think that the process of opening them executes any code. Potentially dangerous is what they carry, namely programs. Gatekeeper checks if programs are code-signed by the developer, but this check will only be performed automatically when you obtained the disk image via a browser or like. If you want some extra security, then you should download a malware scanner.

For macOS Sierra, developers can code-sign the disk image as well and vouch for all the contents. This gives you some extra certainty, provided that you download the disk image from a trusted source and make sure that it is signed by the person or organisation you downloaded it from.

For malware in general, you should have a look at this guide: http://www.thesafemac.com/mmg/
 

iphonehighfivingfanboy

macrumors newbie
Jun 26, 2017
3
2
True, but malicious people often put their malicious programs in DMG files. If you are downloading something like a movie (obviously not supposed to be a program), and you double click on the DMG file and it wants to install, you can almost certainly guarantee that you have downloaded malware - do not proceed with the install.
 

Toutou

macrumors 65816
Jan 6, 2015
1,079
1,573
Prague, Czech Republic
Is it possible to get viruses from DMG files ?
No. They're just stupid containers for data, mostly for apps. You can't damage your computer just by opening the DMG.

The app inside, on the other hand, may or may not be legit, depending on where it came from. Some very reputable apps are distributed in DMGs, e.g. Firefox, VLC.

Is it possible to get viruses
No.

There are no Mac viruses in the wild. The number one attack vector on a Mac is tricking the user into manually installing a malicious app (distributed in a DMG or not).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.