How to Monitor Windows Security Event Logs for Threats
Most Windows users never open Event Viewer. That's a missed opportunity — your PC silently records every login attempt, account lockout, privilege escalation, and policy change in the Security Event Log. Knowing how to read these logs can mean the difference between catching an intrusion early and discovering it months later after real damage is done.
This guide walks you through the key event IDs to watch, how to filter and export logs, and how to set up automated alerts — all without third-party software.
Having this problem on your own PC?
Describe what's happening and get a real AI diagnosis in seconds — no account needed.
Why Windows Security Event Logs Matter
Windows logs security-relevant activity in a dedicated channel called the Security log, accessible through Event Viewer (eventvwr.msc). Every entry carries an Event ID — a numeric code that identifies exactly what happened. Attackers who compromise a PC almost always leave traces here: failed logins before a successful brute-force, new admin accounts created silently, or audit policies disabled to cover tracks.
Unlike antivirus software, which looks for known malware signatures, the Security log captures behavior — making it effective against novel threats, insider attacks, and living-off-the-land techniques that use built-in Windows tools.
Opening the Security Event Log
Press Win + R, type eventvwr.msc, and press Enter.
In the left pane, expand Windows Logs → Security.
The center pane lists recent events, newest first.
Alternatively, open an elevated PowerShell prompt and query logs directly:
Get-EventLog -LogName Security -Newest 50For more powerful filtering, use Get-WinEvent:
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625} | Select-Object TimeCreated, Message -First 20Critical Event IDs to Monitor
Not all Security events are equally important. Focus on these high-signal IDs:
Authentication Events
Event ID 4624 — Successful logon. Normal on your own PC, but watch for logons at unusual hours or from unexpected Logon Type values (Type 3 = network, Type 10 = remote interactive).
Event ID 4625 — Failed logon. A handful per day is normal; dozens in minutes signals a brute-force attack.
Event ID 4648 — Logon using explicit credentials. Appears when runas or pass-the-hash techniques are used — rarely benign in large numbers.
Event ID 4634 / 4647 — Logoff. Useful for reconstructing session timelines.
Account Management Events
Event ID 4720 — A new user account was created. Any unexpected entry here warrants immediate investigation.
Event ID 4732 — A user was added to a security-enabled local group (e.g., Administrators). Attackers escalate privileges this way.
Event ID 4723 / 4724 — Password change or reset. Legitimate on your own account; suspicious if the subject account is not you.
Policy and Audit Changes
Event ID 4719 — System audit policy was changed. Malware sometimes disables auditing to hide activity — this event fires when that happens.
Event ID 4670 — Permissions on an object were changed. Watch for changes to sensitive registry keys or system files.
Process and Privilege Events
Event ID 4688 — A new process was created (requires Process Creation auditing to be enabled). Reveals command-line arguments used by scripts and tools.
Event ID 4672 — Special privileges assigned to a new logon. Fires when an account with admin-level rights logs in.
Enabling Process Creation Auditing
By default, Windows does not log process creation details. Enable it for much richer visibility:
auditpol /set /subcategory:"Process Creation" /success:enable /failure:enableTo also capture full command-line arguments (highly recommended):
Open Local Group Policy Editor: gpedit.msc
Navigate to Computer Configuration → Administrative Templates → System → Audit Process Creation.
Enable Include command line in process creation events.
With this enabled, Event ID 4688 entries will show the exact command run — invaluable for spotting PowerShell abuse or encoded commands.
Filtering Logs Efficiently
The Security log can contain thousands of entries per day. Use Custom Views in Event Viewer to filter noise:
In Event Viewer, right-click Custom Views → Create Custom View.
Set Event level: Critical, Warning, Error.
Under By log, select Security.
In the Event IDs field, enter: 4625, 4720, 4732, 4719, 4688
Name the view Threat Watch and save.
You can also export filtered results to XML for archiving:
wevtutil epl Security C:\Logs\security_export.evtx /q:"*[System[(EventID=4625 or EventID=4720)]]" /ow:trueSetting Up Automated Alerts
Event Viewer can trigger actions when specific events occur — no third-party tools required:
Right-click any event in the Security log → Attach Task to This Event.
Follow the Task Scheduler wizard.
Choose Send an e-mail (Windows 10) or Start a program to run a notification script.
For a PowerShell-based alert on failed logins, create a scheduled task that runs this script every 15 minutes:
$threshold = 10
$minutes = 15
$since = (Get-Date).AddMinutes(-$minutes)
$failures = (Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625; StartTime=$since} -ErrorAction SilentlyContinue).Count
if ($failures -ge $threshold) {
Write-EventLog -LogName Application -Source "SecurityMonitor" -EventId 9999 -Message "$failures failed logins in $minutes minutes"
}Increasing Log Retention
By default, the Security log may overwrite old entries quickly. Increase retention to preserve forensic evidence:
In Event Viewer, right-click Security → Properties.
Set Maximum log size to at least 128 MB (262144 KB).
Select Archive the log when full, do not overwrite events.
Or via command line:
wevtutil sl Security /ms:131072000Let PC Diagnostic Analyzer Do the Heavy Lifting
Manually reviewing Event Viewer is powerful but time-consuming. PC Diagnostic Analyzer automates this process — it scans your Windows event logs, flags high-risk event patterns, and presents findings in a clear, prioritized report. Instead of hunting through thousands of entries, you get a focused list of what actually needs attention.
PC Diagnostic Analyzer also cross-references security events with driver issues, service failures, and system health metrics, giving you a complete picture of your PC's security posture in minutes rather than hours.
Quick Reference: Top Security Event IDs
4624 — Successful logon
4625 — Failed logon (watch for spikes)
4648 — Explicit credential logon
4720 — New user account created
4732 — User added to Administrators group
4719 — Audit policy changed
4688 — New process created (enable auditing first)
4672 — Admin privileges assigned at logon
Take Action Now
Your Windows Security Event Log is already collecting data — the question is whether you're reading it. Start by opening Event Viewer today, creating a Threat Watch custom view with the event IDs above, and reviewing the last 24 hours. If you spot dozens of Event ID 4625 entries or an unexpected 4720, act immediately: change passwords, review accounts, and run a full diagnostic.
For a faster, more thorough security check, try PC Diagnostic Analyzer free — upload your diagnostic data and get an instant report on security events, system health, and hidden issues your PC has been logging all along. Don't wait for a breach to start paying attention to your logs.
Found this helpful?
Share it with someone who could use it.
DiagnoseMyPC Team
Expert PC diagnostics and troubleshooting guides to help you keep your Windows system running smoothly.
Get the free Windows Troubleshooting Checklist
Subscribe and instantly download our 50-point Windows troubleshooting checklist — plus practical fixes, performance tips, and security alerts from the DiagnoseMyPC team.
No spam. Unsubscribe anytime.
Frequently Asked Questions
How do I know if my PC has malware?
Common signs include sudden slowdowns, pop-ups, unfamiliar programs, high network or CPU usage when idle, and browser changes you didn't make. An AI diagnosis can flag suspicious activity in your system data — run a free scan at diagnosemypc.com to check.
Is Windows Defender enough to protect my PC?
For most home users, Windows Defender plus safe browsing habits and regular updates is solid protection. The bigger risks are outdated software, weak passwords, and clicking malicious links — good habits matter more than any single tool.
What should I do first if I think I've been hacked?
Disconnect from the internet, change important passwords from a different device, run a full security scan, and check for unfamiliar programs or startup entries. A diagnosis helps confirm what changed on your system so you know exactly what to clean up.
Does this tool make changes to my PC without asking?
No. The analyzer only reads the diagnostic data you choose to share and shows you any recommended fixes first. You stay in complete control of what actually runs on your computer.



