Cybersecurity glossary
Detection rule
A detection rule is a written condition over logs or network traffic that raises an alert when it matches behaviour that may be an attack.
Rules can be written in a shared format such as Sigma for logs or Suricata for network traffic, kept in version control and tested on data known to be bad and data known to be harmless.
A rule that fires on normal activity buries real alerts under false positives, and one that is too narrow misses the attack when it changes slightly. Tuning balances the two.
Learn it hands-on
These free lessons teach it with commands to run in a lab of your own and checked tasks. Read them whole with no account.