CISOfy / lynis

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.
https://cisofy.com/lynis/
GNU General Public License v3.0
13.53k stars 1.49k forks source link

Function/test: [OS Detection] - ALMALINUX - BETA #1111

Closed zabbix112 closed 3 years ago

zabbix112 commented 3 years ago

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

[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

mboelen commented 3 years ago

Thanks for reporting. Added with commit https://github.com/CISOfy/lynis/commit/ac313553fb090879f0f0a2487d0792ffd5e144fa