DNS-based data exfiltration typically involves encoding stolen data within DNS query or response fields (such as subdomains) and sending it to an attacker-controlled DNS server, so investigators must isolate DNS traffic (which uses port 53) associated with the suspected host. The tcpdump command tcpdump -r suspicious.pcap port 53 and host 10.213.4.27 reads the previously captured pcap file and filters it down to only the DNS traffic involving the file server in question, allowing the analyst to inspect those packets for anomalous or encoded data indicative of exfiltration. The other options either fail to properly parse or filter DNS-specific traffic (grep on raw strings), reference an incorrect log filename for the tool used (Zeek produces dns.log, not file.log), or misuse a tool intended primarily for intrusion detection rather than direct pcap data extraction (Snort, with syntax errors referencing Suricata's eve.log).
Community Discussion