Skip to content

Fileless Malware

Risk Level

Fileless malware operates entirely in memory without writing executable files to disk. It abuses legitimate system tools (PowerShell, WMI, .NET, macros, LOLBins) to execute malicious code, making traditional file-based AV detection ineffective.

MilestoneYearDetails
SQL Slammer2003Pure memory worm; no disk
Poweliks2014Registry-stored PowerShell
Kovter2015Fileless click fraud
Duqu 2.02015APT; kernel memory only
PowerSniff2016PowerShell + macros
Emotet2017+PowerShell + LOLBins
Astaroth2018.NET, WMI, living-off-land
TechniqueLOLBinDescription
PowerShellpowershell.exe-EncodedCommand, -WindowStyle Hidden
WMIwmic.exe, wmiprvse.exeEvent subscription, process creation
HTAmshta.exeExecute HTML Application
Certutilcertutil.exe-decode, -urlcache
Regsvr32regsvr32.exe/s /u /i:http://... scrobj.dll
Msbuildmsbuild.exeInline C# task
InstallUtilInstallUtil.exe/logfile= /LogToConsole=false
Scriptingcscript.exe, wscript.exeVBScript, JScript
.NET AssemblyAssembly.Load()Reflectively load from memory
1. INITIAL ACCESS
└─ Phishing (macro), exploit, LNK, ISO
2. INITIAL EXECUTION
└─ Macro → PowerShell → Download stage 2
3. MEMORY-ONLY EXECUTION
└─ Reflectively load .NET assembly
└─ Inject into legitimate process (rundll32, svchost)
4. PERSISTENCE
└─ WMI Event Subscription (Filter + Consumer)
└─ Scheduled Task (PowerShell command)
└─ Registry Run Key (PowerShell encoded)
4. LIVING OFF THE LAND
└─ Use built-in tools for all actions
└─ No custom binaries on disk
FamilyYearTechniqueNotable
Poweliks2014Registry + PowerShellFirst mainstream fileless
Kovter2015Registry + shellClick fraud
Duqu 2.02015Kernel memory onlyAPT, nation-state
Emotet2017+PowerShell + LOLBinsLoader platform
Astaroth2018.NET, WMI, LOLBinsBanking theft
Frodo2019.NET, WMIInfo stealer
MethodDescription
ETW / ETW-TIEvent Tracing for Windows + Threat Intelligence
AMSIAntimalware Scan Interface — inspects script content
Script Block LoggingPowerShell transcript + module logging
EDR Memory ScanningScan process memory for shellcode, assemblies
BehavioralUnusual process chains (winword → powershell)
WMI MonitoringEvent subscription creation (Event ID 5860/5861)
Memory ForensicsVolatility3: windows.memmap, windows.malfind
  • Enable AMSI — Inspect all script content at runtime
  • PowerShell Script Block Logging — Full transcript
  • Enable Constrained Language Mode — Restrict .NET
  • Application Control — WDAC, AppLocker, block LOLBins
  • EDR with memory scanning — Scan process memory
  • Disable WMI event subscriptions unless needed
  • Macro blocking — Block internet macros, signed only
  • Network monitoring — Beaconing, unusual PowerShell net
TechniqueIDDescription
PowerShellT1059.001PowerShell execution
WMIT1047WMI for execution
Scheduled TaskT1053.005Persistence
Registry Run KeysT1547.001Persistence
Obfuscated FilesT1027Encoded commands
Process InjectionT1055Memory injection