Binaries

78 macOS binaries documented

Download JSON
Tactics
Tags

Showing 78 of 78 binaries

caffeinate

Prevent the system from sleeping on behalf of a utility.

Execution Stealth
/usr/bin/caffeinate 2 use cases

chflags

Changes file or directory flags

Stealth
/usr/bin/chflags 2 use cases

codesign

Create, manipulate and verify code signatures.

Defense Impairment
/usr/bin/codesign 1 use case

csrutil

Configure or view system security policies.

Reconnaissance Defense Impairment Discovery
/usr/bin/csrutil 5 use cases

defaults

Read, write, and delete user preference values.

Persistence Defense Impairment Discovery
/usr/bin/defaults 6 use cases

diskutil

New

Enumerate, mount, erase and manipulate local disks, APFS containers and volumes.

Privilege Escalation Stealth Defense Impairment Credential Access Discovery Collection Impact
/usr/sbin/diskutil 12 use cases

disown

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

Persistence
shell built-in command (bash) 1 use case

ditto

Copy files and directories while preserving file attributes and permissions.

Persistence Stealth Lateral Movement Collection Exfiltration
/usr/bin/ditto 4 use cases

dns-sd

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

Discovery
/usr/bin/dns-sd 4 use cases

dscacheutil

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

Discovery
/usr/bin/dscacheutil 2 use cases

dscl

Interact with Directory Services.

Persistence Discovery
/usr/bin/dscl 13 use cases

dsconfigad

retrieves/changes configuration for Directory Services Active Directory Plugin.

Discovery
/usr/sbin/dsconfigad 2 use cases

dseditgroup

New

Read, create, delete and edit Directory Services group records, including the local admin group.

Persistence Privilege Escalation Defense Impairment Discovery Lateral Movement
/usr/sbin/dseditgroup 5 use cases

dsenableroot

New

Enable or disable the macOS root account and set its password from the command line.

Persistence Privilege Escalation Stealth
/usr/sbin/dsenableroot 3 use cases

dsexport

Export data from an Open Directory directory services server.

Reconnaissance Discovery
/usr/bin/dsexport 2 use cases

funzip

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

Execution
/usr/bin/funzip 1 use case

GetFileInfo

Get attributes of files and directories.

Discovery
/usr/bin/GetFileInfo 1 use case

hdiutil

Manipulate disk images using the DiskImages framework.

Execution Collection
/usr/bin/hdiutil 6 use cases

ioreg

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

Discovery Collection
/usr/sbin/ioreg 4 use cases

jsc

New

Execute JavaScript and read or write arbitrary files using the JavaScriptCore command-line shell.

Execution Stealth Credential Access Collection
/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Helpers/jsc +3 5 use cases

kextstat

Display the status of loaded kernel extensions (kexts)

Discovery
/usr/sbin/kextstat 1 use case

kickstart

New

Activate and configure the built-in Remote Management (Apple Remote Desktop) service from the command line.

Persistence Stealth Defense Impairment Lateral Movement Collection Command and Control
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart 6 use cases

killall

Kill processes by name.

Stealth Defense Impairment Impact
/usr/bin/killall 4 use cases

kmutil

New

Manage, inspect, and load macOS kernel extensions and kext collections.

Persistence Privilege Escalation Stealth Defense Impairment Discovery Impact
/usr/bin/kmutil 6 use cases

last

Show last user logins and TTYs.

Discovery
/usr/bin/last 3 use cases

launchctl

Interact with LaunchAgents and LaunchDaemons.

Execution Persistence
/bin/launchctl 2 use cases

ldapsearch

New

Query LDAP and Active Directory servers for directory objects and attributes.

Credential Access Discovery Collection
/usr/bin/ldapsearch 6 use cases

log

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

Defense Impairment Credential Access
/usr/bin/log 2 use cases

lsregister

Interact with the macOS Launch Services database.

Discovery Impact
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister 3 use cases

mdfind

Locate files using the Spotlight database.

Reconnaissance Stealth Discovery
/usr/bin/mdfind 3 use cases

mdls

List metadata attributes for the specified file.

Execution Stealth Discovery Collection
/usr/bin/mdls 3 use cases

mktemp

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

Stealth
/usr/bin/mktemp 2 use cases

networksetup

Configure network settings in System Preferences.

Discovery Command and Control
/usr/sbin/networksetup 11 use cases

notifyutil

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

Privilege Escalation Stealth Discovery Collection Command and Control
/usr/bin/notifyutil 6 use cases

nscurl

Download, upload, and read files.

Stealth Command and Control
/usr/bin/nscurl 3 use cases

nvram

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

Discovery
/usr/sbin/nvram 1 use case

odutil

odutil allows caller to examine or change state of opendirectoryd

Discovery
/usr/bin/odutil 4 use cases

open

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

Execution
/usr/bin/open 2 use cases

osacompile

Compile AppleScripts or OSA language scripts.

Resource Development Command and Control
/usr/bin/osacompile 1 use case

osascript

Execute AppleScripts and other OSA language scripts and commands.

Execution Privilege Escalation Stealth Credential Access Discovery Lateral Movement Collection
/usr/bin/osascript 9 use cases

pbcopy

New

Write standard input into the macOS pasteboard (clipboard).

Execution Stealth Collection
/usr/bin/pbcopy 3 use cases

pbpaste

Paste the contents of clipboard to the terminal.

Credential Access Collection
/usr/bin/pbpaste 1 use case

pkill

Kill processes by name or pattern.

Defense Impairment Impact
/usr/bin/pkill 5 use cases

PlistBuddy

New

Read and write property list values one key at a time from the command line.

Persistence Stealth Credential Access Discovery Collection Command and Control
/usr/libexec/PlistBuddy 5 use cases

plutil

Read, create or edit plist files.

Stealth
/usr/bin/plutil 1 use case

pmset

New

Read and modify macOS power management settings, including scheduled wake/power-on events.

Persistence Defense Impairment Credential Access Discovery Command and Control
/usr/bin/pmset 6 use cases

profiles

List and remove configuration profiles.

Discovery Impact
/usr/bin/profiles 2 use cases

pwpolicy

New

Read and modify Directory Services password policies, account state, and stored hash types.

Persistence Stealth Defense Impairment Credential Access Discovery Impact
/usr/bin/pwpolicy 6 use cases

safaridriver

Enable the WebDriver Safari browser API for Selenium testing.

Exfiltration Command and Control
/System/Cryptexes/App/usr/bin/safaridriver +1 1 use case

say

Convert text to audible speech.

Reconnaissance Stealth Discovery Collection
/usr/bin/say 2 use cases

screencapture

Capture a screenshot from command line.

Collection
/usr/sbin/screencapture 1 use case

Script Editor

New

Create, edit, compile and run AppleScript and JavaScript for Automation scripts.

Execution Stealth
/System/Applications/Utilities/Script Editor.app/Contents/MacOS/Script Editor 1 use case

scutil

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

Discovery
/usr/bin/scutil 4 use cases

security

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

Defense Impairment Credential Access
/usr/bin/security 3 use cases

SetFile

Set attributes of files and directories.

Persistence Stealth
/usr/bin/SetFile 2 use cases

sfltool

Binary to manage the Shared File List framework.

Defense Impairment Discovery
/usr/bin/sfltool 2 use cases

sharing

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

Lateral Movement
/usr/sbin/sharing 1 use case

snmptrap

Send SNMP trap notifications; receive them with snmptrapd.

Lateral Movement Exfiltration Command and Control
/usr/bin/snmptrap +1 1 use case

socketfilterfw

New

Query and modify the macOS Application Firewall from the command line.

Persistence Defense Impairment Discovery Command and Control
/usr/libexec/ApplicationFirewall/socketfilterfw 4 use cases

softwareupdate

Interact with the macOS software update service.

Discovery
/usr/sbin/softwareupdate 2 use cases

spctl

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

Defense Impairment
/usr/sbin/spctl 1 use case

sqlite3

Query and manage sqlite databases.

Credential Access Discovery Collection
/usr/bin/sqlite3 3 use cases

ssh-keygen

Load unsigned dynamic libraries into the ssh-keygen binary.

Execution Stealth
/usr/bin/ssh-keygen 1 use case

streamzip

File-less compression of data passed in through stdin.

Collection Exfiltration
/usr/bin/streamzip 1 use case

sw_vers

Prints macOS version information.

Discovery
/usr/bin/sw_vers 4 use cases

swift

Arbitrarily execute swift code from the terminal.

Execution Stealth
/usr/bin/swift 3 use cases

sysadminctl

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

Initial Access Persistence Exfiltration Impact
/usr/sbin/sysadminctl 7 use cases

sysctl

Get macOS hardware model information.

Discovery
/usr/sbin/sysctl 1 use case

system_profiler

Reports system hardware and software configuration.

Discovery
/usr/sbin/system_profiler 5 use cases

systemextensionsctl

New

Enumerate and manage system extensions, including EDR and network security extensions.

Persistence Defense Impairment Discovery Impact
/usr/bin/systemextensionsctl 4 use cases

systemsetup

Enable remote login, remote apple events for the machine

Lateral Movement
/usr/sbin/systemsetup 2 use cases

tccutil

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

Defense Impairment
/usr/bin/tccutil 2 use cases

tclsh

Run Tcl files or shell commands from standard input.

Execution
/usr/bin/tclsh 1 use case

textutil

Manipulate text files in various formats.

Stealth Credential Access Collection
/usr/bin/textutil 2 use cases

tftp

Trivial File Transfer Protocol client and server utilities.

Persistence Stealth Lateral Movement
/usr/bin/tftp +1 3 use cases

tmutil

Manage Time Machine backups.

Privilege Escalation Stealth Collection Impact
/usr/bin/tmutil 5 use cases

trash

New

Move files and directories into the user's Trash folder from the command line without invoking rm or unlink.

Stealth
/usr/bin/trash 2 use cases

xattr

Display and manipulate extended attributes.

Execution Defense Impairment
/usr/bin/xattr 4 use cases