Skip to content

black-asuna/log-watcher-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Log Watcher Lite

Python License Status Built by Soeli Llinas

Log Watcher Lite is a Python-based mini SOC tool that scans system authentication logs (auth.log) for signs of suspicious activity like failed logins, brute force attempts, and logins from blacklisted IP addresses.

This project simulates the early steps of log analysis, often performed in real-world Security Operations Centers (SOCs), and is built to reinforce key cybersecurity analyst skills.


Features

  • Detects:
    • Multiple failed SSH login attempts
    • Logins from blacklisted IPs
    • Privilege escalation via sudo
    • Brute-force attacks (3+ failed logins from the same IP)
  • Outputs alerts in a structured .csv file
  • Clean and customizable Python code

Project Structure

|-----logs/

| ----- sample_auth.log

|-----blacklist.txt

|-----parser.py

|-----alerts.csv (generated)

|-----README.md


How to Run

  1. Clone the repository:
git clone https://github.com/black-asuna/log-watcher-lite.git
  1. Run the script:
python parser.py
  1. View alerts.csv for detection output.

Sample Output

When the script is run on the included log file, the tool generates this alert summary:

Event Type Source IP
Failed Login 192.168.1.4
Failed Login 192.168.1.4
Failed Login 192.168.1.4
Failed Login 45.67.89.123
Privilege Escalation N/A
Brute Force Suspected 192.168.1.4

The output is saved as alerts.csv and can be opened in any spreadsheet program or parsed by other automation tools.


Learning Objectives

This project was created to demonstrate:

  • Log parsing and pattern detection
  • API-free cybersecurity scripting
  • Realistic simulation of SOC alerting logic
  • Command line automation and output handling

Author

Soeli Llinas

Aspiring Cybersecurity Analyst | Python & Threat Intelligence Enthusiast

| Gurabo, PR | 🌐 LinkedIn

Future Improvements

  • Detect brute-force attempts by IP over time
  • Flag privilege escalation from unusual accounts
  • Extend support for real-time log monitoring

License

MIT License

About

Python script that reads mock security logs, detects suspicious patterns (e.g., brute force, failed logins, blacklisted IPs), and raises alerts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages