011 · Security · Infrastructure
Mini SIEM
A small log monitoring and intrusion detection system I wrote for a single Linux server. It reads SSH and nginx logs and raises alerts based on rules.

Problem
I wanted to see what was actually attacking the server my site runs on, without paying for a SIEM or running a log stack that needs more memory than the site itself.
What I did
- Wrote a reader that follows SSH and nginx logs and picks up where it left off.
- Wrote YAML rules that catch attempts like brute force and web scanning; every rule is mapped to MITRE ATT&CK.
- Alerts go to Telegram in batches; events are kept in SQLite and shown on a read-only dashboard with an attack map.
Gallery
Flow
- SSH and nginx logs
- Rule engine
- SQLite
- Dashboard · Telegram
Result
In two weeks on my own server it recorded 8,398 SSH login attempts and 10,648 suspicious HTTP requests, which turned into 793 alerts. 43% of the SSH attempts used the username root. It runs next to the site as a read-only guest and opens no public ports.