BSD Ports

security/wazuh-manager 4.14.9 FreeBSD

Security tool to monitor and check logs and intrusions (manager)

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
47b0693c6d
License
GPLv2
Categories
security
Package size
96191.0 KiB, 664112.5 KiB installed

Description

Wazuh is a free and open source platform used for threat prevention, detection, and response. It is capable of protecting workloads across on-premises, virtualized, containerized, and cloud-based environments.

Wazuh solution consists of an endpoint security agent, deployed to the monitored systems, and a management server, which collects and analyzes data gathered by the agents. Besides, Wazuh has been fully integrated with the Elastic Stack, providing a search engine and data visualization tool that allows users to navigate through their security alerts.

Install

Binary package:

pkg install wazuh-manager

From the ports tree:

cd /usr/ports/security/wazuh-manager/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	wazuh-manager>0:security/wazuh-manager

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest4.14.8----
FreeBSD:14:quarterly4.14.8-n/a--
FreeBSD:15:latest--n/a--
FreeBSD:15:quarterly4.14.8-n/an/an/a
FreeBSD:16:latest4.14.8-n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

Library 7

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 116

The first 100 are listed.

Run dependencies 108

The first 100 are listed.

Required by 1

Configuration

Options name: security_wazuh

OptionDefaultDescription
INOTIFYoffKevent based real time monitoring
ZEROMQoffZeroMQ support
USES
cpe dos2unix gmake perl5 python:3.11 readline shebangfix uidfix
Service scripts
wazuh-manager
Conflicts with
ossec-* wazuh-agent

Message after installing

Wazuh Manager was installed

1) Copy /etc/locatime to /var/ossec/etc directory

   # cp /etc/localtime /var/ossec/etc

2) You must edit /var/ossec/etc/ossec.conf.sample for your setup and rename/copy
   it to ossec.conf.

   Take a look wazuh manager configuration at the following url:

   https://documentation.wazuh.com/current/user-manual/manager/index.html

3) Move /var/ossec/etc/client.keys.sample to /var/ossec/etc/client.keys. This
   file is used to store all agents credentials connected to wazuh-manager

   # mv /var/ossec/etc/client.keys.sample /var/ossec/etc/client.keys

4) You can find additional useful files installed at

  # /var/ossec/packages_files/manager_installation_scripts

5) Do not forget generate auth certificate

  # openssl req -x509 -batch -nodes -days 365 -newkey rsa:2048 \
	-subj "/C=US/ST=California/CN=Wazuh/" \
	-keyout /var/ossec/etc/sslmanager.key -out /var/ossec/etc/sslmanager.cert
  # chmod 640 /var/ossec/etc/sslmanager.key
  # chmod 640 /var/ossec/etc/sslmanager.cert

6) FreeBSD rules, decoders and SCA files are installed by default. For more
   information about updates take a look at:

   https://github.com/alonsobsd/wazuh-freebsd
 
   Decoders and rules are used to extract some /var/log/userlog and 
   /var/log/messages entries from FreeBSD agents. It is necessary add a localfile
   entry to /var/ossec/etc/ossec.conf

  <localfile>
    <log_format>syslog</log_format>
    <location>/var/log/userlog</location>
  </localfile>

7) Vulnerability detector and Indexer connector are disabled by default. If you
   want to use them, don't forget to configure and enable them from 
   /var/ossec/etc/ossec.conf file. Also, you will need download vd database file
   to Wazuh tmp directory.

  # cd /var/ossec/tmp && fetch http://packages.wazuh.com/deps/vulnerability_model_database/vd_1.0.0_vd_4.13.0.tar.xz
  # chmod 640 /var/ossec/tmp/vd_1.0.0_vd_4.13.0.tar.xz
  # chown wazuh:wazuh /var/ossec/tmp/vd_1.0.0_vd_4.13.0.tar.xz

  Take on mind, a valid certificate is necessary to connect Indexer connector
  (Wazuh manager) to Wazuh indexer (OpenSearch).

8) Save Wazuh indexer username and password into the Wazuh keystore.

  # export WAZUH_HOME=/var/ossec
  # echo '<INDEXER_USERNAME>' | /var/ossec/bin/wazuh-keystore -f indexer -k username
  # echo '<INDEXER_PASSWORD>' | /var/ossec/bin/wazuh-keystore -f indexer -k password

  By default, INDEXER_USERNAME and INDEXER_PASSWORD are admin and admin.

9) Use a certificate generated previously. For example, you can use logstash 
   certificates. Otherwise, you can use a simplified certificates generator
   script for this task. Download it from the following url:

   https://people.freebsd.org/~acm/ports/wazuh/wazuh-gen-certs.tar.gz

10) The sysctl 'kern.hostuuid' is used as a serial number. If you are in a jail,
    you should have at least started the 'hostid' rc script to uniquely identify
    this device.
  
11) Add Wazuh manager to /etc/rc.conf

  # sysrc wazuh_manager_enable="YES"

  or
  
  # service wazuh-manager enable

12) Don't forget mount procfs before of start wazuh-manager, please do the following:

  # mount -t procfs proc /proc

    To make it permanent, you need the following lines in /etc/fstab:

    proc    /proc           procfs          rw      0       0

13) Start Wazuh manager

  # service wazuh-manager start

14) Enjoy it ;)

Files

Manual pages 1
  • python3(1)
pkg-plist 32853
  • @mode 750
  • @owner root
  • @group wazuh
  • /var/ossec/VERSION.json
  • /var/ossec/active-response/bin/default-firewall-drop
  • /var/ossec/active-response/bin/disable-account
  • /var/ossec/active-response/bin/firewall-drop
  • /var/ossec/active-response/bin/firewalld-drop
  • /var/ossec/active-response/bin/host-deny
  • /var/ossec/active-response/bin/ip-customblock
  • /var/ossec/active-response/bin/ipfw
  • /var/ossec/active-response/bin/kaspersky
  • /var/ossec/active-response/bin/kaspersky.py
  • /var/ossec/active-response/bin/npf
  • /var/ossec/active-response/bin/pf
  • /var/ossec/active-response/bin/restart-wazuh
  • /var/ossec/active-response/bin/restart.sh
  • /var/ossec/active-response/bin/route-null
  • /var/ossec/active-response/bin/wazuh-slack
  • @mode 750
  • @owner root
  • @group wazuh
  • /var/ossec/agentless/main.exp
  • /var/ossec/agentless/register_host.sh
  • /var/ossec/agentless/ssh.exp
  • /var/ossec/agentless/ssh_asa-fwsmconfig_diff
  • /var/ossec/agentless/ssh_foundry_diff
  • /var/ossec/agentless/ssh_generic_diff
  • /var/ossec/agentless/ssh_integrity_check_bsd
  • /var/ossec/agentless/ssh_integrity_check_linux
  • /var/ossec/agentless/ssh_nopass.exp
  • /var/ossec/agentless/ssh_pixconfig_diff
  • /var/ossec/agentless/sshlogin.exp
  • /var/ossec/agentless/su.exp
  • @(root,wazuh,660) /var/ossec/api/configuration/api.yaml
  • /var/ossec/api/scripts/wazuh_apid.py
  • @mode 750
  • @owner root
  • @group wheel
  • /var/ossec/bin/agent_control
  • /var/ossec/bin/agent_groups
  • /var/ossec/bin/agent_upgrade
  • /var/ossec/bin/clear_stats
  • /var/ossec/bin/cluster_control
  • /var/ossec/bin/manage_agents
  • /var/ossec/bin/rbac_control
  • @(root,wazuh,750) /var/ossec/bin/verify-agent-conf
  • /var/ossec/bin/wazuh-agentlessd
  • /var/ossec/bin/wazuh-analysisd
  • /var/ossec/bin/wazuh-apid
  • /var/ossec/bin/wazuh-authd
  • /var/ossec/bin/wazuh-clusterd
  • /var/ossec/bin/wazuh-control
  • /var/ossec/bin/wazuh-csyslogd
  • /var/ossec/bin/wazuh-db
  • /var/ossec/bin/wazuh-execd
  • /var/ossec/bin/wazuh-integratord
  • /var/ossec/bin/wazuh-keystore
  • /var/ossec/bin/wazuh-logcollector
  • /var/ossec/bin/wazuh-logtest
  • /var/ossec/bin/wazuh-logtest-legacy
  • /var/ossec/bin/wazuh-maild
  • /var/ossec/bin/wazuh-modulesd
  • /var/ossec/bin/wazuh-monitord
  • /var/ossec/bin/wazuh-regex
  • /var/ossec/bin/wazuh-remoted
  • /var/ossec/bin/wazuh-reportd
  • /var/ossec/bin/wazuh-syscheckd
  • @mode 640
  • @owner wazuh
  • @group wazuh
  • @sample /var/ossec/etc/client.keys.sample
  • /var/ossec/etc/internal_options.conf
  • @mode 660
  • @owner wazuh
  • @group wazuh
  • /var/ossec/etc/lists/amazon/aws-eventnames
  • /var/ossec/etc/lists/amazon/aws-sources
  • /var/ossec/etc/lists/audit-keys
  • /var/ossec/etc/lists/malicious-ioc/malicious-domains
  • /var/ossec/etc/lists/malicious-ioc/malicious-ip
  • /var/ossec/etc/lists/malicious-ioc/malware-hashes
  • /var/ossec/etc/lists/security-eventchannel
  • @sample /var/ossec/etc/local_internal_options.conf.sample
  • @(root,wazuh,640) /var/ossec/etc/localtime
  • @mode 660
  • @owner root
  • @group wazuh
  • @sample /var/ossec/etc/ossec.conf.sample
  • /var/ossec/etc/rootcheck/cis_apache2224_rcl.txt
  • /var/ossec/etc/rootcheck/cis_debian_linux_rcl.txt
  • /var/ossec/etc/rootcheck/cis_mysql5-6_community_rcl.txt
  • /var/ossec/etc/rootcheck/cis_mysql5-6_enterprise_rcl.txt
  • /var/ossec/etc/rootcheck/cis_rhel5_linux_rcl.txt
  • /var/ossec/etc/rootcheck/cis_rhel6_linux_rcl.txt
  • /var/ossec/etc/rootcheck/cis_rhel7_linux_rcl.txt
  • /var/ossec/etc/rootcheck/cis_rhel_linux_rcl.txt
  • /var/ossec/etc/rootcheck/cis_sles11_linux_rcl.txt
  • /var/ossec/etc/rootcheck/cis_sles12_linux_rcl.txt
  • /var/ossec/etc/rootcheck/cis_win2012r2_domainL1_rcl.txt

The first 100 are listed.

distinfo 37
FileSizeSHA256
wazuh-4.14.9/audit-userspace.tar.gz1.68282e+06e82a32e5edf93b055160e14bc97f41dead39287925851dc80a7638e2d4d30434
wazuh-4.14.9/benchmark.tar.gz18446094c57aa0cb2bd78dbe9e77d332cbc644daf0fecdc9a09632048be6e09f9ced6b
wazuh-4.14.9/bzip2.tar.gz7127727688ee0316a64b39e511b2c224070cad97c394a5f711f9d055fc1809d895bcd
wazuh-4.14.9/cJSON.tar.gz27920da809f70b7d03ac529ae6223d4390bfa26cd29f8c32c8e8b3b631efa1667892d
wazuh-4.14.9/cpp-httplib.tar.gz578906517573263611686b9219ba796c35f54a306eb27dc3c72e1807f2a0a34cac1e8
wazuh-4.14.9/cpython-3.11.17.tar.gz2.7454532e+07cb83d515438269ae6fb73bedc80d916df4332261a08e722c8162b1a19d3c8bf3
wazuh-4.14.9/curl.tar.gz4.537356e+0630cf7142e4282718ceb237e17b5cbf75afcd7c9f3880a039c5efea62db094709
wazuh-4.14.9/flatbuffers.tar.gz2.824325e+06ca563ebb561ae9088c7bec9ce101d2182b43ced0ba67a097d0ee0c145108f55a
wazuh-4.14.9/googletest.tar.gz8858748c1e8a0a7f221c2125e99e6acb709da2ba472476b4d057c58de504bebf38d417
wazuh-4.14.9/http-request-cd50797.tar.gz66371c9ed1052de030930dd817af2989154e5f6ab2ce223dacb87bf55ca6fdf1b8ebb
wazuh-4.14.9/jemalloc.tar.gz5798642b22e85b352c7df550ba408a42251e51e8dffa6c91aa2e1fb4804ab317ffbca0
wazuh-4.14.9/libarchive.tar.gz2.360242e+06540ff4a55defa75778a2c40567a830648ce5367b8aea123366874d96b734ef80
wazuh-4.14.9/libdb.tar.gz3.87499e+067e9c44e8c7fdb186ff521a8d085b1bfa634d342dcc777ecea1fbf9a98ab5dc5e
wazuh-4.14.9/libffi.tar.gz9645760e971f64bacc22094e89f034bba075b40ecc2c2c2900eecd7ae85815fd6c9f69
wazuh-4.14.9/libpcre2.tar.gz1.329651e+065a80d654d7d14b3db9fa3a49d7bf44a498683b46784a88cec514a8b194767b92
wazuh-4.14.9/libplist.tar.gz1.520623e+0688278d4bdfc1bd6a3a1a55a4f3d933683d2732ba09cf7a749fe8ec8eec406e3c
wazuh-4.14.9/libyaml.tar.gz42465635daad608b372d5ce099f738c0f21bfcc03d6920d92f448386c584e664f1376a
wazuh-4.14.9/lua.tar.gz343356233e87e871090bd30c4b692ac73bd714361c15051148e4eeec828a1df8436eca
wazuh-4.14.9/lzma.tar.gz1.327581e+064ce0c192d41072b5679af89bb531efb685c8267a4b7e2005999149ac17028134
wazuh-4.14.9/msgpack.tar.gz59129406d63bcf32896cd0af5480c401134b1ad1c166fd84ebe5b486e792101ee854e2
Master sites 2
  • https://packages.wazuh.com/deps/55/libraries/sources/:wazuh_sources
  • LOCAL/acm/wazuh/:wazuh_cache

Commit history 9

DateCommitCreditsLog message
47b0693c6d Jose Alonso Cardenas Marquez security/wazuh*: update to 4.14.9
- Update cpython bundle to 3.11.17 - Remove obsolete patch file - Use PYTHON_DISTVERSION for avoid temporarily pkg-plist issues when system python is updated. The best is keep system python and bundle python with the same version. ChangeLog at: https://documentation.wazuh.com/current/release-notes/release-4-14-9.html PR: 299490
8801f12993 Jose Alonso Cardenas Marquez security/wazuh-*: Update to 4.14.8
ChangeLog at: https://documentation.wazuh.com/current/release-notes/release-4-14-8.html
d31d0a9428 Jose Alonso Cardenas Marquez security/wazuh-manager: Fix fetch
Reported by: pkg-fallout
0ccb641950 Trond Endrestøl security/wazuh-manager: Fix extract
PR: 297853
2341115f80 Jose Alonso Cardenas Marquez security/wazuh-*: Update to 4.14.7
ChangeLog: https://documentation.wazuh.com/current/release-notes/release-4-14-7.html

The latest 5 of 9 in the history this site was built from.