Skip to content

RasyKy/SSHAnalyzer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logAnalyzer

We are building a CLI tool called logAnalyzer that read and analyze log files to find failed login attempts. This analyzer can be used in both terminal and as web interface. for the web interface you can just drag and drop your log files and the system will analyze for you. We are making this using python.

LogAnalyzer

LogAnalyzer is a Python-based security tool designed to detect brute force attacks by parsing Linux SSH logs (auth.log).

It separates the Core Logic from the Interface, making it capable of running as a CLI tool (included) or acting as the engine for a Web Dashboard.

Features

  • ** Automated Parsing:** Instantly reads raw auth.log files.
  • ** Brute Force Detection:** Aggregates failed login attempts by IP address.
  • ** User Tracking:** Identifies exactly which usernames are being targeted (e.g., root, admin).
  • ** Clean Output:** Displays a sorted, readable table of top offenders.
  • ** Modular Design:** The logic (analyzer.py) is decoupled for easy integration into Flask/Django apps.

Project Structure

LogAnalyzer folder: analyzer.py # The Core Logic (Brain) - Shared Library cli.py # The CLI Tool (Interface) - Run this! test.log # Sample data for testing

Project Structure

  • Prerequisites Python 3.x installed

  • Usage

  1. Clone the repository: git clone https://github.com/cheetahh1/LogAnalyzer.git cd LogAnalyzer

  2. Run the tool against a log file: python cli.py test.log

  3. or you can just pip install it so u can use the whole library pip install git+https://github.com/cheetahh1/LogAnalyzer.git

About

A lightweight Python CLI tool and Logic Engine for analyzing SSH brute force attacks. Parses auth.log files to identify attackers, count failed attempts, and track targeted accounts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Vue 63.3%
  • TypeScript 18.4%
  • Python 16.6%
  • HTML 1.7%