Windows API reference
URLDownloadToFile
Downloads a URL directly to a file path, a one-line dropper primitive.
- Library
- Urlmon.dll
- Category
- Internet
- Suspicion
- high
- MITRE ATT&CK
- T1105 Ingress Tool Transfer
Detection summary
URLDownloadToFileW maps to Sysmon Event 3, Event 11 and Microsoft-Windows-Kernel-File, Microsoft-Windows-Kernel-Network; these events record the OS effect, not the API call.
- Sysmon: Sysmon Event 3, Sysmon Event 11
- ETW: Microsoft-Windows-Kernel-File, Microsoft-Windows-Kernel-Network
- Notes: Sysmon Event 3 records an established TCP connection, not the API call; cached DNS, reused connections and UDP-only traffic may not produce it. Sysmon Event 11 records file creation only; opening or overwriting an existing file does not produce it. Microsoft-Windows-Kernel-File records file create, read, write, rename and close operations when enabled. Microsoft-Windows-Kernel-Network records TCP/UDP activity when enabled.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Browsers, updaters, telemetry clients and installers.
Related APIs
- URLDownloadToCacheFileW — Urlmon.dll
- ShellExecuteW — Shell32.dll