Study guide · Security Operations and Incident Response
Security operations and incident response: detecting attacks and responding correctly
This page shows how a security team detects attacks and responds to incidents. You will learn how a SIEM collects and links logs and how alerts are prioritized. After that, it covers attackers and their motives, threat intelligence and models such as the Cyber Kill Chain and MITRE ATT&CK. Most of the page deals with the process during an incident, from preparation to lessons learned. Finally, it covers evidence and exercises. The running example is once again the small online shop.
Monitoring with logs and a SIEM
Almost every system writes logs. Servers, firewalls, applications and endpoints record who logged in when and which connections there were. On their own, these logs are hard to keep track of. That is why there is the SIEM, short for Security Information and Event Management. A SIEM is a system that collects and analyzes logs centrally. It recognizes patterns, generates alerts and provides an overall picture.
Three sources are particularly valuable for detecting attacks. Login logs from directory services reveal account misuse. Logs from firewalls and proxies reveal unusual connections. Events from endpoint protection systems report suspicious processes on computers. Which sources matter most depends on your own risks.
All systems must use the same, accurate time. Only then are events correctly matched. During an investigation, logs from many systems are put together into a timeline. If the clocks differ, the sequence comes out wrong. Systems therefore synchronize their time with a reliable source, for example via the NTP protocol.
Logs must be protected against modification so that attackers cannot cover their tracks. Attackers often try to delete logs. If logs are sent immediately to a separately protected system and stored so they cannot be changed, they remain available as evidence.
Security logs are kept for several months because attacks are often discovered late. Attackers frequently remain unnoticed for weeks or months. The retention period must, however, be aligned with data protection.
Correlation, use cases and automation
The most important capability of a SIEM is correlation. It links events from multiple sources. On their own, they often look harmless: a failed login, a login from abroad, a large download. Together and in quick succession, they can point to an attack. Correlation rules recognize such patterns.
A well-known pattern is impossible travel. The SIEM reports, for example: an account logs in at 9:00 in Berlin and at 9:20 in Singapore. Nobody can travel that far in 20 minutes. This is a sign of stolen credentials. A VPN can also trigger it. The alert is therefore checked, for instance by asking the user.
A use case is a defined detection scenario. It describes which threat should be detected, which data is needed, which rule triggers an alert and how to respond. One example: more than ten failed logins to different accounts from one address. This makes monitoring plannable and measurable.
SOAR, short for Security Orchestration, Automation and Response, automates recurring response steps. For a reported phishing email, a so-called playbook checks the links, blocks the sender and deletes similar emails. This takes load off the analysts. Decisions with far-reaching consequences stay with humans.
Event, incident and triage
Not every report is an incident. A security event is an observable occurrence, such as a login or a blocked connection attempt. A security incident actually endangers the security objectives. Confidentiality, integrity or availability are violated or directly threatened.
During triage, it is decided which alerts are handled first. Prioritization is mainly based on possible impact and urgency, not on the order of arrival. An alert on a critical server with sensitive data comes before an alert on a test system.