Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/lynis.spec'], nspawn_args=[]shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/epel-1-armhfp-500f6c4e89a5bd43a505b6f3c66ab841c5045fa2/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/lynis.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/lynis-3.0.1-1.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/lynis.spec'], nspawn_args=[]shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/epel-1-armhfp-500f6c4e89a5bd43a505b6f3c66ab841c5045fa2/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/lynis.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ItyTR6 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf lynis + /usr/bin/gzip -dc /builddir/build/SOURCES/lynis-3.0.1.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd lynis + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git add . + /usr/bin/git commit -q -a --author 'rpm-build ' -m 'lynis-3.0.1 base' + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.rUHehy + umask 022 + cd /builddir/build/BUILD + cd lynis Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Q6Q0tY + exit 0 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch ++ dirname /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch + cd lynis + mkdir -p /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/etc/lynis + install -p default.prf /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/etc/lynis + mkdir -p /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/bin + install -p lynis /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/bin + mkdir -p /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/man/man8 + install -p lynis.8 /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/man/man8 + mkdir -p /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/ + install -p include/binaries include/consts include/data_upload include/functions include/helper_audit_dockerfile include/helper_configure include/helper_generate include/helper_show include/helper_system_remote_scan include/helper_update include/osdetection include/parameters include/profiles include/report include/tests_accounting include/tests_authentication include/tests_banners include/tests_boot_services include/tests_containers include/tests_crypto include/tests_custom.template include/tests_databases include/tests_dns include/tests_file_integrity include/tests_file_permissions include/tests_filesystems include/tests_firewalls include/tests_hardening include/tests_homedirs include/tests_insecure_services include/tests_kernel include/tests_kernel_hardening include/tests_ldap include/tests_logging include/tests_mac_frameworks include/tests_mail_messaging include/tests_malware include/tests_memory_processes include/tests_nameservices include/tests_networking include/tests_php include/tests_ports_packages include/tests_printers_spoolers include/tests_scheduling include/tests_shells include/tests_snmp include/tests_squid include/tests_ssh include/tests_storage include/tests_storage_nfs include/tests_system_integrity include/tests_time include/tests_tooling include/tests_usb include/tests_virtualization include/tests_webservers include/tool_tips /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/ + chmod 644 /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/binaries /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/consts /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/data_upload /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/functions /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/helper_audit_dockerfile /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/helper_configure /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/helper_generate /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/helper_show /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/helper_system_remote_scan /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/helper_update /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/osdetection /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/parameters /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/profiles /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/report /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_accounting /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_authentication /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_banners /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_boot_services /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_containers /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_crypto /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_custom.template /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_databases /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_dns /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_file_integrity /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_file_permissions /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_filesystems /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_firewalls /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_hardening /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_homedirs /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_insecure_services /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_kernel /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_kernel_hardening /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_ldap /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_logging /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_mac_frameworks /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_mail_messaging /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_malware /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_memory_processes /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_nameservices /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_networking /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_php /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_ports_packages /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_printers_spoolers /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_scheduling /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_shells /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_snmp /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_squid /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_ssh /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_storage /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_storage_nfs /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_system_integrity /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_time /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_tooling /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_usb /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_virtualization /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tests_webservers /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/include/tool_tips + mkdir -p /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/plugins/ + install -p plugins/README plugins/custom_plugin.template /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/plugins/ + cp -pR db/ /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/lynis/ + mkdir -p /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/bash-completion/completions + install -p extras/bash_completion.d/lynis /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/bash-completion/completions/ + mkdir -p /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/var/log/ + touch /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/var/log/lynis.log + touch /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/var/log/lynis-report.dat + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/lynis /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.OMGxbr + umask 022 + cd /builddir/build/BUILD + cd lynis + ./lynis audit system --quick [ Lynis 3.0.1 ] ################################################################################ Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under the terms of the GNU General Public License. See the LICENSE file for details about using this software. 2007-2020, CISOfy - https://cisofy.com/lynis/ Enterprise support available (compliance, plugins, interface and tools) ################################################################################ [+] Initializing program ------------------------------------ ################################################################### # # # NON-PRIVILEGED SCAN MODE # # # ################################################################### NOTES: -------------- * Some tests will be skipped (as they require root permissions) * Some tests might fail silently or give different results - Detecting OS...  [ DONE ] - Checking profiles... [ DONE ] --------------------------------------------------- Program version: 3.0.1 Operating system: Linux Operating system name: CentOS Linux Operating system version: 7 Kernel version: 4.10.8 Hardware platform: armv7l Hostname: no-hostname --------------------------------------------------- Profiles: /builddir/build/BUILD/lynis/default.prf Log file: /builddir/lynis.log Report file: /builddir/lynis-report.dat Report version: 1.0 Plugin directory: ./plugins --------------------------------------------------- Auditor: [Not Specified] Language: en Test category: all Test group: all --------------------------------------------------- - Program update status...  [ SKIPPED ] [+] System Tools ------------------------------------ - Scanning available tools... - Checking system binaries... [+] Plugins (phase 1) ------------------------------------ Note: plugins have more extensive tests and may take several minutes to complete   - Plugins enabled [ NONE ] ================================================================= Exception found! Function/test: [GetHostID] Message: Both ip and ifconfig tools are missing Help improving the Lynis community with your feedback! Steps: - Ensure you are running the latest version (./lynis update check) - If so, create a GitHub issue at https://github.com/CISOfy/lynis - Include relevant parts of the log file or configuration file Thanks! ================================================================= ================================================================= Exception found! Function/test: [GetHostID] Message: Can't create HOSTID, command ip not found Help improving the Lynis community with your feedback! Steps: - Ensure you are running the latest version (./lynis update check) - If so, create a GitHub issue at https://github.com/CISOfy/lynis - Include relevant parts of the log file or configuration file Thanks! ================================================================= ================================================================= Exception found! Function/test: [GetHostID] Message: No unique host identifier could be created. Help improving the Lynis community with your feedback! Steps: - Ensure you are running the latest version (./lynis update check) - If so, create a GitHub issue at https://github.com/CISOfy/lynis - Include relevant parts of the log file or configuration file Thanks! ================================================================= [+] Boot and services ------------------------------------ [WARNING]: Test CORE-1000 had a long execution: 19.613318 seconds - Service Manager [ systemd ] - Boot loader [ NONE FOUND ] Failed to get D-Bus connection: Operation not permitted - Check running services (systemctl) [ DONE ] Result: found 0 running services - Check enabled services at boot (systemctl) [ DONE ] Result: found 5 enabled services - Check startup files (permissions) [ OK ] [+] Kernel ------------------------------------ - Checking default runlevel [ runlevel 5 ] - Checking kernel version and release [ DONE ] - Checking kernel type [ DONE ] - Checking loaded kernel modules [ DONE ] Found 14 active modules - Checking Linux kernel configuration file [ FOUND ] - Checking default I/O kernel scheduler [ FOUND ] - Checking core dumps configuration - configuration in etc/profile [ DEFAULT ] - 'hard' configuration in security/limits.conf [ DEFAULT ] - 'soft' configuration in security/limits.conf [ DEFAULT ] - Checking setuid core dumps configuration [ DISABLED ] - Check if reboot is needed [ UNKNOWN ] [+] Memory and Processes ------------------------------------ - Checking /proc/meminfo [ FOUND ] - Searching for dead/zombie processes [ NOT FOUND ] - Searching for IO waiting processes [ NOT FOUND ] - Search prelink tooling [ NOT FOUND ] [+] Users, Groups and Authentication ------------------------------------ - Administrator accounts [ OK ] - Unique UIDs [ OK ] - Unique group IDs [ OK ] - Unique group names [ OK ] - Password file consistency [ SUGGESTION ] - Checking minimum group password hashing rounds [ DISABLED ] - Checking maximum group password hashing rounds [ DISABLED ] - Query system users (non daemons) [ DONE ] - NIS+ authentication support [ NOT ENABLED ] - NIS authentication support [ NOT ENABLED ] - Sudoers file [ NOT FOUND ] - PAM password strength tools [ OK ] - PAM configuration file (pam.conf) [ NOT FOUND ] - PAM configuration files (pam.d) [ FOUND ] - PAM modules [ FOUND ] - LDAP module in PAM [ NOT FOUND ] /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 871: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found /builddir/build/BUILD/lynis/include/tests_authentication: line 872: passwd: command not found - Accounts without expire date [ OK ] - Accounts without password [ OK ] - Checking user password aging (minimum) [ DISABLED ] - User password aging (maximum) [ DISABLED ] - Checking Linux single user mode authentication [ OK ] - Determining default umask - umask (/etc/profile and /etc/profile.d) [ SUGGESTION ] - umask (/etc/login.defs) [ OK ] - LDAP authentication support [ NOT ENABLED ] - Logging failed login attempts [ DISABLED ] [+] Shells ------------------------------------ - Checking shells from /etc/shells Result: found 4 shells (valid shells: 4). - Session timeout settings/tools [ NONE ] - Checking default umask values - Checking default umask in /etc/bashrc [ WEAK ] - Checking default umask in /etc/csh.cshrc [ WEAK ] - Checking default umask in /etc/profile [ WEAK ] [+] File systems ------------------------------------ - Checking mount points - Checking /home mount point [ SUGGESTION ] - Checking /tmp mount point [ SUGGESTION ] - Checking /var mount point [ SUGGESTION ] - Query swap partitions (fstab) [ NONE ] - Testing swap partitions [ OK ] - Testing /proc mount (hidepid) [ SUGGESTION ] - Checking for old files in /tmp [ OK ] - Checking /tmp sticky bit [ OK ] - Checking /var/tmp sticky bit [ OK ] - Mount options of /dev/shm [ NON DEFAULT ] - Total without nodev:5 noexec:5 nosuid:5 ro or noexec (W^X): 5 of total 5 - Disable kernel support of some filesystems [+] USB Devices ------------------------------------ - Checking usb-storage driver (modprobe config) [ NOT DISABLED ] - Checking USB devices authorization [ DISABLED ] - Checking USBGuard [ NOT FOUND ] [+] Storage ------------------------------------ - Checking firewire ohci driver (modprobe config) [ NOT DISABLED ] [+] NFS ------------------------------------ - Check running NFS daemon [ NOT FOUND ] [+] Name services ------------------------------------ - Checking default DNS search domain [ FOUND ] - Checking search domains [ FOUND ] - Checking search domains lines [ CONFIG ERROR ] - Searching DNS domain name [ FOUND ] Domain name: cloud.scaleway.com - Checking /etc/hosts - Duplicate entries in hosts file [ NONE ] - Presence of configured hostname in /etc/hosts [ NOT FOUND ] - Hostname mapped to localhost [ NOT FOUND ] - Localhost mapping to IP address [ OK ] [+] Ports and packages ------------------------------------ - Searching package managers - Searching RPM package manager [ FOUND ] - Querying RPM package manager [WARNING]: Test PKGS-7308 had a long execution: 10.220537 seconds - Checking package audit tool [ NONE ] - Toolkit for automatic upgrades [ NOT FOUND ] [+] Networking ------------------------------------ - Checking IPv6 configuration [ ENABLED ] Configuration method [ AUTO ] IPv6 only [ NO ] - Checking configured nameservers - Testing nameservers Nameserver: 10.1.31.38 [ SKIPPED ] Nameserver: 10.1.31.39 [ SKIPPED ] Nameserver: 10.5.28.129 [ SKIPPED ] Nameserver: 10.5.28.130 [ SKIPPED ] - Minimal of 2 responsive nameservers [ SKIPPED ] ================================================================= Exception found! Function/test: [NETW-3004:1] Message: No interfaces found on this system (OS=Linux) Help improving the Lynis community with your feedback! Steps: - Ensure you are running the latest version (./lynis update check) - If so, create a GitHub issue at https://github.com/CISOfy/lynis - Include relevant parts of the log file or configuration file Thanks! ================================================================= ================================================================= Exception found! Function/test: [NETW-3006:2] Message: Missing ifconfig or ip command to collect hardware address (MAC) Help improving the Lynis community with your feedback! Steps: - Ensure you are running the latest version (./lynis update check) - If so, create a GitHub issue at https://github.com/CISOfy/lynis - Include relevant parts of the log file or configuration file Thanks! ================================================================= ================================================================= Exception found! Function/test: [NETW-3008:2] Message: Missing ifconfig or ip command to collect hardware address (MAC) Help improving the Lynis community with your feedback! Steps: - Ensure you are running the latest version (./lynis update check) - If so, create a GitHub issue at https://github.com/CISOfy/lynis - Include relevant parts of the log file or configuration file Thanks! ================================================================= ================================================================= Exception found! Function/test: [NETW-3012:1] Message: netstat and ss binary missing to gather listening ports Help improving the Lynis community with your feedback! Steps: - Ensure you are running the latest version (./lynis update check) - If so, create a GitHub issue at https://github.com/CISOfy/lynis - Include relevant parts of the log file or configuration file Thanks! ================================================================= - Getting listening ports (TCP/UDP) [ SKIPPED ] - Checking promiscuous interfaces [ UNKNOWN ] - Checking status DHCP client [ NOT ACTIVE ] - Checking for ARP monitoring software [ NOT FOUND ] - Uncommon network protocols [ 0 ] [+] Printers and Spools ------------------------------------ - Checking cups daemon [ NOT FOUND ] - Checking lp daemon [ NOT RUNNING ] [+] Software: e-mail and messaging ------------------------------------ - Postfix status [ RUNNING ] [+] Software: firewalls ------------------------------------ - Checking iptables kernel module [ FOUND ] - Checking host based firewall [ ACTIVE ] [+] Software: webserver ------------------------------------ - Checking Apache [ NOT FOUND ] - Checking nginx [ NOT FOUND ] [+] SSH Support ------------------------------------ - Checking running SSH daemon [ FOUND ] - Searching SSH configuration [ NOT FOUND ] ================================================================= Exception found! Function/test: [SSH-7404:1] Message: SSH daemon is running, but no readable configuration file found Help improving the Lynis community with your feedback! Steps: - Ensure you are running the latest version (./lynis update check) - If so, create a GitHub issue at https://github.com/CISOfy/lynis - Include relevant parts of the log file or configuration file Thanks! ================================================================= - OpenSSH option: AllowUsers [ NOT FOUND ] - OpenSSH option: AllowGroups [ NOT FOUND ] [+] SNMP Support ------------------------------------ - Checking running SNMP daemon [ NOT FOUND ] [+] Databases ------------------------------------ No database engines found [+] LDAP Services ------------------------------------ - Checking OpenLDAP instance [ NOT FOUND ] [+] PHP ------------------------------------ - Checking PHP [ NOT FOUND ] [+] Squid Support ------------------------------------ - Checking running Squid daemon [ NOT FOUND ] [+] Logging and files ------------------------------------ - Checking for a running log daemon [ OK ] - Checking Syslog-NG status [ NOT FOUND ] - Checking systemd journal status [ FOUND ] - Checking Metalog status [ NOT FOUND ] - Checking RSyslog status [ FOUND ] - Checking RFC 3195 daemon status [ NOT FOUND ] - Checking minilogd instances [ NOT FOUND ] - Checking logrotate presence [ WARNING ] - Checking remote logging [ NOT ENABLED ] - Checking log directories (static list) [ DONE ] - Checking open log files [ SKIPPED ] [+] Insecure services ------------------------------------ - Installed inetd package [ NOT FOUND ] - Installed xinetd package [ OK ] - xinetd status [ NOT ACTIVE ] - Installed rsh client package [ OK ] - Installed rsh server package [ OK ] - Installed telnet client package [ OK ] - Installed telnet server package [ NOT FOUND ] - Checking NIS client installation [ OK ] - Checking NIS server installation [ OK ] - Checking TFTP client installation [ OK ] - Checking TFTP server installation [ OK ] [+] Banners and identification ------------------------------------ - /etc/issue [ FOUND ] - /etc/issue contents [ WEAK ] - /etc/issue.net [ FOUND ] - /etc/issue.net contents [ WEAK ] [+] Scheduled tasks ------------------------------------ - Checking crontab and cronjob files [ DONE ] [+] Accounting ------------------------------------ - Checking accounting information [ NOT FOUND ] - Checking sysstat accounting data [ NOT FOUND ] - Checking auditd [ ENABLED ] [+] Time and Synchronization ------------------------------------ - Checking for a running NTP daemon or client [ WARNING ] [+] Cryptography ------------------------------------ - Kernel entropy is sufficient [ NO ] - HW RNG & rngd [ NO ] - SW prng [ NO ] [+] Virtualization ------------------------------------ [+] Containers ------------------------------------ [+] Security frameworks ------------------------------------ - Checking presence AppArmor [ NOT FOUND ] - Checking presence SELinux [ NOT FOUND ] - Checking presence TOMOYO Linux [ NOT FOUND ] - Checking presence grsecurity [ NOT FOUND ] - Checking for implemented MAC framework [ NONE ] [+] Software: file integrity ------------------------------------ - Checking file integrity tools - Checking presence integrity tool [ NOT FOUND ] [+] Software: System tooling ------------------------------------ - Checking automation tooling - Automation tooling [ NOT FOUND ] - Checking for IDS/IPS tooling [ NONE ] [+] Software: Malware ------------------------------------ [+] File Permissions ------------------------------------ - Starting file permissions check File: /etc/group [ OK ] File: /etc/group- [ OK ] File: /etc/hosts.allow [ OK ] File: /etc/hosts.deny [ OK ] File: /etc/issue [ OK ] File: /etc/issue.net [ OK ] File: /etc/motd [ OK ] File: /etc/passwd [ OK ] File: /etc/passwd- [ OK ] [+] Home directories ------------------------------------ - Permissions of home directories [ OK ] - Ownership of home directories [ OK ] - Checking shell history files [ OK ] [+] Kernel Hardening ------------------------------------ - Comparing sysctl key pairs with scan profile - fs.suid_dumpable (exp: 0) [ OK ] - kernel.core_uses_pid (exp: 1) [ OK ] - kernel.ctrl-alt-del (exp: 0) [ OK ] - kernel.dmesg_restrict (exp: 1) [ DIFFERENT ] - kernel.kptr_restrict (exp: 2) [ DIFFERENT ] - kernel.randomize_va_space (exp: 2) [ DIFFERENT ] - kernel.sysrq (exp: 0) [ DIFFERENT ] - net.ipv4.conf.all.accept_redirects (exp: 0) [ DIFFERENT ] - net.ipv4.conf.all.accept_source_route (exp: 0) [ OK ] - net.ipv4.conf.all.bootp_relay (exp: 0) [ OK ] - net.ipv4.conf.all.forwarding (exp: 0) [ OK ] - net.ipv4.conf.all.log_martians (exp: 1) [ DIFFERENT ] - net.ipv4.conf.all.mc_forwarding (exp: 0) [ OK ] - net.ipv4.conf.all.proxy_arp (exp: 0) [ OK ] - net.ipv4.conf.all.rp_filter (exp: 1) [ OK ] - net.ipv4.conf.all.send_redirects (exp: 0) [ DIFFERENT ] - net.ipv4.conf.default.accept_redirects (exp: 0) [ DIFFERENT ] - net.ipv4.conf.default.accept_source_route (exp: 0) [ OK ] - net.ipv4.conf.default.log_martians (exp: 1) [ DIFFERENT ] - net.ipv4.icmp_echo_ignore_broadcasts (exp: 1) [ OK ] - net.ipv4.icmp_ignore_bogus_error_responses (exp: 1) [ OK ] - net.ipv4.tcp_syncookies (exp: 1) [ OK ] - net.ipv4.tcp_timestamps (exp: 0 1) [ OK ] - net.ipv6.conf.all.accept_redirects (exp: 0) [ DIFFERENT ] - net.ipv6.conf.all.accept_source_route (exp: 0) [ OK ] - net.ipv6.conf.default.accept_redirects (exp: 0) [ DIFFERENT ] - net.ipv6.conf.default.accept_source_route (exp: 0) [ OK ] [+] Hardening ------------------------------------ [WARNING]: Test KRNL-6000 had a long execution: 11.255984 seconds - Installed compiler(s) [ FOUND ] - Installed malware scanner [ NOT FOUND ] [+] Custom tests ------------------------------------ - Running custom tests...  [ NONE ] [+] Plugins (phase 2) ------------------------------------ ================================================================================ -[ Lynis 3.0.1 Results ]- Warnings (1): ---------------------------- ! Found more than 1 search lines in /etc/resolv.conf, which is probably a misconfiguration [NAME-4018] https://cisofy.com/lynis/controls/NAME-4018/ Suggestions (31): ---------------------------- * If not required, consider explicit disabling of core dump in /etc/security/limits.conf file [KRNL-5820] https://cisofy.com/lynis/controls/KRNL-5820/ * Run pwck manually and correct any errors in the password file [AUTH-9228] https://cisofy.com/lynis/controls/AUTH-9228/ * Configure minimum encryption algorithm rounds in /etc/login.defs [AUTH-9230] https://cisofy.com/lynis/controls/AUTH-9230/ * Configure maximum encryption algorithm rounds in /etc/login.defs [AUTH-9230] https://cisofy.com/lynis/controls/AUTH-9230/ * Configure minimum password age in /etc/login.defs [AUTH-9286] https://cisofy.com/lynis/controls/AUTH-9286/ * Configure maximum password age in /etc/login.defs [AUTH-9286] https://cisofy.com/lynis/controls/AUTH-9286/ * Default umask in /etc/profile or /etc/profile.d/custom.sh could be more strict (e.g. 027) [AUTH-9328] https://cisofy.com/lynis/controls/AUTH-9328/ * To decrease the impact of a full /home file system, place /home on a separate partition [FILE-6310] https://cisofy.com/lynis/controls/FILE-6310/ * To decrease the impact of a full /tmp file system, place /tmp on a separate partition [FILE-6310] https://cisofy.com/lynis/controls/FILE-6310/ * To decrease the impact of a full /var file system, place /var on a separate partition [FILE-6310] https://cisofy.com/lynis/controls/FILE-6310/ * Disable drivers like USB storage when not used, to prevent unauthorized storage or data theft [USB-1000] https://cisofy.com/lynis/controls/USB-1000/ * Disable drivers like firewire storage when not used, to prevent unauthorized storage or data theft [STRG-1846] https://cisofy.com/lynis/controls/STRG-1846/ * Add the IP name and FQDN to /etc/hosts for proper name resolving [NAME-4404] https://cisofy.com/lynis/controls/NAME-4404/ * Install a package audit tool to determine vulnerable packages [PKGS-7398] https://cisofy.com/lynis/controls/PKGS-7398/ * Consider using a tool to automatically apply upgrades [PKGS-7420] https://cisofy.com/lynis/controls/PKGS-7420/ * Determine if protocol 'dccp' is really needed on this system [NETW-3200] https://cisofy.com/lynis/controls/NETW-3200/ * Determine if protocol 'sctp' is really needed on this system [NETW-3200] https://cisofy.com/lynis/controls/NETW-3200/ * Determine if protocol 'rds' is really needed on this system [NETW-3200] https://cisofy.com/lynis/controls/NETW-3200/ * Determine if protocol 'tipc' is really needed on this system [NETW-3200] https://cisofy.com/lynis/controls/NETW-3200/ * Check if log files are properly rotated [LOGG-2146] https://cisofy.com/lynis/controls/LOGG-2146/ * Enable logging to an external logging host for archiving purposes and additional protection [LOGG-2154] https://cisofy.com/lynis/controls/LOGG-2154/ * Add a legal banner to /etc/issue, to warn unauthorized users [BANN-7126] https://cisofy.com/lynis/controls/BANN-7126/ * Add legal banner to /etc/issue.net, to warn unauthorized users [BANN-7130] https://cisofy.com/lynis/controls/BANN-7130/ * Enable process accounting [ACCT-9622] https://cisofy.com/lynis/controls/ACCT-9622/ * Enable sysstat to collect accounting (no results) [ACCT-9626] https://cisofy.com/lynis/controls/ACCT-9626/ * Use NTP daemon or NTP client to prevent time issues. [TIME-3104] https://cisofy.com/lynis/controls/TIME-3104/ * Install a file integrity tool to monitor changes to critical and sensitive files [FINT-4350] https://cisofy.com/lynis/controls/FINT-4350/ * Determine if automation tools are present for system management [TOOL-5002] https://cisofy.com/lynis/controls/TOOL-5002/ * One or more sysctl values differ from the scan profile and could be tweaked [KRNL-6000] - Solution : Change sysctl value or disable test (skip-test=KRNL-6000:) https://cisofy.com/lynis/controls/KRNL-6000/ * Harden compilers like restricting access to root user only [HRDN-7222] https://cisofy.com/lynis/controls/HRDN-7222/ * Harden the system by installing at least one malware scanner, to perform periodic file system scans [HRDN-7230] - Solution : Install a tool like rkhunter, chkrootkit, OSSEC https://cisofy.com/lynis/controls/HRDN-7230/ Follow-up: ---------------------------- - Show details of a test (lynis show details TEST-ID) - Check the logfile for all details (less /builddir/lynis.log) - Read security controls texts (https://cisofy.com) - Use --upload to upload data to central system (Lynis Enterprise users) ================================================================================ Lynis security scan details: Hardening index : 62 [############ ] Tests performed : 202 Plugins enabled : 0 Components: - Firewall [V] - Malware scanner [X] Scan mode: Normal [ ] Forensics [ ] Integration [ ] Pentest [V] (running non-privileged) Lynis modules: - Compliance status [?] - Security audit [V] - Vulnerability scan [V] Files: - Test and debug information : /builddir/lynis.log - Report data : /builddir/lynis-report.dat ================================================================================ Exceptions found Some exceptional events or information was found! What to do: You can help by providing your log file (/builddir/lynis.log). Go to https://cisofy.com/contact/ and send your file to the e-mail address listed ================================================================================ Skipped tests due to non-privileged mode BOOT-5108 - Check Syslinux as bootloader BOOT-5109 - Check rEFInd as bootloader BOOT-5116 - Check if system is booted in UEFI mode AUTH-9216 - Check group and shadow group files AUTH-9229 - Check password hashing methods AUTH-9288 - Checking for expired passwords FILE-6368 - Checking ACL support on root file system FIRE-4586 - Check firewall logging CRYP-7930 - Determine if system uses LUKS block device encryption ================================================================================ Lynis 3.0.1 Auditing, system hardening, and compliance for UNIX-based systems (Linux, macOS, BSD, and others) 2007-2020, CISOfy - https://cisofy.com/lynis/ Enterprise support available (compliance, plugins, interface and tools) ================================================================================ [TIP]: Enhance Lynis audits by adding your settings to custom.prf (see /builddir/build/BUILD/lynis/default.prf for all settings) + exit 0 Processing files: lynis-3.0.1-1.el7.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.7qOBND + umask 022 + cd /builddir/build/BUILD + cd lynis + DOCDIR=/builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/doc/lynis-3.0.1 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/doc/lynis-3.0.1 + cp -pr CHANGELOG.md /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/doc/lynis-3.0.1 + cp -pr CONTRIBUTORS.md /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/doc/lynis-3.0.1 + cp -pr FAQ /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/doc/lynis-3.0.1 + cp -pr README /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/doc/lynis-3.0.1 + cp -pr extras/systemd/ /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/doc/lynis-3.0.1 + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.QsTHYW + umask 022 + cd /builddir/build/BUILD + cd lynis + LICENSEDIR=/builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/licenses/lynis-3.0.1 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/licenses/lynis-3.0.1 + cp -pr LICENSE /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch/usr/share/licenses/lynis-3.0.1 + exit 0 Provides: config(lynis) = 3.0.1-1.el7 lynis = 3.0.1-1.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /bin/sh Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch Wrote: /builddir/build/RPMS/lynis-3.0.1-1.el7.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.ZxWMkX + umask 022 + cd /builddir/build/BUILD + cd lynis + /usr/bin/rm -rf /builddir/build/BUILDROOT/lynis-3.0.1-1.el7.noarch + exit 0 Child return code was: 0