FTD-style: stop malware finding its server through DNS
Malware on PC1 must find its command server before it can do harm, and it does that with an ordinary DNS lookup. Rule DNS-OUT lets PC1 ask the DNS server outside (198.51.100.1) on UDP 53, so the lookup leaves like any other. This time the IPS goes on an outbound rule.
The simulator ticks each one as soon as the network meets it.
On PC1, look up a normal name and the malware’s name. Both are answered: traffic udp 198.51.100.1 53 payload "DNS query A www.example.com", then traffic udp 198.51.100.1 53 payload "DNS query A c2-update.badexample.net".
On the Intrusion screen, add a Snort rule for the malware domain: drop udp any any -> any 53 (msg:"DNS lookup of a known malware domain"; content:"c2-update"; nocase; sid:1000020; rev:1;)
Create IPS policy DNS-IPS (base connectivity, mode prevention), set rule 1000020 to drop in it, and attach it to rule DNS-OUT, the outbound rule.
Deploy. On PC1, the malware’s lookup is dropped and names rule 1000020, and the normal lookup is still answered.