From Event ID Decoder to Pipeline: Getting Windows Security Logs into Tiger Cloud
Milestone 1 of 2 in my SOC home lab series.
This week I took 2,843 Windows Security events from a public attack simulation, loaded them into a time-series database, and asked them what happened.
The answer was a password spray that failed. Seven accounts were tried in 12 milliseconds, and none of them broke. But getting to "failed" took more than reading a log. It took three queries and being careful about what each one could actually prove.
There are plenty of tools that tell you what Event ID 4625 means. I don't want to build another one. I want to build an investigation-focused Event ID Decoder: one that helps someone connect events, spot what doesn't belong, and explain findings with evidence. This lab is where that starts.
Why Event IDs matter
Windows records security activity as numbered events. Two of them are the backbone of authentication monitoring:
4625, failed logon. Every wrong password, unknown username, or disabled account shows up here. The Sub Status code tells you why it failed. 0xC000006A means the username was valid, but the password was wrong.
4740, account lockout. Fail too many times on one account, and Windows locks it. A burst of 4740s is often the loudest sign of a brute-force attack.
In this dataset, there are seven 4625s and zero 4740s. That absence turned out to be one of the most interesting findings. A password spray tries one or two passwords across many accounts, so no single account fails enough times to lock. No lockout doesn't mean nothing happened. Here, it means the attacker stayed under the threshold on purpose.
From Decoder to pipeline
In October, I built the Event ID Decoder for MLH Global Hack Week: Hacktoberfest. It's a searchable, plain-English reference for 26 Windows Security event IDs. The 4625 card explains the failure codes and how to tell password spraying, username guessing, and brute force apart.
Writing that card raised a question I couldn't answer from a reference page: what does a spray actually look like in real logs? So the Decoder became the reference layer, and this lab became the place to find out.
The pipeline
The data is PurpleSharp Active Directory Playbook I from OTRF Security-Datasets: a recorded simulation of attacks against a lab Active Directory domain. It's public, labeled, and built for exactly this kind of practice.
The path from raw log to answer:
Raw JSON. About 26,000 events, one JSON object per line.
Python parser. Reads the file line by line, keeps only the Security channel, and pulls out 12 fields: timestamp, event ID, host, target and subject accounts, IP, logon type, status, sub-status, workstation, and process.
CSV. 2,843 Security events, validated before going anywhere else.
TimescaleDB on Tiger Cloud. Loaded into a hypertable partitioned on event time, so queries over time stay fast as the data grows.
The counts matched at every stage:
Check | Parser (CSV) | Database |
Security events | 2,843 | 2,843 |
Failed logons (4625) | 7 | 7 |
That check matters more than it looks. If the numbers don't match, every query after it is answering the wrong question.
What the queries showed
Query 1: the failed logons
I grouped every 4625 by the account it targeted.

Seven accounts, one attempt each, all with Sub Status 0xC000006A (wrong password), between 08:29:55.210 and 08:29:55.222 UTC. That's a 12-millisecond span. No person types seven passwords that fast. This is a tool.
Two details stood out. One of the targets, pgustavo, is the account the tool was running as.
The spray tried its own operator's account along with everyone else's, which points to an automated list rather than hand-picked targets. And two targets, sysmonsvc and nxlogsvc, look like service accounts for the logging agents.
Query 2: the timeline
Next I put the failures in context: every successful (4624) and failed (4625) logon involving pgustavo or WORKSTATION5, in time order.

The 26 rows fall into three phases:
Before: two pgustavo network logons to the domain controller, MORDORDC.
The spray: the seven failures on WORKSTATION5.
After: 17 more pgustavo network logons to MORDORDC, WORKSTATION6, and WORKSTATION7, all within about 13 seconds.
Every success belongs to pgustavo, the account that was already in use.
Query 3: did the spray work?
The real question: did any of the other six sprayed accounts ever log on successfully?

Zero rows. The most important query in this lab returned nothing, and that nothing is the finding.
What the evidence supports, and what it doesn't
A suspicious pattern is a clue, not a conclusion. So I split what I found into three parts:
Observed | Seven accounts, one failed attempt each, from a single process on WORKSTATION5, within 12 ms. No lockouts. No source IP on the failures. |
Supports | Automated password spraying that did not succeed. The network logons that followed used pgustavo, an account already in hand, not newly stolen credentials. |
Doesn't establish | What pgustavo actually did on those three hosts. A 4624 record shows that a logon happened, not what came after it. |
Answering that last question would take other logs: file-share access, PowerShell or WinRM activity, or Sysmon. That's the honest limit of Windows Security events alone, and it's what I want the next stage of this lab to explore.
One more limit worth stating: these conclusions cover the hosts and the minute this dataset captured. They don't prove those credentials were never used anywhere else.
The empty source IP also taught me something. A reader on X suggested a great first rule: several failures for one account, then a success from the same IP. In this attack, the IP field was blank on every failure, because the tool ran locally. That rule wouldn't have fired. The source was still visible, just in different fields: the workstation, the subject account, and the process path C:\Users\pgustavo\Downloads\PurpleSharp.exe.
What broke
Not everything went to plan:
No free tier at sign-up. I expected Tiger Cloud's free plan. My new account landed on a 30-day Performance trial with credit, and no free option appeared. It's fine for now, but I'll need to decide where the lab lives before the trial ends.
The @timestamp column. The source field name starts with @, which SQL makes you quote everywhere. I renamed the whole CSV header to snake_case to match the table. Next, the parser should write those names directly.
The JSON wasn't one JSON document. It's newline-delimited: one object per line. Load it as a single file, and it fails. Read it line by line, and it works.
Nested repos in VS Code. A cloning mix-up created two duplicate repositories inside my project folder. I removed them and pointed VS Code back at the right one.
Day 3 slipped a day. Life happened. I finished the database work the morning this post was due.
None of these were dramatic. All of them would have cost the next person an hour, which is why they're here.
How I'd explain this in a SOC interview
"Walk me through how you'd triage a burst of failed logons."
First, I'd confirm the scope: how many accounts, how many attempts each, over what time window. Here it was seven accounts, one attempt apiece, inside 12 milliseconds — that shape alone tells me it's automated and it's a spray, not a brute force. Brute force hammers one account; a spray tries one password across many, staying under the lockout threshold on purpose. The zero 4740 lockouts confirmed that was the intent.
Then I'd check the failure reason before I conclude anything. Every 4625 carried Sub Status 0xC000006A — valid username, wrong password. That matters: it means the attacker already had a working list of real accounts, which is a different problem than someone guessing blindly.
The question that actually decides severity is "did it work?" So I'd pivot from the failures to successes for those same accounts. Mine returned zero rows — none of the sprayed accounts ever logged on. That null result is the finding, and I'd state it as one.
The part I'd be most careful about is the line between suspicious and confirmed. The successful logons I did see all belonged to pgustavo — an account already in use before the spray, not a credential the spray stole. I wouldn't claim compromise the evidence doesn't support. I'd flag the limit out loud: a 4624 tells me a logon happened, not what the account did next. Confirming that needs process, file-share, or PowerShell logs — which is exactly where I'd escalate or pull more telemetry.
Next: Milestone 2
This milestone got the data in and answered one question by hand. The next one makes the database do the watching:
Continuous aggregates that roll up failed logons per account, per host, and per hour.
Statistical baselining to flag spikes that don't fit normal activity — the same anomaly-detection idea I used in atmospheric science, now pointed at authentication logs.
Grafana dashboards to show logon trends and flagged spikes at a glance.
The long-term goal is still the Decoder: from looking up one event, to connecting a sequence, to explaining what the evidence supports.
Links and credits
Lab repo: github.com/Tash925/soc-home-lab (parser, schema, and all three queries, each with its expected result)
Dataset: PurpleSharp Active Directory Playbook I (SDWIN-201022042947), from the OTRF Security-Datasets project
This lab uses public attack-simulation data only. No real incidents, and nothing from any employer.


Comments