Problem:
CIS benchmark for Ubuntu Linux 20.04 LTS on AWS Marketplace wazuh install (server) with wazuh-agent installed based on guide on remote test server (below) does not report actual system state correctly upon audit.
Remote Test Server Information
Linux thinktank 5.4.0-1080-aws-fips #87+fips1-Ubuntu SMP Fri Jun 10 20:13:19 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
Wazuh Reports the Below Findings, which manually "pass" but wazuh shows "failed". Examples provided below;
Wazuh reports
19093 Ensure iptables-persistent is not installed. Command: dpkg -s iptables-persistent failed
Rationale Running both ufw and the services included in the iptables-persistent package may lead to conflict
Manual check:
Is ufw installed?
Checks (Condition: all)- c:dpkg -s ufw -> r:Status: install ok installed
- not c:dpkg -s iptables-persistent -> r:Status: install ok installed
thinktank:~$ sudo dpkg -s ufw
dpkg-query: package 'ufw' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
thinktank:~$ sudo dpkg -s iptables-persistent
Package: iptables-persistent
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 49
Maintainer: Ubuntu Developers <ubuntu-dev...@lists.ubuntu.com>
Architecture: all
Version: 1.0.14ubuntu1
Depends: netfilter-persistent (= 1.0.14ubuntu1), debconf (>= 0.5) | debconf-2.0
Pre-Depends: iptables
Conffiles:
/etc/systemd/system/netfilter-persistent.service.d/iptables.conf 6086e64821392da68277639fd6557f60
Description: boot-time loader for netfilter rules, iptables plugin
netfilter-persistent is a loader for netfilter configuration using a
plugin-based architecture.
.
This package contains the iptables and ip6tables plugins.
Original-Maintainer: gustavo panizzo <g...@zumbi.com.ar>
This is happening on 15 rules (to be 100% clean). Using this as an example does anyone have any ideas what "bug" or "issue" would be causing in correct reporting with a nearly default clean install of AWS Marketplace Wazuh + Clean Ubuntu Instance?
We are test wazuh and this concerns the team that we cannot count on baseline reports or is this expected and anticipated?
The other question is about the CIS benchmark for Ubuntu Linux 20.04 LTS provided. There are actually 2 baselines for servers. Level 1 and Level 2. Which one is this one provided as defaul and would it be a good idea to provide both or indicate clearly which one this is?
Thanks in advance on any input or guidance.
We love the tool thus far, but would feel more confident if "baselines" were accurate and worked out of the box.
Scott