SI
Security InsiderSOC · IR · Threat Intel
← Back to Blog
10 min readBy Ramakrishna

Windows Event Logs for SOC Analysts: The Logs That Tell You Someone Broke In

Stop memorizing event IDs. Follow one break-in through the Windows logs and learn which events actually tell the story.

SOCWindowsEvent LogsBlue TeamBeginner

Every Windows machine is quietly keeping a diary.

Who logged in. Who failed to log in. Which programs started. Which accounts were created. Who cleared the logs at 3 AM hoping nobody would notice.

Most people never read this diary. Windows does not exactly advertise it either. It sits inside something called Event Viewer, which looks like it was designed in 2003 and never told about the changes since.

But for a SOC Analyst, this diary is gold.

Because when someone breaks into a Windows machine, they almost always leave footprints. You just need to know which footprints matter.

So let’s follow a break-in.


First, Where Do These Logs Live?

Press Win + R, type eventvwr.msc, and press Enter.

Welcome to Event Viewer. Do not panic.

Under Windows Logs, you will mainly care about three:

  • Security: logins, failed logins, account changes, privilege use. This is where most of the action is.
  • System: services, drivers, shutdowns, and restarts.
  • Application: application crashes and errors. Useful sometimes, noisy always.

On disk, these are stored as .evtx files:

C:\Windows\System32\winevt\Logs\

In a real SOC, you will not be opening Event Viewer on 5,000 laptops one by one. Those logs get shipped to a SIEM like Microsoft Sentinel. But knowing what the raw event looks like makes you much better at reading it in the SIEM.

Event IDs: The Only Number You Need to Care About

Every Windows event has an Event ID. Think of it as the event’s category.

4624 means someone logged in successfully. 4625 means someone failed. Same story every time, on every Windows machine.

There are hundreds of Event IDs. Do you need to memorize all of them?

Absolutely not.

You need maybe a dozen. And the easiest way to remember them is to see them inside an actual attack.


The Story: A Server Exposed to the Internet

Meet FIN-SRV-01, a Windows server at a company in Hyderabad.

Someone in IT enabled Remote Desktop (RDP) so they could “quickly fix something from home.” That was eight months ago. Nobody turned it off.

The server is now reachable from the internet on port 3389.

Attackers love this. To them, an exposed RDP port is like a house with the front door facing the main road and a sticky note saying “key under the mat.”

Let’s watch what happens in the logs.

Chapter 1: The Knocking Begins — Event ID 4625

At 2:13 AM, the Security log starts filling up:

02:13:01  4625  An account failed to log on   User: administrator  Source IP: 185.xxx.xxx.xxx
02:13:01  4625  An account failed to log on   User: admin          Source IP: 185.xxx.xxx.xxx
02:13:02  4625  An account failed to log on   User: administrator  Source IP: 185.xxx.xxx.xxx
02:13:02  4625  An account failed to log on   User: test           Source IP: 185.xxx.xxx.xxx
...
(312 more)

Event ID 4625 = failed logon.

One failed login is a user who forgot their password after a long weekend. Totally normal.

Three hundred failed logins in thirty minutes from the same foreign IP, trying administrator, admin, test, and user?

That is not someone who forgot their password. That is a brute-force attack. Nobody legitimate tries six different usernames at 2 AM.

Inside a 4625 event, look at:

  • Account Name: which username was tried
  • Source Network Address: where the attempt came from
  • Logon Type: how they tried to log in (more on this in a minute)
  • Failure Reason / Status code: why it failed

That last one is surprisingly useful:

0xC000006A  →  Username exists, wrong password
0xC0000064  →  Username does not exist
0xC0000234  →  Account is locked out

If you see lots of 0xC0000064 and then suddenly 0xC000006A, the attacker just found a real username. Things are about to get interesting.

Chapter 2: The Door Opens — Event ID 4624

At 2:47 AM:

02:47:19  4624  An account was successfully logged on
          User: svc_backup
          Logon Type: 10
          Source IP: 185.xxx.xxx.xxx

Event ID 4624 = successful logon.

On its own, 4624 is the most boring event on Earth. Windows generates thousands of them every day. Every time you unlock your laptop, a 4624 is born.

But context changes everything:

  • Same IP that failed 312 times
  • Succeeded 34 minutes later
  • On an account called svc_backup (a service account that should never log in interactively)
  • At 2:47 AM

Many failures followed by a success from the same source is one of the most classic patterns in the SOC. It usually means the brute force worked.

Logon Types: How Did They Get In?

The Logon Type field tells you how someone logged in. These are the ones worth knowing:

Type 2   →  Interactive (someone physically at the keyboard)
Type 3   →  Network (accessing a shared folder, for example)
Type 4   →  Batch (scheduled tasks)
Type 5   →  Service (a service starting)
Type 7   →  Unlock (unlocking the screen)
Type 10  →  RemoteInteractive (RDP)
Type 11  →  Cached credentials (laptop logging in while offline)

Logon Type 10 means RDP. So now we know: someone from that IP logged in over Remote Desktop as svc_backup.

A service account logging in over RDP from the internet at 2:47 AM? This is the point where you put your chai down.

Chapter 3: “I Am Admin Now” — Event ID 4672

Right after the logon:

02:47:19  4672  Special privileges assigned to new logon
          User: svc_backup

Event ID 4672 = this logon got admin-level privileges.

Why? Because somebody, at some point, decided the backup service account “needs admin just in case.”

This is how most companies get hacked. Not through Hollywood-style zero days. Through “just in case.”

Chapter 4: Let’s Run Some Commands — Event ID 4688

Now the attacker starts working:

02:49:03  4688  A new process has been created
          Process: C:\Windows\System32\cmd.exe
          Parent:  C:\Windows\explorer.exe

02:49:11  4688  A new process has been created
          Process: C:\Windows\System32\whoami.exe

02:49:15  4688  A new process has been created
          Process: C:\Windows\System32\net.exe
          Command Line: net user /domain

02:51:40  4688  A new process has been created
          Process: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          Command Line: powershell.exe -nop -w hidden -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBi...

Event ID 4688 = a new process was started.

Look at what they ran:

  • whoami: “Who am I?” The first command almost every attacker runs. Real admins already know who they are.
  • net user /domain: “Who else is in this company?” Reconnaissance.
  • powershell -nop -w hidden -enc ...: No profile, hidden window, encoded command.

That last one deserves its own sentence. Legitimate admins rarely need to hide the window and encode the command so humans cannot read it. When someone is that shy about what they are running, you should be very curious about what they are running.

Important: 4688 does not record the full command line by default. You need to enable the Group Policy setting “Include command line in process creation events.” Without it, you know PowerShell ran, but not what it ran. That is like knowing a phone call happened but not who was on the other end.

Many organizations also deploy Sysmon, a free Microsoft tool that logs process creation (Sysmon Event ID 1), network connections (Event ID 3), and more, with much richer detail. And if PowerShell Script Block Logging is enabled, Event ID 4104 in the PowerShell Operational log will show you the decoded script itself. Very satisfying.

Chapter 5: Making a Spare Key — Event IDs 4720 and 4732

The attacker knows someone might eventually reset svc_backup’s password. So they make their own account:

02:58:22  4720  A user account was created
          New Account: helpdesk_support
          Created By: svc_backup

02:58:30  4732  A member was added to a security-enabled local group
          Member: helpdesk_support
          Group: Administrators

Event ID 4720 = user account created. Event ID 4732 = someone was added to a local group (here, the Administrators group).

Notice the account name: helpdesk_support. Attackers love boring names. Nobody gets suspicious of helpdesk_support. If they named it hacker_was_here, this would be a much shorter blog post.

The real red flags:

  • The account was created by a service account, not by an actual admin
  • At 2:58 AM
  • Immediately added to Administrators
  • With no change ticket anywhere

New admin accounts should be rare and planned. A surprise admin account in the middle of the night is a gift-wrapped alert.

For domain groups like Domain Admins, the equivalent event is 4728 (member added to a global security group). Even scarier.

Chapter 6: Making Sure They Come Back — Event IDs 7045 and 4698

Access is nice. Persistent access is nicer. So the attacker sets up something that survives a reboot:

03:04:51  7045  A service was installed in the system
          Service Name: WindowsUpdateHelper
          Service File: C:\Users\Public\wuhelper.exe
          Start Type: auto start

Event ID 7045 (System log) = a new service was installed.

WindowsUpdateHelper. Sounds official. Except:

  • Real Windows services do not run from C:\Users\Public\
  • Windows Update does not need a “helper” installed at 3 AM by svc_backup

Attackers also love scheduled tasks:

03:06:12  4698  A scheduled task was created
          Task Name: \Microsoft\Windows\SystemHealthCheck
          Action: powershell.exe -enc JABjAGwAaQBlAG4AdAAgAD0A...

Event ID 4698 = a scheduled task was created.

Notice the pattern? Every attacker tries very hard to sound like Microsoft. SystemHealthCheck. WindowsUpdateHelper. MicrosoftEdgeUpdateTaskCore2. It is like a thief wearing a shirt that says “DEFINITELY THE ELECTRICIAN.”

Chapter 7: Cleaning Up — Event ID 1102

Finally, the attacker tries to cover their tracks:

03:11:45  1102  The audit log was cleared
          Subject: helpdesk_support

Event ID 1102 = the Security log was cleared.

Here is the funny part: clearing the Security log creates a log entry saying the log was cleared.

It is like wiping your fingerprints off a glass and then leaving a note on the table that says “I wiped my fingerprints.”

In most environments, 1102 should almost never happen outside of planned maintenance. It is one of the highest-value alerts you can have. (The System log has its own version: Event ID 104.)

And if your logs were already shipped to the SIEM before they were cleared? The attacker just deleted a local copy while the SOC still has the original. Nice try.


Now Put the Story Together

Individually, each of these events can look harmless. Together:

02:13  4625 × 312   Brute-force from 185.xxx.xxx.xxx
         ↓
02:47  4624         Successful RDP logon (Type 10) as svc_backup
         ↓
02:47  4672         Admin privileges assigned
         ↓
02:49  4688         whoami, net user, encoded PowerShell
         ↓
02:58  4720         New account: helpdesk_support
         ↓
02:58  4732         Added to Administrators
         ↓
03:04  7045         Suspicious service installed
         ↓
03:06  4698         Suspicious scheduled task created
         ↓
03:11  1102         Security log cleared

That is not a list of events anymore. That is a break-in, from the first knock to the attempted cover-up.

Same lesson as networking: individual events are clues; the sequence is the story.

Your Cheat Sheet

If you remember nothing else, remember this:

Event IDWhat It MeansWhy You Care
4625Failed logonBrute force, password spraying
4624Successful logonCheck the logon type, source, and time
4672Admin privileges assignedWho is logging in with high privileges?
4648Logon with explicit credentialsPossible lateral movement (runas, etc.)
4740Account locked outOften a side effect of brute force
4688New process createdWhat actually ran on the machine
4720User account createdBackdoor accounts
4732 / 4728Added to local / domain groupPrivilege escalation
7045New service installedPersistence
4698Scheduled task createdPersistence
1102Security log clearedSomeone hiding something

That is about a dozen IDs. Not hundreds.

What This Looks Like in Microsoft Sentinel

In Sentinel, Windows Security events land in the SecurityEvent table. Here is a simple KQL query to catch the brute-force from Chapter 1:

SecurityEvent
| where EventID == 4625
| summarize FailedAttempts = count() by IpAddress, Computer, bin(TimeGenerated, 10m)
| where FailedAttempts > 20
| order by FailedAttempts desc

Translation: “Show me any IP that failed to log in more than 20 times in 10 minutes.”

And to find the scariest pattern, failures followed by a success from the same IP:

let failures = SecurityEvent
    | where EventID == 4625
    | summarize Failures = count() by IpAddress
    | where Failures > 20;
SecurityEvent
| where EventID == 4624
| join kind=inner failures on IpAddress
| project TimeGenerated, Computer, Account, IpAddress, LogonType, Failures

You do not need to be a KQL wizard yet. Just notice that the query is asking the same question you would ask manually: “Did the knocking eventually work?”

What the SOC Analyst Asks

When one of these events fires, ask the same questions as always:

Who?

Which account? Is it a normal user, an admin, or a service account that should never log in interactively?

From Where?

Which IP? Internal or external? A country your company actually operates in?

When?

During business hours, or at 2:47 AM on a Sunday?

How?

Which logon type? RDP from the internet should make you nervous.

What Happened Next?

Did they run commands? Create accounts? Install services? Clear logs?

That last question matters most, again. One 4624 means nothing. One 4624 followed by everything we just saw means you are writing an incident report.

Practice This Yourself

You can see all of this on your own machine:

  1. Open eventvwr.msc and go to Windows Logs → Security.
  2. Lock your screen and log back in. Find your 4624. Check the Logon Type.
  3. Lock your screen and type the wrong password on purpose. Find your 4625.
  4. Click Filter Current Log and filter by Event ID 4624, 4625.

Congratulations. You just investigated yourself. You are both the attacker and the analyst. Please do not escalate the incident to your own manager.

For a bigger playground, build a small home lab with a Windows VM, enable Sysmon and command-line auditing, connect it to a free Microsoft Sentinel trial or any SIEM, and generate some noise. Watching your own “attack” show up in the logs teaches you more than any list of Event IDs ever will.

Final Thoughts

Windows Event Logs can feel overwhelming at first. Thousands of events, cryptic numbers, and an Event Viewer interface that seems to actively dislike you.

But you do not need to understand every event. You need to understand the story an attacker leaves behind:

They knock (4625). They get in (4624). They become powerful (4672). They run things (4688). They make a spare key (4720, 4732). They make sure they can come back (7045, 4698). They try to hide (1102).

For a normal user, Event Viewer is that weird window they opened by accident once.

For a SOC Analyst, it is the diary that answers: “Who got in, how did they do it, and what did they do once they were inside?”

One day you will see a 4624 with Logon Type 10 at 2:47 AM, and before you even finish reading it, you will think: “Wait. Who is RDP-ing into a server at this hour?”

That is when logs stop being noise and start becoming evidence.

YouTube: The Security Insider