Get a free trial →

Push Logo

Malicious files and drive-by downloads: how they work and how to detect and block them

Geometry graphic

Malicious file downloads deliver malware via the browser

How malicious download attacks work

  1. The victim lands on a webpage through a phishing link, search result, or compromised site
  2. The page prompts a download, often disguised as a required update or document
  3. The user downloads and opens the file
  4. The payload executes, installing malware or stealing credentials and session data
  5. The attacker gains access to the device or associated accounts

Why most security tools miss malicious downloads

Example of a convincing fake browser update prompt used to deliver malware through a malicious file download, showing how attacks evade detection.

How do you stop malicious file downloads?

Push Security browser controls blocking a high-risk file download before execution, showing how in-browser enforcement stops initial access attempts.

How Push detects and blocks malicious file downloads

Push Security browser controls blocking a high-risk file download before execution, showing how in-browser enforcement stops initial access attempts.

Frequently asked questions

Combine browser-level download controls (blocking risky file types from untrusted sources) with endpoint protection for files that get through.

Push provides configurable download blocking at the browser layer — rules based on file type, source domain, file name patterns, and user group. This lets you create targeted policies (e.g., block executables from uncategorized domains while allowing them from known vendors). Pair with your endpoint protection for threat-level malware scanning of files that get through. See Push's download controls.

A malware delivery technique where visiting a compromised or malicious website triggers an automatic file download — sometimes without user interaction beyond navigating to the page. Modern drive-by downloads increasingly use social engineering rather than exploits, as browser zero-days are expensive and uncommon.

Attackers compromise legitimate websites or use malvertising to redirect users to pages that initiate downloads. The file — often disguised as an update, document, or utility — contains malware. Push's file download controls can block downloads by file type and source at the browser layer. Learn more about browser-based threats.

No single tool covers the full download-to-execution chain. Email security only sees email-delivered files. SWGs only see network-visible downloads. EDR only acts after the file reaches disk. Each has coverage gaps that attackers actively exploit — and none of them work on unmanaged devices. Browser-level download controls sit at the point where every web-based download originates, regardless of delivery channel or device management status, making them either a complement to existing layers or a replacement for the ones you can't deploy (SWGs on BYOD, EDR on contractor machines).

The layered approach is EDR for malware detection + browser-level controls for policy enforcement + SWG or email security for channel-specific coverage. That said, browser-layer controls naturally provide the broadest coverage across delivery channels and are increasingly important for tackling the nature of modern file-based attacks that increasingly avoid email.

No. AV/EDR is effective against known malware signatures and many behavioral patterns, but it misses novel payloads, polymorphic malware, and environment-aware samples that detect sandboxes. It's also structurally reactive — scanning happens after the file reaches the endpoint. And the dominant malware delivery method, ClickFix, bypasses file-based scanning entirely because the user executes a command from the clipboard rather than downloading a file.

Browser-level download controls operate at a different point in the chain — blocking the download before the file reaches disk, based on policy rules (file type, source, user group). This is complementary, not a replacement: Push's download policies reduce the volume of risky files reaching the endpoint, while AV/EDR handles threat-level scanning of files that get through.

Push's file download blocking lets you define policies by file type, extension, file name, file name patterns, browser profile, and user group. You can block executables from all sources, allow them from specific trusted domains, or restrict different file types for different teams.

Policies are enforced at the browser layer before the file reaches the endpoint. Download events are logged and streamed to your SIEM. See Push's download controls.

SEO poisoning (manipulating search results), malvertising (placing malicious ads on legitimate ad networks), CMS compromise (injecting malicious redirects into legitimate sites), and abusing trusted platform features (hosting malware on GitHub, SharePoint, or ChatGPT shared conversations).

The LLMShare campaign showed attackers using ChatGPT's shared conversation feature to host malware delivery pages on chatgpt.com — a domain no blocklist would flag. The common thread is leveraging domain reputation of legitimate platforms to bypass URL filtering. Read about LLMShare.

No. SWGs rely on URL reputation and file categorization, which miss zero-day payloads on novel or legitimate infrastructure. TLS inspection causes application breakage and performance degradation. And ClickFix payloads — now the dominant delivery mechanism — arrive via search engines using legitimate or freshly-registered infrastructure.

Push complements SWGs by operating inside the browser — enforcing download policies without requiring TLS interception. See how Push complements SWGs.

Executables (.exe, .msi), scripts (.ps1, .bat, .vbs, .js), Office documents with macros (.docm, .xlsm), disk images (.iso, .img), compressed archives (.zip, .rar, .7z), and shortcut files (.lnk). The mix shifts as vendors tighten controls — macro-enabled documents have declined while ISO and LNK files have increased.

ClickFix variants bypass file-type controls entirely by tricking users into executing clipboard content directly. Push's file download blocking covers file-type policies, and its malicious copy and paste detection covers the ClickFix vector. Learn about ClickFix delivery.

Push streams file download events to your SIEM via webhooks — including file type, source domain, file name, and user identity. You can configure alerting on specific file types, sources, or patterns without blocking downloads entirely.

This monitoring-first approach lets you understand download patterns before implementing blocking.

A layered approach: browser-level download policies to block risky file types, ClickFix detection to catch clipboard-based malware delivery, and endpoint protection to scan files that reach disk.

Push's download controls enforce policies by file type, source, and user group. Its malicious copy and paste detection catches ClickFix/InstallFix attacks that deliver malware via clipboard rather than file downloads. Combine with your existing EDR for comprehensive coverage. See Push's browser security controls.

Each tool category operates at a different layer with different trade-offs. EDR/AV scans files on the endpoint after download — the most mature malware detection capability, but reactive (the file has already landed). SWGs inspect downloads at the network layer and can block inline, but HTML smuggling assembles payloads client-side to bypass inspection, TLS inspection causes application breakage, and coverage requires traffic routing through the proxy. Email security sandboxes attachments effectively but only covers email — not downloads from web browsing, search ads, or direct navigation. OS-level controls (SmartScreen, Gatekeeper, AppLocker) block execution of untrusted files but only on managed endpoints and don't prevent the download itself. File sandboxes detonate suspicious files in isolated environments but add latency, get bypassed by environment-aware malware, and see nothing when delivery is fileless.

None of these covers the full chain individually, and the biggest shared blind spot is ClickFix-style delivery where the user executes a clipboard command rather than downloading a file — no file means nothing for any file-scanning tool to inspect. Push operates at the browser layer with policy-based download controls (blocking by file type, source, user group before the file reaches disk) and ClickFix detection that catches clipboard-based delivery. The browser-layer advantages are earlier enforcement, source context, and coverage on unmanaged devices.