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.

Lesson 7 of 18 · 12 min read · practice only with authorization

Diagram

Responding to one malware alert

Follow the path. One example at a time.

Step 1 of 4

Confirm

Read the alert: process tree, file hash, command line, user.

Illustration: Confirm
# 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.

  1. 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.
  2. 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.
  3. 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.

1 / 3

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.

  1. MapMalware fundamentals: families, delivery, persistence, and the responseWhat malware categories describe, how infections usually start, where persistence hides on Windows, Linux, and macOS, and why rebuilding usually beats cleaning.

Practice

  1. LabTerminal labRead the files on a scoped host and name the failure in a finding.