Foxcolab

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:

TypeWhat it meansMicrosoft's example
I: no file activityCode lives only in memory or firmwareNetwork packets exploiting EternalBlue install the DoublePulsar backdoor in kernel memory
II: indirect file activityCode hides inside a system storeThe Poshspy backdoor kept a PowerShell command in the WMI repository and ran it on a schedule
III: files requiredA file triggers it, but the file is junkKovter 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.

Create a free account.

Keep exploring

All terms

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.

Jump to