-
Notifications
You must be signed in to change notification settings - Fork 611
[New] Elastic Defend and Network Security Alerts Correlation #5332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This rule correlate any Elastic Defend alert with a set of suspicious events from Next-Gen Firewall like PAN and Fortigate by host.ip. This may indicate that this host is compromised and triggering multi-datasource alerts.
Rule: New - GuidelinesThese guidelines serve as a reminder set of considerations when proposing a new rule. Documentation and Context
Rule Metadata Checks
New BBR Rules
Testing and Validation
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
| @@ -0,0 +1,103 @@ | |||
| [metadata] | |||
| creation_date = "2025/11/18" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add the integrations to the metadata
| type = "esql" | ||
|
|
||
| query = ''' | ||
| FROM logs-* metadata _id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add the specific indexes? logs-* should be expensive
|
|
||
| query = ''' | ||
| FROM logs-* metadata _id | ||
| | WHERE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | WHERE | |
| | WHERE event.kind == "alert" and |
| Esql.event_module_distinct_count = COUNT_DISTINCT(event.module), | ||
| Esql.event_module_values = VALUES(event.module), | ||
| Esql.message_values = VALUES(message), | ||
| Esql.event_action_values = VALUES(event.action), | ||
| Esql.process_executable_values = VALUES(process.executable), | ||
| Esql.host_id_values = VALUES(host.id), | ||
| Esql.user_name_values = VALUES(user.name), | ||
| Esql.destination_ip_values = VALUES(destination.ip) | ||
| by Esql.source_ip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks expensive 👀
This rule correlate any Elastic Defend alert with a set of suspicious events from Next-Gen Firewall like PAN and Fortigate by host.ip. This may indicate that this host is compromised and triggering multi-datasource alerts.