Protocol Tunneling Concealing C2 Traffic (Non-Standard Ports / DNS-Wrapped)

This rule detects potentially malicious network traffic that suggests command and control or data exfiltration. It identifies connections using non-standard ports (above 1024, excluding common ports) or abnormally long DNS queries, often associated with DNS tunneling. The rule aggregates these events by host and destination to identify persistent or high-volume patterns indicative of covert channels.