Lynis - Security auditing tool for Linux, macOS, and UNIX-based systems. Assists with compliance testing (HIPAA/ISO27001/PCI DSS) and system hardening. Agentless, and installation optional.
Good day
Thought I would Report this up to you and let you all know what I have found.
Unknown OS found in /etc/os-release - Please create an issue on GitHub and share the the contents (cat /etc/os-release): https://github.com/CISOfy/lynis
Detecting OS... [ DONE ]
Checking profiles... [ DONE ]
Program version: 3.0.3
Operating system: Linux
Operating system name: Linux
Operating system version: 4.18.0-240.el8.x86_64
Kernel version: 4.18.0
Hardware platform: x86_64
Hostname: almalinux
Unknown OS found in /etc/os-release - Please create an issue on GitHub and share the the contents (cat /etc/os-release): https://github.com/CISOfy/lynis
Detecting OS... [ DONE ]
Program version: 3.0.3 Operating system: Linux Operating system name: Linux Operating system version: 4.18.0-240.el8.x86_64 Kernel version: 4.18.0 Hardware platform: x86_64 Hostname: almalinux
[root@almalinux ~]# cat /etc/os-release NAME="AlmaLinux" VERSION="8.3 (Purple Manul)" ID="almalinux" ID_LIKE="rhel centos fedora" VERSION_ID="8.3" PLATFORM_ID="platform:el8" PRETTY_NAME="AlmaLinux 8.3 Beta (Purple Manul)" ANSI_COLOR="0;34" CPE_NAME="cpe:/o:almalinux:almalinux:8.3:beta" HOME_URL="https://almalinux.org/" BUG_REPORT_URL="https://bugs.almalinux.org/"
ALMALINUX_MANTISBT_PROJECT="AlmaLinux-8" ALMALINUX_MANTISBT_PROJECT_VERSION="8"
[root@almalinux ~]# cat /etc/redhat-release AlmaLinux release 8.3 Beta (Purple Manul)
dnf install lynis -y cd wget http://sable.madmimi.com/c/6938?id=44150.2674.1.a12c46882ca668ab69e63acbe670c747 -O lynis-community-plugins.tar.gz sudo tar -zxvf lynis-community-plugins.tar.gz --strip-components=1 -C /usr/share/lynis/plugins sudo chown root:root /usr/share/lynis/plugins/plugin* sudo chmod 600 /usr/share/lynis/plugins/plugin* sudo grep plugin= /etc/lynis/default.prf [root@almalinux ~]# grep plugin= /etc/lynis/default.prf plugin=authentication plugin=compliance plugin=configuration plugin=control-panels plugin=crypto plugin=dns plugin=docker plugin=file-integrity plugin=file-systems plugin=firewalls plugin=forensics plugin=hardware plugin=intrusion-detection plugin=intrusion-prevention plugin=kernel plugin=malware plugin=memory plugin=nginx plugin=pam plugin=processes plugin=security-modules plugin=software plugin=system-integrity plugin=systemd plugin=users
disable-plugin=authentication
Repo
sudo vi /etc/yum.repos.d/cisofy-lynis.repo Add the following content:
[lynis] name=CISOfy Software - Lynis package baseurl=https://packages.cisofy.com/community/lynis/rpm/ enabled=1 gpgkey=https://packages.cisofy.com/keys/cisofy-software-rpms-public.key gpgcheck=1 priority=2 Install or Update
sudo dnf install lynis sudo dnf update lynis