Detections · What MacVigil reads to decide
How it is packaged: disk images, archives and installer packages on a Mac
Mac malware rarely arrives as a bare program. It comes in a disk image with a drag-to-Applications window, a ZIP sent in a message, or an installer package whose scripts run with administrator rights. The packaging decides what runs, and with which rights, before you even see the app.
Updated November 25, 2026 · 47 detections in this category
In short
The archive, disk image or installer package that carries the content, and what it holds.
MacVigil has 47 detections in this category. It reads the file to find them and never runs it.
What it is
Packaging is the container around the content: a .dmg disk image, a ZIP or TAR archive, a .pkg installer, an extension package. Most of the time it only carries files. Installer packages are different: they can run scripts before and after installation, as root, and macOS does not check what those scripts do.
Archives and disk images can also be locked with a password, which hides their content from any scanner until the user types it in. For an attacker, that is the simplest way to get a payload past checks on the way to your Mac.
How Mac malware does it
- A password-protected ZIP or disk image, with the password given in the message or on the download page
- A
preinstallorpostinstallscript in an installer package that runs as root and does the real work - JavaScript in an installer’s Distribution file, run by Installer before the installation starts
- Installation paths or symbolic links that leave the announced folder, so files are written somewhere else
- A program delivered alone in a disk image, with instructions to open it by hand
- A malformed or unreadable package, built to resist analysis tools
- An installer package hidden inside an archive
- A license agreement shown before the disk image mounts, which encourages clicking without reading
What MacVigil looks for
MacVigil opens archives, disk images and installer packages in memory: it does not mount, extract to disk, install or run anything. It reads ZIP, TAR, XAR and CPIO archives, disk images, including password-protected ones when you supply the password, installer packages with their scripts and payload, and extension packages, then examines each file inside. Installer scripts are attached to the report so you can read them.
The container itself is rarely the problem, so most of these findings are for information. Those rated higher point to content that could not be examined, such as an encrypted disk image in a format it cannot decrypt, or to paths and links that escape the announced location. When part of a container could not be read, the report says which part.
When it is normal
Disk images and installer packages are the normal way to distribute Mac software. Many legitimate installers run scripts, install command-line tools in /usr/local/bin/, write to /Library/Application Support/ or show a license agreement. Developers zip their apps, and password-protected archives are common for sharing private files. What matters is what the scripts and programs inside do, and whether the package is signed by the developer it claims to come from.
How to check your Mac
- Before installing a package, choose File > Show Files in Installer to see where it writes, or expand it with
pkgutil --expand-full YourFile.pkg ~/Desktop/expandedand read its scripts. - Check its signature with
pkgutil --check-signature YourFile.pkg; an unsigned package or an unknown signer is a reason to stop. - Be wary of a disk image that holds a single program with instructions to right-click and open it, or to paste a command into Terminal.
- Treat a password-protected archive from a download link with suspicion, especially when the page gives you the password.
- Download apps from the developer’s own website or the App Store, not from links in ads, comments or messages.
Related categories
- Who stands behind this file: Who signed this file, whether Apple notarized it, and whether it changed since.
- Hidden payload: A second program carried out of sight: encoded, encrypted, appended after the file's end or tucked into resources.
- Bundled third-party installs: Installer machinery that reports installs to third parties or brings along other software.
On the blog
- How to check a DMG or PKG for malware before you open it
- Read a .pkg installer’s scripts before you install it
- Fake ChatGPT, Grok and Brave Talk disk images
Know what a file does before you open it
MacVigil reads any app, disk image, installer or script without running it, and shows the evidence behind every finding. Nothing leaves your Mac.
Free for 7 days, then $29.95 a year for 2 Macs, a launch price: the regular price will be $59 a year. Requires macOS 15 Sequoia or later on a Mac with Apple silicon.
More: all detection categories · what MacVigil detects · the blog