Security Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3209
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 ageGet-CimInstance -Namespace root\Microsoft\Windows\DeviceGuard -ClassName Win32_DeviceGuard— VBS, Credential Guard, HVCI stateGet-MpPreference | Select AttackSurfaceReductionRules_Ids,AttackSurfaceReductionRules_Actions— ASR rulesGet-ProcessMitigation -System— system exploit mitigationsGet-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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Policy source | GPO/MDM/local/baseline intent | precedence matters |
| Effective control | Actual local setting/mode | not decision proof |
| Runtime component | Engine/service/security service | not workload proof |
| Decision/event | Specific observation/action | requires object correlation |
| Outcome | Business/security result | final 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