Fileless Malware
Cheat sheet · https://pcornel.dk/topic.php?topic=4931
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.
Remember
- No malicious file on disk.
- Script logging and AMSI help.
- EDR behaviour detection catches it.
First checks
Get-WinEvent -LogName 'Microsoft-Windows-PowerShell/Operational' -MaxEvents 50— script block loggingGet-CimInstance -Namespace root\subscription -ClassName __EventFilter— WMI persistence- AMSI and EDR memory detections — in-memory threats
Verify in this order
script/LOLBin → in-memory payload → no files
Where it usually breaks
First mismatch in signal/report → evidence preservation → scoping/analysis → containment → eradication → recovery → validation/lessons learned; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4931