Skip to content

About

A Python Blue Team tool that analyzes Linux authentication logs to detect suspicious login activity and potential brute-force attempts, producing risk-scored summaries and structured JSON reports.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔎 Auth Log Analyzer (Python)

📌 Overview

A lightweight Blue Team / SOC-style Python tool that analyzes Linux authentication logs and produces:

  • Summary of failed and successful SSH logins
  • Top offending IP addresses
  • Top targeted usernames
  • A timestamped JSON report for evidence and documentation

Works well on Ubuntu and WSL.


🧪 Risk Scoring

The tool detects possible brute-force behavior using simple thresholds:

  • [MEDIUM RISK] if failed attempts from one IP/user ≥ 5
  • [HIGH RISK] if failed attempts from one IP/user ≥ 15

You can tune thresholds:

python3 src/analyze_auth_log.py --ip-medium 3 --ip-high 10 --user-medium 3 --user-high 10



## 🔧 Tools Used
- Python 3 (stdlib only)
- Linux auth logs (`/var/log/auth.log`, `/var/log/secure`, or `/var/log/syslog`)
- Git & GitHub

---

## 📂 Project Structure
```text
auth-log-analyzer/
├── README.md
├── requirements.txt
├── reports/
│   └── auth_report_YYYY-MM-DD_HH-MM.json
└── src/
    └── analyze_auth_log.py

About

A Python Blue Team tool that analyzes Linux authentication logs to detect suspicious login activity and potential brute-force attempts, producing risk-scored summaries and structured JSON reports.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages