Skip to content

Ronoh12/auth-log-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages