DNS
Overview
DNS is a dynamic analysis tool that appears across malware analysis workflows in this knowledge base. It is referenced as part of higher-level security analysis, investigation, monitoring, or validation activity rather than as an end in itself.
What It Is
DNS is best understood as a malware-analysis tool in this knowledge base. Its role is conceptual and system-facing rather than procedural: it gives analysts or defenders a structured way to examine evidence, model system behavior, or reason about security state.
How It Works
DNS works by turning technical inputs into more interpretable outputs at the system level. Across the source skills, it appears as part of larger analysis, investigation, monitoring, or validation loops rather than as a standalone end state.
Core Concepts
- malware
- dynamic analysis
- sandbox
- Cuckoo
- behavioral analysis
- malware analysis
- network analysis
- PCAP
- Wireshark
- C2 detection
- ransomware
- detection
Typical Workflow
- capinfos malware.pcap
- tshark -r malware.pcap -q -z io,phs
- tshark -r malware.pcap -q -z endpoints,ip
- tshark -r malware.pcap -q -z conv,tcp
- tshark -r malware.pcap -q -z dns,tree
- | Kill Chain Phase | Network Indicators | Detection Source |
- |------------------|--------------------|------------------|
- | Initial Access | RDP brute force, VPN credential stuffing, phishing callback | Firewall logs, IDS, proxy logs |
- | C2 Establishment | Cobalt Strike beacons (HTTPS/DNS), Sliver/Brute Ratel callbacks | Zeek SSL/HTTP logs, DNS logs |
- | Credential Harvesting | NTLM relay, Kerberoasting, DCSync traffic | Zeek Kerberos/NTLM logs, DC logs |
Use Cases
- A suspicious sample passed static analysis triage and requires behavioral observation in a controlled environment
- You need to capture network traffic, file drops, registry modifications, and API calls from a malware execution
- Determining the full infection chain including second-stage payload downloads and persistence mechanisms
- Generating behavioral signatures and YARA rules based on observed runtime activity
- Automated analysis of bulk malware samples requiring consistent reporting
- Using insufficient analysis timeout causing the sandbox to terminate before second-stage payload executes
- Ignoring sandbox evasion detections; if the sample exits immediately, it may be detecting the virtual environment
- Sandbox execution has captured a PCAP file and the network behavior needs detailed analysis
- Identifying the C2 protocol structure for writing network detection signatures
- Determining what data the malware exfiltrates and to which external infrastructure
Limitations
- Output still depends on context, data quality, and surrounding analysis.
- The tool should be interpreted as part of a broader workflow, not as a complete answer by itself.
- Capabilities and visibility vary depending on environment, integrations, and available inputs.
Related Tools
- Suricata, Zeek, Scapy, AC Hunter, And Credentials From PCAP Files, And Elastic, And Long Connections In Zeek Logs, And Memory Dumps
Sources
- analyzing-malware-behavior-with-cuckoo-sandbox
- analyzing-network-traffic-of-malware
- detecting-ransomware-precursors-in-network
- hunting-advanced-persistent-threats
- implementing-honeypot-for-ransomware-detection
- performing-packet-injection-attack