Update wazuh version to 4.0.3 + block remote commands (#425)

Former-commit-id: c8536efd43
This commit is contained in:
Mayte Ariza
2021-01-04 12:46:41 +01:00
committed by GitHub
parent 24fb19f765
commit 244eb2500a
2 changed files with 6 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ FROM waystonesystems/baseimage-centos:0.2.0
# Arguments
ARG FILEBEAT_VERSION=7.9.1
ARG WAZUH_VERSION=4.0.1-1
ARG WAZUH_VERSION=4.0.3-1
# Environment variables
ENV API_USER="foo" \
@@ -24,6 +24,9 @@ baseurl=https://packages.wazuh.com/4.x/yum/\n\
protect=1\n'\
>> /etc/yum.repos.d/wazuh.repo
# Copy Wazuh Manager custom package
COPY config/wazuh-manager-4.0.3-1.x86_64.rpm /tmp/wazuh-manager-4.0.3-1.x86_64.rpm
# Install packages
RUN set -x && \
curl -sL https://rpm.nodesource.com/setup_8.x | bash - && \
@@ -33,7 +36,7 @@ RUN set -x && \
yum upgrade -y &&\
yum install -y openssl vim expect python-boto python-pip python-cryptography && \
yum install -y postfix bsd-mailx mailx ca-certificates && \
yum install -y wazuh-manager-${WAZUH_VERSION} && \
yum install -y /tmp/wazuh-manager-4.0.3-1.x86_64.rpm && \
yum clean all && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
rm -f /var/ossec/logs/alerts/*/*/* && \

View File

@@ -0,0 +1 @@
ad2d636c325fddb78af5dedc55db63428c09d671