Binaries

62 macOS binaries documented

caffeinate

Prevent the system from sleeping on behalf of a utility.

ExecutionDefense Evasion bashzsh

chflags

Changes file or directory flags

Defense Evasion finder

codesign

Create, manipulate and verify code signatures.

Defense Evasion codesign

csrutil

Configure or view system security policies.

Defense EvasionReconnaissanceDiscovery usersconfiguration

defaults

Read, write, and delete user preference values.

Defense EvasionDiscoveryPersistence gatekeeperfirewall

disown

Prevents a process from being terminated when a shell session or terminal is closed.

Persistence bash

ditto

Copy files and directories while preserving file attributes and permissions.

CollectionExfiltrationLateral Movement +2 filescompressrecursive

dns-sd

Discover local network services using the DNS-Based Service Discovery (SD) protocol.

Discovery network

dscacheutil

gather information, statistics and initiate queries to the Directory Service cache.

Discovery bashzsh

dscl

Interact with Directory Services.

DiscoveryPersistence usersnetworkconfiguration +4

dsconfigad

retrieves/changes configuration for Directory Services Active Directory Plugin.

Discovery bashzsh

dsexport

Export data from an Open Directory directory services server.

ReconnaissanceDiscovery ldapusersgroups

funzip

The malicious binaries use funzip to extract the malicious binary with a password and using head or tail commands.

Execution bashzsh

GetFileInfo

Get attributes of files and directories.

Discovery bashzshoneliner

hdiutil

Manipulate disk images using the DiskImages framework.

ExecutionCollection bashzshdisk

ioreg

Displays a hierarchial view of the I/O Kit registry.

DiscoveryCollection bashonelinerlockscreen +1

kextstat

Display the status of loaded kernel extensions (kexts)

Discovery bashzshkernel

last

Show last user logins and TTYs.

Discovery onelineraccountnetwork

launchctl

Interact with LaunchAgents and LaunchDaemons.

ExecutionPersistence bashzshoneliner

log

Access system log messages from Apple Unified Logging (AUL).

Defense EvasionCredential Access requires-rootbashzsh

lsregister

Interact with the macOS Launch Services database.

DiscoveryImpact

mdfind

Locate files using the Spotlight database.

ReconnaissanceDiscoveryDefense Evasion bashzshoneliner +2

mdls

List metadata attributes for the specified file.

Defense EvasionDiscoveryExecution +1 genieoshlayercleanmaster +4

mktemp

Create a temporary file or directory and return the file/directory name to stdout

Defense Evasion payload

networksetup

Configure network settings in System Preferences.

DiscoveryCommand and Control networkconfigurationdns +1

notifyutil

Monitor and post Darwin notifications for inter-process communication and system event monitoring.

DiscoveryCollectionCommand and Control +2 monitoringsurveillancesystem-events +10

nscurl

Download, upload, and read files.

Defense EvasionCommand and Control

nvram

Access and manage the host's non-volatile random-access memory (NVRAM).

Discovery

odutil

odutil allows caller to examine or change state of opendirectoryd

Discovery bashzsh

open

Open files, folders, apps, URLs, and header files.

Execution application

osacompile

Compile AppleScripts or OSA language scripts.

Command and ControlResource Development xcsset

osascript

Execute AppleScripts and other OSA language scripts and commands.

CollectionCredential AccessDiscovery +4 clipboardbashoneliner +15

pbpaste

Paste the contents of clipboard to the terminal.

Credential AccessCollection bashoneliner

pkill

Kill processes by name or pattern.

Defense EvasionImpact processesevasionsigkill +3

plutil

Read, create or edit plist files.

Defense Evasion plist

profiles

List and remove configuration profiles.

DiscoveryImpact oneliner

safaridriver

Enable the WebDriver Safari browser API for Selenium testing.

Command and ControlExfiltration safariselenium

say

Convert text to audible speech.

Defense EvasionCollectionReconnaissance +1 bashpbpasteclipboard +1

screencapture

Capture a screenshot from command line.

Collection oneliner

scutil

Display basic network information, check the dns config, set the computer hostname and perform several other tasks.

Discovery networkconfiguration

security

Interact with Keychain, macOS's built-in password manager.

Credential AccessDefense Evasion bashchromecertificate

SetFile

Set attributes of files and directories.

PersistenceDefense Evasion bashzshoneliner

sfltool

Binary to manage the Shared File List framework.

DiscoveryDefense Evasion bashstartupsystem-reset

sharing

Create and manage macOS file sharing points for SMB, AFP, and FTP.

Lateral Movement smbfile-sharingfile-transfer +1

snmptrap

Send SNMP trap notifications; receive them with snmptrapd.

Lateral MovementExfiltrationCommand and Control snmpfile-transfercovert-channel

softwareupdate

Interact with the macOS software update service.

Discovery system-info

spctl

Manage the security assessment policy subsystem, Gatekeeper settings, and control which apps are allowed to run on the system.

Defense Evasion gatekeeper

sqlite3

Query and manage sqlite databases.

DiscoveryCollectionCredential Access permissionsonelinercookie-theft

ssh-keygen

Load unsigned dynamic libraries into the ssh-keygen binary.

ExecutionDefense Evasion dylib

streamzip

File-less compression of data passed in through stdin.

CollectionExfiltration filescompress

sw_vers

Prints macOS version information.

Discovery bashconfiguration

swift

Arbitrarily execute swift code from the terminal.

ExecutionDefense Evasion swiftreplbash +1

sysadminctl

Create/delete local accounts, guest account, enable SMB/AFP Guest access.

Initial AccessPersistenceImpact +1 userspassword

sysctl

Get macOS hardware model information.

Discovery bashoneliner

system_profiler

Reports system hardware and software configuration.

Discovery bashzsh

systemsetup

Enable remote login, remote apple events for the machine

Lateral Movement sshconfiguration

tccutil

Command-line tool for managing the Transparency, Consent, and Control (TCC) permissions database

Defense Evasion bashtccutil

tclsh

Run Tcl files or shell commands from standard input.

Execution dylib

textutil

Manipulate text files in various formats.

Defense EvasionCollectionCredential Access bashonelinerpbpaste +1

tftp

Trivial File Transfer Protocol client and server utilities.

Lateral MovementPersistenceDefense Evasion tftplaunchctlfile-transfer +2

tmutil

Manage Time Machine backups.

ImpactCollectionPrivilege Escalation +1 backupdeleterestore +1

xattr

Display and manipulate extended attributes.

ExecutionDefense Evasion xattrquarantine