This project is a basic Intrusion Detection System (IDS) that analyzes Apache/Nginx web server access logs to detect suspicious activities such as brute force login attempts, directory traversal attacks, and high-frequency request spikes.
- β Parses real Apache-style log files using Python
- π Detects:
- Brute force login attempts (
401/403) - Directory traversal patterns (
../) - High request rate from specific IPs
- Brute force login attempts (
- π Uses
pandasfor data handling and analysis - π‘ Easy to extend for more advanced detections
web-log-ids/ βββ main.py # Main detection script βββ sample_logs/ β βββ access.log # Example log file βββ requirements.txt # Python dependencies βββ README.md # Project documentation βββ .gitignore
git clone https://github.com/vardhan232/web-log-ids.git
cd web-log-ids
pip install -r requirements.txt
python3 main.py
=== Brute Force IPs ===
192.168.1.10 4
=== Directory Traversal Attempts ===
192.168.1.20 GET /../../etc/passwd
=== Top 5 IPs by Request Count ===
192.168.1.10 6
192.168.1.30 2
...
---
Let me know once itβs added! I can also help you make a GitHub project banner or badge if you want to make the repo stand out visually.