RousselTMLEARNING

Observability

Elastic Security: SIEM, detection rules and investigation

Use Elastic Security as a SIEM: ECS data sources, detection rule types (query, EQL, ES|QL, threshold, indicator match, machine learning), prebuilt rules, alerts, timelines and cases.

1. Elastic Security #

SIEM and protection.

Scope #

Elastic Security combines a SIEM (detection and investigation on logs), endpoint protection (Elastic Defend, an Elastic Agent integration) and cloud security. Everything relies on ECS data: that is what lets one rule work on Windows, Linux or a firewall.

ECS sources, rules, alerts, timelines and cases.
SourceIntegration
Linux authenticationsSystem, Auditd Manager
Windows eventsWindows, Elastic Defend
Networkfirewall, Zeek, Suricata
CloudAWS CloudTrail, Azure, GCP

Licence #

LicenceWhat is available
Basic (free)SIEM: detection rules (query, threshold, EQL, ES|QL, indicator match, new terms), prebuilt rules, alerts, timelines, cases; Elastic Defend basic protection
Higher subscriptionsmachine learning rules, third-party connectors for actions (Slack, Jira, ServiceNow…), advanced Elastic Defend response actions, AI Assistant
Good to know: With the Basic licence, rule actions are limited to the Server log and Index connectors: alerts stay visible in Kibana, but notifying an external tool requires a subscription.

2. Detection rules #

Six families.

Rule types #

TypeDetectsExample
Custom querya KQL / Lucene querymimikatz.exe execution
Thresholda count of events per fieldmore than 10 failed logins per IP
EQLan ordered sequence of eventsfailures then success for the same account
ES|QLan ES|QL aggregationabnormal volume per user
Indicator matcha match with threat intelligenceIP known as malicious
New termsa never-seen valuefirst access of a user to a server
Machine learningan ML job anomalyrare process on a host
sequence by source.ip, user.name with maxspan=10m
  [authentication where event.outcome == "failure"]
  [authentication where event.outcome == "success"]
FROM logs-*
| WHERE event.category == "authentication" AND event.outcome == "failure"
| STATS echecs = COUNT(*) BY source.ip
| WHERE echecs > 20

Prebuilt rules #

Elastic maintains more than a thousand rules, mapped to MITRE ATT&CK tactics and techniques. Install them from Security › Rules, enable those matching the collected data, then add exceptions for legitimate noise.

Common mistake: Enabling every rule at once: most fail for lack of data or drown the team in false positives. Enable per data source, observe for a week, then tune.
Good to know: Each rule runs at a regular interval (interval) over a slightly wider window (from) so nothing is missed between runs.

3. Investigating #

Alerts, timelines, cases.

The handling cycle #

  1. Triage alerts by severity and risk score; group by host or user.
  2. Investigate in a timeline: events around the alert, process tree, EQL queries.
  3. Track in a case: comments, attachments, export to a ticketing tool (connector).
  4. Respond: isolate a host with Elastic Defend, add an exception, close the alert.
Depending on the version: the AI Assistant and Attack Discovery (grouping alerts into attacks) depend on version and licence; they require a connector to a language model.

Related articles

The observability trilemma: cost, completeness and performance, and how solutions resolve it

Understanding the observability trilemma (cost, data completeness, query performance), its three trade-offs, …

Kibana Maps and Canvas: geographic maps and presentations

Build maps with Kibana Maps (document, aggregation and choropleth layers, ES|QL) and dynamic presentations wi…

Machine learning in Elastic: anomaly detection and AIOps

Automatically detect abnormal behaviour: anomaly detection jobs, datafeeds, detectors, influencers, alerts, f…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!