Skip to content

learnwithvidya/ai-security-log-analyzer

Repository files navigation

AI Security Log Analyzer

Python Flask License Status

AI-assisted SSH authentication log analyzer for detecting suspicious activity in Linux authentication logs.

This tool analyzes uploaded SSH log files and automatically identifies indicators of potential attacks such as brute-force attempts, root access targeting, username enumeration patterns, and suspicious authentication failures.

The system generates a structured incident analysis report, attacker profiling insights, and visual security metrics.


Features

  • Upload Linux SSH authentication logs
  • Detect suspicious authentication patterns
  • Identify brute-force attack attempts
  • Detect root access targeting
  • Analyze username targeting patterns
  • Generate attacker profiling insights
  • Display severity distribution and attack statistics
  • Produce human-readable incident analysis summaries

Dashboard Overview

The dashboard provides:

  • Total log statistics
  • Suspicious event counts
  • Risk score estimation
  • Top attacking IP sources
  • Severity distribution chart
  • Attacker intelligence profiling
  • Detailed event inspection table

Project Structure

FileStructure


Installation

  1. Clone the repository:
  1. Install required Python Libraries
  • pip install -r requirements.txt
  1. Running the application
  • python app.py
  1. Open browser and enter http://127.0.0.1:5000

Dashboard Screenshot

Dashboard

Analysis Screenshot

Analysis

Future Improvements

Planned enhancements include:

  • Real-time log monitoring
  • Machine learning based anomaly detection
  • SIEM integration
  • Automated incident response suggestions
  • Support for additional log formats (Syslog, Apache, Nginx)
  • Threat intelligence enrichment for IP addresses

Releases

No releases published

Packages

 
 
 

Contributors