This playbook provides standard operating procedures (SOPs) for detecting, investigating, responding to, and closing SSH brute-force attacks in a Security Operations Center (SOC).
It is designed for Tier 1 / Tier 2 SOC Analysts to ensure fast, consistent, and effective incident handling.
- Playbook Name: SSH Brute-Force Attack Response
- Incident Type: Unauthorized Access Attempt
- Severity Level: Medium
- SOC Level: L1 / L2
- Last Updated:
Initiate this playbook when any of the following conditions are met:
- More than 5 failed SSH login attempts from a single IP within 5 minutes
- Repeated login failures for multiple user accounts
- SIEM alert indicating SSH authentication failures
- Linux Authentication Logs (
/var/log/auth.log) - SIEM Alerts (Splunk / ELK)
- Firewall logs
- IDS/IPS alerts (if available)
- Confirm the alert is related to SSH authentication failures
- Verify timestamp, hostname, and affected service
sudo grep "Failed password" /var/log/auth.log
Confirm:
Repeated failures
Same source IP
Same or multiple usernames
Step 3: Identify Indicators of Compromise (IOCs)
sudo grep "Failed password" /var/log/auth.log | awk '{print $(NF-3)}'
Collect:
Source IP address
Target username(s)
Time range of the activity
Step 4: Check for Successful Logins
sudo grep "Accepted password" /var/log/auth.log
β
If no successful login β continue response
β If successful login found β escalate severity
β οΈ Impact Assessment
Determine:
Was access gained? (Yes / No)
Any privilege escalation?
Any suspicious post-login activity?
Any internal systems affected?
π οΈ Response & Containment Actions
Immediate Actions
Block malicious IP address using firewall:
sudo ufw deny from <MALICIOUS_IP>
Monitor logs for continued attempts
Additional Hardening (If Required)
Enable account lockout policy
Disable password-based SSH login
Enable SSH key-based authentication
π Escalation Criteria
Escalate to SOC Tier 2 / Incident Response Team if:
Successful SSH login is detected
Multiple hosts are targeted
Internal IP addresses are involved
Privileged accounts are targeted
π§Ή Recovery Steps
Reset affected user credentials (if compromised)
Review system logs for anomalies
Apply security patches
Implement additional monitoring rules
β
Closure Criteria
Close the incident when:
No further malicious activity observed for 24 hours
Malicious IPs are blocked
System integrity is confirmed
Incident report is completed
π Documentation & Evidence
Ensure the following are documented:
Incident Report ID
Source IP addresses
Log screenshots
Actions taken
Lessons learned
π Lessons Learned & Improvements
Deploy fail2ban
Restrict SSH access using firewall rules
Monitor SSH logs via SIEM
Apply rate limiting
π§ MITRE ATT&CK Mapping
Tactic: Credential Access
Technique: Brute Force (T1110)
π€ Playbook Owner
SOC Analyst: Archana Malviya
π Notes
This playbook can be reused and adapted for:
FTP brute-force
RDP brute-force
Web login brute-force
---
### β
This playbook shows recruiters that you understand:
β SOC workflows
β Escalation logic
β Real incident handling
β Professional documentation
---
### Next (recommended)
π I can now:
1οΈβ£ Review your **incident-report.md**
2οΈβ£ Convert this playbook into **Splunk alert + playbook**
3οΈβ£ Create **SOC interview questions** from THIS playbook
Just tell me π