SecFlow is a multi-layered security hardening framework that offers a step-by-step approach (Tier 1 → Tier 5+) to gradually increase your server’s security posture.
-
Tier 1 – Basic firewall (UFW), new sudo user, simple kernel tuning.
-
Tier 2 – Fail2Ban, optional passwordless SSH, additional kernel tuning.
-
Tier 3 – Basic rate-limited Auditd, Rkhunter, Nginx.
-
Tier 4 – Critical immutable files, LVM snapshot, AppArmor/SELinux.
-
Tier 5 – Suricata IDS, Falco, honeypot integration, advanced logging.
Each layer logs its state and actions in the file /etc/secure-me.json (JSON format), so you can see which layer is loaded and what changes are made. Scripts can also automatically load missing sublayers.
- Clone the repository:
git clone https://github.com/imcanugur/SecFlow.git