Hello
On relatively fresh install of Almalinux 9 with CWP PRO
I ran this command
systemd-analyze security
and got the following list of services, many are marked as "usafe" and "exposed":
UNIT EXPOSURE PREDICATE HAPPY
NetworkManager.service 7.8 EXPOSED 🙁
amavisd.service 6.9 MEDIUM 😐
atd.service 9.6 UNSAFE 😨
auditd.service 8.9 EXPOSED 🙁
cbpolicyd.service 9.6 UNSAFE 😨
chronyd.service 3.9 OK 🙂
clamav-freshclam.service 9.6 UNSAFE 😨
clamd.service 9.6 UNSAFE 😨
crond.service 9.6 UNSAFE 😨
cwp-phpfpm.service 9.6 UNSAFE 😨
cwpsrv-phpfpm.service 9.6 UNSAFE 😨
cwpsrv.service 9.2 UNSAFE 😨
dbus-broker.service 8.7 EXPOSED 🙁
dovecot.service 8.5 EXPOSED 🙁
emergency.service 9.5 UNSAFE 😨
getty@tty1.service 9.6 UNSAFE 😨
httpd.service 9.6 UNSAFE 😨
irqbalance.service 8.9 EXPOSED 🙁
lfd.service 9.6 UNSAFE 😨
low-memory-monitor.service 6.3 MEDIUM 😐
maldet.service 9.6 UNSAFE 😨
mariadb.service 8.8 EXPOSED 🙁
mlocate-updatedb.service 8.1 EXPOSED 🙁
monit.service 9.6 UNSAFE 😨
named.service 9.2 UNSAFE 😨
nginx.service 9.6 UNSAFE 😨
opendkim.service 9.2 UNSAFE 😨
php-fpm74.service 6.5 MEDIUM 😐
php-fpm80.service 6.5 MEDIUM 😐
php-fpm80.service 6.5 MEDIUM 😐
php-fpm81.service 6.5 MEDIUM 😐
php-fpm82.service 6.5 MEDIUM 😐
php-fpm83.service 6.5 MEDIUM 😐
postfix.service 7.9 EXPOSED 🙁
pure-ftpd.service 9.6 UNSAFE 😨
rc-local.service 9.6 UNSAFE 😨
rescue.service 9.5 UNSAFE 😨
rsyslog.service 5.8 MEDIUM 😐
rtkit-daemon.service 7.1 MEDIUM 😐
sa-update.service 9.6 UNSAFE 😨
spamassassin.service 9.6 UNSAFE 😨
sshd.service 9.6 UNSAFE 😨
sssd-kcm.service 7.7 EXPOSED 🙁
sssd.service 8.3 EXPOSED 🙁
systemd-ask-password-console.service 9.4 UNSAFE 😨
systemd-ask-password-wall.service 9.4 UNSAFE 😨
systemd-initctl.service 9.4 UNSAFE 😨
systemd-journald.service 4.3 OK 🙂
systemd-logind.service 2.8 OK 🙂
systemd-rfkill.service 9.4 UNSAFE 😨
systemd-udevd.service 6.9 MEDIUM 😐
upower.service 2.4 OK 🙂
user@0.service 9.8 UNSAFE 😨
Not being expert I am wondering whether these are really serious problems or not and what can be done to fix the serious ones eventually.
What seems strange to me is that many of the services that are marked as unsafe are the very main services needed, e.g. nginx, lfd, postfix, cwpsrv-phpfpm.service.... and so on.
Does anyone know something about this?
Thank you in advance for info and hints.