Designing detection rules that let SOC analysts focus on the alerts that matter
The ESH-SOC writes, reviews and repairs its network detection rules along six design principles. They come from a study by TU/e and the SOC’s detection engineers, based on 30 million alerts from two of the SOC’s customers. Rewritten along the principles, a set of noisy rules raised 98% fewer alerts in production.
In short
- In every SOC, a small number of noisy detection rules cause most of the alerts that turn out to be harmless. SOCs usually disable such rules, and lose what they detect, or filter their alerts afterwards.
- With TU/e, the ESH-SOC’s detection engineers set out six principles for designing rules that alert when an attack is likely to matter, while still covering its variants. The SOC now applies them when it writes, reviews and repairs rules.
- Rewritten along the principles, a set of noisy rules raised 98% fewer alerts over 27 days at the SOC. On a public test dataset, they detected the same successful attacks as before.
On this page

The idea. A rule from the study, before and after applying two of the principles. The original alerts on every attempt; the rewritten version alerts when the server lets the attacker in.
Where the SOC’s network alerts come from
A security operations centre (SOC) monitors the systems of the organisations it serves and investigates anything suspicious. Much of what it sees on the network comes from a network intrusion detection system: software that inspects traffic and raises an alert when it matches a rule. The ESH-SOC uses Suricata, a common choice in SOCs. Each rule describes a sign of malicious activity, for example a request to a vulnerable web page or a domain name used by malware, and every alert it raises can end up with an analyst.
Rules come from open and commercial rulesets, such as Proofpoint’s Emerging Threats, and from the SOC’s own detection engineers. The ruleset the ESH-SOC uses holds hundreds of thousands of rules and is updated every day. How a rule is designed decides how much work it gives the analysts. A rule that is too broad fires on harmless traffic; one that is too narrow misses variants of an attack.
Across SOCs, a few rules cause most of the noise. In the data studied, about 80% of the rules that fired raised less than one alert a day, while a very small share caused most of the alerts that led nowhere. SOCs usually deal with this in two ways.
- Disabling noisy rules. Rules that raise too many false alarms are switched off. Whatever they would have detected is then lost. The study found that old rules, which SOCs often switch off, still contributed to detecting incidents.
- Filtering alerts afterwards. Tools, often based on machine learning, classify, rank or group the alerts. They can only work with what the rules produce, and their results suffer when that input is poor.
Guidelines from the Suricata community mostly cover the syntax and layout of rules. The ESH-SOC took the question to research: how should a rule be designed so that it raises few unnecessary alerts and still covers the attack?
Six principles from the SOC’s rules and its detection engineers
The principles were developed by researchers from TU/e and the ESH-SOC’s detection engineering team. They started from about 30 million alerts raised over 11 months at two of the SOC’s customers, a large educational institution and a medium-sized IT service company, linked to the SOC’s incident reports. The ESH-SOC only reports an incident to a customer when at least one step of an attack succeeded.
The researchers took the rules that caused the most unnecessary work and, rule by rule, worked out what would have made each one more specific, until new rules stopped adding anything; that took 54 rules. They grouped the improvements into principles and went through them with two experienced rule designers, a senior tier 2 analyst at the SOC and a security researcher, until both agreed. The result is six principles (Figure 1).

Figure 1. The six design principles. The first four make a rule raise fewer unnecessary alerts; the last two keep it covering variants of the attack.
The principles describe what a rule should look for, which makes them independent of a particular attack. The illustration at the top of this post shows two of them applied to a rule that watches for unauthorised access to the administrator pages of Adobe ColdFusion, a web server. According to the SOC, most of its alerts involved systems that do not run ColdFusion. The rewritten rule checks the server’s answer and only alerts when access was granted, and one match on the admin folder covers both pages named in the security advisory. Where an unsuccessful attempt still carries a high risk, for example just after a new vulnerability becomes known, the principles allow a rule to alert on the attempt.
Tested on the SOC’s rules and in production
To measure what each principle does, the researchers labelled 182 rules in six groups. The rules in a group detect the same kind of attack but are designed differently, so the effect of a design choice can be compared within the group. Rules that matched the attack itself raised 78% fewer unnecessary alerts a day than rules for similar exploits that used a proxy. Among rules for Log4j, a high-risk vulnerability for which the SOC runs rules from several sources, rules that only alert on successful exploitation raised 36% fewer, and rules that throttle their alerts 99% fewer.
One principle worked the other way. Rules that match what stays the same across variants raised more alerts in three groups. Wider coverage comes at a price in noise, so a rule designer has to weigh the two for each rule.
The team then built suricata-check, a tool that flags rules breaking the principles. It is open source, so other SOCs and rule writers can run it on their own rulesets as well. On the public and commercial rulesets tested, it found that 96% of the rules use no alert throttling and 85% have no exceptions.
Finally, the tier 2 analyst from the interviews rewrote noisy rules along the principles: those that raised at least one false alarm a day at the SOC and could detect attacks in CIC-IDS2017, a public dataset of recorded attack traffic. On that dataset, the rewritten rules detected the same successful attacks with far fewer alerts (Figure 2). Run side by side in the SOC’s production environment for 27 days, they raised 167,245 fewer alerts than the original rules.
30M
alerts from two customer networks analysed
182
rules compared on how they were designed
99%
fewer unnecessary alerts from Log4j rules that throttle
98%
fewer alerts from the rewritten rules in 27 days at the SOC

Figure 2. Alerts raised on the public CIC-IDS2017 dataset by the original and the rewritten rules. Both detect every attack shown.
What the principles bring to the SOC and its customers
The ESH-SOC has built the principles into how it engineers and manages its detection rules.
- Writing rules. The SOC’s detection engineers apply the principles when they write the SOC’s own rules.
- Reviewing rules from feeds. Rules that arrive from open and commercial rulesets are checked against the principles.
- Repairing noisy rules. A rule that raises too many unnecessary alerts is rewritten along the principles, so the SOC keeps what it detects.
- Checking automatically. The SOC runs suricata-check to find rules that break the principles. Because the tool is open source, any SOC can do the same.
For the organisations the SOC monitors, this means analysts spend less time on alerts set off by harmless traffic or failed attempts, and more on the ones that point to an attack that worked. Rules become quieter without giving up the attacks they cover.