Glossary
Fileless malware
Definition
Fileless malware: Malicious code that runs without installing a normal program file on disk, living in memory or hiding in places such as the Windows registry or WMI repository and using trusted tools like PowerShell, which makes it hard for file-based antivirus to detect.
Also known asfileless attackfileless threatmemory-resident malwarenon-malware attack
In short
Fileless malware is malicious code that avoids leaving a normal program file on disk. It runs in memory, hides in places such as the Windows registry or the WMI repository, and uses trusted tools like PowerShell to do its work, which makes it hard for file-scanning antivirus to spot. Most attacks still start with a click: a script attachment, a macro document or a link.
Key takeaways
- "Fileless" covers a range: some threats never touch the disk, others hide code in the registry or WMI.
- Trusted tools such as PowerShell, mshta and Office macros do the work, so nothing new looks suspicious.
- File-scanning antivirus misses much of it; behavior monitoring and memory scanning catch more.
- The first step is usually a script, shortcut or macro file that someone opens.
- Foxcolab Mail on the web asks before you download files that can run programs or macros.
Last reviewed 6 December 2026 by Foxcolab Team
Fileless malware is malicious code that runs without installing a normal program file on the computer's disk. It lives in memory, tucks its instructions into places such as the Windows registry or the WMI repository, and borrows trusted tools like PowerShell to act. Microsoft notes "there's no one definition for fileless malware": the term covers threats that never touch the disk and others that hide in files antivirus can't usefully scan (Microsoft).
Three kinds#
Microsoft sorts fileless threats by how much trace they leave:
| Type | What it means | Microsoft's example |
|---|---|---|
| I: no file activity | Code lives only in memory or firmware | Network packets exploiting EternalBlue install the DoublePulsar backdoor in kernel memory |
| II: indirect file activity | Code hides inside a system store | The Poshspy backdoor kept a PowerShell command in the WMI repository and ran it on a schedule |
| III: files required | A file triggers it, but the file is junk | Kovter stores its script in the registry and launches it through mshta.exe |
Microsoft calls Type I "uncommon and not practical for most attacks." Types II and III are the everyday kind.
Why antivirus misses it#
Classic antivirus inspects files, and fileless code gives it little to inspect. Scripts "run within the context of the interpreter (like wscript.exe, powershell.exe), which is a clean and legitimate component," Microsoft explains. This overlaps with living off the land, where attackers use the tools already installed. Catching it means watching behavior and memory, which is what endpoint detection and response tools do.
How it gets in#
Most attacks still need someone to take the first step. A script attachment (.js, .vbs, .hta), a shortcut file (.lnk), or an Office document that asks you to enable content starts the chain. Office asks before running macros, so "attackers use social engineering techniques to trick users into allowing macros to execute." See macro malware.
Keep systems patched, limit PowerShell for people who don't need it, never enable macros in a document that arrived by email, and treat an unexpected script or shortcut attachment as hostile.
In Foxcolab#
Foxcolab Mail on the web asks before you download a file that can start this chain. Script and program files get "This kind of file can harm your device," macro-capable Office files get a warning about macros, and archives and web page files get "Files like this can contain other files or run scripts when opened." A link that doesn't add up gets Check this link before you open it (how it works). Your Drive files, Docs, Sheets and Notes are end-to-end encrypted, so Foxcolab can't read them. Malware on your own computer sees whatever you open, so keeping that computer clean is your half of the job.
Keep exploring
Related terms
- Living off the land (LOTL)Living off the land means attacking with the tools already on a system, so nothing looks out of place. Here's a real example from a CISA joint guide and how defenders spot it.
- Macro malwareMacro malware hides harmful code in the macros of a Word or Excel file and runs when someone enables them. Here's the trick it relies on, what Microsoft changed, and how to spot one.
- Malicious attachmentA malicious attachment is an email file built to harm the device that opens it, such as a program dressed as a PDF or an archive hiding one. Here are the common disguises and what to do.
- Endpoint detection and response (EDR)Endpoint detection and response (EDR) records what happens on laptops, phones and servers, flags suspicious behavior and lets responders isolate a device. Here's how it differs from antivirus.
- MalwareMalware is any software or file built to harm a device or steal its data, from viruses and trojans to ransomware and spyware. Most of it still arrives through email attachments and links.
Where Foxcolab uses it

Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.