Repository navigation
Conversation
|
Starting the rule tests ... |
There was a problem hiding this comment.
🟡 Changes recommended
The forwarding predicates miss valid reverse SOCKS invocations and falsely flag non-tunneling remote commands by treating arbitrary command arguments as SSH forwarding options.
2 open issues
What changed in this PR
Adds macOS detection for SSH reverse and dynamic tunneling, extending coverage similar to the existing Linux rules.
Changes:
- Adds an EQL rule targeting
sshandautosshforwarding options. - Includes investigation, remediation, and Elastic Defend setup guidance.
- Maps activity to Proxy and Protocol Tunneling, with 24-hour alert suppression per host and user.
| File | Description |
|---|---|
rules/macos/command_and_control_ssh_reverse_or_dynamic_tunnel.toml |
Adds the macOS tunneling rule, supporting guidance, threat mappings, and suppression settings. |
Review effort: Balanced
eric-forte-elastic
left a comment
There was a problem hiding this comment.
It seems like this rule would also make sense as a cross platform rule? Is there a reason to keep it specific to macOS?
|
The Windows rule isn’t needed because the Endpoint rule already covers this use case and would block all associated traffic. For Linux, coverage is split across two separate rules: |
|
Starting the rule tests ... |
…toml Co-authored-by: Bryan Porras <bryan.porras@elastic.co>
|
Starting the rule tests ... |
…toml Co-authored-by: Bryan Porras <bryan.porras@elastic.co>
…toml Co-authored-by: Bryan Porras <bryan.porras@elastic.co>
|
Starting the rule tests ... |
|
Starting the rule tests ... |
…toml Co-authored-by: Bryan Porras <bryan.porras@elastic.co>
|
Starting the rule tests ... |
…toml Co-authored-by: Bryan Porras <bryan.porras@elastic.co>
|
Starting the rule tests ... |
Co-authored-by: Bryan Porras <bryan.porras@elastic.co>
Co-authored-by: Bryan Porras <bryan.porras@elastic.co>
|
Starting the rule tests ... |
|
Starting the rule tests ... |

Summary - What I changed
Adds a new macOS SIEM rule, SSH Reverse or Dynamic Tunnel on macOS
(
rules/macos/command_and_control_ssh_reverse_or_dynamic_tunnel.toml).It brings macOS coverage similar to the Linux SIEM rules Potential Linux Tunneling and/or Port Forwarding and Potential Linux Tunneling and/or Port Forwarding via SSH Option.
TRADE cluster:
The detection logic is explained in the sister rule: https://github.com/elastic/endpoint-rules/pull/7880