Fileless Malware
Fileless malware is malicious code that runs in memory or through built-in system tools like PowerShell instead of installing a program file on disk, which makes it harder for traditional antivirus to detect.
Also called: fileless attack, living off the land, LOTL, memory-resident malware
What is fileless malware?
Most malware is a file that gets saved to disk and run. Fileless malware avoids that. It runs directly in memory, hides in places like the Windows registry, or uses tools that are already on every computer, such as PowerShell and Windows Management Instrumentation. Security agencies call this "living off the land", because the attacker uses what's already there.
How does fileless malware work?
A typical attack starts with a phishing link or a malicious document that launches a PowerShell command. That command downloads code straight into memory and runs it, without saving a program to disk. MITRE ATT&CK documents how attackers abuse PowerShell in exactly this way. The attacker then uses other built-in tools to explore the network and steal credentials. Because these tools are signed by Microsoft and used by IT staff every day, the activity blends in. A joint guide from CISA, NSA, the FBI and partner agencies warns that living-off-the-land activity is hard to tell apart from normal administration without good logging.
How to protect your business
- Use endpoint detection and response that watches behavior, not just files.
- Turn on PowerShell logging and send logs to a central system such as a SIEM.
- Restrict PowerShell and scripting tools to the staff who need them.
- Keep Office macro blocking on and patch browsers and documents readers quickly.
Related terms
Sources
- Identifying and Mitigating Living Off the Land Techniques (CISA, NSA, FBI and international partners)
- Command and Scripting Interpreter: PowerShell (T1059.001) (MITRE ATT&CK)
Drafted with AI assistance, then edited and fact-checked by a person. How we use AI.
