Iniciar sesión

Practice: from alert to timeline

15 min · 2 ejercicio(s)

An investigation is a loop: pivot on an indicator, look at the surrounding events, pick the next indicator. KQL is your pivot tool.

Pivot checklist

  1. Start with the indicator from the alert (an IP, a user, a host).
  2. Search it in every index: source.ip: 203.0.113.66 in web logs, the same IP as destination.ip in endpoint data.
  3. Narrow down by outcome (event.outcome, status codes) to find what worked for the attacker.
  4. Write down timestamps. A timeline is the most valuable output of an investigation.

Questions to ask

Question Example query
Did it succeed? source.ip: 185.220.101.47 and event.outcome: success
What else did the account do? user.name: deploy and event.category: process
Where did it connect to? host.name: srv-web-01 and event.category: network
What did the attacker get? source.ip: 203.0.113.66 and http.response.body.bytes > 1000000

Write it down

Save useful queries in Kibana (Save query) and add them to the case. A colleague taking over the incident at 3 a.m. should be able to rerun every step.

Ejercicios prácticos de esta lección

Resuelve estos ejercicios con una consulta en el laboratorio Elasticsearch real. Inicia sesión gratis para acceder al laboratorio, las pistas y la corrección automática.

  1. 1. Trying the stolen credentials

    After the SQL injection, 203.0.113.66 tried to log in to the shop's admin panel (/admin/login). How many requests did it send there?

  2. 2. What did deploy run?

    The attacker logged in as deploy. Return every process event of this account. Your query is graded by its result.