hdiutil

Created by Mark Morowczynsk (@markmorow)

Description

hdiutil manipulates disk images such as DMG and ISO files. You can mount, unmount, create, resize and verify disk images. Including encrypted images.

CreatedTacticsTags
2023-05-21Execution Collectionbash zsh disk

Paths

  • /usr/bin/hdiutil

Use Cases

Mount a malicious dmg file

Uses hdiutil to mount a malicious dmg file to

hdiutil mount malicious.dmg

Mount a malicious dmg file

Uses hdiutil to mount a malicious dmg file to

hdiutil attach malicious.dmg

Mount a malicious iso file

Uses hdiutil to mount a malicious iso file to

hdiutil mount malicious.iso

Mount a malicious iso file

Uses hdiutil to mount a malicious iso file to

hdiutil attach malicious.iso

Exfiltrate data in dmg file

Uses hdiutil to create a dmg file to store exfiltrate data

hdiutil create -volname "Volume Name" -srcfolder /path/to/folder -ov diskimage.dmg

Exfiltrate data in encrypted dmg file

Uses hdiutil to create a dmg file to store exfiltrate data

hdiutil create -encryption -stdinpass -volname "Volume Name" -srcfolder /path/to/folder -ov encrypteddiskimage.dmg

Detections

Resources