Elastic medium stable eql
Remote SSH Login Enabled via systemsetup Command
Detects use of the systemsetup command to enable remote SSH Login.
Detection Logic
process where host.os.type == "macos" and event.type in ("start", "process_started") and
(
(
process.name == "systemsetup" and
process.args like~ "-setremotelogin" and
process.args like~ "on"
) or
(
process.name == "launchctl" and
process.args in ("load", "bootstrap") and
(
process.command_line like~ "*/System/Library/LaunchDaemons/ssh.plist*" or
process.command_line like~ "*com.openssh.sshd*"
)
)
) and
process.parent.executable != null and
not process.parent.executable like ("/usr/local/jamf/bin/jamf", "/usr/libexec/xpcproxy", "/usr/bin/sudo") Field Validations
Loading…
Comments (0)
Loading comments...