From nobody Sun Sep 25 05:45:00 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MZvwr52gyz4dKHS; Sun, 25 Sep 2022 05:45:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MZvwr45Gqz3DPd; Sun, 25 Sep 2022 05:45:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664084700; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qe9JP8DNfGgRfWodBEBZPPmPUv2ySl477T1VMJjmUGA=; b=x5HCxm4dhtkxCrmj2ZDUc+ZXGDtiEBF42qtZfVjZSDUSOwlf0+53aNQwjbR2yUz5KKottG gxHkchnKL8lUoBVheZGBJoa9JqT+YT5l11Fs7TuVRifdSDcCUe18092b4LhXYWm/R9cthX F2maE1g1+WQF5sXgBq6C74S2vPWqDdKHrjUkSJ61GSesnGP2BfK1Mb58+cI9WBafm70+05 F5uj6FQspqREWelJwRQksQYZ79VQ5bK721NBgnXYYBBpj8GOV6dhj1RxyBpwBVCwuQa1T4 RiKKingvTS+FPJiUq1FA2XN1vJEeI1wzSqON+Rxq6wDEMBHdHrfUBkyaOAfg1g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MZvwr2tHjzKhY; Sun, 25 Sep 2022 05:45:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28P5j0Q9024075; Sun, 25 Sep 2022 05:45:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28P5j0gO024074; Sun, 25 Sep 2022 05:45:00 GMT (envelope-from git) Date: Sun, 25 Sep 2022 05:45:00 GMT Message-Id: <202209250545.28P5j0gO024074@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jose Alonso Cardenas Marquez Subject: git: 844dbce6673f - main - security/wazuh-server: New port: Components for analyze the data received from the agents List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: acm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 844dbce6673fbedfaf26f2e26d201dcd63fd8134 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664084700; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qe9JP8DNfGgRfWodBEBZPPmPUv2ySl477T1VMJjmUGA=; b=UmgpNfNFQy5V6Ew6IjmGrLX+O0YJr8DgcnTWuf7xdztA/68VMiKIv2o+y5YxXVz7ELgV5h 79zqO+LcGhq72xHsDZY/SxQbyoei8l0T8CD7IK7z9SBU50uWn9+0XG0/n2tRH2CQVWdZKi yAd/zQS6JkVJEd6z3RDC1tMgQhMX8iAfuu8qHXfpCgq4qqGtHMINox6CO1jicf4q2z+6m2 OBHWR863zz39YGwVy7gWyaepycFDvtDB/jKCjJyR6qDDw2Yb2y73xB3yWZcP4rE1oGF+CL 3f9ckTyszm09RhL06v/W3PLi7euel841ODX0Tp7nQynYkexZWmo0hi8Bi6wLvQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664084700; a=rsa-sha256; cv=none; b=lq186TCKgOjsJSEq3NWCHf0EuGyCXKj4x9q3mWyB/nLWBllOmTwuhuqAi0j+UP3SfK2Myz YlB2iMQVOFGIfZDybL7ezcaAgDWnFZ63zZQZ5wTQTOcjPY3ubiUAthxflrEbDVBLdA27t8 DmEaBMH9jsY4Fa7Xc/RBn6Z0FlB3wTV36JwW9RXEc3VJbPrpny5VyzreJm48hoGMal3HIF LyC2FwvNl5ajGqoopy+0Hj97FQtnJl0js4bIuVHPG46Q+2Mg0ZMxL4TUuPKtn3Bnncr6QN yfE8tjBVfbEJICak9rJhzPGm3/HWuVPDwzjn44gdO4iT69Io17xFi2aaJ5DE0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=844dbce6673fbedfaf26f2e26d201dcd63fd8134 commit 844dbce6673fbedfaf26f2e26d201dcd63fd8134 Author: Jose Alonso Cardenas Marquez AuthorDate: 2022-09-25 05:44:21 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2022-09-25 05:44:21 +0000 security/wazuh-server: New port: Components for analyze the data received from the agents 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. --- security/Makefile | 1 + security/wazuh-server/Makefile | 63 +++++++++++++++++++++++++++++ security/wazuh-server/distinfo | 9 +++++ security/wazuh-server/files/pkg-message.in | 64 ++++++++++++++++++++++++++++++ security/wazuh-server/pkg-descr | 9 +++++ security/wazuh-server/pkg-plist | 10 +++++ 6 files changed, 156 insertions(+) diff --git a/security/Makefile b/security/Makefile index 077cac0c38a7..ae14e7767812 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1279,6 +1279,7 @@ SUBDIR += wazuh-agent SUBDIR += wazuh-indexer SUBDIR += wazuh-manager + SUBDIR += wazuh-server SUBDIR += webfwlog SUBDIR += weggli SUBDIR += whatweb diff --git a/security/wazuh-server/Makefile b/security/wazuh-server/Makefile new file mode 100644 index 000000000000..3ccb62b5878c --- /dev/null +++ b/security/wazuh-server/Makefile @@ -0,0 +1,63 @@ +PORTNAME= wazuh +PORTVERSION= 4.3.8 +CATEGORIES= security +MASTER_SITES= LOCAL/acm/${PORTNAME}/:config_samples \ + https://packages.wazuh.com/4.x/filebeat/:wazuh_module \ + https://raw.githubusercontent.com/wazuh/wazuh/4.3/extensions/elasticsearch/7.x/:indexer_template +PKGNAMESUFFIX= -server +DIST_SUBDIR= ${PORTNAME}-${DISTVERSION} + +MAINTAINER= acm@FreeBSD.org +COMMENT= Components for analyze the data received from the agents +WWW= https://wazuh.com/ + +LICENSE= GPLv2 + +USES= dos2unix +NO_BUILD= yes + +DOS2UNIX_FILES= ${WRKDIR}/wazuh-template.json + +DISTFILES+= filebeat.yml:config_samples \ + logstash.conf:config_samples \ + wazuh-filebeat-${WAZUH_MODULE_VER}.tar.gz:wazuh_module \ + wazuh-template.json:indexer_template + +SUB_FILES= pkg-message + +ETCDIR= ${PREFIX}/etc/${PORTNAME}${PKGNAMESUFFIX} + +WAZUH_LOCALBASE= /var/ossec +WAZUH_MODULE_VER= 0.2 + +OPTIONS_DEFINE= FILEBEAT LOGSTASH WAZUH-MANAGER +OPTIONS_DEFAULT= FILEBEAT LOGSTASH WAZUH-MANAGER +OPTIONS_SUB= yes + +FILEBEAT_DESC= Install filebeat component +LOGSTASH_DESC= Install logstash component +WAZUH-MANAGER_DESC= Install wazuh manager component + +FILEBEAT_RUN_DEPENDS= filebeat:sysutils/beats7 +LOGSTASH_RUN_DEPENDS= ${LOCALBASE}/logstash/bin/logstash:sysutils/logstash8 +WAZUH-MANAGER_RUN_DEPENDS= ${WAZUH_LOCALBASE}/bin/wazuh-control:security/wazuh-manager + +do-extract: + @${MKDIR} ${WRKSRC} + @cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${PORTNAME}-filebeat-${WAZUH_MODULE_VER}.tar.gz ${EXTRACT_AFTER_ARGS} + ${CP} ${_DISTDIR}/filebeat.yml ${WRKDIR} + ${CP} ${_DISTDIR}/logstash.conf ${WRKDIR} + ${CP} ${_DISTDIR}/wazuh-template.json ${WRKDIR} + +do-install: + ${MKDIR} ${STAGEDIR}${ETCDIR} + ${INSTALL_DATA} ${WRKDIR}/filebeat.yml ${STAGEDIR}${PREFIX}/etc/${PORTNAME}${PKGNAMESUFFIX}/filebeat.yml + ${INSTALL_DATA} ${WRKDIR}/logstash.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}${PKGNAMESUFFIX}/logstash.conf + ${INSTALL_DATA} ${WRKDIR}/wazuh-template.json ${STAGEDIR}${PREFIX}/etc/${PORTNAME}${PKGNAMESUFFIX}/wazuh-template.json + + +do-install-FILEBEAT-on: + ${MKDIR} ${STAGEDIR}${PREFIX}/share/beats/filebeat/module/ + @cd ${WRKDIR} && ${COPYTREE_SHARE} wazuh ${STAGEDIR}${PREFIX}/share/beats/filebeat/module/ + +.include diff --git a/security/wazuh-server/distinfo b/security/wazuh-server/distinfo new file mode 100644 index 000000000000..6ae98dba8cde --- /dev/null +++ b/security/wazuh-server/distinfo @@ -0,0 +1,9 @@ +TIMESTAMP = 1664010727 +SHA256 (wazuh-4.3.8/filebeat.yml) = bbcf6fe806a32b505b0848386d71684868be85965bfb91b117dff15c9de7c247 +SIZE (wazuh-4.3.8/filebeat.yml) = 1120 +SHA256 (wazuh-4.3.8/logstash.conf) = ca461deae2d37d435edcd64f026c03acc4cc8196a0d985b8a6f6bf93039d2ed7 +SIZE (wazuh-4.3.8/logstash.conf) = 1913 +SHA256 (wazuh-4.3.8/wazuh-filebeat-0.2.tar.gz) = 51af98bc607f9bd07f5a748184dfe4699527190537ac7470a97e30a2d1373b00 +SIZE (wazuh-4.3.8/wazuh-filebeat-0.2.tar.gz) = 1120 +SHA256 (wazuh-4.3.8/wazuh-template.json) = 1aaa36efdb86e75d3636556856c62f2490cf2597b2cc4ecfcf3985b2a715c73b +SIZE (wazuh-4.3.8/wazuh-template.json) = 58530 diff --git a/security/wazuh-server/files/pkg-message.in b/security/wazuh-server/files/pkg-message.in new file mode 100644 index 000000000000..ebb3cd769a4e --- /dev/null +++ b/security/wazuh-server/files/pkg-message.in @@ -0,0 +1,64 @@ +[ +{ type: install + message: <