ozaydin.dev

Open to long-term internships

Writing

A small log monitor for a single server: mini-siem

I built a small system that watches a single Linux server's logs and sends suspicious activity to Telegram.

I wrote a small log monitoring and intrusion detection system to see what is actually attacking my server. I run it on a small VPS next to a live website.

What it does

It follows the SSH and nginx logs and runs every line through rules written in YAML. When a rule fires, an alert goes to Telegram. Alerts are sent in batches, so an attack flood produces one message every few seconds instead of thousands. Each rule is mapped to MITRE ATT&CK. Events are stored in SQLite, and there is a read-only dashboard with a map of the attacks.

Acting like a guest

Since a live website runs on the same VPS, I designed mini-siem as a read-only guest. It does not touch nginx, SSH or the firewall, and it opens no public port.

Rule windows use event time instead of wall-clock time. So when I replay an old log from the start, it raises the same alerts a live run would, which makes the rules easier to test.

Related project · 011 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.