Error 0x80508023 means Defender logged a detection inside a temporary browser cache, archive, or removable USB drive that was already deleted or unplugged before remediation ran. Clear %temp% and browser caches, then delete the stale Detection History folder at C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service (from Safe Mode) so the ghost alert disappears.
Before You Start: Quick Pre-Check
- Clear %temp% and browser caches
- Verify whether a third-party antivirus (Norton, McAfee, Avast, Bitdefender, etc.) is installed, because Windows automatically puts Microsoft Defender into passive/off mode when another AV registers.
- Open PowerShell or Command Prompt using "Run as Administrator" before executing Defender service or MpCmdRun commands.
- Check Windows Settings > Accounts > Access work or school to verify whether a school/company Intune or Group Policy profile is managing security settings.
Why This Issue Happens
Error 0x80508023 means Defender logged a detection inside a temporary browser cache, archive, or removable USB drive that was already deleted or unplugged before remediation ran.
This issue falls under Core Service & Error Codes (Windows Defender & Security). Confirming the exact trigger before making changes prevents unnecessary resets and helps preserve your data and account standing.
Step-by-Step Resolution Protocol
Clear %temp% and browser caches.
Delete the stale Detection History folder at C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service (from Safe Mode) so the ghost alert disappears.
How to Verify the Fix Worked
- Open PowerShell as Administrator and run Get-MpComputerStatus to verify AMServiceEnabled, AntivirusEnabled, RealTimeProtectionEnabled, and BehaviorMonitorEnabled all return True.
- Open Windows Security (windowsdefender:) and confirm Virus & Threat Protection, Firewall & Network Protection, and Device Security all show green checkmarks with current definition dates.
- Run a Quick Scan or verify Protection History to confirm the prior error code or repeated alert has cleared.
What if the issue still persists? If WinDefend or SecurityHealthService still fails to start with error 577, 0x80070422, or blank UI screens after removing legacy AV drivers and running DISM/SFC, perform an in-place Windows 11/10 Repair Upgrade (keeping all files and apps) to restore signed Defender binaries.