PCI CFA study materials
PCI CFA study resources

Signed Binary Proxy and DNS Tunneling at a Retail Chain

PCI CFA · Put your knowledge to work in context.

All case studies

Signed Binary Proxy and DNS Tunneling at a Retail Chain

A retail chain with 260 stores finds abnormal DNS TXT queries from 14 stores to a domain registered 19 days earlier. EDR shows a Windows service named PrinterHostSvc running a signed binary that proxies execution; the binary is validly signed by a legitimate software vendor. A memory dump from one POS terminal shows injected code in explorer.exe that enumerates processes and searches for track data patterns. AV is current and reports no detection. The POS terminals run Windows 10 and communicate with a central payment switch over TLS. Store firewalls allow DNS only to the ISP resolver; the suspicious queries are recursive lookups that reach the attacker's authoritative nameserver through that resolver. The chain's SOC wants to block the domain and reboot all terminals.

1. Outline a malware analysis plan to determine capability and scope, using the signed binary and memory dump.

Read the worked answer

Preserve the signed binary, service configuration, memory dump, EDR telemetry, and DNS logs with hashes before making changes. Statically examine the binary's Authenticode signature, signer chain, compile timestamp, imports, sections, strings, and any embedded or side-loaded DLL; a valid signature does not mean the file is benign, so check whether it is a known vulnerable or legitimate binary abused for proxy execution. Review the service registry key, image path, dependencies, and any DLL search-order or side-loading path. Dynamically execute it in an isolated sandbox with simulated DNS and network services, monitoring process creation, file writes, registry changes, and network traffic. Analyze the memory dump for injected regions, process hollowing, handles to card data, and strings matching track data. Compare artifacts across the 14 stores to determine whether the same service name, binary hash, and injection pattern are present. Build a timeline from service creation, file timestamps, DNS queries, and EDR events. The plan should answer whether the malware scrapes memory, how it persists, how it exfiltrates, and whether it has spread beyond the 14 stores.

2. What does the use of a signed binary and DNS TXT queries tell you about attacker tradecraft, and how should containment be sequenced?

Read the worked answer

The signed binary is likely being used for proxy execution or DLL side-loading to bypass application allowlisting and evade suspicion; the signature gives the attacker a trusted-looking parent process. DNS TXT queries indicate tunneling or covert command-and-control designed to survive egress filtering that permits DNS to the ISP resolver. Blocking the domain alone is insufficient because the malware may use generated domains or change infrastructure, and rebooting all terminals would destroy memory evidence and may trigger destructive behavior. Containment should first isolate affected stores at the network level without powering off terminals, preserve memory from representative and affected POS devices, and block the known domain and associated indicators while monitoring for alternate domains. Disable the malicious service only after memory capture, and prevent the binary from restarting. Collect and preserve central DNS logs, then hunt for the same service and binary hashes across all 260 stores. Credential rotation and rebuilds should follow evidence collection. The SOC should also review why DNS TXT traffic to external authoritative servers was allowed and add detection for anomalous TXT volume and entropy.

3. How would you confirm exfiltration of track data and estimate the number of affected cards?

Read the worked answer

Confirm exfiltration by correlating DNS TXT query payloads with memory artifacts and POS transaction activity. If DNS logs capture query names, decode the encoded labels and look for structured data, encryption, or compression. Review the memory dump for strings and buffers containing track data patterns and for network buffers associated with the tunneling process. Examine POS application logs and payment switch records for transactions processed on affected terminals during the suspected period. Compare the volume and timing of TXT queries to transaction peaks; a correlation suggests scraping, but absence of payloads in logs does not prove no exfiltration. Estimate the card count from unique transactions on affected terminals during the confirmed compromise window, then deduplicate by card or token where possible. If the malware encrypted data before tunneling, the PFI may need to recover keys from memory or infer volume from query counts. The report should separate confirmed exfiltration from probable exposure and explain the estimation method and its limits.