Enable Remote Login
Lateral MovementmacOS
systemsetup can be used to enable SSH for remote login
sudo systemsetup -setremotelogin 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
- Lateral Movement
- Detection
- Command line argument detection containing (args contain systemsetup AND (-setremoteappleevents OR -setremotelogin) AND on): www.elastic.co/guide/en/security/current/remote-ssh-login-enabled-via-systemsetup-command.htmlJamf Protect: Detect systemsetup activity that enables remotelogin or appleremoteevents: github.com/jamf/jamfprotect/blob/main/custom_analytic_detections/systemsetup_activity