Dear Antonio,
1. Can you tell me which version of wazuh are you installing and how many clusters/agents (indexers, manager, workers, agents) are you keeping in mind to configure?
I have installed version 4.3.10 and I would like to have 1 indexer (installed in Kali Linux) and 2 to 3 agents (to be installed in various Ubuntu/kali/ win 7 vms)
2. Would you let me know the steps you have done in each agent?
I did the following to install on a Ubuntu VM and Kali.
i) installing and enrolling agent with below command:
ii) starting the agent:
sudo systemctl daemon-reload
sudo systemctl enable wazuh-agent
sudo systemctl start wazuh-agent
sudo systemctl daemon-reload
sudo systemctl enable wazuh-agent
sudo systemctl start wazuh-agent
sudo systemctl status wazuh-agent (for checking if agent is active)
iii)
for the installing of agent in a win7 vm, I have encounter some issues that indicate "invoke-webrequest is not recognized"
After carrying out the steps in (i) and (ii), I return to the wazuh platform to check but everytime it is showing that no agent has been added. For (iii) I wasn't able to carry on due to the issue.
3. Did you configured the proper IP address in each agent in (/var/ossec/etc/ossec.conf) in linux, (C:\Program Files (x86)\ossec-agent\ossec.conf) in windows?
I am not sure about this step.
from /var/ossec/etc/ossec.conf:
10.0.2.42
1514
tcp
kali, kali2022, kali2022.2
10
60
yes
aes
yes
default
no
5000
500
no
yes
yes
yes
yes
yes
yes
yes
43200
etc/shared/rootkit_files.txt
etc/shared/rootkit_trojans.txt
yes
yes
1800
1d
yes
wodles/java
wodles/ciscat
yes
yes
/var/log/osquery/osqueryd.results.log
/etc/osquery/osquery.conf
yes
no
1h
yes
yes
yes
yes
yes
yes
yes
10
yes
yes
12h
yes
no
43200
yes
/etc,/usr/bin,/usr/sbin
/bin,/sbin,/boot
/etc/mtab
/etc/hosts.deny
/etc/mail/statistics
/etc/random-seed
/etc/random.seed
/etc/adjtime
/etc/httpd/logs
/etc/utmpx
/etc/wtmpx
/etc/cups/certs
/etc/dumpdates
/etc/svc/volatile
.log$|.swp$
/etc/ssl/private.key
yes
yes
yes
yes
10
100
yes
5m
1h
10
command
df -P
360
full_command
netstat -tulpn | sed 's/\([[:alnum:]]\+\)\ \+[[:digit:]]\+\
\+[[:digit:]]\+\ \+\(.*\):\([[:digit:]]*\)\ \+\([0-9\.\:\*]\+\).\+\
\([[:digit:]]*\/[[:alnum:]\-]*\).*/\1 \2 == \3 == \4 \5/' | sort -k 4 -g
| sed 's/ == \(.*\) ==/:\1/' | sed 1,2d
netstat listening ports
360
full_command
last -n 20
360
no
etc/wpk_root.pem
yes
plain
apache
/var/log/nginx/access.log
apache
/var/log/nginx/error.log
apache
/var/log/apache2/error.log
apache
/var/log/apache2/access.log
syslog
/var/ossec/logs/active-responses.log
syslog
/var/log/messages
syslog
/var/log/auth.log
syslog
/var/log/syslog
syslog
/var/log/dpkg.log
syslog
/var/log/kern.log
br
K