10. General Settings » Anomaly Detection
The anomaly detection engine can be configured in Configuration » General Settings » Anomaly Detection. The detection of anomalies must also be enabled individually for each subnet defined in the IP Zone.
The Anomaly Detection Settings form opens with four global settings — three of which have an [Options] button that opens a dedicated window — followed by the Decoders for Thresholds grid and the Percentage Thresholds section, which starts collapsed. Both sections can be collapsed or expanded by clicking their title.




Note
The Expiration Options, Baseline Profiling Configuration, Deduplication Options, and Sweep Merge Options windows do not save anything on their own. Their [Save] button only passes the edited values back to the Anomaly Detection form, so click [Save] at the bottom of the form to store them. Closing a window with its x button discards the changes made inside it.
10.1. Sweep Merge

When an attack targets a single host or subnet, the Sensor reports the most specific anomaly it detected, and Domain deduplication suppresses the redundant anomaly raised on any covering prefix — you see 1.1.1.1/32 under attack, not 1.1.0.0/16. This is the preferred behavior when one destination is responsible for the traffic.
Distributed attacks invert the problem. A carpet-bombing attack spreads traffic across many destinations inside the same network block precisely to stay under per-host thresholds: detection then raises one anomaly for every affected sub-prefix, none of which individually explains the aggregate. With Subnet /N threshold rules, a sweep across a /24 monitored in /28 blocks can open up to 16 simultaneous anomalies — each with its own alerts and its own response actions, such as 16 separate blackhole announcements where one would do.
Sweep Merge sets the number of simultaneous sub-anomalies above which the Sensor reverses its preference. When more than the configured number of anomalies target sub-prefixes of the same covering anomaly — matching decoder, direction, and unit — the Sensor reports only the covering anomaly and merges the individual sub-anomalies into it. Below the configured number, the behavior is unchanged: specific anomalies are reported and the covering one is suppressed.
For example, consider a /24 subnet with a per-subnet threshold rule and Subnet /28 rules, with Sweep Merge set to 4. An attack on hosts inside two of the /28 blocks reports two /28 anomalies and suppresses the /24 one. A carpet-bombing attack spread across nine /28 blocks reports a single /24 anomaly; the nine /28 detections are merged into it, and the response action runs once, against the /24.
Wanguard Sensor detects traffic anomalies using two different methods:
10.2. Threshold Anomalies
Threshold Anomalies are breaches of user-defined traffic thresholds. These thresholds can be defined inside IP Zones for the decoders enabled in the Decoders for Thresholds list. Decoders represent internal functions (traffic dissectors) that differentiate and classify the underlying protocols of each packet or flow.
Enable only the decoders for which you need to define thresholds. The grid holds four columns: Enabled is the checkbox that makes the decoder available in the threshold editors, Decoder is its short name, Description explains what it matches, and Compatibility shows you if Packet Sensor, Flow Sensor or SNMP Sensor can use the decoder to detect anomalies, and if these anomalies could be mitigated by Packet Filter with Netfilter, or using Flowspec or the Dataplane Firewall. The icons of the Compatibility column always appear in the same order: Flow Sensor, Packet Sensor, SNMP Sensor, Filter, BGP Flowspec, and Dataplane (DPDK).
Thresholds can include either absolute values (e.g. IP receives 100k UDP packets/s) or percentage values (e.g. IP receives 30% UDP packets/s). To prevent Percentage Thresholds from being triggered for small amounts of traffic, configure minimum packets/s and bits/s values. Both Minimum Pkts/s and Minimum Bits/s are mandatory and understand the usual multipliers, so you can enter 10K or 100M instead of the full number. Percentage values are calculated based on the rates of the monitored interface, for the same decoder. E.g., for an interface that receives 100k UDP packets/s, a 30% UDP packets/s threshold defined for a single IP triggers an anomaly when the IP receives over 30k UDP packets/s.
10.3. Profile Anomalies
Profile Anomalies are detected through a behavioral recognition approach: the software computes a traffic baseline from the past traffic of each profiled prefix and detects any activity that deviates from the expected levels. Profiling requires at least one Graph Storage Engine set to ClickHouse in General Settings » Graphs & Storage. Profiling rules can be defined for every enabled decoder, with a per-rule sensitivity (as a multiple of the baseline) and a minimum floor under which no anomaly is triggered. The Network & Policy » Profiling Template chapter explains every metric of a profiling rule.