Microsoft Defender Antivirus records almost everything it does in one event log, and most failures surface either as an event ID or as an 0x8050xxxx code inside an event. This quick reference lists the events and client error codes in Microsoft's documentation, grouped by what's happening (scans and detections, updates, protection state), with the meaning, the usual cause and the first thing to check. Press Ctrl+F and type your ID or code.
Codes in this quick reference
Event ID 1000 MALWAREPROTECTION_SCAN_STARTED: an antimalware scan startedEvent Viewer (Windows Defender/Operational)Event ID 1001 MALWAREPROTECTION_SCAN_COMPLETED: an antimalware scan finishedEvent Viewer (Windows Defender/Operational)Event ID 1002 MALWAREPROTECTION_SCAN_CANCELLED: scan stopped before it finishedEvent Viewer (Windows Defender/Operational)Event ID 1006 MALWAREPROTECTION_MALWARE_DETECTED: engine found malware or potentially unwanted softwareEvent Viewer (Windows Defender/Operational)Event ID 1007 MALWAREPROTECTION_MALWARE_ACTION_TAKEN: action taken to protect the systemEvent Viewer (Windows Defender/Operational)Event ID 1008 MALWAREPROTECTION_MALWARE_ACTION_FAILED: action against malware failedEvent Viewer (Windows Defender/Operational)Event ID 1015 MALWAREPROTECTION_BEHAVIOR_DETECTED: suspicious behavior detectedEvent Viewer (Windows Defender/Operational)Event ID 1116 MALWAREPROTECTION_STATE_MALWARE_DETECTED: malware or potentially unwanted software detectedEvent Viewer (Windows Defender/Operational)
+ 51 more codes in the tables below.
How to read these codes#
Events are in Event Viewer under Applications and Services Logs › Microsoft › Windows › Windows Defender › Operational. To pull the interesting ones from PowerShell:
Get-WinEvent -FilterHashtable @{
LogName = 'Microsoft-Windows-Windows Defender/Operational'
Id = 1116, 1117, 1119, 2001, 3002, 5007, 5013
} -MaxEvents 50 | Select-Object TimeCreated, Id, Message- Event IDs are listed below with the symbolic name Microsoft uses for each (such as
MALWAREPROTECTION_CONFIG_CHANGED), which helps when you search Microsoft's documentation. - Error codes appear in the Error Code field of failure events such as 1008, 1119, 2001 and 3002. Microsoft describes them as standard HRESULT values; the
0x8050xxxxones are Defender's own and are in the last table. Other values are general Windows codes. - Attack surface reduction, network protection and controlled folder access write to the same log; see ASR rules in audit mode and web content filtering and network protection for their events.
- On devices onboarded to Defender for Endpoint, the same story is available centrally in advanced hunting, for example
DeviceEventsrows with the action typeAntivirusDetection; see advanced hunting for Intune admins.
Scans and detections#
| Code | Meaning | Usual cause | First check |
|---|---|---|---|
1000MALWAREPROTECTION_SCAN_STARTED | A scan started | A scheduled, on-demand or catch-up scan | Scan type and parameters in the event; line them up with CPU spikes. Guide |
1001MALWAREPROTECTION_SCAN_COMPLETED | A scan finished | Normal end of a scan | Scan Time shows how long it ran; long scheduled full scans are worth tuning. Guide |
1002MALWAREPROTECTION_SCAN_CANCELLED | A scan stopped before it finished | Canceled by a user or admin, or interrupted | Run it again; event 1151 shows the last quick and full scan times. Guide |
1006MALWAREPROTECTION_MALWARE_DETECTED | The engine found malware or potentially unwanted software | A scan or real-time protection matched a threat | Threat name, path, detection source and process; then look for 1007 or 1008. |
1007MALWAREPROTECTION_MALWARE_ACTION_TAKEN | An action was taken to protect the device | Clean, quarantine, remove, block or allow was applied | The Action field, and Protection history in Windows Security. |
1008MALWAREPROTECTION_MALWARE_ACTION_FAILED | An action was attempted but failed | Given by the error code in the event | Look up the Error Code in the client error codes table below. |
1015MALWAREPROTECTION_BEHAVIOR_DETECTED | Suspicious behavior detected | Behavior monitoring flagged a process | Process name and target file; investigate that process. |
1116MALWAREPROTECTION_STATE_MALWARE_DETECTED | Malware or potentially unwanted software detected | A detection Defender will act on; Microsoft says no action is required | Expect a 1117 next; if none follows, check the default threat actions. |
1117MALWAREPROTECTION_STATE_MALWARE_ACTION_TAKEN | Action taken on a detected threat | Normal remediation, or Allow when configuration says not to remediate | The Action field: Allow, No action and None don't remediate and can't be set while tamper protection is on. |
1118MALWAREPROTECTION_STATE_MALWARE_ACTION_FAILED | A noncritical error during remediation | Part of the remediation task failed | Error Code; Microsoft says no action is needed, but rescan to confirm. |
1119MALWAREPROTECTION_STATE_MALWARE_ACTION_CRITICALLY_FAILED | Critical error acting on a threat; the device might not be protected | Remove, clean, quarantine or allow failed | Update definitions and verify the removal; for quarantine or allow, check access to the resources; scan again. |
1121 | An attack surface reduction rule fired in block mode | A process matched an ASR rule | Rule and path in the event; pilot rules in audit mode first. Guide |
1127MALWAREPROTECTION_FOLDER_GUARD_SECTOR_BLOCK | Controlled folder access blocked an untrusted process from modifying disk sectors | An untrusted process tried to write to a disk or device | Process path; add it to the allowed apps only if you trust it. |
Quarantine and client health#
| Code | Meaning | Usual cause | First check |
|---|---|---|---|
1009MALWAREPROTECTION_QUARANTINE_RESTORE | An item was restored from quarantine | A user or admin restored the file, for example after a false positive | Confirm the restore was intended and the file is clean. |
1010MALWAREPROTECTION_QUARANTINE_RESTORE_FAILED | Restoring an item from quarantine failed | Not stated by Microsoft | Error Code and description in the event. |
1012MALWAREPROTECTION_QUARANTINE_DELETE_FAILED | Deleting an item from quarantine failed | Not stated by Microsoft | Error Code and description in the event. |
1150MALWAREPROTECTION_SERVICE_HEALTHY | The client is running and healthy | Hourly heartbeat | If it stops appearing, check that the WinDefend service is running. |
1151MALWAREPROTECTION_SERVICE_HEALTH_REPORT | Client health report | Periodic report of versions, protection states, signature age and last scans | RTP, OA, IOAV and BM states; a signature age of 65535 days means the device has never updated. |
Updates and cloud protection#
| Code | Meaning | Usual cause | First check |
|---|---|---|---|
2000MALWAREPROTECTION_SIGNATURE_UPDATED | Security intelligence updated | Normal update | Current and previous versions in the event. |
2001MALWAREPROTECTION_SIGNATURE_UPDATE_FAILED | Security intelligence update failed | The update source (WSUS, file share, Microsoft Update) failed or wasn't reachable | Update source, stage and Error Code; on WSUS, check the updates are approved; update and rescan on the device. Guide |
2002MALWAREPROTECTION_ENGINE_UPDATED | Engine updated | Normal update | Current and previous engine versions. |
2003MALWAREPROTECTION_ENGINE_UPDATE_FAILED | Engine update failed | Microsoft attributes it to a network interruption during the update | Update definitions and force a rescan on the device. Guide |
2004MALWAREPROTECTION_SIGNATURE_REVERSION | Definitions didn't load; reverting to the last known-good set | A definitions file that failed to load or is corrupt | Restart and update again; a manual download (over 60 MB) is a one-off fix only. |
2005MALWAREPROTECTION_ENGINE_UPDATE_PLATFORMOUTOFDATE | The engine couldn't load because the platform is out of date | Platform updates aren't reaching the device | Update the platform. Guide |
2006MALWAREPROTECTION_PLATFORM_UPDATE_FAILED | Platform update failed | Not stated by Microsoft | Error Code, update channel and source. Guide |
2007MALWAREPROTECTION_PLATFORM_ALMOSTOUTOFDATE | The platform will soon be out of date | Platform updates delayed or not approved | Update the platform before newer engines stop loading. Guide |
2010MALWAREPROTECTION_SIGNATURE_FASTPATH_UPDATED | Cloud protection delivered extra security intelligence | Cloud-delivered protection (formerly Dynamic Signature Service) at work | Informational. |
2011MALWAREPROTECTION_SIGNATURE_FASTPATH_DELETED | Out-of-date dynamic definitions deleted | Normal expiry | Not logged by default from platform 4.18.2207.7; the EnableDynamicSignatureDroppedEventReporting registry value turns it back on. |
2012MALWAREPROTECTION_SIGNATURE_FASTPATH_UPDATE_FAILED | Error using the Dynamic Signature Service | Connectivity | Internet connectivity and proxy settings. |
2021MALWAREPROTECTION_CLOUD_CLEAN_RESTORE_FILE_DOWNLOAD_FAILED | A clean file couldn't be downloaded | Most likely network connectivity | Internet connectivity and proxy settings. |
2031MALWAREPROTECTION_OFFLINE_SCAN_INSTALL_FAILED | The offline scan couldn't be downloaded and configured | Not stated by Microsoft | Error Code; retry the offline scan. |
2041MALWAREPROTECTION_OS_EOL | Antimalware support for this operating system has ended | Out-of-support operating system | Upgrade the operating system. |
2042MALWAREPROTECTION_PROTECTION_EOL | The engine no longer supports this OS and isn't protecting it | Out-of-support operating system | Treat the device as unprotected; upgrade or replace it. |
2050MALWAREPROTECTION_SAMPLESUBMISSION_UPLOADED | A file was submitted for sample analysis | Automatic sample submission | Informational; review sample submission consent if it's unexpected. |
Protection state and configuration#
If several of these appear together after a policy change, start with Defender settings not applying. If Defender runs in passive mode next to another antivirus, some protections are off by design; see active, passive and EDR block mode.
| Code | Meaning | Usual cause | First check |
|---|---|---|---|
3002MALWAREPROTECTION_RTP_FEATURE_FAILURE | A real-time protection feature failed | One of the services failed to start | Restart and run a full scan; a following 3007 means it recovered. |
3007MALWAREPROTECTION_RTP_FEATURE_RECOVERED | Real-time protection recovered from a failure | A feature restarted | Run a full scan; contact support if it keeps happening. |
5000MALWAREPROTECTION_RTP_ENABLED | Real-time protection enabled | A policy or admin turned it on | Informational. |
5001MALWAREPROTECTION_RTP_DISABLED | Real-time protection disabled | A policy, admin or tool turned it off | Nearby 5007 events and the policy that owns the setting. Guide |
5004MALWAREPROTECTION_RTP_FEATURE_CONFIGURED | A real-time protection feature's configuration changed | Policy or local change | Feature and configuration in the event. Guide |
5007MALWAREPROTECTION_CONFIG_CHANGED | The antimalware platform configuration changed | Policy or local change; Microsoft warns an unexpected change could be malware | Old and new value in the event. Guide |
5008MALWAREPROTECTION_ENGINE_FAILURE | The engine stopped because of an unexpected error | Crash or hang | Failure type and exception code; run the scan again and look up the code. |
5010MALWAREPROTECTION_ANTISPYWARE_DISABLED | Scanning for malware and other potentially unwanted software disabled | Policy or admin change | The policy that owns the setting. Guide |
5012MALWAREPROTECTION_ANTIVIRUS_DISABLED | Scanning for viruses disabled | Policy or admin change | The policy that owns the setting. Guide |
5013 | Tamper protection blocked a change to Defender Antivirus | A tool, script or policy tried to change a protected setting | The setting named in the event. Guide |
5100MALWAREPROTECTION_EXPIRATION_WARNING_STATE | The platform entered a grace period and will expire soon | Given in the Expiration Reason field | Expiration reason and date; fix it before protection is disabled. |
5101MALWAREPROTECTION_DISABLED_EXPIRED_STATE | The platform has expired; protection is disabled | The grace period ended | Expiration reason; the device is unprotected until it's fixed. |
Client error codes (0x8050xxxx)#
Microsoft notes that these errors most often point to a problem installing updates, so update definitions first, then work through the table.
| Code | Meaning | Usual cause | First check |
|---|---|---|---|
0x80508007ERR_MP_NO_MEMORY | The device might be out of memory | Low available memory | Close unused apps, restart and scan again. |
0x8050800CERR_MP_BAD_INPUT_DATA | There might be a problem with the security product | Not stated by Microsoft | Update definitions, run a full scan, then restart and retry. |
0x80508020ERR_MP_BAD_CONFIGURATION | Possible engine configuration error | Input data that stops the engine working properly | Update definitions and force a rescan. |
0x805080211ERR_MP_QUARANTINE_FAILED | Defender couldn't quarantine a threat (Microsoft lists the code with this extra digit) | Not stated by Microsoft | Matching 1008 or 1118 events; scan again. |
0x80508022ERR_MP_REBOOT_REQUIRED | A restart is needed to finish removing the threat | Not stated by Microsoft | Restart, then scan again. |
0x80508023ERR_MP_THREAT_NOT_FOUND | The threat may be gone from the media, or malware may be blocking the scan | Not stated by Microsoft | Run the Microsoft Safety Scanner, update, then retry. |
0x80508024ERR_MP_FULL_SCAN_REQUIRED | A full scan may be required | Not stated by Microsoft | Run a full scan. |
0x80508025ERR_MP_MANUAL_STEPS_REQUIRED | Manual steps are needed to finish removal | Not stated by Microsoft | Follow the threat's manual remediation steps in Microsoft's malware encyclopedia, linked from the event history. |
0x80508026ERR_MP_REMOVE_NOT_SUPPORTED | Removal inside this container type may not be supported | A threat inside an archive | Remove the detected item manually. |
0x80508027ERR_MP_REMOVE_LOW_MEDIUM_DISABLED | Removal of low and medium threats may be disabled | Not stated by Microsoft | Review the detected threats and resolve them. |
0x80508029ERROR_MP_RESCAN_REQUIRED | The threat needs a rescan | Not stated by Microsoft | Run a full scan. |
0x80508030ERROR_MP_CALLISTO_REQUIRED | An offline scan is required | Not stated by Microsoft | Run Microsoft Defender Offline, for example with Start-MpWDOScan. |
0x80508031ERROR_MP_PLATFORM_OUTDATED | The current platform version isn't supported; a newer one is needed | Outdated platform | Update the platform and confirm the OS is supported. Guide |
Internal error codes#
Microsoft also lists internal codes it uses in its own testing: 0x80501000 to 0x80501004, 0x80501101 to 0x80501108, a set of codes between 0x80508001 and 0x80508019, 0x80509001, 0x80509003 and 0x8050A001 to 0x8050A005 (the ERR_MP_BADDB_* names). For most of them it doesn't define a cause; its advice is to update definitions and force a rescan directly on the device. Three have clearer hints: 0x80501004 ERROR_MP_NO_INTERNET_CONN means checking the internet connection and scanning again, 0x80508018 ERR_MP_SCAN_ABORTED can follow a failed scan, and ERR_MP_REMOVE_FAILED can follow an unsuccessful malware removal.
How to verify a fix#
Update-MpSignature
Get-MpComputerStatus | Select-Object AMRunningMode, AMProductVersion, AMEngineVersion,
AntivirusSignatureVersion, AntivirusSignatureLastUpdated, RealTimeProtectionEnabled
Start-MpScan -ScanType QuickScan
Get-MpThreatDetection | Select-Object -First 5- Update problems: new 2000 and 2002 events with current versions, and no new 2001, 2003 or 2005.
- Remediation problems: after a full or offline scan, a 1117 with a remediating action (Clean, Quarantine or Remove) and no new 1118 or 1119 for the same threat.
- Protection state: the next 1151 report shows RTP, OA, IOAV and BM as Enabled,
AMRunningModeisNormal(orPassiveby design), and no unexpected 5001, 5010 or 5012 appears after the next policy refresh. - Tamper protection: no new 5013 once the change is made through the channel that owns the setting.
References#
- Microsoft Defender Antivirus event IDs and error codes (Microsoft Learn): the source for every event ID, symbolic name and error code on this page.

