🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Cybersecurity › Security Information and Event Management (SIEM) › Lesson 5
TEC-CYBE44-06 · Lesson 5 · 16 clock hours · lab

Correlation Rules and Use-Case Development

Objective. Students write, test, and document three correlation rules that detect defined attack behaviors and generate actionable alerts without excessive false positives.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

What Is a Correlation Rule?

A SIEM platform collects log data from many sources—firewalls, endpoints, directory services, cloud platforms—and stores each event. Correlation rules are the logic layer on top of that storage. A rule watches the event stream and fires an alert when a defined pattern appears. Without rules, the SIEM is only a search engine; with rules, it becomes a detection engine.

A well-written rule has four parts:

Correlation Rule Types

Threshold rules count events that share a field value over a rolling time window. A brute-force detection rule is the classic example: if more than a set number of failed authentication events share the same source IP address within a short window, raise an alert. The threshold and the window are tunable; finding the right values is the art of rule writing.

Aggregation rules group events by one or more fields (source IP, user account, host) and summarize them before applying logic. They reduce noise by collapsing many raw events into a single context object.

Sequence rules (also called chained rules) require that event A happen before event B within a time limit. Example: a new local admin account is created, and then a remote login using that account occurs within 10 minutes.

Lookup or threat-intel rules compare a field value—such as a destination IP address—against a reference list such as a threat-intelligence feed. If the destination IP appears in the feed, the rule fires. Open-source feeds like those published by abuse.ch are commonly used in training environments.

The False-Positive Problem

A false positive is an alert that fires on legitimate traffic. False positives are dangerous because they train analysts to ignore alerts, a behavior known as alert fatigue. Every rule you write must be tested against both attack traffic and representative benign traffic.

Common causes of false positives in threshold rules:

Suppression and Whitelisting

When you identify a legitimate source of false positives, you have two main remediation options:

1. Whitelist (exception) condition – add a NOT clause: do not fire if the source IP is in a known-good list (e.g., the backup server subnet). This is fast to implement but must be maintained as infrastructure changes.

2. Threshold adjustment – raise the count or shorten or lengthen the time window so legitimate traffic no longer crosses the threshold. Document why you chose the new value.

Always document every tuning change: what you changed, why, what test data confirmed the result, and the date. Documentation is required for audit purposes and is tested on the CompTIA CySA+ exam under the detection and analytics domain.

Use-Case Development Process

Before writing a single line of rule logic, define the use case:

1. Identify the threat behavior – what attacker technique does this detect? Reference a framework such as MITRE ATT&CK to name the tactic and technique.

2. Identify the log source – which system generates the events you need? Confirm that source is forwarding logs to the SIEM.

3. Define the logic in plain English – write the condition in words before translating it into query syntax.

4. Set severity and response – decide how urgent the alert is and what the analyst should do first.

5. Define the suppression condition – document known-good behaviors that must be excluded.

6. Test on attack data – confirm the rule fires on injected malicious traffic.

7. Test on benign data – confirm the rule does NOT fire on representative legitimate traffic.

8. Document everything – rule name, version, author, date, logic, severity, suppression, and test results.

Safety and Responsible Use

Correlation rules that run in a production SIEM operate on real user and system data. Treat all log data as sensitive. Do not copy raw logs containing usernames, IP addresses, or event details outside the authorized lab environment. Follow your organization's or school's acceptable-use policy. In a real workplace, changes to production SIEM rules must go through a change-management process before deployment to avoid accidental suppression of real alerts. In this lab, work only within the isolated practice instance provided.

Connecting to Credential Exams

CompTIA Security+ covers monitoring and event analysis as core competencies. CompTIA CySA+ goes deeper: the detection and analytics domain specifically tests your ability to analyze indicators of compromise, tune detection rules, and document findings. ISC2 CC addresses security operations and monitoring concepts at a foundational level. The skills you practice in this lab map directly to exam questions on all three credentials.

Key terms9

Correlation ruleLogic configured in a SIEM that evaluates incoming events against defined conditions and generates an alert when those conditions are met.
Threshold ruleA correlation rule that counts events sharing a common field value over a rolling time window and fires when the count exceeds a set limit.
False positiveAn alert generated by legitimate, non-malicious activity that satisfies the rule's conditions; excess false positives cause alert fatigue.
Alert fatigueA condition where analysts begin ignoring or dismissing alerts because the volume of false positives makes individual alerts seem untrustworthy.
Suppression conditionA rule clause or exception that prevents the rule from firing when specified benign criteria are present, such as a known source IP or service account.
Threat intelligence feedA list of indicators of compromise—such as malicious IP addresses or domains—sourced from an external provider and used in lookup-based correlation rules.
Use caseA defined detection scenario that specifies the threat behavior to detect, the required log sources, the rule logic, and the expected response.
Sequence ruleA correlation rule that requires two or more events to occur in a specific order within a defined time period before an alert is raised.
TuningThe iterative process of adjusting rule thresholds, fields, or suppression conditions to reduce false positives while maintaining detection of true threats.
In class: Guided rule build: instructor walks through creating a brute-force detection rule (threshold: more than a defined number of failed logins from one source IP within a short time window); students replicate and then adjust the threshold to observe the effect on alert volume. · Independent rule development: students design and implement two additional rules from a provided list of use cases (options include: new admin account created after hours, outbound connection to known malicious IP from threat feed, USB device inserted on a sensitive host); each rule must include a description, logic, severity, and suppression condition. · False-positive tuning exercise: instructor injects legitimate bulk-authentication traffic (e.g., a scheduled backup service) into the dataset; students identify the false positive in their brute-force rule and add a whitelist or exception condition to suppress it, documenting the change.
Materials: SIEM instance, sample attack traffic PCAP replayed via a log injector, threat intelligence IP list (open-source, e.g., abuse.ch), rule-writing worksheet, CySA+ study guide (detection and analytics chapter)
Check: Each of three submitted rules fires on injected attack traffic and does NOT fire on the injected benign traffic; documentation complete. Pass = all three rules meet both criteria with written tuning notes.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Detection and Analytics (CySA+)
1. A correlation rule fires every morning at 2:00 a.m. when a backup service authenticates to 40 servers in rapid succession. This is best described as:
Detection and Analytics (CySA+)
2. Which action is the MOST appropriate first step when developing a new SIEM correlation use case?
Detection and Analytics (CySA+)
3. An analyst adds a NOT clause to a brute-force detection rule so that the rule does not fire when the source IP belongs to a known backup server subnet. This technique is called:
Threats, Attacks and Vulnerabilities (Security+)
4. A security team wants to detect when a workstation connects outbound to an IP address appearing in an open-source threat intelligence feed. Which correlation rule type is BEST suited for this use case?
Detection and Analytics (CySA+)
5. When tuning a threshold rule to reduce false positives, an analyst raises the failed-login count from 5 to 20 within a 60-second window. What is the PRIMARY risk of this change?
Security Operations (Security+)
6. Which element of a correlation rule describes what an analyst should do when the alert fires and how urgently they should respond?
Detection and Analytics (CySA+)
7. A rule is designed to detect a new local administrator account created outside of business hours followed by a remote login using that account within 10 minutes. This is an example of:
Detection and Analytics (CySA+)
8. According to sound rule-development practice, after writing and testing a new correlation rule an analyst MUST:
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.