Pcornel
Windows · Windows Security

Security Troubleshooting

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

Back to the Topic

Answer

Windows security troubleshooting starts from what should be allowed or blocked, finds which security feature controls it (Defender, App Control, Firewall, UAC, policy), and checks that feature's effective settings and event log to see why it decided as it did.

Remember

  • Intended policy ≠ effective policy ≠ runtime enforcement.
  • UI status can be stale or management-constrained.
  • Do not disable broad security controls before preserving evidence.
  • A block/detection can be correct behavior even when the business outcome is broken.
  • Find the first failed boundary, then change one variable.

First checks

  • Get-MpComputerStatus — Defender state and signature age
  • Get-CimInstance -Namespace root\Microsoft\Windows\DeviceGuard -ClassName Win32_DeviceGuard — VBS, Credential Guard, HVCI state
  • Get-MpPreference | Select AttackSurfaceReductionRules_Ids,AttackSurfaceReductionRules_Actions — ASR rules
  • Get-ProcessMitigation -System — system exploit mitigations
  • Get-WinEvent -LogName 'Microsoft-Windows-Windows Defender/Operational' -MaxEvents 30 — Defender events

Commands

Get-MpComputerStatus
Display Microsoft Defender status and signature versions.
Get-WinEvent
PowerShell cmdlet for querying Windows Event Log and ETW-style event sources as structured EventLogRecord objects, with…

Verify in this order

block/alert → control → rule → targeted fix

Where it usually breaks

First mismatch in identity/token/certificate → policy source → security provider/enforcement → target resource → audit/detection evidence; preserve identity/native error/pre-state before mutation.

Windows Security → Security Troubleshooting reference map

BoundaryMeaningEvidence limit
Policy sourceGPO/MDM/local/baseline intentprecedence matters
Effective controlActual local setting/modenot decision proof
Runtime componentEngine/service/security servicenot workload proof
Decision/eventSpecific observation/actionrequires object correlation
OutcomeBusiness/security resultfinal verification boundary

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

Confirmation

Confirm action

Continue?