Detecting and removing malware: triage, containment, and when to reimage
A practical endpoint response process: confirming an alert, isolating the host, collecting evidence, scoping other affected machines, deciding between cleaning and rebuilding, and resetting credentials. With EDR and built-in tool examples.
Diagram
Responding to one malware alert
Step 1 of 4
Confirm
Read the alert: process tree, file hash, command line, user.
# Confirm # Read the alert: process tree, file hash, command line, # user.
The example on the open step is one illustration, or the fix you can paste into an application you own.
What this page is made of
3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.
Isolation first
- What fails
- Containing early limits spread and data loss.
- Who is affected
- Other hosts and data.
- What you would notice
- Delays while people debate.
- What you change
- Pre-approve isolation for SOC analysts.
Scoping
- What fails
- One alert rarely means one host.
- Who is affected
- Hosts with the same file or contacts.
- What you would notice
- No fleet-wide search after an alert.
- What you change
- Search for hashes, domains, and behaviors across the fleet.
Rebuild over clean
- What fails
- Cleaning misses persistence you did not find.
- Who is affected
- The host and its user.
- What you would notice
- Reused hosts that reinfect.
- What you change
- Reimage when in doubt.
Without EDR
Built-in tools still help: Microsoft Defender offline scan, Sysinternals Autoruns and Process Explorer, and on Linux, ClamAV plus checks of cron, systemd units, and authorized_keys files.
Check yourself
Recognition and the fix. Nothing here is a procedure.
Why scope across the fleet after one alert?
Sibling techniques
Pages at the same depth, plus a lab and a glossary card for this one.