2026-04-05 16:13:09 | INFO | [1/5] Mise à jour système
2026-04-05 16:13:09 | INFO | Commande: sudo apt-get update
2026-04-05 16:13:09 | INFO | [dry-run] sudo apt-get update
2026-04-05 16:13:09 | INFO | Commande: sudo apt-get dist-upgrade -y
2026-04-05 16:13:09 | INFO | [dry-run] sudo apt-get dist-upgrade -y
2026-04-05 16:13:09 | INFO | Commande: sudo apt-get autoremove -y
2026-04-05 16:13:09 | INFO | [dry-run] sudo apt-get autoremove -y
2026-04-05 16:13:09 | INFO | Commande: sudo apt-get autoclean
2026-04-05 16:13:09 | INFO | [dry-run] sudo apt-get autoclean
2026-04-05 16:13:09 | INFO |   -> OK (0.0s)
2026-04-05 16:13:09 | INFO | [2/5] Audit Lynis
2026-04-05 16:13:09 | INFO | Commande: sudo lynis audit system --quick
2026-04-05 16:13:09 | INFO | [dry-run] sudo lynis audit system --quick
2026-04-05 16:13:09 | INFO | Ecriture du fichier /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-161309-lynis.log
2026-04-05 16:13:09 | INFO | [dry-run] write /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-161309-lynis.log
2026-04-05 16:13:09 | INFO |   -> OK (0.0s)
2026-04-05 16:13:09 | INFO | [3/5] Vérification rootkits
2026-04-05 16:13:09 | INFO | Commande: sudo apt-get install -y chkrootkit
2026-04-05 16:13:09 | INFO | [dry-run] sudo apt-get install -y chkrootkit
2026-04-05 16:13:09 | INFO | Commande: sudo rkhunter --update
2026-04-05 16:13:09 | INFO | [dry-run] sudo rkhunter --update
2026-04-05 16:13:09 | INFO | Commande: sudo rkhunter --propupd
2026-04-05 16:13:09 | INFO | [dry-run] sudo rkhunter --propupd
2026-04-05 16:13:09 | INFO | Commande: sudo rkhunter --check --skip-keypress --report-warnings-only
2026-04-05 16:13:09 | INFO | [dry-run] sudo rkhunter --check --skip-keypress --report-warnings-only
2026-04-05 16:13:09 | INFO | Commande: sudo chkrootkit -q
2026-04-05 16:13:09 | INFO | [dry-run] sudo chkrootkit -q
2026-04-05 16:13:09 | INFO | Ecriture du fichier /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-161309-rootkit-report.json
2026-04-05 16:13:09 | INFO | [dry-run] write /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-161309-rootkit-report.json
2026-04-05 16:13:09 | INFO |   -> OK (0.0s)
2026-04-05 16:13:09 | INFO | [4/5] Vérification / autoconfig du firewall
2026-04-05 16:13:09 | INFO | Commande: sudo ufw default deny incoming
2026-04-05 16:13:09 | INFO | [dry-run] sudo ufw default deny incoming
2026-04-05 16:13:09 | INFO | Commande: sudo ufw default allow outgoing
2026-04-05 16:13:09 | INFO | [dry-run] sudo ufw default allow outgoing
2026-04-05 16:13:09 | INFO | Commande: sudo ufw status
2026-04-05 16:13:09 | INFO | [dry-run] sudo ufw status
2026-04-05 16:13:09 | INFO | Commande: sudo ufw allow 22/tcp
2026-04-05 16:13:09 | INFO | [dry-run] sudo ufw allow 22/tcp
2026-04-05 16:13:09 | INFO | Commande: sudo ufw --force enable
2026-04-05 16:13:09 | INFO | [dry-run] sudo ufw --force enable
2026-04-05 16:13:09 | INFO |   -> OK (0.0s)
2026-04-05 16:13:09 | INFO | [5/5] Rotation des logs
2026-04-05 16:13:09 | INFO | Ecriture du fichier /etc/logrotate.d/securecheck
2026-04-05 16:13:09 | INFO | [dry-run] write /etc/logrotate.d/securecheck
2026-04-05 16:13:09 | INFO |   -> OK (0.0s)
2026-04-05 16:13:28 | INFO | [1/5] Mise à jour système
2026-04-05 16:13:28 | INFO | Commande: sudo apt-get update
2026-04-05 16:13:28 | INFO | [dry-run] sudo apt-get update
2026-04-05 16:13:28 | INFO | Commande: sudo apt-get dist-upgrade -y
2026-04-05 16:13:28 | INFO | [dry-run] sudo apt-get dist-upgrade -y
2026-04-05 16:13:28 | INFO | Commande: sudo apt-get autoremove -y
2026-04-05 16:13:28 | INFO | [dry-run] sudo apt-get autoremove -y
2026-04-05 16:13:28 | INFO | Commande: sudo apt-get autoclean
2026-04-05 16:13:28 | INFO | [dry-run] sudo apt-get autoclean
2026-04-05 16:13:28 | INFO |   -> OK (0.0s)
2026-04-05 16:13:28 | INFO | [2/5] Audit Lynis
2026-04-05 16:13:28 | INFO | Commande: sudo lynis audit system --quick
2026-04-05 16:13:28 | INFO | [dry-run] sudo lynis audit system --quick
2026-04-05 16:13:28 | INFO | Ecriture du fichier /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-161328-lynis.log
2026-04-05 16:13:28 | INFO | [dry-run] write /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-161328-lynis.log
2026-04-05 16:13:28 | INFO |   -> OK (0.0s)
2026-04-05 16:13:28 | INFO | [3/5] Vérification rootkits
2026-04-05 16:13:28 | INFO | Commande: sudo apt-get install -y chkrootkit
2026-04-05 16:13:28 | INFO | [dry-run] sudo apt-get install -y chkrootkit
2026-04-05 16:13:28 | INFO | Commande: sudo rkhunter --update
2026-04-05 16:13:28 | INFO | [dry-run] sudo rkhunter --update
2026-04-05 16:13:28 | INFO | Commande: sudo rkhunter --propupd
2026-04-05 16:13:28 | INFO | [dry-run] sudo rkhunter --propupd
2026-04-05 16:13:28 | INFO | Commande: sudo rkhunter --check --skip-keypress --report-warnings-only
2026-04-05 16:13:28 | INFO | [dry-run] sudo rkhunter --check --skip-keypress --report-warnings-only
2026-04-05 16:13:28 | INFO | Commande: sudo chkrootkit -q
2026-04-05 16:13:28 | INFO | [dry-run] sudo chkrootkit -q
2026-04-05 16:13:28 | INFO | Ecriture du fichier /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-161328-rootkit-report.json
2026-04-05 16:13:28 | INFO | [dry-run] write /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-161328-rootkit-report.json
2026-04-05 16:13:28 | INFO |   -> OK (0.0s)
2026-04-05 16:13:28 | INFO | [4/5] Vérification / autoconfig du firewall
2026-04-05 16:13:28 | INFO | Commande: sudo ufw default deny incoming
2026-04-05 16:13:28 | INFO | [dry-run] sudo ufw default deny incoming
2026-04-05 16:13:28 | INFO | Commande: sudo ufw default allow outgoing
2026-04-05 16:13:28 | INFO | [dry-run] sudo ufw default allow outgoing
2026-04-05 16:13:28 | INFO | Commande: sudo ufw status
2026-04-05 16:13:28 | INFO | [dry-run] sudo ufw status
2026-04-05 16:13:28 | INFO | Commande: sudo ufw allow 22/tcp
2026-04-05 16:13:28 | INFO | [dry-run] sudo ufw allow 22/tcp
2026-04-05 16:13:28 | INFO | Commande: sudo ufw --force enable
2026-04-05 16:13:28 | INFO | [dry-run] sudo ufw --force enable
2026-04-05 16:13:28 | INFO |   -> OK (0.0s)
2026-04-05 16:13:28 | INFO | [5/5] Rotation des logs
2026-04-05 16:13:28 | INFO | Ecriture du fichier /etc/logrotate.d/securecheck
2026-04-05 16:13:28 | INFO | [dry-run] write /etc/logrotate.d/securecheck
2026-04-05 16:13:28 | INFO |   -> OK (0.0s)
2026-04-05 18:24:45 | INFO | [1/5] Mise à jour système
2026-04-05 18:24:45 | INFO | Commande: sudo apt-get update
2026-04-05 18:24:45 | INFO | [dry-run] sudo apt-get update
2026-04-05 18:24:45 | INFO | Commande: sudo apt-get dist-upgrade -y
2026-04-05 18:24:45 | INFO | [dry-run] sudo apt-get dist-upgrade -y
2026-04-05 18:24:45 | INFO | Commande: sudo apt-get autoremove -y
2026-04-05 18:24:45 | INFO | [dry-run] sudo apt-get autoremove -y
2026-04-05 18:24:45 | INFO | Commande: sudo apt-get autoclean
2026-04-05 18:24:45 | INFO | [dry-run] sudo apt-get autoclean
2026-04-05 18:24:45 | INFO |   -> OK (0.0s)
2026-04-05 18:24:45 | INFO | [2/5] Audit Lynis
2026-04-05 18:24:45 | INFO | Commande: sudo lynis audit system --quick
2026-04-05 18:24:45 | INFO | [dry-run] sudo lynis audit system --quick
2026-04-05 18:24:45 | INFO | Ecriture du fichier /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-182445-lynis.log
2026-04-05 18:24:45 | INFO | [dry-run] write /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-182445-lynis.log
2026-04-05 18:24:45 | INFO |   -> OK (0.0s)
2026-04-05 18:24:45 | INFO | [3/5] Vérification rootkits
2026-04-05 18:24:45 | INFO | Commande: sudo rkhunter --update
2026-04-05 18:24:45 | INFO | [dry-run] sudo rkhunter --update
2026-04-05 18:24:45 | INFO | Commande: sudo rkhunter --propupd
2026-04-05 18:24:45 | INFO | [dry-run] sudo rkhunter --propupd
2026-04-05 18:24:45 | INFO | Commande: sudo rkhunter --check --skip-keypress --report-warnings-only
2026-04-05 18:24:45 | INFO | [dry-run] sudo rkhunter --check --skip-keypress --report-warnings-only
2026-04-05 18:24:45 | INFO | Commande: sudo chkrootkit -q
2026-04-05 18:24:45 | INFO | [dry-run] sudo chkrootkit -q
2026-04-05 18:24:45 | INFO | Ecriture du fichier /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-182445-rootkit-report.json
2026-04-05 18:24:45 | INFO | [dry-run] write /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-182445-rootkit-report.json
2026-04-05 18:24:45 | INFO |   -> OK (0.0s)
2026-04-05 18:24:45 | INFO | [4/5] Vérification / autoconfig du firewall
2026-04-05 18:24:45 | INFO | Commande: sudo ufw default deny incoming
2026-04-05 18:24:45 | INFO | [dry-run] sudo ufw default deny incoming
2026-04-05 18:24:45 | INFO | Commande: sudo ufw default allow outgoing
2026-04-05 18:24:45 | INFO | [dry-run] sudo ufw default allow outgoing
2026-04-05 18:24:45 | INFO | Commande: sudo ufw status
2026-04-05 18:24:45 | INFO | [dry-run] sudo ufw status
2026-04-05 18:24:45 | INFO | Commande: sudo ufw allow 22/tcp
2026-04-05 18:24:45 | INFO | [dry-run] sudo ufw allow 22/tcp
2026-04-05 18:24:45 | INFO | Commande: sudo ufw --force enable
2026-04-05 18:24:45 | INFO | [dry-run] sudo ufw --force enable
2026-04-05 18:24:45 | INFO |   -> OK (0.0s)
2026-04-05 18:24:45 | INFO | [5/5] Rotation des logs
2026-04-05 18:24:45 | INFO | Ecriture du fichier /etc/logrotate.d/securecheck
2026-04-05 18:24:45 | INFO | [dry-run] write /etc/logrotate.d/securecheck
2026-04-05 18:24:45 | INFO |   -> OK (0.0s)
2026-04-05 18:24:55 | INFO | [1/1] Installation et configuration zsh
2026-04-05 18:24:55 | INFO | Commande: sudo apt-get update
2026-04-05 18:24:55 | INFO | [dry-run] sudo apt-get update
2026-04-05 18:24:55 | INFO | [1/1] Utilitaires pratiques
2026-04-05 18:24:55 | INFO | Commande: sudo apt-get update
2026-04-05 18:24:55 | INFO | [dry-run] sudo apt-get update
2026-04-05 18:24:55 | INFO | Commande: sudo apt-get install -y fonts-powerline
2026-04-05 18:24:55 | INFO | [dry-run] sudo apt-get install -y fonts-powerline
2026-04-05 18:24:55 | INFO | Téléchargement: https://git.h3campus.fr/Johnny/Install_zsh/raw/branch/main/.p10k.zsh
2026-04-05 18:24:55 | INFO | [dry-run] download https://git.h3campus.fr/Johnny/Install_zsh/raw/branch/main/.p10k.zsh
2026-04-05 18:24:55 | INFO | Ecriture du fichier /home/tuxgyver/.p10k.zsh
2026-04-05 18:24:55 | INFO | [dry-run] write /home/tuxgyver/.p10k.zsh
2026-04-05 18:24:55 | INFO | Ecriture du fichier /home/tuxgyver/.zshrc
2026-04-05 18:24:55 | INFO | [dry-run] write /home/tuxgyver/.zshrc
2026-04-05 18:24:55 | INFO |   -> OK (0.1s)
2026-04-05 18:24:55 | INFO | Commande: sudo systemctl enable --now fail2ban.service
2026-04-05 18:24:55 | INFO | [dry-run] sudo systemctl enable --now fail2ban.service
2026-04-05 18:24:55 | INFO |   -> OK (0.2s)
2026-04-05 18:25:36 | INFO | [1/1] Installation et configuration zsh
2026-04-05 18:25:36 | INFO | Commande: sudo apt-get update
2026-04-05 18:25:36 | INFO | [dry-run] sudo apt-get update
2026-04-05 18:25:36 | INFO | Commande: sudo apt-get install -y fonts-powerline
2026-04-05 18:25:36 | INFO | [dry-run] sudo apt-get install -y fonts-powerline
2026-04-05 18:25:36 | INFO | Téléchargement: https://git.h3campus.fr/Johnny/Install_zsh/raw/branch/main/.p10k.zsh
2026-04-05 18:25:36 | INFO | [dry-run] download https://git.h3campus.fr/Johnny/Install_zsh/raw/branch/main/.p10k.zsh
2026-04-05 18:25:36 | INFO | Commande: git clone --depth=1 https://github.com/romkatv/powerlevel10k.git /home/tuxgyver/.powerlevel10k
2026-04-05 18:25:36 | INFO | [dry-run] git clone --depth=1 https://github.com/romkatv/powerlevel10k.git /home/tuxgyver/.powerlevel10k
2026-04-05 18:25:36 | INFO | Ecriture du fichier /home/tuxgyver/.p10k.zsh
2026-04-05 18:25:36 | INFO | [dry-run] write /home/tuxgyver/.p10k.zsh
2026-04-05 18:25:36 | INFO | Ecriture du fichier /home/tuxgyver/.zshrc
2026-04-05 18:25:36 | INFO | [dry-run] write /home/tuxgyver/.zshrc
2026-04-05 18:25:36 | INFO |   -> OK (0.1s)
2026-04-05 18:37:04 | INFO | [1/2] Mises à jour automatiques
2026-04-05 18:37:04 | INFO | Commande: sudo apt-get update
2026-04-05 18:37:04 | INFO | [dry-run] sudo apt-get update
2026-04-05 18:37:04 | INFO | Ecriture du fichier /etc/apt/apt.conf.d/20auto-upgrades
2026-04-05 18:37:04 | INFO | [dry-run] write /etc/apt/apt.conf.d/20auto-upgrades
2026-04-05 18:37:04 | INFO | Ecriture du fichier /etc/apt/apt.conf.d/52securecheck-unattended-upgrades
2026-04-05 18:37:04 | INFO | [dry-run] write /etc/apt/apt.conf.d/52securecheck-unattended-upgrades
2026-04-05 18:37:04 | INFO | Commande: sudo systemctl enable --now unattended-upgrades.service
2026-04-05 18:37:04 | INFO | [dry-run] sudo systemctl enable --now unattended-upgrades.service
2026-04-05 18:37:04 | INFO |   -> OK (0.0s)
2026-04-05 18:37:04 | INFO | [2/2] Rotation des logs
2026-04-05 18:37:04 | INFO | Ecriture du fichier /etc/logrotate.d/securecheck
2026-04-05 18:37:04 | INFO | [dry-run] write /etc/logrotate.d/securecheck
2026-04-05 18:37:04 | INFO |   -> OK (0.0s)
2026-04-05 18:37:24 | INFO | [1/2] Mises à jour automatiques
2026-04-05 18:37:24 | INFO | Commande: sudo apt-get update
2026-04-05 18:37:24 | INFO | [dry-run] sudo apt-get update
2026-04-05 18:37:24 | INFO | Ecriture du fichier /etc/apt/apt.conf.d/20auto-upgrades
2026-04-05 18:37:24 | INFO | [dry-run] write /etc/apt/apt.conf.d/20auto-upgrades
2026-04-05 18:37:24 | INFO | Ecriture du fichier /etc/apt/apt.conf.d/52securecheck-unattended-upgrades
2026-04-05 18:37:24 | INFO | [dry-run] write /etc/apt/apt.conf.d/52securecheck-unattended-upgrades
2026-04-05 18:37:24 | INFO | Commande: sudo systemctl enable --now unattended-upgrades.service
2026-04-05 18:37:24 | INFO | [dry-run] sudo systemctl enable --now unattended-upgrades.service
2026-04-05 18:37:24 | INFO |   -> OK (0.0s)
2026-04-05 18:37:24 | INFO | [2/2] Rotation des logs
2026-04-05 18:37:24 | INFO | Ecriture du fichier /etc/logrotate.d/securecheck
2026-04-05 18:37:24 | INFO | [dry-run] write /etc/logrotate.d/securecheck
2026-04-05 18:37:24 | INFO |   -> OK (0.0s)
2026-04-05 20:37:25 | INFO | [1/5] Mise à jour système
2026-04-05 20:37:25 | INFO | Commande: sudo apt-get update
2026-04-05 20:37:25 | INFO | [dry-run] sudo apt-get update
2026-04-05 20:37:25 | INFO | Commande: sudo apt-get dist-upgrade -y
2026-04-05 20:37:25 | INFO | [dry-run] sudo apt-get dist-upgrade -y
2026-04-05 20:37:25 | INFO | Commande: sudo apt-get autoremove -y
2026-04-05 20:37:25 | INFO | [dry-run] sudo apt-get autoremove -y
2026-04-05 20:37:25 | INFO | Commande: sudo apt-get autoclean
2026-04-05 20:37:25 | INFO | [dry-run] sudo apt-get autoclean
2026-04-05 20:37:25 | INFO |   -> OK (0.0s)
2026-04-05 20:37:25 | INFO | [2/5] Audit Lynis
2026-04-05 20:37:25 | INFO | Commande: sudo lynis audit system --quick
2026-04-05 20:37:25 | INFO | [dry-run] sudo lynis audit system --quick
2026-04-05 20:37:25 | INFO | Ecriture du fichier /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-203725-lynis.log
2026-04-05 20:37:25 | INFO | [dry-run] write /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-203725-lynis.log
2026-04-05 20:37:25 | INFO |   -> OK (0.0s)
2026-04-05 20:37:25 | INFO | [3/5] Vérification rootkits
2026-04-05 20:37:25 | INFO | Commande: sudo rkhunter --update
2026-04-05 20:37:25 | INFO | [dry-run] sudo rkhunter --update
2026-04-05 20:37:25 | INFO | Commande: sudo rkhunter --propupd
2026-04-05 20:37:25 | INFO | [dry-run] sudo rkhunter --propupd
2026-04-05 20:37:25 | INFO | Commande: sudo rkhunter --check --skip-keypress --report-warnings-only
2026-04-05 20:37:25 | INFO | [dry-run] sudo rkhunter --check --skip-keypress --report-warnings-only
2026-04-05 20:37:25 | INFO | Commande: sudo chkrootkit -q
2026-04-05 20:37:25 | INFO | [dry-run] sudo chkrootkit -q
2026-04-05 20:37:25 | INFO | Ecriture du fichier /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-203725-rootkit-report.json
2026-04-05 20:37:25 | INFO | [dry-run] write /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-203725-rootkit-report.json
2026-04-05 20:37:25 | INFO |   -> OK (0.0s)
2026-04-05 20:37:25 | INFO | [4/5] Vérification / autoconfig du firewall
2026-04-05 20:37:25 | INFO | Commande: sudo ufw default deny incoming
2026-04-05 20:37:25 | INFO | [dry-run] sudo ufw default deny incoming
2026-04-05 20:37:25 | INFO | Commande: sudo ufw default allow outgoing
2026-04-05 20:37:25 | INFO | [dry-run] sudo ufw default allow outgoing
2026-04-05 20:37:25 | INFO | Commande: sudo ufw status
2026-04-05 20:37:25 | INFO | [dry-run] sudo ufw status
2026-04-05 20:37:25 | INFO | Commande: sudo ufw allow 22/tcp
2026-04-05 20:37:25 | INFO | [dry-run] sudo ufw allow 22/tcp
2026-04-05 20:37:25 | INFO | Commande: sudo ufw --force enable
2026-04-05 20:37:25 | INFO | [dry-run] sudo ufw --force enable
2026-04-05 20:37:25 | INFO |   -> OK (0.0s)
2026-04-05 20:37:25 | INFO | [5/5] Rotation des logs
2026-04-05 20:37:25 | INFO |   -> OK (0.0s)
2026-04-05 21:49:29 | INFO | [1/1] Utilitaires pratiques
2026-04-05 21:49:29 | INFO | Commande: sudo apt-get update
2026-04-05 21:49:29 | INFO | [dry-run] sudo apt-get update
2026-04-05 21:49:29 | INFO | Commande: sudo systemctl enable --now fail2ban.service
2026-04-05 21:49:29 | INFO | [dry-run] sudo systemctl enable --now fail2ban.service
2026-04-05 21:49:29 | INFO | Commande: sudo systemctl disable --now avahi-daemon
2026-04-05 21:49:29 | INFO | [dry-run] sudo systemctl disable --now avahi-daemon
2026-04-05 21:49:29 | INFO | Commande: sudo systemctl enable --now apparmor
2026-04-05 21:49:29 | INFO | [dry-run] sudo systemctl enable --now apparmor
2026-04-05 21:49:29 | INFO | Commande: sudo systemctl enable --now clamav-freshclam
2026-04-05 21:49:29 | INFO | [dry-run] sudo systemctl enable --now clamav-freshclam
2026-04-05 21:49:29 | INFO | Commande: sudo systemctl enable --now clamav-daemon
2026-04-05 21:49:29 | INFO | [dry-run] sudo systemctl enable --now clamav-daemon
2026-04-05 21:49:29 | INFO | Commande: sudo aideinit
2026-04-05 21:49:29 | INFO | [dry-run] sudo aideinit
2026-04-05 21:49:29 | INFO | Commande: sudo systemctl enable --now aidecheck.timer
2026-04-05 21:49:29 | INFO | [dry-run] sudo systemctl enable --now aidecheck.timer
2026-04-05 21:49:29 | ERROR | Task failed: utilities_setup
Traceback (most recent call last):
  File "/home/tuxgyver/scripts/securecheck/securecheck/executor.py", line 350, in execute_tasks
    result = task.handler(context)
  File "/home/tuxgyver/scripts/securecheck/securecheck/tasks.py", line 554, in <lambda>
    handler=lambda context, _task=task, _func=func: _func(context, _task),
                                                    ~~~~~^^^^^^^^^^^^^^^^
  File "/home/tuxgyver/scripts/securecheck/securecheck/tasks.py", line 418, in utilities_setup
    if wazuh_conf.exists():
       ~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/pathlib/_abc.py", line 450, in exists
    self.stat(follow_symlinks=follow_symlinks)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/pathlib/_local.py", line 517, in stat
    return os.stat(self, follow_symlinks=follow_symlinks)
           ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/var/ossec/etc/ossec.conf'
2026-04-05 21:49:29 | ERROR |   -> ECHEC: [Errno 13] Permission denied: '/var/ossec/etc/ossec.conf'
2026-04-05 21:49:40 | INFO | [1/1] Utilitaires pratiques
2026-04-05 21:49:40 | INFO | Commande: sudo apt-get update
2026-04-05 21:49:40 | INFO | [dry-run] sudo apt-get update
2026-04-05 21:49:40 | INFO | Commande: sudo systemctl enable --now fail2ban.service
2026-04-05 21:49:40 | INFO | [dry-run] sudo systemctl enable --now fail2ban.service
2026-04-05 21:49:40 | INFO | Commande: sudo systemctl disable --now avahi-daemon
2026-04-05 21:49:40 | INFO | [dry-run] sudo systemctl disable --now avahi-daemon
2026-04-05 21:49:40 | INFO | Commande: sudo systemctl enable --now apparmor
2026-04-05 21:49:40 | INFO | [dry-run] sudo systemctl enable --now apparmor
2026-04-05 21:49:40 | INFO | Commande: sudo systemctl enable --now clamav-freshclam
2026-04-05 21:49:40 | INFO | [dry-run] sudo systemctl enable --now clamav-freshclam
2026-04-05 21:49:40 | INFO | Commande: sudo systemctl enable --now clamav-daemon
2026-04-05 21:49:40 | INFO | [dry-run] sudo systemctl enable --now clamav-daemon
2026-04-05 21:49:40 | INFO | Commande: sudo aideinit
2026-04-05 21:49:40 | INFO | [dry-run] sudo aideinit
2026-04-05 21:49:40 | INFO | Commande: sudo systemctl enable --now aidecheck.timer
2026-04-05 21:49:40 | INFO | [dry-run] sudo systemctl enable --now aidecheck.timer
2026-04-05 21:49:40 | ERROR | Task failed: utilities_setup
Traceback (most recent call last):
  File "/home/tuxgyver/scripts/securecheck/securecheck/executor.py", line 350, in execute_tasks
    result = task.handler(context)
  File "/home/tuxgyver/scripts/securecheck/securecheck/tasks.py", line 557, in <lambda>
    handler=lambda context, _task=task, _func=func: _func(context, _task),
                                                    ~~~~~^^^^^^^^^^^^^^^^
  File "/home/tuxgyver/scripts/securecheck/securecheck/tasks.py", line 418, in utilities_setup
    if wazuh_conf.exists():
       ~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/pathlib/_abc.py", line 450, in exists
    self.stat(follow_symlinks=follow_symlinks)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/pathlib/_local.py", line 517, in stat
    return os.stat(self, follow_symlinks=follow_symlinks)
           ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/var/ossec/etc/ossec.conf'
2026-04-05 21:49:40 | ERROR |   -> ECHEC: [Errno 13] Permission denied: '/var/ossec/etc/ossec.conf'
2026-04-05 21:50:29 | INFO | [1/1] Utilitaires pratiques
2026-04-05 21:50:29 | INFO | Commande: sudo apt-get update
2026-04-05 21:50:29 | INFO | [dry-run] sudo apt-get update
2026-04-05 21:50:30 | INFO | Commande: sudo systemctl enable --now fail2ban.service
2026-04-05 21:50:30 | INFO | [dry-run] sudo systemctl enable --now fail2ban.service
2026-04-05 21:50:30 | INFO | Commande: sudo systemctl disable --now avahi-daemon
2026-04-05 21:50:30 | INFO | [dry-run] sudo systemctl disable --now avahi-daemon
2026-04-05 21:50:30 | INFO | Commande: sudo systemctl enable --now apparmor
2026-04-05 21:50:30 | INFO | [dry-run] sudo systemctl enable --now apparmor
2026-04-05 21:50:30 | INFO | Commande: sudo systemctl enable --now clamav-freshclam
2026-04-05 21:50:30 | INFO | [dry-run] sudo systemctl enable --now clamav-freshclam
2026-04-05 21:50:30 | INFO | Commande: sudo systemctl enable --now clamav-daemon
2026-04-05 21:50:30 | INFO | [dry-run] sudo systemctl enable --now clamav-daemon
2026-04-05 21:50:30 | INFO | Commande: sudo aideinit
2026-04-05 21:50:30 | INFO | [dry-run] sudo aideinit
2026-04-05 21:50:30 | INFO | Commande: sudo systemctl enable --now aidecheck.timer
2026-04-05 21:50:30 | INFO | [dry-run] sudo systemctl enable --now aidecheck.timer
2026-04-05 21:50:30 | ERROR | Task failed: utilities_setup
Traceback (most recent call last):
  File "/home/tuxgyver/scripts/securecheck/securecheck/executor.py", line 350, in execute_tasks
    result = task.handler(context)
  File "/home/tuxgyver/scripts/securecheck/securecheck/tasks.py", line 560, in <lambda>
    handler=lambda context, _task=task, _func=func: _func(context, _task),
                                                    ~~~~~^^^^^^^^^^^^^^^^
  File "/home/tuxgyver/scripts/securecheck/securecheck/tasks.py", line 418, in utilities_setup
    if wazuh_conf.exists():
       ~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/pathlib/_abc.py", line 450, in exists
    self.stat(follow_symlinks=follow_symlinks)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/pathlib/_local.py", line 517, in stat
    return os.stat(self, follow_symlinks=follow_symlinks)
           ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/var/ossec/etc/ossec.conf'
2026-04-05 21:50:30 | ERROR |   -> ECHEC: [Errno 13] Permission denied: '/var/ossec/etc/ossec.conf'
2026-04-05 21:50:41 | INFO | [1/1] Utilitaires pratiques
2026-04-05 21:50:41 | INFO | Commande: sudo apt-get update
2026-04-05 21:50:41 | INFO | [dry-run] sudo apt-get update
2026-04-05 21:50:41 | INFO | Commande: sudo systemctl enable --now fail2ban.service
2026-04-05 21:50:41 | INFO | [dry-run] sudo systemctl enable --now fail2ban.service
2026-04-05 21:50:41 | INFO | Commande: sudo systemctl disable --now avahi-daemon
2026-04-05 21:50:41 | INFO | [dry-run] sudo systemctl disable --now avahi-daemon
2026-04-05 21:50:41 | INFO | Commande: sudo systemctl enable --now apparmor
2026-04-05 21:50:41 | INFO | [dry-run] sudo systemctl enable --now apparmor
2026-04-05 21:50:41 | INFO | Commande: sudo systemctl enable --now clamav-freshclam
2026-04-05 21:50:41 | INFO | [dry-run] sudo systemctl enable --now clamav-freshclam
2026-04-05 21:50:41 | INFO | Commande: sudo systemctl enable --now clamav-daemon
2026-04-05 21:50:41 | INFO | [dry-run] sudo systemctl enable --now clamav-daemon
2026-04-05 21:50:42 | INFO | Commande: sudo aideinit
2026-04-05 21:50:42 | INFO | [dry-run] sudo aideinit
2026-04-05 21:50:42 | INFO | Commande: sudo systemctl enable --now aidecheck.timer
2026-04-05 21:50:42 | INFO | [dry-run] sudo systemctl enable --now aidecheck.timer
2026-04-05 21:50:42 | ERROR | Task failed: utilities_setup
Traceback (most recent call last):
  File "/home/tuxgyver/scripts/securecheck/securecheck/executor.py", line 350, in execute_tasks
    result = task.handler(context)
  File "/home/tuxgyver/scripts/securecheck/securecheck/tasks.py", line 557, in <lambda>
    handler=lambda context, _task=task, _func=func: _func(context, _task),
                                                    ~~~~~^^^^^^^^^^^^^^^^
  File "/home/tuxgyver/scripts/securecheck/securecheck/tasks.py", line 419, in utilities_setup
    if wazuh_conf.exists() and os.access(wazuh_conf, os.R_OK):
       ~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/pathlib/_abc.py", line 450, in exists
    self.stat(follow_symlinks=follow_symlinks)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/pathlib/_local.py", line 517, in stat
    return os.stat(self, follow_symlinks=follow_symlinks)
           ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/var/ossec/etc/ossec.conf'
2026-04-05 21:50:42 | ERROR |   -> ECHEC: [Errno 13] Permission denied: '/var/ossec/etc/ossec.conf'
2026-04-05 21:50:55 | INFO | [1/1] Utilitaires pratiques
2026-04-05 21:50:55 | INFO | Commande: sudo apt-get update
2026-04-05 21:50:55 | INFO | [dry-run] sudo apt-get update
2026-04-05 21:50:55 | INFO | Commande: sudo systemctl enable --now fail2ban.service
2026-04-05 21:50:55 | INFO | [dry-run] sudo systemctl enable --now fail2ban.service
2026-04-05 21:50:55 | INFO | Commande: sudo systemctl disable --now avahi-daemon
2026-04-05 21:50:55 | INFO | [dry-run] sudo systemctl disable --now avahi-daemon
2026-04-05 21:50:55 | INFO | Commande: sudo systemctl enable --now apparmor
2026-04-05 21:50:55 | INFO | [dry-run] sudo systemctl enable --now apparmor
2026-04-05 21:50:55 | INFO | Commande: sudo systemctl enable --now clamav-freshclam
2026-04-05 21:50:55 | INFO | [dry-run] sudo systemctl enable --now clamav-freshclam
2026-04-05 21:50:55 | INFO | Commande: sudo systemctl enable --now clamav-daemon
2026-04-05 21:50:55 | INFO | [dry-run] sudo systemctl enable --now clamav-daemon
2026-04-05 21:50:55 | INFO | Commande: sudo aideinit
2026-04-05 21:50:55 | INFO | [dry-run] sudo aideinit
2026-04-05 21:50:55 | INFO | Commande: sudo systemctl enable --now aidecheck.timer
2026-04-05 21:50:55 | INFO | [dry-run] sudo systemctl enable --now aidecheck.timer
2026-04-05 21:50:55 | ERROR | Task failed: utilities_setup
Traceback (most recent call last):
  File "/home/tuxgyver/scripts/securecheck/securecheck/executor.py", line 350, in execute_tasks
    result = task.handler(context)
  File "/home/tuxgyver/scripts/securecheck/securecheck/tasks.py", line 553, in <lambda>
    handler=lambda context, _task=task, _func=func: _func(context, _task),
                                                    ~~~~~^^^^^^^^^^^^^^^^
  File "/home/tuxgyver/scripts/securecheck/securecheck/tasks.py", line 419, in utilities_setup
    if wazuh_conf.exists() and os.access(wazuh_conf, os.R_OK):
       ~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/pathlib/_abc.py", line 450, in exists
    self.stat(follow_symlinks=follow_symlinks)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/pathlib/_local.py", line 517, in stat
    return os.stat(self, follow_symlinks=follow_symlinks)
           ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/var/ossec/etc/ossec.conf'
2026-04-05 21:50:55 | ERROR |   -> ECHEC: [Errno 13] Permission denied: '/var/ossec/etc/ossec.conf'
2026-04-05 21:51:18 | INFO | [1/1] Utilitaires pratiques
2026-04-05 21:51:18 | INFO | Commande: sudo apt-get update
2026-04-05 21:51:18 | INFO | [dry-run] sudo apt-get update
2026-04-05 21:51:18 | INFO | Commande: sudo systemctl enable --now fail2ban.service
2026-04-05 21:51:18 | INFO | [dry-run] sudo systemctl enable --now fail2ban.service
2026-04-05 21:51:18 | INFO | Commande: sudo systemctl disable --now avahi-daemon
2026-04-05 21:51:18 | INFO | [dry-run] sudo systemctl disable --now avahi-daemon
2026-04-05 21:51:18 | INFO | Commande: sudo systemctl enable --now apparmor
2026-04-05 21:51:18 | INFO | [dry-run] sudo systemctl enable --now apparmor
2026-04-05 21:51:18 | INFO | Commande: sudo systemctl enable --now clamav-freshclam
2026-04-05 21:51:18 | INFO | [dry-run] sudo systemctl enable --now clamav-freshclam
2026-04-05 21:51:18 | INFO | Commande: sudo systemctl enable --now clamav-daemon
2026-04-05 21:51:18 | INFO | [dry-run] sudo systemctl enable --now clamav-daemon
2026-04-05 21:51:18 | INFO | Commande: sudo aideinit
2026-04-05 21:51:18 | INFO | [dry-run] sudo aideinit
2026-04-05 21:51:18 | INFO | Commande: sudo systemctl enable --now aidecheck.timer
2026-04-05 21:51:18 | INFO | [dry-run] sudo systemctl enable --now aidecheck.timer
2026-04-05 21:51:18 | INFO | Commande: sudo systemctl enable --now wazuh-agent
2026-04-05 21:51:18 | INFO | [dry-run] sudo systemctl enable --now wazuh-agent
2026-04-05 21:51:18 | INFO |   -> OK (0.3s)
2026-04-05 21:59:58 | INFO | [1/5] Mise à jour système
2026-04-05 21:59:58 | INFO | Commande: sudo apt-get update
2026-04-05 21:59:58 | INFO | [dry-run] sudo apt-get update
2026-04-05 21:59:58 | INFO | Commande: sudo apt-get dist-upgrade -y
2026-04-05 21:59:58 | INFO | [dry-run] sudo apt-get dist-upgrade -y
2026-04-05 21:59:58 | INFO | Commande: sudo apt-get autoremove -y
2026-04-05 21:59:58 | INFO | [dry-run] sudo apt-get autoremove -y
2026-04-05 21:59:58 | INFO | Commande: sudo apt-get autoclean
2026-04-05 21:59:58 | INFO | [dry-run] sudo apt-get autoclean
2026-04-05 21:59:58 | INFO |   -> OK (0.0s)
2026-04-05 21:59:58 | INFO | [2/5] Audit Lynis
2026-04-05 21:59:58 | INFO | Commande: sudo lynis audit system --quick
2026-04-05 21:59:58 | INFO | [dry-run] sudo lynis audit system --quick
2026-04-05 21:59:58 | INFO | Ecriture du fichier /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-215958-lynis.log
2026-04-05 21:59:58 | INFO | [dry-run] write /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-215958-lynis.log
2026-04-05 21:59:58 | INFO |   -> OK (0.0s)
2026-04-05 21:59:58 | INFO | [3/5] Vérification rootkits
2026-04-05 21:59:58 | INFO | Commande: sudo rkhunter --update
2026-04-05 21:59:58 | INFO | [dry-run] sudo rkhunter --update
2026-04-05 21:59:58 | INFO | Commande: sudo rkhunter --propupd
2026-04-05 21:59:58 | INFO | [dry-run] sudo rkhunter --propupd
2026-04-05 21:59:58 | INFO | Commande: sudo rkhunter --check --skip-keypress --report-warnings-only
2026-04-05 21:59:58 | INFO | [dry-run] sudo rkhunter --check --skip-keypress --report-warnings-only
2026-04-05 21:59:58 | INFO | Commande: sudo chkrootkit -q
2026-04-05 21:59:58 | INFO | [dry-run] sudo chkrootkit -q
2026-04-05 21:59:58 | INFO | Ecriture du fichier /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-215958-rootkit-report.json
2026-04-05 21:59:58 | INFO | [dry-run] write /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-215958-rootkit-report.json
2026-04-05 21:59:58 | INFO |   -> OK (0.0s)
2026-04-05 21:59:58 | INFO | [4/5] Vérification / autoconfig du firewall
2026-04-05 21:59:58 | INFO | Commande: sudo ufw default deny incoming
2026-04-05 21:59:58 | INFO | [dry-run] sudo ufw default deny incoming
2026-04-05 21:59:58 | INFO | Commande: sudo ufw default allow outgoing
2026-04-05 21:59:58 | INFO | [dry-run] sudo ufw default allow outgoing
2026-04-05 21:59:58 | INFO | Commande: sudo ufw status
2026-04-05 21:59:58 | INFO | [dry-run] sudo ufw status
2026-04-05 21:59:58 | INFO | Commande: sudo ufw allow 22/tcp
2026-04-05 21:59:58 | INFO | [dry-run] sudo ufw allow 22/tcp
2026-04-05 21:59:58 | INFO | Commande: sudo ufw --force enable
2026-04-05 21:59:58 | INFO | [dry-run] sudo ufw --force enable
2026-04-05 21:59:58 | INFO |   -> OK (0.0s)
2026-04-05 21:59:58 | INFO | [5/5] Rotation des logs
2026-04-05 21:59:58 | INFO |   -> OK (0.0s)
2026-04-05 22:05:03 | INFO | [1/5] Mise à jour système
2026-04-05 22:05:03 | INFO | Commande: sudo apt-get update
2026-04-05 22:05:03 | INFO | [dry-run] sudo apt-get update
2026-04-05 22:05:03 | INFO | Commande: sudo apt-get dist-upgrade -y
2026-04-05 22:05:03 | INFO | [dry-run] sudo apt-get dist-upgrade -y
2026-04-05 22:05:03 | INFO | Commande: sudo apt-get autoremove -y
2026-04-05 22:05:03 | INFO | [dry-run] sudo apt-get autoremove -y
2026-04-05 22:05:03 | INFO | Commande: sudo apt-get autoclean
2026-04-05 22:05:03 | INFO | [dry-run] sudo apt-get autoclean
2026-04-05 22:05:03 | INFO |   -> OK (0.0s)
2026-04-05 22:05:03 | INFO | [2/5] Audit Lynis
2026-04-05 22:05:03 | INFO | Commande: sudo lynis audit system --quick
2026-04-05 22:05:03 | INFO | [dry-run] sudo lynis audit system --quick
2026-04-05 22:05:03 | INFO | Ecriture du fichier /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-220503-lynis.log
2026-04-05 22:05:03 | INFO | [dry-run] write /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-220503-lynis.log
2026-04-05 22:05:03 | INFO |   -> OK (0.0s)
2026-04-05 22:05:03 | INFO | [3/5] Vérification rootkits
2026-04-05 22:05:03 | INFO | Commande: sudo rkhunter --update
2026-04-05 22:05:03 | INFO | [dry-run] sudo rkhunter --update
2026-04-05 22:05:03 | INFO | Commande: sudo rkhunter --propupd
2026-04-05 22:05:03 | INFO | [dry-run] sudo rkhunter --propupd
2026-04-05 22:05:03 | INFO | Commande: sudo rkhunter --check --skip-keypress --report-warnings-only
2026-04-05 22:05:03 | INFO | [dry-run] sudo rkhunter --check --skip-keypress --report-warnings-only
2026-04-05 22:05:03 | INFO | Commande: sudo chkrootkit -q
2026-04-05 22:05:03 | INFO | [dry-run] sudo chkrootkit -q
2026-04-05 22:05:03 | INFO | Ecriture du fichier /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-220503-rootkit-report.json
2026-04-05 22:05:03 | INFO | [dry-run] write /home/tuxgyver/scripts/securecheck/.securecheck-runtime/state/logs/reports/20260405-220503-rootkit-report.json
2026-04-05 22:05:03 | INFO |   -> OK (0.0s)
2026-04-05 22:05:03 | INFO | [4/5] Vérification / autoconfig du firewall
2026-04-05 22:05:03 | INFO | Commande: sudo ufw default deny incoming
2026-04-05 22:05:03 | INFO | [dry-run] sudo ufw default deny incoming
2026-04-05 22:05:03 | INFO | Commande: sudo ufw default allow outgoing
2026-04-05 22:05:03 | INFO | [dry-run] sudo ufw default allow outgoing
2026-04-05 22:05:03 | INFO | Commande: sudo ufw status
2026-04-05 22:05:03 | INFO | [dry-run] sudo ufw status
2026-04-05 22:05:03 | INFO | Commande: sudo ufw allow 22/tcp
2026-04-05 22:05:03 | INFO | [dry-run] sudo ufw allow 22/tcp
2026-04-05 22:05:03 | INFO | Commande: sudo ufw --force enable
2026-04-05 22:05:03 | INFO | [dry-run] sudo ufw --force enable
2026-04-05 22:05:03 | INFO |   -> OK (0.0s)
2026-04-05 22:05:03 | INFO | [5/5] Rotation des logs
2026-04-05 22:05:03 | INFO |   -> OK (0.0s)
