CatalogLOOBins

ORCHARD · Tool

sysadminctl

7 techniquesmacOSLOOBinsGPL-3.0

Enable Guest Account

macOS

sysadminctl can be used to enable the guest account

sudo sysadminctl -guestAccount on
Evidence
Upstream reference
Environment
Local host
Compatibility
Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.
Native
Initial Access

Create Local User Account

PersistencemacOS

sysadminctl can be used to create a local user account

sudo sysadminctl -addUser randomUser -password "randomPassword"
Evidence
Upstream reference
Environment
Local host
Compatibility
Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.
Native
Persistence

Create a Local Admin Account

PersistencemacOS

sysadminctl can be used to create a local admin account

sudo sysadminctl -addUser randomUser -password "randomPassword" -admin
Evidence
Upstream reference
Environment
Local host
Compatibility
Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.
Native
Persistence

Reset user password

PersistencemacOS

sysadminctl can be used to reset password for a particular user account

sudo sysadminctl -resetPasswordFor randomUser -newPassword "randomPassword"
Evidence
Upstream reference
Environment
Local host
Compatibility
Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.
Native
Persistence

Delete a local account

macOS

sysadminctl can delete the specified user account

sudo sysadminctl -deleteUser randomUser
Evidence
Upstream reference
Environment
Local host
Compatibility
Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.
Native
Impact

Enable SMB Guest Access

macOS

sysadminctl can enable SMB Guest Access

sudo sysadminctl -smbGuestAccess on
Evidence
Upstream reference
Environment
Local host
Compatibility
Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.
Native
Exfiltration

Enable AFP Guest Access

macOS

sysadminctl can enable AFP Guest Access

sudo sysadminctl -afpGuestAccess on
Evidence
Upstream reference
Environment
Local host
Compatibility
Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.
Native
Exfiltration