Investigation scenario: No User-Agent in the proxy logs
Updated 7 November 2026: I clarified the logging assumptions, investigation heuristics, and executable triage below. See the correction notes.
Context
Chris Sanders proposed on Twitter the following scenario:
Proxy logs indicate a host on your network made a few HTTP requests with no User Agent string (field is empty). What do you look for to investigate why this is happening and whether an incident has occurred?
Credit: https://twitter.com/chrissanders88/status/1630581503506935811
One investigation path
In my experience, requests logged without a User-Agent can be common on a corporate network. Their frequency depends on the applications, proxy configuration, and logging coverage; I would not use a universal percentage as a baseline. HTTP does not require every client to send a User-Agent, so its absence alone is a weak signal.
I would split the actions into these steps:
- Situational Awareness
- Focus on the destination domain name/IP address
- Pivot on the domain name in the logs
- Investigate the endpoint
Situational Awareness
- Check what an empty field means. Is the header absent from the request, or was it omitted, redacted, or lost during logging or parsing? Inspect the raw proxy record and its request type before treating it as client behavior. For HTTPS, distinguish the proxy’s CONNECT request from the HTTP requests inside the tunnel. Without TLS inspection, the proxy cannot read the User-Agent inside an encrypted tunnel; a CONNECT log entry does not establish whether those inner requests contain one.
- To have a sense of urgency in processing this alert, how often does this behavior happen?
- How many comparable hosts and applications share the same behavior?
- Get a vague timeline: When did this behaviour start/end?
Focus on the destination domain name and IP address
Perform a reputation check on the contacted Domain name or IP address:
- VirusTotal
- RiskIQ
- Domain Categorisation in Websense/Bluecoat/Netskope/Forcepoint
- Whois - ๐ฉ if the domain was recently created
- PassiveDNS - ๐ฉ if the domain name shows parking behavior
Treat domain age, parking history, and reputation as context rather than a verdict. Compare historical records with the time of the request, and remember that an IP address may host unrelated services.
Pivot on the domain name in the logs
Pivot on the domain name in our proxy logs:
- How many clients connected to it? Is it unusual for this host’s role or its peer group? A destination used by one specialized application can be legitimate even if it is rare across the fleet.
- How many requests and bytes were sent per client and day? Inspect timing and interval variation, not just request counts. Regular callbacks can justify a closer look, but legitimate polling can be periodic too.
- What are the typical values and outliers for
bytes_inandbytes_out? Confirm each field’s direction and meaning in this proxy’s logs before interpreting an apparent upload. - Is there any other suspicious User-Agent for this domain?
- Any IDS alerts linked to the IP address/domain names?
Investigate the endpoint
On the endpoint that made the request:
- Identify the accounts normally active on this host using available Active Directory authentication records and local logon events (4624). Distinguish interactive users from services and machine accounts.
- If the proxy uses authentication, is the request attributed to an expected account? An unexpected account deserves investigation, but does not by itself prove that credentials are hard coded in the process. Check service configuration and how the proxy attributes requests to users.
- Perform a light triage of the host (see below)
- Identify the process using EDR network telemetry or
Sysmon Event ID 3,
if collection was enabled. Event ID 3 records TCP/UDP connections and is
disabled by default. Event ID 22 records DNS queries, including failed
queries; it can provide a lead but does not prove a connection occurred.
With an explicit proxy, the endpoint may connect only to the proxy,
which may also resolve the destination name. Correlate endpoint and proxy
records by time, addresses, and ports where available. If historical
telemetry is missing,
netstat -anomay identify the PID of a connection that is still present. If the process is found:- Dump this process immediately (using EDR or
procdump) and park it for later analysis if needed. - Make a copy of the executable involved
- Apply the “Triage Executable” section below
- Dump this process immediately (using EDR or
- If we cannot identify the process
- Review the result of
autorunsand review the most recently updated entries. - Preserve the relevant artifacts before running scans that could quarantine or alter them. An AV scan and a targeted YARA scan can complement each other; neither is universally better.
- If the initial domain name/IP address was known in VirusTotal to be associated with a specific malware family, apply this knowledge to the possible artifacts on the systems
- Collect all .evtx files and apply Chainsaw with your own Sigma ruleset
- Review the result of
- Identify the process using EDR network telemetry or
Sysmon Event ID 3,
if collection was enabled. Event ID 3 records TCP/UDP connections and is
disabled by default. Event ID 22 records DNS queries, including failed
queries; it can provide a lead but does not prove a connection occurred.
With an explicit proxy, the endpoint may connect only to the proxy,
which may also resolve the destination name. Correlate endpoint and proxy
records by time, addresses, and ports where available. If historical
telemetry is missing,
- Review all AV and SOC detections in the past 30 days
Light triage
I would use the capabilities of my EDR. Without one, I would collect the following where available, noting the collection time and any logging gaps:
- Registry hives for timeline analysis and Autoruns output for current autostart entries. Available Sysmon registry events can add change history; these sources are not interchangeable.
- A process list with command lines and parent relationships. Handle can supplement it with open handles, but does not replace a network connection listing.
- TCP/UDP connection history from Sysmon Event ID 3, and DNS query history from
Event ID 22, if they were collected. Use
netstat -anofor the current connection snapshot, not historical activity. - Collect Security and Sysmon EVTX
- Get the Quarantine folder and AV logs of the host
- Symantec
C:\Windows\System32\winevt\logs\Symantec Endpoint Protection Client.evtxC:\ProgramData\Symantec\Symantec Endpoint Protection\*\Data\Logs
- TrendMicro
c:\system\trend\osce\misc\pccnt35.log
- McAfee
c:\Quarantine\
- Microsoft Defender
Powershell Get-MpThreatDetectionC:\ProgramData\Microsoft\Windows Defender\Quarantine
- Symantec
The product names and paths above are examples from the original 2023 post. Check the installed product, version, and configuration before assuming a missing path means that no detection occurred.
Triage executable
- Scan the executable with relevant private and public YARA rules. Inspect what each match detects and corroborate it with the other evidence. A generic or low-confidence match is a lead, not proof of compromise; contain the host when the evidence and incident response procedure warrant it.
- Run the executable in a private sandbox with the observed command line and
required files, where available.
- A run with no connection to the suspicious destination is inconclusive. Check that the sample executed successfully and consider missing arguments or dependencies, unavailable infrastructure, delayed behavior, and sandbox evasion. Packing complicates static analysis, but packed code can unpack and run in a sandbox; packing alone does not explain the lack of network activity.
- Search the hash of the file on VirusTotal:
- Review detections, behavior reports, and Community comments, including those from Nextron Systems’ THOR. Check their dates and supporting evidence; no detections is not a clean bill of health.
- Is the signature valid, who signed it, and is that publisher expected? A valid signature does not guarantee benign behavior.
- Check the executable’s prevalence and first-seen time on the fleet, along with its path, command line, and deployment history. Rarity alone does not establish that it is malicious.
Corrections โ 7 November 2026
I corrected the guidance in the body of this post:
- Removed the unsupported percentage and universal rarity/rate cutoffs; these need an environment-specific baseline.
- Distinguished an absent User-Agent from a field the proxy cannot observe or did not log, including the HTTPS CONNECT case.
- Separated DNS queries from network connections, and clarified proxy correlation and the limits of live endpoint snapshots.
- Replaced the blanket preference for YARA and automatic containment on any match with evidence-based triage.
- Explained why a quiet sandbox run, a valid signature, or no antivirus detections does not establish that a file is benign.
The original scenario and publication date remain. The antivirus paths are retained as historical examples, with a version and configuration caveat.