Malicious DNS Analysis: Tunneling, DGA, and Domain Anomalies

Malicious DNS analysis is performed by mapping flow, timing, protocols, DNS/TLS/HTTP, and the context to the asset. A single packet or connection is partial evidence, so a sequence is built and validated against additional sources.
Network traffic provides a perspective that is not solely dependent on the endpoint. It allows identifying who communicated with whom, using what protocol, in what order, and with what volume, but requires understanding the limitations of visibility and encryption. This article focuses on malicious DNS analysis and is intended for SOC analysts and Network Analysts. The goal is to provide a working methodology that can be applied in practice, in professional interviews, and in a work environment, without settling for a dictionary definition.
The main challenge is that data is almost always incomplete. Query name, response code, and TTL can point in a direction, but their meaning depends on the time, asset, user, and expected activity. Therefore, we will structure the investigation around an investigative question, required evidence, and a clear completion criterion.
The practical scenario in the article is: analysis of a simulated dataset of queries. All examples are laboratory data or process descriptions. When dealing with Penetration Testing, Web, or Cloud, work only with explicit authorization, a defined scope, and the ability to stop the test.




