Malware forensics is the examination of files and records to establish whether malicious software was present, whether it executed and what it did in a particular environment. A file can be identified by its contents. A process or module record can associate those contents with activity on a host.
Evidence of effects, such as a document being overwritten or an account being used, usually comes from additional sources. Each claim has its own evidentiary threshold. NIST guide to integrating forensic techniques into incident response
The starting material may be an alert, a suspicious file, an incident timeline or a report of damage with no file attached. Begin with the question the material can answer. For example, a gateway quarantine may support a finding that the gateway intercepted an attachment. A question about activity on a laptop requires records that could have observed activity on that laptop during the relevant period.
Key terms
- Malware
- Software intended to perform actions that compromise a system or its data.
- Artifact
- A file, record or other item that can be examined for evidence.
- Static observation
- A finding about a recorded object's contents or structure derived without running it.
- Corroboration
- Support for a claim from an additional observation relevant to the same event or mechanism.
- Observation window
- The period for which a source can provide relevant records.
How to Study Malware Forensics
Start with a basic understanding of files, processes and network connections. Each module uses the same evidence questions, from identifying the object to establishing what ran and who or what was affected. The file and endpoint examples focus on Windows. The same evidence principles apply across platforms, with different sources and collection limits.
Scroll horizontally if needed to see the full table.
At the end of each lesson, read the case example and answer five questions before reviewing their explanations. Keep an evidence journal with the source, observation, inference and limitation for each practical exercise. In the final two capstones, use that journal format to build a claim matrix, reconstruct an incident and defend your conclusions.
Define the Claim Before Examining the Evidence
Frame a question around an object, a system and a period. In an attachment investigation, the message and its attachment are different objects. The same bytes can appear on a gateway and an endpoint under different names. The same name can also refer to different bytes. A useful question asks whether a particular attachment, identified by its file digest or another strong link, was associated with a recorded program launch on a specified device.
Treat a malware family name as a lead supplied by a specific source. Two products may use different names for related samples, or the same broad label may cover several files. Record the product, original label and detection time. If a public report identifies a particular sample, compare the common identifiers before carrying the label into your own finding. Explain which claim comes from the source report and which comes from your examination. NIST malware incident handling guidance
Distinguish File Presence, Execution and Effect
A preserved file or an inventory record can support presence. A recorded program start can support execution if the image can be linked to the relevant file. A library may be loaded inside a host process, which makes image-load evidence relevant.
Scroll horizontally if needed to see the full table.
A load record describes what the source recorded about that module. An effect requires evidence that links specific activity to a specific result, such as a trustworthy event that associates a process instance with a write to a previously identified file.
A number of events can cluster around the same minute because several people and services are using a system. A timing match earns attention and calls for a link through the fields the sources actually provide. Process identifiers, activity identifiers, object paths and before-and-after records can help. A reviewer should be able to see which links rest on direct observations and which depend on assumptions about timing or identity. Microsoft Sysmon event definitions
Document the Evidence and Its Collection Boundary
Keep the original source values with any interpretation. Preserve the full digest and its algorithm, the host identifier, the original timestamp and its time basis, and the source event or item reference. If a dashboard shows a shortened path or a short digest, link the displayed value to the underlying record. A reviewer can then check whether the comparison used the intended fields and whether the tool grouped records under a shared label.
Record which systems, event types and dates were available. If an endpoint retained only three days and the possible execution falls in the previous week, a search of the retained data covers those three days. If the relevant event type was never enabled, say that directly. A scoped finding can remain useful by pointing the response team to a suitable independent source or by showing which question remains open.
Communicate What the Finding Supports
Write the observation and interpretation close together. A report might state that an endpoint recorded a new process with an image digest matching the preserved attachment. It can then name the residual question, such as whether that process account was associated with later file changes. Keep the evidence references close enough for a reader to follow the reasoning in order.
If two records conflict, describe the conflict and the comparison still needed. A security alert and its case ticket may share the same underlying event and therefore support record consistency. A separate storage, application or endpoint source can independently support a particular stage if it was able to observe that stage. This distinction matters when the response depends on whether an event occurred, how far it reached or who could have observed it.
Write a Finding a Reviewer Can Test
In a hypothetical review, a gateway record links an attachment to a quarantined message. An endpoint record two hours later shows a process with the same image name. Before joining the records, check whether they identify the same bytes, whether that device received the message and whether their times can be compared. If the process record lacks a digest, a preserved image or a stronger delivery record may help resolve the identity.
Write one sentence for each supported observation. Then give the unresolved question in terms a colleague can test, such as whether the endpoint image and quarantined attachment had the same full-file SHA-256 digest. This structure preserves the work that can already be defended and gives the reviewer a concrete reason for requesting another record. Continue with Malware Types and Classification and Malware Attacks and Their Evidence before starting the evidence preservation lessons.
Scope an Examination Around Decisions
An investigation may open with one urgent question about a particular laptop. The response team may need to decide whether the laptop should return to service while a separate examiner determines what the available evidence supports. State the decision deadline and the underlying forensic question separately. Early incident status can be useful even when the final account remains incomplete.
For an endpoint named in an alert, define the interval, the asset identity, and the event you are testing. If the alert gives a hostname and the inventory lists two computers that used it, resolve identity before joining their records. A device identifier, enrollment date, and session context can keep a reused name from turning into evidence of activity on the wrong computer.
A practical scope statement names the object, host, and interval, then lists the records accessible under the examination. Describe exclusions in plain terms when they affect the answer. For instance, a review limited to a workstation and its endpoint records can address observed execution there, while an assessment of unwitnessed activity on a separate server remains open.
Separate Examination Work From Response Work
Containment responds to a risk under operational time pressure. Evidence examination tests what actually occurred. Security staff may isolate a workstation before anyone can establish exactly what the alert means, and the case file should retain that decision with its timestamp and author. Isolation may itself account for lost connectivity later reported by the user.
Record when responders changed the system or ran inspection products. Their actions can create new processes, file timestamps, or tool-generated records. Distinguishing responder-induced artifacts from the earlier interval makes it possible to keep the case chronology coherent. An approved remediation ticket is a useful independent source for the timing and initial purpose of a change.
Where a system has recovered, establish whether the original evidence survived. A restored host can have a different set of logs and a different disk state from the affected system before recovery. Record the boundary explicitly and request any available records already preserved by centralized systems. The original state and the recovery state may answer different questions.
Assign Confidence to Individual Findings
A single case can contain findings at different levels of confidence. A verified original export might support a strong statement about an object reaching a device. An analyst note can weakly support a linked user action when the underlying source is missing. Keep each claim about files, execution, and effects separate enough to attach its own evidence and limitation.
Record significant competing explanations in a form another person can test. A recorded write to a directory might be consistent with a legitimate update, human administration, or unauthorized activity. A deployment record can discriminate among these explanations if it applies to the same device, object, and time. A broadly scheduled maintenance window may explain timing while leaving the object association unverified.
As more evidence arrives, revise the specific claim that changed and preserve the reason. This is especially useful in an investigation with several examiners on successive shifts. If the confidence label changes without the source record changing, say whether the team obtained additional context, corrected an interpretation, or narrowed the scope of the statement.
Practice Writing a Provisional and a Revised Finding
In this instructional exercise, a source records a write to a named local path on device LAB-17 at 09:20. A scanner detects the object at 09:24. A later support ticket records a network change to the device at 09:27. An initial case note blames the object for interrupted service on the same morning. Identify the observations and state which combination supports a specific effect.
Draft the first finding using only those three sources. A supported account can record the observed file write, detection, and response action with their respective timestamps. To assess service interruption, request service monitoring or a local error source with the affected time and service identity. Describe why the existing support note remains a lead until tied to a relevant record.
Now add a vetted service record showing repeated service errors beginning at 09:10 and continuing until 09:30. Revise the account. The known write and detection occur after the first recorded errors, so they do not explain the recorded onset based on the evidence given. They may still matter to the wider investigation. State that distinction before recommending a narrower follow-up.