How to Detect and Remove Fileless Malware from Windows 11
Home › Blog › Security Guides › Fileless Malware Windows 11
How to Detect and Remove Fileless Malware from Windows 11 (2026 Complete Guide)
Fileless malware doesn’t write a single file to your disk — and traditional antivirus can’t see it. Here’s the full step-by-step guide to find it, kill it, and lock down your Windows 11 PC before it steals everything.
You run a full Windows Defender scan. Clean. You check Task Manager. Nothing unusual. But your browser passwords just got exfiltrated, your banking session is being mirrored, and your PC is part of a botnet — all without a single malicious file ever touching your hard drive.
Welcome to fileless malware — the stealthiest, most dangerous category of cyberattack hitting Windows 11 users in 2026. According to recent threat intelligence, fileless attacks now account for over 40% of all enterprise breaches, and they’re increasingly targeting home users too.
This guide will show you exactly how fileless malware works, how to detect it using built-in Windows tools AND third-party scanners, how to surgically remove it, and — most importantly — how to prevent it from ever getting back in.
1. What Is Fileless Malware? (And Why Windows 11 Is a Prime Target)
Traditional malware works like this: an attacker delivers a malicious .exe, .dll, or script file to your computer. It lands on disk. Your antivirus scans it, recognises a known signature, and blocks it. Simple.
Fileless malware breaks this model entirely. Instead of writing anything to disk, it hijacks legitimate Windows processes and tools that are already on your computer — things like PowerShell, WMI (Windows Management Instrumentation), the Windows Registry, and even Microsoft Office macros — and runs entirely in RAM.
Why Windows 11 Specifically?
Windows 11 introduced several powerful built-in scripting and automation tools — PowerShell 7, Windows Subsystem for Linux, improved WMI, and deeper COM object access. These are legitimate, useful features. But they also give attackers more native “living off the land” (LotL) tools to abuse.
- PowerShell can download and execute code directly from the internet without writing a file
- WMI allows remote execution and persistence across reboots via the WMI repository
- The Windows Registry can store and execute encoded payloads
- Scheduled Tasks can trigger memory injection on login
- mshta.exe, regsvr32.exe, certutil.exe can all be weaponised to pull and run malicious code
“Fileless attacks represent the evolution of adversary tradecraft. They leverage the very tools defenders trust — which is what makes them so effective.” — GuardedWorker Threat Research, May 2026
2. How Fileless Malware Works: The 5 Most Common Attack Chains in 2026
Understanding the attack chain is essential for detection. Here are the five most prevalent fileless attack methods targeting Windows 11 users right now:
Attack Chain #1: Malicious PowerShell One-Liners
This is the #1 delivery vector. The user clicks a phishing link or opens a booby-trapped Office document. A macro silently runs a PowerShell command like this:
# What a fileless PowerShell dropper looks like: powershell.exe -WindowStyle Hidden -EncodedCommand JABzAD0ATgBlAHcALQBPAGIAagBlAGMAdAAg... # The base64 string decodes to a full payload that runs in RAM # and downloads the next-stage backdoor — no file ever touches disk
-EncodedCommand or -WindowStyle Hidden flags in unexpected contexts is a massive red flag. Legitimate system admin tasks rarely need to hide their window.
Attack Chain #2: WMI Persistence (The Most Dangerous)
WMI subscriptions allow attackers to execute code every time a specific event occurs — like a user login, a new process starting, or a specific time. The payload is stored in the WMI repository, not the file system, making it invisible to directory scans.
# An attacker registers a persistent WMI event subscription: wmic /namespace:\\root\subscription path __EventFilter CREATE ... # This fires malicious PowerShell on every system boot # and survives reboots — stored only in the WMI repo
Attack Chain #3: Registry-Based Payload Storage
Attackers store base64-encoded shellcode directly in Windows Registry keys (often under HKCU\Software or HKLM\Software\Microsoft\Windows\CurrentVersion\Run) and use a small stub loader — often a LOLBin like mshta.exe or regsvr32.exe — to decode and execute it from memory.
Attack Chain #4: Process Injection (Hollowing & Reflective DLL)
The attacker spawns a legitimate Windows process (e.g., explorer.exe, svchost.exe) in a suspended state, replaces its memory with malicious code, and resumes it. From the outside, you see a legitimate process name. Inside, it’s running malware.
Attack Chain #5: Living Off the Land Binaries (LOLBins)
Windows ships with dozens of binaries that can be abused to download and execute code: certutil.exe, bitsadmin.exe, msiexec.exe, installutil.exe, regasm.exe. Because these are signed Microsoft binaries, they often bypass application whitelisting.
3. Warning Signs You Have Fileless Malware Right Now
Since fileless malware doesn’t show up on disk scans, you need to look for behavioural indicators. Here are the most common signs:
- PowerShell windows briefly flash on screen and disappear — especially around login
- Windows Defender reports suspicious activity in
powershell.exeorwscript.exe - Unusually high CPU or memory usage from
svchost.exeorexplorer.exe - Unexplained outbound network connections to unknown IPs (check with Netstat)
- Browser saved passwords or autofill data suddenly gone or changed
- New scheduled tasks you didn’t create (check Task Scheduler)
- Unknown WMI event subscriptions present (covered in detection steps below)
- Registry run keys with long base64 or obfuscated strings
- Your antivirus suddenly disabled or unable to update
- Accounts locked out, password change emails you didn’t trigger
mshta.exe. This is almost always malicious. Disconnect from the internet and proceed to the detection steps below.
4. How to Detect Fileless Malware Using Free Windows 11 Tools
Before spending money, run through these free detection methods. They use tools already installed on your Windows 11 system.
Method 1: Enable and Review PowerShell Script Block Logging
By default, Windows 11 does NOT log what PowerShell executes. You need to turn this on first. This will reveal any obfuscated or suspicious scripts that run — even if they leave no file on disk.
Press Win + R, type gpedit.msc, and hit Enter. Navigate to:
Computer Configuration → Administrative Templates
→ Windows Components → Windows PowerShell
→ Turn on PowerShell Script Block Logging → Enabled
Also enable Module Logging and Transcription on the same page. Then check logs at:
Get-WinEvent -LogName "Microsoft-Windows-PowerShell/Operational" | Where-Object { $_.Id -eq 4104 } | Select-Object -First 20 | Format-List
Look for entries with ScriptBlockText containing base64 strings, DownloadString, IEX, Invoke-Expression, or Invoke-WebRequest.
Open PowerShell as Administrator and run:
# Check for persistent WMI event subscriptions Get-WMIObject -Namespace root\subscription -Class __EventFilter Get-WMIObject -Namespace root\subscription -Class __EventConsumer Get-WMIObject -Namespace root\subscription -Class __FilterToConsumerBinding
On a clean Windows 11 machine, these should return nothing or very minimal results. Any CommandLineEventConsumer or ActiveScriptEventConsumer entries you don’t recognise are highly suspicious.
# Check all four common persistence locations Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" Get-ItemProperty "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" Get-ItemProperty "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
Flag any entry that contains: long base64 strings, powershell, mshta, wscript, cscript, regsvr32, or anything pointing to a %TEMP% or %APPDATA% path.
# List all scheduled tasks and their actions Get-ScheduledTask | Where-Object { $_.State -ne "Disabled" } | Get-ScheduledTaskInfo | Select-Object TaskName, LastRunTime | Sort-Object LastRunTime -Descending # Then inspect suspicious task actions: (Get-ScheduledTask -TaskName "TASK_NAME_HERE").Actions
Download Microsoft Sysinternals Autoruns (free, from Microsoft). Run it as Administrator and check the Everything tab. Right-click any suspicious entry and select “Check VirusTotal” to scan it instantly. The WMI tab is especially important for fileless persistence.
Download System Informer (successor to Process Hacker, free and open source). Look for:
- Processes with suspicious parent-child relationships (e.g., Word spawning PowerShell)
- Processes with memory regions marked
RWX(read-write-execute) — a strong injection indicator - Legitimate process names with unusual network connections
- DLLs loaded from unusual paths inside known processes
5. Best Paid Tools to Detect Fileless Malware in 2026
Free tools are great for forensics, but if you want real-time, always-on fileless malware protection, you need a modern next-gen antivirus (NGAV) with memory scanning and behavioural detection. Here are the top picks, all independently tested by GuardedWorker:
Bitdefender Total Security
Bitdefender’s Advanced Threat Defense (ATD) module uses process behaviour monitoring and memory scanning that’s specifically tuned for fileless attacks. Consistently #1 in AV-TEST for fileless detection.
From $39.99/year (3 devices)
Read Full Review Get Deal →Malwarebytes Premium
Excellent exploit and memory-injection protection. The Anti-Exploit layer specifically targets browser and Office-based fileless dropper attacks. Lightweight and fast on Windows 11.
From $44.99/year (1 device)
See Comparison Get Deal →Norton 360 Deluxe
Strong SONAR behavioural detection catches PowerShell-based fileless attacks in real-time. Includes a built-in VPN and dark web monitoring. Great all-rounder for families.
From $49.99/year (5 devices)
Bitdefender vs Norton Get Deal →CrowdStrike Falcon Go
Enterprise-grade EDR now available to consumers. CrowdStrike is the gold standard for LotL and fileless detection. If you’ve been targeted by sophisticated attackers, this is the tool.
From $59.99/year (3 devices)
Get Deal →Kaspersky Plus
Kaspersky’s System Watcher component and hypervisor-protected memory scanning provide strong fileless detection. Top scores from independent labs specifically for memory-based threats.
From $42.99/year (3 devices)
Get Deal →Microsoft Defender for Endpoint
Windows 11’s built-in solution has improved significantly. Enable Attack Surface Reduction (ASR) rules and Tamper Protection for much better fileless coverage. Free — but you must configure it.
Free with Windows 11
See Setup GuideTool Comparison: Fileless Malware Detection Capabilities
| Product | Memory Scanning | PowerShell Protection | WMI Monitoring | Process Injection Detection | LOLBin Blocking | Price/yr |
|---|---|---|---|---|---|---|
| Bitdefender Total Security | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | $39.99 |
| Malwarebytes Premium | ✓ Yes | ✓ Yes | △ Partial | ✓ Yes | ✓ Yes | $44.99 |
| Norton 360 | ✓ Yes | ✓ Yes | △ Partial | ✓ Yes | △ Partial | $49.99 |
| CrowdStrike Falcon Go | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | $59.99 |
| Kaspersky Plus | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | △ Partial | $42.99 |
| Windows Defender (default) | △ Limited | △ Limited | ✗ No | △ Limited | △ Limited | Free |
More From GuardedWorker
6. Step-by-Step Fileless Malware Removal Guide for Windows 11
Phase 1: Triage and Isolate
Before disconnecting, run this in an elevated PowerShell to capture the evidence:
# Log all active network connections to a file netstat -ano | Out-File C:\forensics_netstat.txt Get-Process | Select-Object Id, ProcessName, Path | Out-File C:\forensics_procs.txt # Now disconnect from internet
If you found suspicious WMI entries in your detection phase, remove them. Replace the names in quotes with your actual suspicious entry names.
# Remove a malicious WMI EventFilter Get-WMIObject -Namespace root\subscription -Class __EventFilter | Where-Object { $_.Name -eq "SUSPICIOUS_NAME" } | Remove-WMIObject # Remove the corresponding Consumer and Binding too Get-WMIObject -Namespace root\subscription -Class __EventConsumer | Where-Object { $_.Name -eq "SUSPICIOUS_NAME" } | Remove-WMIObject Get-WMIObject -Namespace root\subscription -Class __FilterToConsumerBinding | Remove-WMIObject
# Remove a suspicious registry run key (replace "KEYNAME" with actual name) Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "KEYNAME" # Verify it's gone Get-ItemProperty "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
# Disable then delete a suspicious scheduled task Disable-ScheduledTask -TaskName "SUSPICIOUS_TASK_NAME" Unregister-ScheduledTask -TaskName "SUSPICIOUS_TASK_NAME" -Confirm:$false
In System Informer, right-click on any process showing suspicious injected code (highlighted in red or with RWX memory regions). Select Terminate. For processes that restart automatically (indicating a persistence mechanism), trace the restart source — usually a scheduled task or registry key you’ve already identified above.
Phase 2: Deep Scan and Clean
Windows Defender Offline Scan runs before Windows loads, which means it can catch persistence mechanisms that hide during normal boot:
# Schedule an offline scan (will restart PC into scan mode) Start-MpScan -ScanType BootSectorScan # Or via Settings: # Windows Security → Virus & Threat Protection # → Scan Options → Microsoft Defender Antivirus Offline Scan
Download the free version of Malwarebytes as a second-opinion scanner. It’s complementary to your main AV. Run a Full Scan. Malwarebytes is exceptionally good at detecting rootkits and memory-resident threats that other tools miss.
# Reset execution policy to default restricted Set-ExecutionPolicy -ExecutionPolicy Restricted -Scope LocalMachine -Force Set-ExecutionPolicy -ExecutionPolicy Restricted -Scope CurrentUser -Force # Clear PowerShell history (may contain executed payloads) Remove-Item (Get-PSReadLineOption).HistorySavePath -Force
Phase 3: Post-Compromise Recovery
Assume every password stored in your browsers, password manager (if it was on the compromised PC), and email client has been exfiltrated. From a different, clean device:
- Change your email account password first
- Enable 2FA on all critical accounts (banking, email, work, cloud storage)
- Notify your bank if you believe financial credentials were exposed
- Use a new, dedicated password manager going forward — see our Best Password Manager 2026 guide
If you cannot be certain you’ve found all persistence mechanisms, the safest option is a fresh Windows 11 install. Use Settings → System → Recovery → Reset this PC → Remove Everything and choose the “Cloud download” option to get a fresh Windows image. Back up your data first — but scan the backup before restoring it.
7. How to Prevent Fileless Malware: Hardening Windows 11
The best removal is prevention. Here’s how to make Windows 11 dramatically harder to compromise with fileless techniques — most of it is free.
Enable Attack Surface Reduction (ASR) Rules in Defender
ASR rules are Microsoft’s built-in set of behavioural controls specifically designed to block LotL and fileless attack techniques. They’re disabled by default. Enable them in PowerShell (admin):
# Enable the most important ASR rules for fileless attack prevention # Block Office apps from spawning child processes (stops most macro droppers) Add-MpPreference -AttackSurfaceReductionRules_Ids d4f940ab-401b-4efc-aadc-ad5f3c50688a -AttackSurfaceReductionRules_Actions Enabled # Block execution of potentially obfuscated scripts Add-MpPreference -AttackSurfaceReductionRules_Ids 5beb7efe-fd9a-4556-801d-275e5ffc04cc -AttackSurfaceReductionRules_Actions Enabled # Block process creations originating from PSExec and WMI commands Add-MpPreference -AttackSurfaceReductionRules_Ids d1e49aac-8f56-4280-b9ba-993a6d77406c -AttackSurfaceReductionRules_Actions Enabled # Block credential stealing from lsass.exe Add-MpPreference -AttackSurfaceReductionRules_Ids 9e6c4e1f-7d60-472f-ba1a-a39ef669e4b0 -AttackSurfaceReductionRules_Actions Enabled
Constrained Language Mode for PowerShell
Constrained Language Mode severely limits what PowerShell can do, blocking most fileless attack techniques while still allowing legitimate administrative use:
# Enable Constrained Language Mode via registry New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" -Name "__PSLockdownPolicy" -Value "4" -PropertyType String -Force
Quick Prevention Checklist
- Enable ASR rules in Windows Defender (covered above)
- Install a modern NGAV with memory scanning (Bitdefender, CrowdStrike)
- Disable PowerShell for standard users via Group Policy
- Enable PowerShell Script Block Logging and module logging
- Keep Windows 11 and all software fully updated (patch Tuesday matters)
- Never open Office macro-enabled documents unless you expected them
- Use a password manager and enable 2FA on all accounts
- Use a VPN on public Wi-Fi to prevent initial compromise vectors
- Enable Windows Defender Tamper Protection (Settings → Windows Security)
- Disable WMIC for standard users if not needed
- Audit and restrict scheduled task creation permissions
- Use Microsoft’s WDAC (Windows Defender Application Control) for advanced environments
8. FAQ: Fileless Malware on Windows 11
IEX, Invoke-Expression, DownloadString, EncodedCommand, FromBase64String, or long base64 strings. Also check if powershell.exe was spawned by Office apps, browsers, or mshta.exe — that’s almost always malicious.Don’t wait for an attack to take fileless malware seriously. Enable ASR rules now, consider upgrading to a memory-scanning NGAV, and stay informed with GuardedWorker’s ongoing threat coverage.
Find the Best Antivirus → Read More Guides