Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions rules/macos/lateral_movement_remote_ssh_login_enabled.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
creation_date = "2020/08/18"
integration = ["endpoint"]
maturity = "production"
updated_date = "2026/03/24"
updated_date = "2026/05/27"

[rule]
author = ["Elastic"]
Expand Down Expand Up @@ -58,11 +58,23 @@ type = "eql"

query = '''
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" and
process.parent.executable != null and
not process.parent.executable like ("/usr/local/jamf/bin/jamf", "/usr/libexec/xpcproxy", "/usr/bin/sudo")
(
(
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")
'''
note = """## Triage and analysis

Expand Down
Loading