User Agents

Web browsers and everyday web tech, explained

Detect Browser Attacks When Endpoint Telemetry Misses Them

· 6 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Browser-based attacks (drive-by downloads, malicious extensions, phishing, session hijacking) often slip past endpoint detection because they live in the browser's memory, JavaScript, or network traffic—not as files on disk. This guide shows you how to catch them using network logs, browser artifacts, and behavioral analysis, even when your EDR is silent.

What You'll Need

  • Access to your organization's DNS, proxy, or firewall logs (at least 30 days of history)
  • Browser history and cache access for affected users (via forensic tools or manual review)
  • A SIEM or log search tool (Splunk, Elastic, or even grep on exported logs)
  • Threat intelligence feeds (free or paid) for domain/IP reputation checks
  • Optional: a sandbox or VM for detonating suspicious URLs

Step-by-Step

  1. Correlate with network logs. Pull DNS and proxy logs for the time range of the suspected attack. Look for domains with short TTLs, excessive subdomain randomization, or domains that resolve to IPs known for hosting malware. Even if the endpoint didn't flag anything, a browser may have made a connection to a C2 server.
  2. Search for suspicious user-agent strings. Browser attacks often use non-standard user agents (e.g., missing "Mozilla/5.0" or with odd OS tokens). Filter proxy logs for user agents that don't match your organization's standard browser versions. Also flag user agents that change frequently for the same device.
  3. Examine browser history and cache. On the affected machine, review the browser's history, cache, and localStorage. Look for URLs with unusual patterns—long query strings, base64-encoded parameters, or domains that are typosquats of known sites. Cache files may contain malicious JavaScript that wasn't executed as a downloaded file.
  4. Analyze browser extensions. List all installed extensions and compare against known malicious extension lists. Check the extension's permissions—extensions requesting broad access (e.g., "read all data on all websites") are high-risk. Look for extensions that were installed recently or without user consent.
  5. Inspect network traffic for beaconing. Use your proxy logs to identify periodic outbound connections to the same IP or domain at regular intervals (e.g., every 60 seconds). This is a classic C2 pattern. Even if the endpoint didn't detect the malware, the network behavior is a strong indicator.
  6. Check for JavaScript obfuscation in page source. If you have a suspicious URL, fetch it in a sandbox and examine the HTML/JS. Look for eval() calls, excessively long strings, or code that dynamically builds URLs. Use tools like js-beautifier to deobfuscate.
  7. Look for unusual TLS handshakes. Browser attacks often use TLS to hide traffic, but the handshake can reveal anomalies—like a client hello with an unusual cipher suite order or a server certificate that doesn't match the domain. Check your TLS logs for these.
  8. Review browser process behavior. If you have process monitoring (Sysmon, Windows Event Logs), look for browser processes spawning child processes (e.g., cmd.exe or powershell.exe). A browser should never spawn a shell. Also check for browser processes accessing unusual files or registry keys.
  9. Use YARA rules on browser memory. If you can capture a memory dump of the browser process, scan it with YARA rules for known exploit patterns (e.g., heap spray signatures). This can catch attacks that don't touch disk.
  10. Correlate with user behavior. Check if the user visited a phishing site or clicked a malicious link around the time of the attack. Use browser history and email logs to identify the initial vector. Often, the endpoint misses the attack because it's a social engineering component.

Common Mistakes

  • Relying solely on endpoint detection—browser attacks often run in the browser's memory and never write to disk, so EDR misses them.
  • Ignoring DNS logs—many attacks use DNS for C2 or data exfiltration, and DNS logs are often the first to show anomalies.
  • Not checking for malicious extensions—users can install extensions that bypass security controls, and these are invisible to traditional endpoint monitoring.
  • Assuming HTTPS traffic is safe—most browser attacks use HTTPS, but you can still inspect certificates and SNI fields.
  • Focusing only on the browser itself—network traffic, especially outbound connections, is often the best indicator.

Tips

  • Set up a baseline of normal network behavior for each department, so you can spot anomalies quickly.
  • Enable browser logging (e.g., Chrome's net-export) on high-risk users to capture detailed network requests.
  • Use a threat intelligence feed to automatically flag domains with poor reputation in your proxy logs.
  • Regularly review browser extensions across your fleet—automate this with a script that queries the browser's extension store.
  • Keep a sandbox environment ready to detonate suspicious URLs without risk to your network.

Troubleshooting

If your investigation stalls, try these steps:

  • No network logs available? Check if the browser has a built-in network log (e.g., Chrome's chrome://net-export). You can enable it on the affected machine and reproduce the attack.
  • Logs are too large to search? Use a SIEM or a log aggregator to index and search. If you don't have one, use command-line tools like grep with regex patterns for suspicious domains or IPs.
  • The browser history is cleared? Check the browser's cache and cookies—they often contain remnants of visited sites. Also look at DNS cache on the machine (ipconfig /displaydns).
  • Can't identify the malicious extension? Compare the extension list with a known-good baseline from a clean machine. Or, disable all extensions and see if the attack stops.
  • Traffic is encrypted and you can't see content? Use the SNI field in TLS handshakes to see the domain being accessed. Also check certificate transparency logs for newly issued certificates to suspicious domains.

Frequently Asked Questions

What is the most common browser attack that endpoint telemetry misses?

Malicious browser extensions are a top candidate—they can run in the browser's context, steal data, and inject ads, all without triggering file-based detection. Also, drive-by downloads that exploit browser vulnerabilities often leave no files on disk.

Can I detect browser attacks without any logs?

Yes, but it's harder. You can use memory forensics on the browser process, or capture network traffic with a packet sniffer in real-time. However, having at least DNS or proxy logs is strongly recommended.

How do I know if a domain is malicious?

Check its reputation using free services like VirusTotal, URLhaus, or Google Safe Browsing. Look for recent registration dates, lack of HTTPS, or mismatched content. Also, see if the domain appears in threat intelligence feeds.

What should I do if I find a malicious extension?

Immediately disable and uninstall it from all affected browsers. Then, change any passwords that may have been exposed, and review the extension's permissions to understand what data it could access. Report the extension to the browser's store.

How can I prevent these attacks in the future?

Implement a browser security policy that restricts extension installation to approved lists, use DNS filtering to block known malicious domains, and enable browser auto-updates to patch vulnerabilities. Also, train users to recognize phishing attempts.

Is it worth using a separate browser for high-risk activities?

Yes, a dedicated browser with stricter security settings (like a hardened Firefox or Chrome with limited extensions) for sensitive tasks can reduce the attack surface. But it's not a replacement for network monitoring.