Hi all,
I am facing an issue with th ciscat part of wazuh.
My architecture is the following:
A central wazuh manager 3.8.2, installed on CentOS 7
Several remote wazuh agent 3.8.2 installed on CentOS 7 server
An elasticsearch 6.6.0. server installed on CentOS 7
A kibana server 6.6.0 server installed on CentOS 7
Before doing a ciscat deployment on all of my CentOS7 server I tested on one.
java-1.8.0-openjdk is installed on the agent.
the Wazuh config fof ciscat is the following:
<wodle name="cis-cat">
<disabled>no</disabled>
<timeout>1800</timeout>
<interval>1d</interval>
<scan-on-start>yes</scan-on-start>
<java_path>/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre/bin</java_path>
<ciscat_path>wodles/ciscat</ciscat_path>
<content type="xccdf" path="benchmarks/CIS_CentOS_Linux_7_Benchmark_v2.2.0-xccdf.xml">
<profile>xccdf_org.cisecurity.benchmarks_profile_Level_1_-_Server</profile>
</content>
</wodle>
I have a ciscat account, and downloaded the ciscat tool. I put the files in /var/ossec/wodles/ciscat.
Access right on ciscat folder is the following:
drwx------. 9 root ossec 166 28 avril 17:32 .
drwxr-x---. 6 root ossec 58 28 avril 17:46 ..
drwxr-xr-x. 2 root ossec 4096 28 avril 17:32 benchmarks
-rw-------. 1 root ossec 2273 28 avril 17:32 CIS-CAT.BAT
-rw-------. 1 root ossec 13585789 28 avril 17:32 CISCAT.jar
-rwx------. 1 root ossec 795 28 avril 17:32 CIS-CAT.sh
drwxr-xr-x. 3 root ossec 19 28 avril 17:32 custom
drwxr-xr-x. 2 root ossec 164 28 avril 17:32 docs
drwxr-xr-x. 3 root ossec 8192 28 avril 17:32 lib
drwxr-xr-x. 5 root ossec 114 28 avril 17:32 misc
drwxr-xr-x. 2 root ossec 4096 28 avril 17:32 sce
drwxr-xr-x. 6 root ossec 103 28 avril 17:32 third-party-content
the scan is running well I have an xml file generated in /var/tmp/ossec
-rw-r--r--. 1 root ossec 2551737 5 mai 18:53 ciscat-tmp.xml
but in the log file I have this issue:
2019/05/05 18:53:14 wazuh-modulesd:ciscat: INFO: Scan finished successfully. File: /var/ossec/wodles/ciscat/benchmarks/CIS_CentOS_Linux_7_Benchmark_v2.2.0-xccdf.xml
2019/05/05 18:53:15 wazuh-modulesd:ciscat: ERROR: (1226): Error reading XML file '/var/ossec/tmp/ciscat-tmp.xml': XMLERR: Element not opened. (line 31233).
2019/05/05 18:53:18 wazuh-modulesd:ciscat: INFO: Evaluation finished.
2019/05/05 19:01:11 wazuh-modulesd:oscap: ERROR: Timeout expired executing 'ssg-centos-7-ds.xml'.
2019/05/05 19:01:11 wazuh-modulesd:oscap: INFO: Evaluation finished.
In the Wazuh app in kibana I only have the Scan result evolution visualization updated with "fail" information
I did not find any solution in this group nor wazuh website. it seems the report is running well but the agent could not access the file :/
Do you have an idea ?
Thanx
Yawp