Join our Newsletter — 33% off our NHI Course

DMG File

A DMG file is a macOS disk image format used to package software, files, or installers into a single mountable file. When opened, it appears as a virtual volume that can be copied from or run from, and it is often used for software distribution and application installation.

What a DMG file is

A DMG file is a macOS disk image format that packages software, files, or installers into a single mountable file. It behaves like a virtual volume, so users can open it, inspect its contents, copy items out, or launch an installer from it.

Because the format is designed for distribution, a DMG often carries both convenience and trust expectations. Users may assume that a file presented as a standard macOS installer is safe to mount and run, which makes the delivery channel itself part of the security story.

How DMG files work in macOS

When a DMG is opened, macOS mounts it as a temporary volume. That design lets vendors bundle an application, supporting files, a license screen, or an installer workflow into one portable container without requiring a traditional archive extractor.

DMG files are not inherently executable in the same way as an app bundle, but they can contain executable code, scripts, or installers. The risk comes from what is inside the image and how the user responds after mounting it, not from the file extension alone.

Why DMG files are common for software distribution

DMG has long been a familiar macOS distribution format because it makes installation simple: download, open, drag, and install. That predictability is useful for software publishers and reduces friction for end users, especially when the package includes an app bundle and a shortcut to Applications.

The same packaging convenience also makes DMGs suitable for presenting a polished installation experience. A well-built image can reduce support overhead, preserve files in a consistent layout, and make first-run setup easier for legitimate software releases.

Security considerations for DMG files

A DMG is a delivery container, so its security depends on provenance, integrity, and the contents inside the image. A malicious or trojanised DMG can disguise unwanted software as a legitimate installer, and a user who trusts the file too quickly may end up mounting and launching harmful code.

Attackers often rely on the fact that users treat installer media as routine. That makes DMG files a useful vehicle for social engineering, especially when they are distributed through email, fake download pages, or impersonated vendor sites.

Because the risk is usually in the payload rather than the format itself, defenders should treat DMG downloads the same way they treat any software release artifact. Verify the source, inspect the signature or notarisation status where available, and prefer official vendor distribution pages over mirrored downloads.

For broader context on software delivery trust and the controls that help protect it, see NIST Cybersecurity Framework 2.0, which frames secure software handling, monitoring, and response as part of a normal security programme.

For a control-oriented view of package integrity, code signing, and malicious payload detection, NIST SP 800-53 Rev 5 Security and Privacy Controls provides the control catalogue most often used to anchor those practices.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST SP 800-53 Rev 5, CIS Controls v8 and OWASP ASVS set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 PR.DS-08 — Integrity of Software, Firmware, and Information DMG distribution depends on trusted software artifact integrity.
Recommendation — Verify downloaded DMGs and their contents before users install them.
NIST SP 800-53 Rev 5 SI-7 — Software, Firmware, and Information Integrity DMG files can deliver software that must be validated for integrity.
CM-8 — System Component Inventory DMG-based software installs change endpoint inventory and installed software state.
Recommendation — Apply software integrity checks to mounted DMGs and their installers. Track DMG-delivered applications in your asset and software inventory.
CIS Controls v8 CIS-2 — Inventory and Control of Software Assets DMGs are a common software delivery mechanism that should be governed as software assets.
Recommendation — Restrict unapproved DMG software and maintain an approved software list.
OWASP ASVS V13 — Configuration DMG distribution can influence installation and runtime configuration of shipped software.
Recommendation — Harden installation defaults for software delivered through DMG images.

Practitioner Guidance

Why practitioners should care: DMG files are routine in macOS environments, which makes them an attractive disguise for untrusted software. The operational judgement is not whether to block the format, but whether the organisation can distinguish legitimate installer images from risky downloads.

What to watch for: Pay attention to DMGs from unofficial mirrors, unexpected delivery channels, or files that prompt unusual mounting behavior, extra permission requests, or installer steps that do not match the vendor’s normal process.

Practitioner takeaway: Treat DMG handling as a software trust problem, not just a file-type problem, and use source validation and endpoint inspection to reduce exposure before users run what they mounted.