Pcornel
Security · Security Troubleshooting

Malware Detection

Cheat sheet · https://pcornel.dk/topic.php?topic=5141

Back to the Topic

Answer

Malware Detection troubleshooting determines whether antivirus, EDR, sandbox, signature, heuristic or behavioral evidence represents malware, a potentially unwanted application, a benign artifact or incomplete detection context.

Remember

  • Malware detected ≠ malware executed successfully.
  • File quarantined ≠ persistence, credential theft or lateral impact removed.
  • Negative scan ≠ clean system; coverage, unpacking, memory-only behavior and detection age matter.
  • Hash reputation alone ≠ complete malware classification.

First checks

  • Get-MpThreatDetection — Defender detections
  • sha256sum <file> — hash for lookup
  • EDR timeline around detection — what happened

Verify in this order

detection → confirm → scope → contain → eradicate → learn

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.

Malware Detection troubleshooting/evidence map

BoundaryHealthy evidenceSuspicious evidence
Scope / baselineFailing case and known-good comparison are reproducibleSymptom changes across users, devices, paths or time without explanation
Policy / decisionAuthoritative state explains the expected decisionStale, conflicting or unexpected policy/context changes the decision
Enforcement / telemetryRuntime action and same-window telemetry agreeDecision, enforcement and logs disagree or coverage is missing
VerificationOriginal test and security regression both passTemporary recovery, bypass or adjacent regression remains

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5141

Confirmation

Confirm action

Continue?