Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Fileless Malware

Direct answer

Fileless malware runs in memory using legitimate tools like PowerShell, WMI or rundll32 instead of dropping executables, which evades file-based antivirus. Script logging and EDR behaviour detection catch it.

When to use this

Use this when malware runs in memory using PowerShell, WMI or other built-in tools.

First 30 seconds

1. Fileless malware lives in memory, scripts, registry, WMI.

2. Uses legitimate tools (LOLBins).

3. Script block logging, AMSI, EDR memory scanning.

4. Constrained Language Mode.

5. Memory forensics.

Operational verification

script/LOLBin → in-memory payload → no files

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Incident response and forensics
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformIncident response and forensics
Scope / prerequisiteUse this when malware runs in memory using PowerShell, WMI or other built-in tools.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Relying on file scanning, which finds nothing on disk.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • No malicious file on disk.
  • Script logging and AMSI help.
  • EDR behaviour detection catches it.
Key checks
  • Get-WinEvent -LogName 'Microsoft-Windows-PowerShell/Operational' -MaxEvents 50 — script block logging
  • Get-CimInstance -Namespace root\subscription -ClassName __EventFilter — WMI persistence
  • AMSI and EDR memory detections — in-memory threats
ReferenceWhy it matters1 section · depth on demand

In depth

Fileless malware runs mainly in memory and abuses legitimate system tools — PowerShell, WMI, mshta, rundll32, the registry — instead of dropping traditional executables on disk. This "living off the land" approach evades file-based antivirus and blends into normal administrative activity.

Detection and prevention:

ControlPurpose
PowerShell script block and module loggingVisibility of executed code
AMSIScans scripts at run time
Constrained Language Mode, WDACRestrict what scripts can do
Attack Surface Reduction rulesBlock common abuse patterns
EDR behavioural detectionProcess trees, memory injection
SysmonDetailed process and WMI events

Baseline normal admin tool use so unusual invocations — PowerShell launched by Office, encoded commands — stand out.

ReferenceImportant terms & boundaries2 sections · depth on demand

Common techniques

TechniqueDetection
PowerShell in memoryScript block logging (4104), AMSI
WMI event subscriptionsGet-WmiObject -Namespace root\subscription -Class __EventConsumer
rundll32/regsvr32/mshta abuseProcess creation with unusual parents
Registry-stored payloadsLarge values in Run keys
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docIncident response and forensics current

Authoritative/upstream documentation reviewed for bounded claims in Malware → Fileless Malware. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://attack.mitre.org/techniques/enterprise/ · confidence 94%
Confirmation

Confirm action

Continue?