Lab02: How SOC Analysts Detect Brute Force Attacks in 60 Seconds
What is a Brute Force Attack? A Simple SOC Explanation
A brute force attack is when an attacker tries many passwords quickly to guess your login. As a SOC analyst, your job is to spot this pattern early.
In this lab, I simulated failed logins on my local lab (127.0.0.1) to show how we detect it.
Step 1: View Authentication Logs
In Linux, failed logins are stored in /var/log/auth.log. We can filter for failures:
cat /var/log/auth.log | grep Failed
This command shows lines like:
Failed password for admin from 192.168.1.15 port 5321
Step 2: Spot the Attack Pattern
A normal user fails 1-2 times. An attacker fails 5, 10, 20 times in 60 seconds from the SAME IP.
In my lab simulation (see terminal image above):
5 failed logins from 192.168.1.15 in 60 seconds
That IP is scanning common usernames: admin, root.
Step 3: The Defensive Rule
In a real SOC, we create a detection rule:
If >5 failed logins from one IP in 60 seconds
Then: Block IP + Alert SOC
This is MITRE ATT&CK Technique T1110 - Brute Force.
My iPhone Lab Setup:
I did this entire detection lab from my iPhone using iSH app. No laptop needed. You can learn SOC with just your phone.
Lesson Learned:
You don't need to hack to be a SOC analyst. You need to THINK like an attacker and build rules to stop them.
Next Lab: Lab03 will show how to block this IP automatically with a simple Python script.
---
Disclaimer: All IPs and logs in this tutorial are from my safe lab (127.0.0.1 and 192.168.1.15 private lab IP). No external systems were scanned. For educational, defensive purposes only.

Comments
Post a Comment