What is classtype, and what does adding an entry to classification.config do?
classtype puts a rule into a named category that carries a description and a default priority; classification.config is where those categories are defined, so a new class like hslu-network must be declared there before rules can use it.
Each line in classification.config defines one class:
config classification: web-application-attack,Web Application Attack,1
config classification: hslu-network,Traffic to the HSLU network,1
The fields are short name, description and priority (1 is the most severe). A rule references the short name with classtype:hslu-network;, and every alert it produces inherits that description and priority. A rule can override the priority with its own priority: keyword.
This matters operationally. Analysts and dashboards sort and filter by class and severity, so hundreds of rules can be triaged as a few groups ("policy violation", "trojan activity", "not suspicious"). A rule that names a class not present in the file fails to load, which is why the lab adds the entry first.
Go deeper:
Suricata: Meta Keywords, classtype โ how
classtypemaps to a description and priority in classification.config.