Lektion 2 von 4 · 8 Min.
Logs and SIEM: turning millions of events into a few good alerts
Why logs are the raw material of every investigation, what a SIEM does with them, and how to decide what is worth collecting.
Diese Seite gibt es vorerst auf Englisch.
Almost everything a computer does can leave a trace: a login, a failed password, a new program installed, a connection to a server abroad. These traces are logs. On their own, most log lines are boring. Together, collected in one place and read in context, they tell the story of what happened, and they are often the only way to prove it afterwards.
Why logs matter
NIST’s guide to log management (SP 800-92) describes logs as essential for identifying security incidents, policy violations and operational problems, and for supporting investigations. CISA’s guidance on event logging makes the same point from the other side: when an incident happens, organisations without good logs often cannot say how the attacker got in, what they touched or whether they are still there.
What to log
Logging everything is expensive and makes the useful lines harder to find. Logging too little leaves blind spots. A reasonable starting set covers the places attackers must pass through:
- Identity: sign-ins, failed sign-ins, multi-factor prompts, password resets, new administrator accounts.
- Endpoints: processes started, software installed, security settings changed, persistence items added.
- Network: connections in and out, DNS lookups, firewall decisions, VPN sessions.
- Cloud and SaaS: changes to permissions, sharing links, storage made public, API keys created.
- The logging system itself: when logs stop arriving from a source, that silence can be the alert.
Two details make logs trustworthy. Clocks must be synchronised, or you cannot put events in order across machines. And logs should be sent off the machine that produced them, because an attacker with control of a computer can also edit its local logs.
What a SIEM does
A SIEM, for Security Information and Event Management, is the system that collects logs from many sources, normalises them into a common format, stores them and lets analysts search and correlate them. Well-known examples include Splunk and the Elastic stack (Elasticsearch, Logstash and Kibana, often called ELK), alongside cloud-native services from the major providers. The product matters less than what you do with it.
| SIEM step | What happens | Why it matters |
|---|---|---|
| Collect | Agents and connectors send events from servers, laptops, cloud services and network devices | One place to look instead of dozens |
| Normalise | Different formats are mapped to common fields: user, host, source, destination, time | Rules can work across products |
| Correlate | Rules link events: five failed logins then a success, then a new admin account | Single events look innocent; sequences reveal attacks |
| Alert | Matches become alerts with severity and context for the SOC queue | Humans look at a few alerts, not millions of lines |
| Retain and search | Events are kept for months or years and can be searched during investigations | You can answer “when did this start?” later |
Correlation: the real value
A failed login is normal. A thousand failed logins against different accounts from one address is a password-spraying attempt. A successful login from a new country followed within minutes by a mailbox rule that forwards all mail outside the company is a classic sign of a compromised account. None of those events is alarming alone; the SIEM’s job is to see them together.
Fighting alert fatigue at the source
- Start with a small set of high-value detections and tune them until they are rarely wrong.
- Add context to every alert automatically: who owns the machine, what the user normally does, whether the address is known.
- Review each rule’s track record regularly, and retire rules that never catch anything real.
- Write a short playbook per alert type so triage is consistent across analysts and shifts.
Logs on a single Mac
macOS keeps its own unified log, which is detailed but hard to read without practice. For network activity specifically, FireAI keeps a local connection history that shows which app connected where, newest first, and lets you search the last seven days in plain language. Like any good log, it stays on the machine that produced it and never goes to a cloud service. It is not a SIEM, but it answers the same first question an analyst asks: what did this machine talk to, and when?
Das Wichtigste
- Logs are the evidence behind every investigation; without them you cannot tell what happened.
- Log where attackers must pass: identity, endpoints, network, cloud, and the logging system itself.
- A SIEM collects, normalises, correlates and alerts; correlation is where its value lies.
- Synchronise clocks and ship logs off the machine that produced them.
Testen Sie sich
1. What does SIEM stand for?
- Secure Internet Email Monitoring
- Security Information and Event Management — Richtig.
- System Integrity Enforcement Module
- Signature-based Intrusion Elimination Method
A SIEM collects and analyses security information and events from many sources.
2. Why should logs be sent off the machine that produced them?
- To save disk space only
- Because an attacker who controls the machine can alter or delete its local logs — Richtig.
- Because local logs are always in the wrong format
- It is required by every law
Central, remote storage keeps evidence out of the attacker’s reach.
3. Which situation is best detected by correlation rather than a single event?
- One failed login
- A login from a new country followed by a rule forwarding all mail outside the company — Richtig.
- A user opening a document
- A scheduled software update
Each event alone may be harmless; together they are a classic sign of a compromised account.
Mit FireAI ausprobieren
Wenden Sie diese Lektion auf Ihrem eigenen Mac an.
- Aktivität: jede App, die online ging, und eine Verlaufssuche in normaler Sprache — Sehen Sie jede App, die heute online war, und handeln Sie mit einem Klick bei jeder von ihnen.
- Die Bedrohungsseite: was verdächtig aussieht, und warum — Sehen Sie die Handvoll Verbindungen, die Ihre Aufmerksamkeit verdienen, statt durch Tausende zu scrollen.
- Eine Verbindung untersuchen — Entscheiden Sie mit den Fakten vor Augen, nicht mit einer vagen Warnung.
- Der Notausschalter — Trennen Sie Ihren Mac mit einem Klick vom Internet, wenn sich etwas komisch anfühlt.
Quellen
- NIST SP 800-92: Guide to Computer Security Log Management
- CISA: Best practices for event logging and threat detection
- NIST CSRC Glossary: security information and event management
- Elastic: The Elastic Stack
Setzen Sie es auf Ihrem Mac um
Teste alle Funktionen 17 Tage kostenlos, ohne Karte.