Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / STAGING

Downloading

This note documents detection patterns related to Suspicious Downloading within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4688Process creationCriticalDetects LOLBIN or script-based download commands.
Sysmon1Process creationCriticalBest execution source for downloader tooling and command line.
Sysmon3Network connectionCriticalShows outbound connections tied to downloader process.
Sysmon11File createCriticalCaptures downloaded payload landing on disk.
Sysmon22DNS queryHighReveals remote host resolution before retrieval.
PowerShell4104Script block loggingCriticalCaptures Invoke-WebRequest, WebClient, DownloadString.
Security5156Windows Filtering Platform allowed connectionHighNetwork-level confirmation.
Sysmon7Image loadedMediumUseful when downloader loads network libraries unexpectedly.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
LOLBIN downloadercertutil, bitsadmin, mshta, rundll32CriticalStrong attacker pattern.
Script retrieves EXE/DLL/ZIPFile extension from suspicious sourceCriticalPayload staging.
Browserless downloadNo browser parent processHighSuspicious automation.
Temp folder payloadFile lands in Temp / Public / AppDataCriticalCommon attacker path.
Immediate execution after downloadChild process follows file createCriticalClassic stage-two chain.
Encoded PowerShell retrievalBase64 + network callCriticalFileless staging indicator.
External IP or rare domainUnusual destinationHighStrong enrichment pivot.
CrypnetUrlCache artifactsAppData\LocalLow\Microsoft<br>CryptnetUrlCache\MetaDataHighTraces of certutil usage

Common Tools

ToolUsage
PowerShellInvoke-WebRequest, WebClient, DownloadString
certutil.exeDownload / decode payload
bitsadmin.exeBackground transfer
curl.exeNative file retrieval
wget.exeLinux-style retrieval on Windows
mshta.exeRemote HTA retrieval
rundll32.exeRemote script or DLL retrieval
browser automationPayload fetch via browser engine

Relevant Artifacts

  • Sysmon Event IDs 1, 3, 11, 22
  • Security Event ID 4688
  • PowerShell 4104
  • Security 5156
  • Prefetch: POWERSHELL.EXE, CERTUTIL.EXE, BITSADMIN.EXE, CURL.EXE
  • Amcache for downloaded payload
  • ShimCache for execution chain
  • MFT / USN Journal for file creation
  • Browser cache if browser involved
  • Zone.Identifier ADS
  • EDR network lineage

MITRE ATT&CK References

  • T1105 Ingress Tool Transfer
  • T1059 PowerShell
  • T1218 Signed Binary Proxy Execution
  • T1071 Application Layer Protocol

Decision Tree

  1. Which process downloaded file?

    • Parent process
    • Command line
  2. Network destination?

    • Domain
    • IP
    • Reputation
  3. File landed where?

    • Temp
    • AppData
    • Public
  4. Was file executed?

    • Child process
    • DLL load
    • Service/task registration
  5. Expand:

    • Persistence
    • Additional downloads
    • Beaconing
  6. Scope:

    • Single host
    • Campaign spread
    • Shared IOC

Example Detection Templates

KQL

Sysmon
| where EventID == 1
| where CommandLine has_any ("Invoke-WebRequest","DownloadString","certutil","bitsadmin","curl ")
| project TimeGenerated, Computer, User, CommandLine
Sysmon
| where EventID == 3
| project TimeGenerated, Computer, Image, DestinationIp, DestinationHostname

EQL

process where process.command_line like "*Invoke-WebRequest*" or process.command_line like "*certutil*"
sequence by host.name with maxspan=5m
  [ process where process.name in ("powershell.exe","certutil.exe","bitsadmin.exe") ]
  [ file where file.path like "C:\\Users\\%\\AppData\\%" ]

Sigma

title: Suspicious Download Activity
id: 4a8d77e1-suspicious-download
status: experimental
description: Detects suspicious file retrieval using common attacker tooling
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
  service: sysmon
detection:
  selection:
    CommandLine|contains:
      - 'Invoke-WebRequest'
      - 'DownloadString'
      - 'certutil'
      - 'bitsadmin'
      - 'curl '
  condition: selection
fields:
  - CommandLine
  - ParentImage
falsepositives:
  - Administrative downloads
level: high
tags:
  - attack.command_and_control
  - attack.t1105

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
PowerShell loggingEnable 4104CriticalCore visibility
LOLBIN monitoringAlert on downloader binariesCriticalDetect staging early
Network controlsRestrict outbound retrievalHighReduce payload ingress
ADS inspectionMonitor Zone.IdentifierHighBrowserless anomalies stand out
AppLocker / WDACRestrict unsigned payload executionHighLimits stage-two execution