macos community v1.0.0

systemsetup

Enable remote login, remote apple events for the machine

📋 Live Preview
systemsetup
systemsetup

Sandbox: execFile · Timeout: 30s

Capabilities

network.lateralmovement

Examples

Enable Remote Login: systemsetup can be used to enable SSH for remote login

sudo systemsetup -setremotelogin on

Enable Remote Apple Events: systemsetup can be used to enable Remote Apple Events. Set whether the system responds to events sent by other computers (such as AppleScripts).

sudo systemsetup -setremoteappleevents on

Detection

TypeRule / Indicator
other https://www.elastic.co/guide/en/security/current/remote-ssh-login-enabled-via-systemsetup-command.html Command line argument detection containing (args contain systemsetup AND (-setremoteappleevents OR -setremotelogin) AND on)
other https://github.com/jamf/jamfprotect/blob/main/custom_analytic_detections/systemsetup_activity Jamf Protect: Detect systemsetup activity that enables remotelogin or appleremoteevents

Documentation

systemsetup configures certain per-machine settings typically configured in the System Preferences application. The systemsetup command requires at least "admin" privileges to run.

References