wazuh / wazuh

Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
https://wazuh.com/
Other
11k stars 1.67k forks source link

Check Wazuh compatibility with new version macOS Ventura 13.5 (ARM64) #17678

Closed jotacarma90 closed 1 year ago

jotacarma90 commented 1 year ago

Description

Hello team, this issue is to check the full compatibility of Wazuh on the new found version of macOS Ventura 13.5 arm64 operating system.

OSs checks issue: https://github.com/wazuh/wazuh/issues/17387 Instance request issue: https://github.com/wazuh/internal-devel-requests/issues/49

For this, it is necessary to perform the following tests to check that everything works as expected:

jotacarma90 commented 1 year ago

Testing

:green_circle: Agent and server, (enrollment and connectivity with the manager)


###  :green_circle: FIM: Schedule
Configuration:
<directories>/tmp/testschedule</directories>

<details><summary>Scheduled alerts</summary>

![image](https://github.com/wazuh/wazuh/assets/60003131/613d29c3-ff5d-4154-abc1-3f796621be87)
![image](https://github.com/wazuh/wazuh/assets/60003131/4d475f93-940b-494f-89e8-16f25a0cb207)
![image](https://github.com/wazuh/wazuh/assets/60003131/07a30617-71d6-4f39-83bc-392edc0ce8c6)

</details>

### :green_circle: Syscollector
Configuration by default:

- Agent:

2023/10/20 10:59:45 wazuh-modulesd:syscollector: INFO: Module started. 2023/10/20 10:59:45 wazuh-modulesd:syscollector: INFO: Starting evaluation. 2023/10/20 10:59:45 wazuh-modulesd:syscollector: INFO: Evaluation finished.

- Manager

2023/10/20 11:18:01 wazuh-modulesd:syscollector: INFO: Starting evaluation. 2023/10/20 11:18:08 wazuh-modulesd:syscollector: INFO: Evaluation finished.

![image](https://github.com/wazuh/wazuh/assets/60003131/9cbf6d62-d003-4c18-8e26-fcb9a27f56a7)

###  :green_circle: Active response
Manager configuration:
no restart-wazuh defined-agent 001 7

Afterwards, any level 10 or higher alert generated will restart the indicated agent.

2023/10/20 11:47:12 active-response/bin/restart-wazuh: Starting 2023/10/20 11:47:12 active-response/bin/restart-wazuh: {"version":1,"origin":{"name":"node01","module":"wazuh-execd"},"command":"add","parameters":{"extra_args":[],"alert":{"timestamp":"2023-10-20T11:47:12.179+0000","rule":{"level":7,"description":"Host-based anomaly detection event (rootcheck).","id":"510","firedtimes":22,"mail":false,"groups":["ossec","rootcheck"],"pci_dss":["10.6.1"],"gdpr":["IV_35.7.d"]},"agent":{"id":"001","name":"ip-172-31-37-195.ec2.internal","ip":"FE80:0000:0000:0000:E048:A7FF:FEEB:30F9"},"manager":{"name":"wazuh-server"},"id":"1697802432.396871","full_log":"Trojaned version of file '/usr/sbin/apachectl' detected. Signature used: 'bash|^/bin/sh|file\.h|proc\.h|/dev/[^n]|^/bin/.*sh' (Generic).","decoder":{"name":"rootcheck"},"data":{"title":"Trojaned version of file detected.","file":"/usr/sbin/apachectl"},"location":"rootcheck"},"program":"active-response/bin/restart-wazuh"}}

2023/10/20 11:47:14 active-response/bin/restart-wazuh: Ended


### :green_circle: Log capture (Eventchannel for Windows and ULS for macOS)
Configuration
full_command netstat -an | awk '{if ((/^(tcp|udp)/) && ($4 != "*.*") && ($5 == "*.*")) {print $1" "$$ netstat listening ports 360
![image](https://github.com/wazuh/wazuh/assets/60003131/c9851564-1854-4ce1-a2c4-b36930eb8742)

### :yellow_circle: ~Upgrade using WPK~: Does not apply
We are not able to generate wpk packages for arm64

2023/10/20 12:07:43 - Upgrade started. installer: This package requires Rosetta 2 to be installed. Please install Rosetta 2 and then try again. sudo softwareupdate --install-rosetta

installer: Error - Wazuh Agent can’t be installed on this computer. 2023/10/20 12:07:43 - Installation result = 1 2023/10/20 12:07:44 - Waiting connection... Status = connected. Remaining attempts: 29. 2023/10/20 12:07:44 - Upgrade failed. Restoring...



### :green_circle: Vulnerabilities detector
![image](https://github.com/wazuh/wazuh/assets/60003131/0290e633-2221-412e-9598-13159584b976)

### :yellow_circle: ~SCA~: Does not apply
Issue related to rework SCA policies in macOS Ventura:
https://github.com/wazuh/wazuh/issues/17319
mjcr99 commented 1 year ago

LGTM!

ncvicchi commented 1 year ago

LGTM!