-
Notifications
You must be signed in to change notification settings - Fork 612
[New Rule] Web Server Unusual Spike in Error Logs #5339
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
Conversation
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
|
rules/cross-platform/reconnaissance_web_server_unusual_spike_in_error_logs.toml
Outdated
Show resolved
Hide resolved
rules/cross-platform/reconnaissance_web_server_unusual_spike_in_error_logs.toml
Outdated
Show resolved
Hide resolved
…n_error_logs.toml
|
⛔️ Test failed Results
|
rules/cross-platform/reconnaissance_web_server_unusual_spike_in_error_logs.toml
Show resolved
Hide resolved
| by source.ip | ||
| | where | ||
| Esql.event_count > 25 | ||
| | limit 100 |
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.
How does this behave in ES|QL rules?
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.
Limits results to 100 only which is then how many alerts would be generated, if I recall
rules/cross-platform/reconnaissance_web_server_unusual_spike_in_error_logs.toml
Outdated
Show resolved
Hide resolved
| interval = "1h" | ||
| language = "esql" | ||
| license = "Elastic License v2" | ||
| name = "Web Server Unusual Spike in Error Logs" |
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.
How are we checking if this is unusual activity? Or if this is a spike?
|
⛔️ Test failed Results
|
Removed limit on the number of events in the rule.
|
⛔️ Test failed Results
|
| timestamp_override = "event.ingested" | ||
| type = "esql" | ||
| query = ''' | ||
| from |
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 u need to add where source.ip != null to avoid matches on error logs with empty source.ip
|
⛔️ Test failed Results
|
rules/cross-platform/reconnaissance_web_server_unusual_spike_in_error_logs.toml
Outdated
Show resolved
Hide resolved
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
ES|QL multi line index support from #5356 will address index error. |
rules/cross-platform/reconnaissance_web_server_unusual_spike_in_error_logs.toml
Outdated
Show resolved
Hide resolved
…n_error_logs.toml Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com>
…n_error_logs.toml Co-authored-by: shashank-elastic <91139415+shashank-elastic@users.noreply.github.com>
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
rules/cross-platform/reconnaissance_web_server_unusual_spike_in_error_logs.toml
Show resolved
Hide resolved
…n_error_logs.toml
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
rules/cross-platform/reconnaissance_web_server_unusual_spike_in_error_logs.toml
Outdated
Show resolved
Hide resolved
…n_error_logs.toml
|
⛔️ Test failed Results
|
Summary
This rule detects unusual spikes in error logs from web servers, which may indicate reconnaissance activities such as vulnerability scanning or fuzzing attempts by adversaries. These activities often generate a high volume of error responses as they probe for weaknesses in web applications. Error response codes may potentially indicate server-side issues that could be exploited.