Standalone Splunk Enterprise on Azure β real RDP brute-force attacks detected, correlated to an account lockout, and recovered out-of-band.
Full write-up: PROJECT_REPORT.md Β· methodology Β· lessons learned
| Metric | Result |
|---|---|
| Events Ingested | 28,963+ Windows Security Events (total volume) |
| Attacker IPs Isolated | 4 distinct IPs across 3 countries |
| Attack Correlation Built | EventID 4625 (Failed Login) β 4740 (Account Lockout) |
| Incident Response | Emergency account unlock via Azure RunCommand |
| MITRE Techniques | T1110 Brute Force Β· T1078 Valid Accounts |
| Platform | Splunk Enterprise β self-hosted on Azure (Windows Server 2022) |
The 28,963 is the total Windows Security event volume Splunk ingested β the point of that number is that the pipeline was handling all Security events, not that there were 29k attacks. The brute-force attempts themselves are the per-IP counts in the attacker table below.
This lab is a SOC analyst workflow end to end: standing up standalone Splunk Enterprise on Azure, then detecting and correlating brute-force attacks against an internet-exposed Windows Server 2022 host.
Unlike a managed SIEM, this meant hands-on infrastructure: installing Splunk natively on Windows Server, configuring local log ingestion, writing the SPL detections from scratch, and running a live incident response when the attacker actually locked out the admin account. The attackers, the lockout, and the recovery were all real, not simulated.
graph TD
A["Real Attackers<br/>India Β· Panama Β· Europe Β· France"] -->|"RDP Brute Force<br/>Port 3389"| B["SPLUNK-SRV-01<br/>Windows Server 2022<br/>Azure β Australia East"]
B -->|"WinEventLog:Security<br/>EventID 4625 + 4740"| C["Splunk Enterprise<br/>localhost:8000<br/>index=main"]
C -->|"SPL detection queries"| D["SOC Analysis<br/>Attacker profiling<br/>Correlation timeline"]
D -->|"Account locked out"| E["Incident Response<br/>Azure RunCommand<br/>Out-of-band recovery"]
| Component | Technology | Detail |
|---|---|---|
| SIEM | Splunk Enterprise v10.4.0 | Self-hosted on Windows Server 2022 |
| Cloud | Microsoft Azure | Australia East region |
| Log Source | WinEventLog:Security | Native Windows Security Event log |
| Key Event IDs | 4625, 4740, 4688 | Failed login, lockout, process creation |
| Query Language | SPL (Splunk Processing Language) | Custom detection queries β spl-queries/ |
| IR Tool | Azure RunCommand | Out-of-band PowerShell execution |
| MITRE ATT&CK | T1110, T1078 | Brute Force, Valid Accounts |
Windows Server 2022 VM deployed in Azure Australia East as the lab environment. RDP access established to SPLUNK-SRV-01 for hands-on configuration.
Splunk Enterprise v10.4.0 downloaded and installed natively on the Windows Server β not a cloud-managed instance. That meant owning the whole setup: installation, service configuration, port management, and the web UI on localhost:8000.
Configured Splunk to ingest local Windows Security Event logs in real time using the native WinEventLog:Security source type. After exposing the VM to RDP traffic, 28,963+ Security events were ingested within the observation window. Full config: configs/inputs.conf.
[WinEventLog://Security]
index = main
disabled = 0
The detection query returned zero results before RDP exposure β confirming no brute-force activity in the baseline. This matters: it proves the detections fire on real activity, not noise.
index=main sourcetype="WinEventLog:Security" EventCode=4625
| stats count by Source_Network_Address, Account_Name, ComputerName
| sort - count
| rename count as "Failed_Login_Attempts"
Query design note: the search is scoped to
index=mainrather thanindex=*. Wildcarding the index makes Splunk search every data bucket, which is a performance anti-pattern. Sinceinputs.confroutes all Security Events toindex=main, scoping here is both accurate and efficient, and the committed.splfiles useindex=mainto match. (The result screenshots show earlier interactive runs; the committed.splfiles are the tightened versions β scoped toindex=mainand using the correct Splunk field names from the mapping table below.)
Threshold rationale: no threshold on this one β the goal was full attacker profiling. Sorting by count surfaces the highest-velocity attackers first without hiding lower-frequency actors running slower, stealthier sprays.
Result: 4 distinct attacker IPs across 3 countries.
| Source IP | Country (approx.) | Failed Attempts | Targeted Accounts |
|---|---|---|---|
163.47.70.77 |
India | 16 | SPLUNKVM, admin email |
190.2.155.233 |
Panama | 12 | SPLUNKVM |
195.242.214.36 |
Europe | 4 | SPLUNKVM |
86.254.114.246 |
France | 2 | Test |
Geolocation is approximate β the same IP can resolve to different countries across geo-IP databases and over time, so treat country as an indicator rather than fact.
Correlating EventID 4625 (Failed Login) with EventID 4740 (Account Locked Out) reconstructs the full chain β from first attempt to the lockout it caused.
index=main sourcetype="WinEventLog:Security" (EventCode=4625 OR EventCode=4740)
| eval Status=if(EventCode==4625, "Failed Login", "Account Locked")
| table _time, Status, Account_Name, Source_Network_Address, ComputerName
| sort - _time
Result: 18 correlated events. The exact moment the SPLUNKVM account was locked out is visible on the timeline β the attack succeeded.
The attack didn't just trigger alerts β it succeeded. The admin account was locked out, blocking legitimate access to the machine.
The problem: a standard password reset requires logging in, and the lockout had broken that path.
The fix: Azure RunCommand β an out-of-band PowerShell channel that runs at the Azure fabric layer and bypasses the OS login screen entirely.
RBAC requirement: RunCommand needs the Virtual Machine Contributor role (or higher) on the target VM. That's a privileged operation β in production it should be gated behind Privileged Identity Management (PIM) with just-in-time approval, so the recovery channel itself can't be abused.
net user SPLUNKVM [REDACTED_NEW_PASSWORD]The takeaway: an attacker-induced lockout is a self-inflicted denial of service. Every SOC playbook needs an out-of-band recovery channel β RunCommand, Bastion, or Serial Console. If the only recovery path runs through the compromised login, there is no recovery path.
Most labs show detections firing on simulated data where nothing actually breaks. Here the attacker locked out the admin account, which made the IR phase real β out-of-band recovery isn't a concept in this repo, it's a documented execution.
Windows Security Event fields have different names in Splunk and Microsoft Sentinel. Writing the same detection across both means knowing these mappings precisely:
| Field | Splunk SPL | Microsoft Sentinel KQL |
|---|---|---|
| Source IP address | Source_Network_Address |
IpAddress |
| Target account name | Account_Name |
TargetUserName |
| Event code | EventCode |
EventID |
| Timestamp | _time |
TimeGenerated |
| Computer name | ComputerName |
Computer |
I built this table hands-on during the Dual SIEM Detection Lab, where the same detections were written in both SPL and KQL at once.
Unlike Sentinel (managed SaaS), Splunk Enterprise needed VM provisioning, installation, service and port configuration, index creation, and upkeep β closer to what a team running on-prem or hybrid Splunk actually manages day to day.
- Integrate AbuseIPDB / VirusTotal threat-intel feeds via Splunk lookups to tag the attacker IPs with reputation scores
- Build a real-time SOC dashboard β map attacker IPs, track event velocity by EventCode
- Configure Splunk alert actions β push malicious IPs to an Azure NSG deny list on threshold breach
- Extend the MITRE ATT&CK mapping across more of the ingested EventIDs
Splunk-SOC-Detection-Lab/
βββ README.md
βββ PROJECT_REPORT.md # full technical write-up
βββ spl-queries/
β βββ 01_bruteforce_detection.spl
β βββ 02_attack_lifecycle_correlation.spl
β βββ 03_baseline_verification.spl
βββ configs/
β βββ inputs.conf
βββ docs/
β βββ methodology.md
β βββ lessons_learned.md
βββ screenshots/ # 10 screenshots β build, detection, correlation, IR
| Project | Description |
|---|---|
| Dual SIEM Detection Lab | The same detections rebuilt in both KQL and SPL β cross-platform parity on live traffic |
| Azure Sentinel Honeypot SIEM | 1,400+ real brute-force attempts captured and mapped globally |
| SOAR Pipeline β Sentinel to Jira | Automated incident ticketing from Sentinel |
Built and documented by Shankar Baral β junior SOC analyst in Canberra, Australia. More about me and my other labs: github.com/shank078 Β· LinkedIn









