Skip to content

DNS tunneling vs network security controls part 4 – DGA

The next part of my DNS protection and identification series – this time focusing on DGA (Domain Generation Algorithm).

DGAs are used to evade traditional IOCs such as static domains and IP addresses. How does it work? It’s quite simple: a compromised host continuously generates domain names and sends DNS queries. If one of those domains resolves successfully, the infected machine attempts to communicate with the C2 server.

What about protection mechanisms? Let’s check them out.

I created two PowerShell scripts to simulate DGA behavior:

  • DGA.ps – generates completely random domain names, each 12 characters long.
  • DGA_dictionary.ps – generates domains using random combinations of dictionary words, making them resemble more typical websites.

Umbrella

Umbrella’s behavior remained the same as in previous infiltration and exfiltration tests: it simply categorized the domains as Uncategorized and did nothing further.

FortiGate

FortiGate assigned categories to the generated domains, regardless of which script was used. No advanced detection or DGA-specific behavior was observed.

Palo Alto

Using the first script, Palo Alto correctly identified the traffic as DGA-generated domains. With the second script, some domains were flagged as spyware, while others (especially those using dictionary-based words) were treated as legitimate – which is actually the correct behavior.

Interestingly, when I reduced the generated domain length from 12 to 8 characters, Palo no longer identified them as malicious – probably to avoid false positives.

Conclusion

FortiGate and Umbrella offer no real protection against DGA techniques. They simply categorize domains using static lists, without deeper inspection. Palo Alto is the only solution that attempted to intelligently identify DGA behavior – although even then, it has limitations depending on domain structure and length.

Join the conversation

Your email address will not be published. Required fields are marked *