When a Windows computer shows signs of malware, the safest answer is not always “run a scan.” This workflow helps IT teams decide whether to isolate, clean, restore, or reimage a device based on the threat evidence, credential exposure, persistence, backups, and business impact.
Overview
A suspected infection creates two separate decisions: how to contain the incident and how to return the computer to service. Cleaning may be appropriate for a limited, well-understood detection. Reimaging is usually the more defensible path when you cannot establish what changed, when an attacker may have had interactive access, or when important credentials were exposed.
Do not treat the antivirus alert alone as the decision. Record the detection name, file path, user account, time, device, network location, and actions already taken. A false positive, a potentially unwanted application, a browser compromise, an infostealer, and ransomware each require different handling. If the device is still running, avoid experimenting with unfamiliar tools or deleting files before preserving the available evidence.
Use this decision matrix as a starting point:
| Situation | Preferred path | Reason |
|---|---|---|
| Single, contained detection; no signs of execution or persistence | Quarantine, investigate, and clean | The scope may be narrow enough to validate remediation. |
| Repeated detections, unknown persistence, or altered security controls | Isolate, preserve evidence, and reimage | A clean scan does not by itself prove that every change was removed. |
| Credential theft, suspicious sign-ins, or browser-session exposure | Isolate and begin account response from a trusted device | Recovery must address identities as well as the endpoint. |
| Ransomware or suspected data encryption | Isolate immediately and activate the incident plan | Further spread and evidence loss are higher risks than rapid local cleanup. |
| Reliable, tested backup and a business-critical device | Restore or reimage using an approved build | A controlled rebuild can reduce uncertainty while limiting downtime. |
This is a risk-based framework, not a substitute for a formal incident-response plan. When the device belongs to a regulated environment, contains sensitive data, or may be part of a broader compromise, escalate according to the organization’s requirements.
Step-by-step workflow
- Confirm and record the signal. Capture the security product alert, affected account, timestamp, file or process details, and any user report. Note whether the alert was blocked, quarantined, remediated, or merely detected. Review related endpoint and identity events if those records are available.
- Isolate the computer. Remove it from wired and wireless networks, or use the endpoint platform’s isolation feature when appropriate. Do not shut it down automatically if volatile information or forensic preservation matters; follow the organization’s response procedure. If ransomware is suspected, prioritize preventing access to shared locations and other endpoints.
- Assess exposure. Ask what the user did before the alert: opened an attachment, entered credentials into a website, installed software, connected removable media, or approved a remote-access prompt. Check for unusual sign-ins, new local accounts, unexpected administrator changes, disabled protection, unfamiliar scheduled tasks, startup entries, services, browser extensions, and recent software installations.
- Classify the recovery path. Choose cleaning only when the detection is understood, the scope appears limited, and the security team can verify the result. Prefer reimaging when persistence is uncertain, system components were modified, attacker access is plausible, security tools were disabled, or the machine handled privileged credentials. If the computer is business-critical, identify an approved replacement or temporary access method before starting recovery.
- Protect accounts and data. From a known-clean device, reset passwords that may have been entered or stored on the affected computer. Revoke active sessions or tokens where the identity platform supports it, review multifactor authentication changes, and check for suspicious mailbox rules or forwarding. Treat saved browser passwords, cookies, and access tokens as potentially exposed when an infostealer or interactive attacker is suspected.
- Recover in a controlled way. For cleaning, update the protection tool, run the organization’s approved scans, remove confirmed malicious items, and document every action. For reimaging, use a trusted operating-system image, apply updates, install endpoint protection, restore only necessary user data, and avoid restoring unknown executables, scripts, browser profiles, or system folders.
- Validate before reconnecting. Confirm that protection is active, the operating system is supported and updated, local administrator access is appropriate, encryption and firewall settings match policy, and required business applications work. Reconnect gradually while monitoring for renewed detections or suspicious identity activity.
Tools and handoffs
Use the organization’s endpoint security console as the primary record for detections, isolation, device timelines, and remediation status. Antivirus or EDR telemetry can help identify process ancestry, persistence indicators, file prevalence, and related devices, but visibility varies by product and configuration. An EDR platform should support investigation; it should not be treated as proof that a compromised machine is trustworthy after one successful cleanup.
For small businesses, define in advance who can isolate a device, approve a reimage, reset accounts, contact a user, and declare an incident complete. A managed antivirus or MDR arrangement may provide escalation and monitoring, while an internal administrator may handle the rebuild. Document the handoff rather than relying on informal messages.
Useful supporting procedures include an Windows malware rebuild decision tree, an EDR evaluation worksheet, and an antivirus quarantine review workflow. If the event began with a suspicious message, review the Microsoft 365 quarantine and phishing triage runbook as part of the response.
Quality checks
Before closing the incident, verify that the decision and evidence agree. A practical closeout checklist includes:
- The affected device, user, detection, timeline, and containment actions are recorded.
- Related endpoints, shared folders, email accounts, and identity events were considered.
- Credentials and sessions were addressed from a trusted device when exposure was possible.
- Recovered files came from a known-good source and were scanned before use.
- The endpoint protection agent reports healthy status and is receiving updates.
- No unexplained startup item, scheduled task, account, browser extension, or security-setting change remains.
- The user knows how the incident began and what behavior or control should change.
- The final action—cleaned, restored, or reimaged—has an owner and a completion time.
A clean result should not erase uncertainty. If the investigation cannot establish when access began, what data was viewed, or whether credentials were stolen, record that limitation and apply the stronger response that the risk warrants.
When to revisit
Revisit this workflow whenever the organization changes its endpoint platform, Windows recovery process, identity provider, backup design, or remote-work model. Review it after a significant malware incident, a ransomware event, a new persistence technique, or a change in which users have administrative privileges. Security products also add and remove investigation or isolation capabilities, so confirm that the documented steps still match the tools actually deployed.
At least annually, run a short tabletop exercise: isolate a test device, identify the account-reset path, locate a clean Windows image, restore a sample file, and confirm who approves reconnection. Update contact details, recovery media, backup assumptions, and escalation thresholds. During the next suspected infection, use the matrix, record the decision, isolate early when uncertainty is high, and favor a controlled rebuild when trust in the system cannot be demonstrated.