Detection and Correlation Rules in SIEM ======================================= Think of a SIEM (Security Information and Event Management system) as a giant security camera system for your network. It collects logs from everywhere (computers, servers, firewalls) and tries to figure out if something suspicious is happening. Detection Rules --------------- Detection rules are simple conditions that tell the SIEM **what to look for**. Example: - Alert me if there are **5 failed login attempts in 1 minute**. These rules usually look at **one type of event** at a time. Think of it like: "If someone enters the wrong password too many times, that’s suspicious." Correlation Rules ----------------- Correlation rules are more advanced. They **connect multiple events together** to find bigger threats. Instead of looking at one thing, they ask: > "Do these different events, when combined, mean something bad is happening?" Example: 1. Failed login attempts 2. Then a successful login 3. Then access to sensitive files A correlation rule might say: "If all 3 happen in a short time → alert (possible account compromise)." Analogy -------- - **Detection rule** = noticing one weird thing → "That’s odd." - **Correlation rule** = connecting multiple weird things → "Okay, something is definitely wrong." Why It Matters -------------- - Detection rules = **basic defense** - Correlation rules = **real threat hunting** Most real attacks aren’t obvious in one event—they show up as patterns over time. Real-World Example ------------------ Imagine a hacker: 1. Tries passwords (failed logins) 2. Gets in (successful login) 3. Downloads a lot of data A beginner SIEM might alert only on step 1. A smarter SIEM with correlation connects all steps → flags a **data breach attempt**. Summary ------- - Detection rules = simple, single-event alerts - Correlation rules = combine multiple events to detect real attacks - Correlation is what makes a SIEM actually powerful SIEM Detection & Correlation Quiz -------------------------------------- 1. What is the main purpose of a SIEM system? a) To store large files b) To collect logs and detect suspicious activity c) To speed up the internet d) To design network diagrams 2. A detection rule in a SIEM is designed to: a) Connect multiple events together b) Trigger an alert on a single suspicious event c) Delete old logs d) Prevent hackers automatically 3. Which of the following is an example of a correlation rule? a) Alert if one login attempt fails b) Alert if 5 failed logins happen, then a successful login, then access to sensitive files c) Alert if a file is downloaded d) Alert if the server is turned on 4. Why are correlation rules more powerful than detection rules? a) They are easier to write b) They connect multiple events to find patterns c) They store logs more efficiently d) They work only on firewalls 5. Which analogy is correct? a) Detection rule = "That’s odd." Correlation rule = "Something is definitely wrong." b) Detection rule = "Something is definitely wrong." Correlation rule = "That’s odd." c) Detection rule = "Store logs." Correlation rule = "Analyze CPU usage." d) Detection rule = "Design network." Correlation rule = "Write code." Answer Key ---------- 1. b 2. b 3. b 4. b 5. a