Detection Playbook: Gather Victim Host Information (T1592)

T1592 · 2026-12-02

Gather Victim Host Information

Reconnaissance
PRE
MITRE ATT&CK →
Technique Gather Victim Host Information (T1592)
Tactic Reconnaissance
Platforms PRE

Overview

T1592 (Gather Victim Host Information) describes pre-compromise reconnaissance where adversaries collect details about target systems — including hostnames, assigned IPs, operating systems, language settings, browser versions, and hardware configurations. Attackers use this intelligence to profile the environment, identify exploitable weaknesses, and tailor follow-on attacks such as phishing lures, exploit delivery, or supply chain compromise against specific software versions running in the target org.

Because this activity occurs before the attacker ever touches your infrastructure, it is one of the hardest techniques to detect directly. However, indirect signals — such as suspicious JavaScript executing host fingerprinting on a compromised website, unusual User-Agent strings in web proxy logs, or external scanning of your public-facing assets — can surface attacker behavior early enough to disrupt the kill chain before initial access is achieved. Detecting it matters: catching reconnaissance is your earliest possible warning.

Attacker Perspective

Attackers gather host information to remove uncertainty before committing to an intrusion — knowing your OS, browser, and patch level lets them choose the right exploit, the right payload format, and the right delivery mechanism on the first attempt.

  • Active network scanning: Tools like nmap -O --script banner <target_range> or masscan --rate 10000 -p 80,443,22,3389 <target_CIDR> enumerate live hosts, open ports, and OS fingerprints from public IP space or after initial footholds.
  • Watering hole / ScanBox-style fingerprinting: Attackers compromise a third-party site and inject JavaScript that collects navigator.userAgent, navigator.platform, screen resolution, installed plugins, and timezone, then beacons this data to an attacker-controlled domain — all transparently to the visiting employee.
  • Phishing for host information: Adversaries send tracking-pixel emails or credential-harvest pages that log the victim's IP, User-Agent string, and browser details upon open or click, using tools like Gophish with custom tracking templates or simple Burp Collaborator callbacks.
  • Passive OSINT against exposed assets: Tools such as Shodan, Censys, and FOFA let attackers enumerate internet-facing hosts, exposed banners, TLS certificate hostnames, and software version strings without sending a single packet to your network.

This technique is attractive because most of it generates no alerts on the victim's systems, requires no credentials or exploits, and directly increases the probability of a successful first-stage attack.

Detection Strategy

Required Telemetry

  • Web Proxy / Secure Web Gateway logs: Every outbound HTTP/HTTPS request from internal hosts must be logged with full User-Agent strings, referrer headers, destination domain, destination IP, response codes, and bytes transferred. This is the primary source for detecting watering-hole beacon callbacks and suspicious fingerprinting traffic. Enable SSL/TLS inspection to cover HTTPS destinations.
  • DNS query logs: All internal DNS resolvers must log every query and response (domain, record type, answering IP, source host). Enable DNS debug logging on Windows DNS servers (Event ID 3008 for query logging, or deploy Sysmon DNS event capture). On Linux/macOS bind or unbound resolvers, enable query logging in the resolver config. This catches callbacks to attacker-controlled fingerprinting domains.
  • Firewall / perimeter NetFlow logs: Inbound scanning activity against your public IP ranges will appear as high-rate connection attempts across many ports from a single external source. Enable NetFlow or IPFIX export from perimeter firewalls and routers. Log all denied inbound connection attempts with source IP, destination IP, destination port, and protocol.
  • Web Application Firewall (WAF) logs: Log all inbound requests to public-facing web applications, including full User-Agent, source IP, URI path, HTTP method, and response code. WAF logs reveal automated scanners and banner-grabbing attempts against your web stack.
  • Email gateway / MTA logs: Log all inbound email metadata including sender, recipient, subject, sending IP, and embedded link destinations. Many phishing-for-information lures use tracking pixels or redirect URLs that fingerprint the recipient's host upon open. Enable URL rewriting and click-tracking logging if your gateway supports it.
  • Endpoint telemetry via Sysmon (Windows): Deploy Sysmon with a configuration that captures Event ID 22 (DNS queries from processes) and Event ID 3 (network connections). This reveals browser or script interpreter processes making unexpected outbound connections to reconnaissance-related domains. Enable via GPO deployment of Sysmon64.exe -accepteula -i sysmonconfig.xml.
  • Browser telemetry / endpoint EDR: EDR solutions (CrowdStrike, SentinelOne, Microsoft Defender for Endpoint) that capture process network activity will show if a browser process connects to an unexpected domain immediately after visiting a third-party site — the hallmark of a watering-hole fingerprinting attack.
  • Cloud asset exposure logs (if applicable): Enable AWS CloudTrail, Azure Monitor, or GCP Audit Logs to capture enumeration of public-facing resources. Unauthenticated DescribeInstances, ListBuckets, or similar calls from unknown external principals are relevant here.

Key Indicators

  • Watering-hole beacon callbacks: In web proxy logs, look for http.request.referrer containing a legitimate third-party site combined with http.request.destination pointing to a newly registered or low-reputation domain. Payload sizes are often small (response_bytes < 500) and the URI path frequently contains base64-encoded or URL-encoded strings resembling serialized host data (e.g., /collect?d=eyJvcyI6IndpbmRvd3MifQ==).
  • JavaScript-based fingerprinting POST requests: In proxy logs, http.method = POST to an external domain with content_type = application/json or content_type = text/plain, referrer set to a legitimate news or industry site, and a very small request_body_bytes (under 2 KB). This matches the ScanBox/fingerprinting callback pattern.
  • High-rate inbound port scanning: In firewall deny logs, a single external src_ip generating more than 100 connection attempts to the same dst_ip across more than 20 distinct dst_port values within a 60-second window. Look for sequential port progression or common scanner port lists (22, 80, 443, 3389, 445, 8080, 8443).
  • Anomalous User-Agent strings from known scanner tools: In WAF and proxy logs, http.user_agent values matching patterns like Nmap Scripting Engine, masscan, zgrab, python-requests, Go-http-client, curl/ (in contexts where curl is not expected), or empty/null User-Agent strings against web application endpoints.
  • Tracking pixel loads from email clients: In email gateway logs or proxy logs, a 1×1 image request (identifiable by response_bytes < 100 and http.uri containing unique token parameters) originating from an email client process (e.g., OUTLOOK.EXE, Thunderbird) to an external domain registered within the past 30 days.
  • DNS queries to fingerprinting or analytics domains not in your baseline: In DNS logs, resolution of domains matching patterns like *.stat-track[.]com, collect.*, beacon.*, ping.* from multiple internal hosts within a short window, especially if the domain was registered recently and has no prior query history in your environment.
  • Sysmon Event ID 22 from browser processes to unexpected domains: In Sysmon logs, EventID = 22 where Image is chrome.exe, msedge.exe, or firefox.exe and QueryName resolves to a domain not in your proxy's known-good list and was first seen in your environment within the past 7 days.

Detection Logic

Rule 1 (Broad — High Sensitivity): Inbound Port Scan from Single External IP
IF log_source = "firewall" AND direction = "inbound" AND action = "deny" AND src_ip NOT IN [known_scanners_allowlist] GROUP BY src_ip, dst_ip, time_window(60s) HAVING COUNT(DISTINCT dst_port) > 20 AND COUNT(*) > 100 THEN alert("Potential host reconnaissance scan")

This catches broad external scanning attempting OS and service fingerprinting. Expect moderate-to-high volume depending on your internet exposure; apply IP reputation enrichment to reduce noise and prioritize scanning sources with no prior legitimate business relationship.

Rule 2 (Medium — Fingerprinting Callback from Internal Browser): Small POST to New External Domain via Browser
IF log_source = "web_proxy" AND http.method = "POST" AND http.request.bytes < 2048 AND http.response.bytes < 1024 AND domain_age_days(http.destination_domain) < 30 AND http.referrer MATCHES "^https?://[^/]+" AND http.referrer NOT IN [internal_domains] AND http.user_agent MATCHES "(chrome|firefox|msedge|safari)" THEN alert("Possible watering-hole fingerprinting callback")

This targets the ScanBox-style beacon where a browser visits a compromised third-party site, executes JavaScript, and POSTs fingerprint data to an attacker domain. Volume should be low in most environments; tune on the domain age threshold and the referrer whitelist for known external SaaS tools.

Rule 3 (Medium — Scanner User-Agent on Public Web App): Known Scanner Tool Identified in WAF Logs
IF log_source = "WAF" AND http.user_agent MATCHES "(nmap|masscan|zgrab|nuclei|nikto|dirbuster|gobuster|python-requests|Go-http-client/1\.1)" AND src_ip NOT IN [approved_pentest_ips] THEN alert("Scanner tool User-Agent detected against public web asset")

This catches opportunistic and targeted scanning of your web applications using common reconnaissance frameworks. Expected volume varies greatly by org size and internet exposure; apply a pentest schedule allowlist and suppress during approved scan windows.

Rule 4 (Narrow — High Precision): Internal Host DNS Query to Newly Seen Fingerprinting Domain After Email Open
IF log_source = "dns" AND QueryName NOT IN [domain_baseline_30d] AND domain_age_days(QueryName) < 14 AND process_name IN ["OUTLOOK.EXE", "thunderbird.exe", "chrome.exe", "msedge.exe"] AND WITHIN 60s: log_source = "email_gateway" AND email.recipient = same_user AND email.sender_domain NOT IN [trusted_sender_domains] THEN alert("Possible tracking pixel or phishing fingerprint callback after email open")

This is a correlated rule linking an email delivery event to a near-immediate DNS resolution by an email client or browser, targeting the specific scenario where a phishing or tracking email triggers host fingerprinting. Precision is high; volume should be very low.

Tuning Guidance

  • Authorized penetration tests and vulnerability scanners: Internal scanners (Nessus, Qualys, Rapid7 InsightVM) and authorized external pen test firms generate massive volumes of scanning activity that will trigger Rules 1 and 3. Maintain a documented allowlist of internal scanner IPs (e.g., src_ip IN [10.10.1.50, 10.10.1.51]) and approved external pen test source ranges, and suppress alerts during scheduled scan windows by time-bounding exclusions.
  • Marketing and analytics platforms: Many legitimate SaaS tools (HubSpot, Marketo, Salesforce Pardot) embed tracking pixels in outbound emails and use small beacon requests that superficially resemble fingerprinting callbacks. Exclude known marketing platform domains and their associated tracking subdomains (e.g., destination_domain IN [*.hsforms.com, *.mktoinsights.com]) from Rule 2 after confirming with your marketing team.
  • Content Delivery Networks and third-party script loaders: Legitimate websites commonly load scripts from CDN domains that issue small analytics POSTs, which will generate false positives in Rule 2. Build a baseline of known CDN domains (Akamai, Cloudflare, Fastly, Google Tag Manager domains) and exclude them: destination_domain NOT IN [cdn_allowlist].
  • Developer and IT tooling using non-browser User-Agents: Tools like curl, python-requests, and Go-http-client are commonly used by legitimate DevOps pipelines, monitoring agents, and IT automation. Narrow Rule 3 exclusions by source IP (e.g., src_ip IN [devops_subnet]) or by correlating with a known-good process list from EDR telemetry rather than blanket-excluding the User-Agent pattern.
  • Recently registered but legitimate business domains: Domain age thresholds in Rules 2 and 4 will occasionally flag legitimate new vendor or partner domains. Add a secondary check: if the domain resolves to an IP in a known hosting provider's ASN with no threat intelligence hits and multiple internal users have visited it, consider it likely benign and add it to a reviewed-allowlist after investigation.

When the Alert Fires: Investigation Steps

  1. Verify the alert is real by confirming the raw event in the source log. Pull the original log entry from your SIEM (web proxy, WAF, firewall, or DNS log) and confirm that the fields that triggered the rule — destination domain, User-Agent string, port count, or POST body size — match what was alerted on. Do not proceed based solely on the SIEM alert field; raw log review catches parser errors that cause false positives.
  2. Identify the affected host and user and flag privilege level. Use the source IP from the log to query your CMDB or Active Directory to resolve the hostname and assigned user. If the host belongs to IT administration, security, finance, or executive staff, immediately escalate priority — privileged host fingerprinting is a higher-severity indicator of targeted attack planning.
  3. Pull the full process chain and command-line context using EDR or Sysmon logs. In your EDR console (CrowdStrike Falcon, Defender for Endpoint, or Sysmon Event IDs 1, 3, 22), identify which process made the suspicious network connection — was it chrome.exe, OUTLOOK.EXE, a script interpreter like wscript.exe or powershell.exe, or an unexpected binary? A browser process is lower concern than a scripting engine, which suggests active post-compromise execution.
  4. Examine the full HTTP transaction in proxy logs for fingerprinting payload content. If your proxy performs SSL inspection, retrieve the full request and response body for the suspicious POST or beacon. Look for JSON or base64-encoded blobs containing OS name, browser version, screen resolution, timezone, or IP address fields — these are the definitive indicators of intentional host fingerprinting rather than benign analytics.
  5. Pivot on the destination domain or IP across all proxy and DNS logs for the past 30 days. Query your SIEM or DNS logs for QueryName = [suspicious_domain] or destination_ip = [attacker_ip] across all internal hosts to determine whether this is an isolated event or whether multiple employees have been targeted — a broad pattern indicates a watering-hole or mass-phishing campaign rather than a single-host issue.
  6. Check threat intelligence platforms for the destination domain and IP. Submit the destination domain, IP, and any URL paths observed to VirusTotal, Shodan, URLScan.io, and your TI feed (Recorded Future, MISP, or similar). Look specifically for: prior malicious classification, hosting on bulletproof or known bad ASNs, presence in phishing kit databases, or prior association with known threat actor infrastructure. Document all findings.
  7. Make the escalation decision based on evidence weight. If the event is an isolated external scan from a known scanner ASN with no internal host involvement, document and close as low-priority reconnaissance. If you find: (a) a confirmed fingerprinting payload in the HTTP body, (b) multiple internal users beaconing to the same domain, or (c) the destination domain appearing in threat intelligence as active attacker infrastructure — escalate to a confirmed incident, preserve all logs with legal hold, and proceed to containment.

Response Playbook

Containment

  • Isolate the affected host at the network level while keeping it powered on. Use your EDR console (CrowdStrike Network Containment, Defender for Endpoint Isolate Device, or a firewall ACL blocking all traffic except to your EDR management plane) to prevent further outbound fingerprinting callbacks or potential follow-on C2 — but do not power off, as volatile memory may contain process artifacts relevant to forensics.
  • Block the identified attacker domain and IP at the perimeter immediately. Add the destination domain and IP to your DNS RPZ (Response Policy Zone) on internal resolvers to prevent further internal resolution, and push a block rule to your perimeter firewall and web proxy for the attacker's IP range. If using a cloud proxy (Zscaler, Netskope), add the URL to the custom block list.
  • If a phishing email was the delivery vector, quarantine the message from all recipient mailboxes. Use your email security platform (Microsoft Defender for Office 365 Threat Explorer, Proofpoint TAP, or Mimecast) to run a soft-delete purge of the identified sender/subject combination across all mailboxes. This prevents additional employees from triggering the tracking payload.
  • Disable the affected user's active SSO and VPN sessions. In Azure AD / Entra ID, revoke all active refresh tokens using Revoke-AzureADUserAllRefreshToken; in Okta, navigate to the user's session panel and click Revoke All Sessions. This prevents an attacker who has already profiled the user from leveraging a session token they may have captured.

Eradication

  • If a watering-hole or malicious script was involved, identify and remove any dropped files. Using your EDR, run a file search on the isolated host for files written within the timeframe of the suspicious connection. Check %TEMP%, %APPDATA%\Roaming, %USERPROFILE%\Downloads, and browser cache directories. Delete any identified payloads and document SHA256 hashes before removal.
  • Scan for persistence mechanisms added after the fingerprinting event. On Windows, use Autoruns (Sysinternals) or your EDR's persistence query to check scheduled tasks (schtasks /query /fo LIST /v), Run registry keys (HKCU\Software\Microsoft\Windows\CurrentVersion\Run), and newly installed services. On Linux, review /etc/cron*, ~/.bashrc, /etc/systemd/system/ for anomalous entries.
  • Reset credentials for the affected user and any accounts that authenticated from the affected host during the incident window. Force a password reset through Active Directory (Set-ADAccountPassword) and invalidate all MFA device registrations if there is any possibility credentials were observed. Notify the user through an out-of-band channel (phone call, not email) in case the email account itself is compromised.
  • Notify the owner of any third-party site identified as a watering hole. If investigation reveals that a legitimate external site was compromised to serve the fingerprinting script, contact the site's security team or abuse contact with the specific URL and JavaScript payload. This is both a responsible disclosure action and may prevent further employees from being fingerprinted.

Recovery

  • Re-image the host if any post-reconnaissance payload execution is confirmed; return to service only after verification. If EDR telemetry shows that fingerprinting was followed by any file write, process spawn, or command execution, treat the host as fully compromised and re-image from a known-good golden image rather than attempting to clean it. If only the reconnaissance beacon is confirmed with no subsequent activity, run a full EDR and AV scan, verify clean, and document before reconnecting.
  • Re-enable the user account only after confirming no persistence remains and credentials are reset. Have the user enroll new MFA factors on a clean device before restoring access, and verify their first successful login appears from an expected location and device in your Identity logs before closing the ticket.
  • Monitor the previously affected host and user account for 72 hours post-remediation with elevated detection sensitivity. Create a temporary watchlist in your SIEM for the host IP, hostname, and user account, and lower alert thresholds for all T1592-related rules scoped to those entities. Attackers who have already profiled a target may retry access attempts within days of initial reconnaissance.
  • Update detection rules with new IOCs discovered during the investigation. Add the confirmed attacker domain, IP, User-Agent string patterns, and URL path patterns identified during investigation to your SIEM detection rules as high-confidence indicators. Share IOCs via your threat intelligence platform (MISP, OpenCTI) if your org participates in an ISAC or sharing community.
  • Document the full timeline and conduct a lessons-learned review within 5 business days. Record the initial alert time, detection gap (how long reconnaissance occurred before detection), affected hosts and users, containment time, and any detection gaps identified. Use this to prioritize telemetry improvements — particularly SSL inspection coverage and DNS logging completeness — before closing the incident formally.

Stay Ahead

Get daily threat intelligence and weekly detection playbooks.

Free. No account. No email. Follow in Feedly, Inoreader, or any RSS reader.