Swedenkonstruktoid/ansible-role-hardening
Ansible role to apply a security baseline. Systemd edition.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tháng
#1 Repository Của Tháng
#1 Repository Của Tháng
🔒 Ansible Role Hardening — Baseline bảo mật dựa trên systemd
Ansible role để áp dụng baseline bảo mật cho server. Systemd edition.
Konstruktoid/ansible-role-hardening là một Ansible role chuyên áp dụng baseline bảo mật lên server chạy AlmaLinux, Debian hoặc Ubuntu. Vai trò này tập trung vào cấu hình systemd và yêu cầu Ansible phiên bản 2.18 trở lên. Dự án được duy trì bởi konstruktoid, cũng là người xây dựng các hardened AMI cho AWS và Azure thông qua Packer kết hợp chính role này.
Vai trò hỗ trợ đầy đủ các phiên bản hệ điều hành mới nhất: AlmaLinux 9, AlmaLinux 10, Debian 12 (Bookworm), Debian 13 (trixie), Ubuntu 24.04 (Noble Numbat) và Ubuntu 26.04 (Resolute Raccoon).
✨ Điểm nổi bật
- Hệ điều hành đa dạng: hỗ trợ AlmaLinux 9/10, Debian 12/13, Ubuntu 24.04/26.04
- Tập trung systemd: cấu hình journald, logind, coredump, login và các thành phần systemd khác
- SSH hardening: cho phép cấu hình AllowUsers, AuthenticationMethods, PasswordAuthentication, Match blocks theo người dùng, cập nhật moduli
- Firewall UFW thông minh: không reset toàn bộ rule mỗi lần chạy mà chỉ xóa các rule không có comment
ansible managed, giữ nguyên cấu hình thủ công - Auditd integration: template rules auditd riêng để ghi log bảo mật hệ thống
- PAM hardening: cấu hình common-auth, common-account, common-password, login, faillock
- Kernel lockdown: bật kernel lockdown mode để hạn chế quyền root
- SLSA artifact: có xác minh nguồn gốc build thông qua SLSA framework
💡 Vì sao đáng chú ý
Vai trò này không chỉ là tập hợp các task Ansible rời rạc mà xây dựng một hệ thống cấu hình bảo mật toàn diện, từ PAM, SSH, firewall đến kernel. Cách xử lý UFW thông minh — chỉ xóa các rule không được quản lý bởi Ansible — giúp tránh gián đoạn mạng khi chạy lại playbook nhiều lần.
Mỗi tùy chọn đều có thể cấu hình qua biến trong defaults/main.yml và meta/argument_specs.yml, cho phép linh hoạt bật/tắt từng phần tùy theo nhu cầu. Dự án cũng cung cấp hình ảnh AMI đã hardened sẵn cho AWS và Azure, cho phép triển khai nhanh mà không cần cấu hình thủ công.
#Ansible #Security #Hardening #Systemd #OpenSource #TiniX
Similar Projects
Discover other similar projects and AI models.
An evolving how-to guide for securing a Linux server.
This repo hosts Prowler OSS (CLI and Local Server). Prowler is the world’s most widely used open-source cloud security platform that automates security and compliance across any cloud environment for Humans and AI Agents.
An open-source user mode debugger for Windows. Optimized for reverse engineering and malware analysis.
Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
This Ansible collection provides battle tested hardening for Linux, SSH, nginx, MySQL
Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.