What you will learn in this TP
- Produce ECS events
- Write a threshold rule
- Write an EQL rule
- Triage and investigate
Introduction #
What you will learn in this section
- Produce ECS events
- Write a threshold rule
- Write an EQL rule
- Triage and investigate
Context. An exposed server suffers login attempts. You write the rules detecting the burst of failures and the successful login that follows.
Prerequisites: the start-local lab from the previous lab, jq · Estimated time: 40 min
Licence: this lab also works with the free Basic licence: threshold and EQL rules, alerts, timelines and cases are included. Only machine learning rules and notifications to external tools (Slack, Jira…) require a subscription or the trial.
Hands-on #
Guided steps, with their solution.
1. Authentication events
Why? Elastic Security rules rely on ECS:
event.category,event.outcome,source.ip,user.name.2. A threshold rule
Create a rule alerting above 10 failures from the same IP address.
3. An EQL rule
Why? A burst of failures followed by a success for the same account is far more serious than a burst alone: the EQL sequence expresses it directly.
4. The alerts
Wait one minute, then list the alerts produced.
5. Triage and investigate
In Security › Alerts, open the critical alert, examine the sequence in a timeline, add it to a case, then set the alert to "Acknowledged".
Difficulty level : ●●●○○ (3/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
Elastic Security: SIEM, detection rules and investigation
Use Elastic Security as a SIEM: ECS data sources, detection rule types (query, EQL, ES|QL, thresh...
Machine learning in Elastic: anomaly detection and AIOps
Automatically detect abnormal behaviour: anomaly detection jobs, datafeeds, detectors, influencer...
Alerts, connectors and SLOs in Kibana
Create alert rules in Kibana (Elasticsearch query, ES|QL, custom threshold, logs), configure conn...
Kibana and Elastic Observability best practices
Checklist for running Kibana in production: versions, security, spaces and roles, versioned dashb...
Beats: going further (security, performance, Elastic Agent and migrating to Alloy)
Industrialize Filebeat, Metricbeat and the other Beats: secure outputs, processors, modules, tuni...
Elastic path project: centralising and using logs
The validation project of the "Elastic Stack mastery" path: Elastic Agent and Fleet, Logstash, El...
Logstash: managing plugins and adopting Elastic Common Schema (ECS)
Written version of the video lessons: list, install, update and bundle Logstash plugins offline; ...
Understanding the Elastic Common Schema (ECS)
As always in our consulting engagements, we recommend that companies harmonise and standardise: k...
Elastic Observability: logs, infrastructure, APM and synthetics
Elastic Observability features: log exploration, infrastructure inventory with Elastic Agent and ...