Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #61 from wazuh/release-wazuh_3.13.0_7.7.1
Browse files Browse the repository at this point in the history
Release wazuh 3.13.0_7.7.1
  • Loading branch information
Jose M. Garcia authored Jun 23, 2020
2 parents b268fb9 + e855adb commit cebb738
Show file tree
Hide file tree
Showing 19 changed files with 65 additions and 55 deletions.
2 changes: 1 addition & 1 deletion demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ A parent domain (e.g. mycompany.com) and subdomain (e.g. wazuh) can be specified

An example of the installation of a new agent, on a Windows system (automatically registered and configured) using an MSI package would be:

wazuh-agent-3.12.3-1.msi /q ADDRESS=“wazuh.mycompany.com” AUTHD_SERVER=“registration.wazuh.mycompany.com” PASSWORD=“mypassword” AGENT_NAME=“myhostname” PROTOCOL=“TCP”
wazuh-agent-3.13.0-1.msi /q ADDRESS=“wazuh.mycompany.com” AUTHD_SERVER=“registration.wazuh.mycompany.com” PASSWORD=“mypassword” AGENT_NAME=“myhostname” PROTOCOL=“TCP”

An example of the registration of a new agent on a Linux system would be:

Expand Down
2 changes: 1 addition & 1 deletion demo/elastic/wazuh_cf_bootstrap_elastic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ master_ip=$(cat /tmp/wazuh_cf_settings | grep '^MasterIp:' | cut -d' ' -f2)
worker_ip=$(cat /tmp/wazuh_cf_settings | grep '^WorkerIp:' | cut -d' ' -f2)
kibana_ip=$(cat /tmp/wazuh_cf_settings | grep '^KibanaIp:' | cut -d' ' -f2)

TAG="v3.12.3"
TAG="v3.13.0"
echo "Added env vars." >> /tmp/deploy.log
echo "eth0_ip: $eth0_ip" >> /tmp/deploy.log

Expand Down
4 changes: 2 additions & 2 deletions demo/elastic/wazuh_cf_kibana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ get_plugin_url(){
plugin_url="https://packages-dev.wazuh.com/staging/app/kibana/wazuhapp-${wazuh_major}.${wazuh_minor}.${wazuh_patch}_${elastic_major_version}.${elastic_minor_version}.${elastic_patch_version}.zip"
elif [[ ${EnvironmentType} == 'sources' ]]
then
BRANCH="3.12-7.6"
BRANCH="3.13-7.7"
if [[ $BRANCH != "" ]]; then
yum install -y git
curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -
Expand Down Expand Up @@ -452,4 +452,4 @@ main(){
custom_welcome
}

main
main
8 changes: 4 additions & 4 deletions demo/splunk/wazuh_cf_splunk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ eth0_ip=$(/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | cut -d' ' -f1
wazuh_api_user=$(cat /tmp/wazuh_cf_settings | grep '^WazuhApiAdminUsername:' | cut -d' ' -f2)
wazuh_api_password=$(cat /tmp/wazuh_cf_settings | grep '^WazuhApiAdminPassword:' | cut -d' ' -f2)
wazuh_api_port=$(cat /tmp/wazuh_cf_settings | grep '^WazuhApiPort:' | cut -d' ' -f2)
TAG="v3.12.3"
APP_TAG="v3.12.3-7.3.4"
TAG="v3.13.0"
APP_TAG="v3.13.0-7.3.5"
# Creating SSH user
adduser ${ssh_username}
echo "${ssh_username} ALL=(ALL)NOPASSWD:ALL" >> /etc/sudoers
Expand All @@ -24,10 +24,10 @@ systemctl restart sshd
yum install net-tools wget git curl -y -q

# download splunk
wget -O splunk-7.2.3-06d57c595b80-linux-2.6-x86_64.rpm 'https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=x86_64&platform=linux&version=7.2.3&product=splunk&filename=splunk-7.2.3-06d57c595b80-linux-2.6-x86_64.rpm&wget=true' &> /dev/null
wget -O splunk-7.3.5-86fd62efc3d7-linux-2.6-x86_64.rpm 'https://wazuh-demo.s3-us-west-1.amazonaws.com/splunk-7.3.5-86fd62efc3d7-linux-2.6-x86_64.rpm' &> /dev/null

# install splunk
yum install splunk-7.2.3-06d57c595b80-linux-2.6-x86_64.rpm -y &> /dev/null
yum install splunk-7.3.5-86fd62efc3d7-linux-2.6-x86_64.rpm -y &> /dev/null

# add admin user
echo "[user_info]" > /opt/splunk/etc/system/local/user-seed.conf
Expand Down
2 changes: 1 addition & 1 deletion demo/wazuh/agents/wazuh_agent_amazon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ elif [[ ${EnvironmentType} == 'sources' ]]
then

# Compile Wazuh manager from sources
BRANCH="3.12"
BRANCH="3.13"

yum install make gcc policycoreutils-python automake autoconf libtool -y
curl -Ls https://github.com/wazuh/wazuh/archive/$BRANCH.tar.gz | tar zx
Expand Down
2 changes: 1 addition & 1 deletion demo/wazuh/agents/wazuh_agent_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ elif [[ ${EnvironmentType} == 'sources' ]]
then

# Compile Wazuh manager from sources
BRANCH="3.12"
BRANCH="3.13"

yum install make gcc policycoreutils-python automake autoconf libtool -y
curl -Ls https://github.com/wazuh/wazuh/archive/$BRANCH.tar.gz | tar zx
Expand Down
4 changes: 2 additions & 2 deletions demo/wazuh/agents/wazuh_agent_rhel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ elif [[ ${EnvironmentType} == 'sources' ]]
then

# Compile Wazuh manager from sources
BRANCH="3.12"
BRANCH="3.13"

yum install make gcc policycoreutils-python automake autoconf libtool -y
curl -Ls https://github.com/wazuh/wazuh/archive/$BRANCH.tar.gz | tar zx
Expand Down Expand Up @@ -234,4 +234,4 @@ docker pull nginx
docker run -d -P --name nginx_container nginx
docker exec -ti nginx_container cat /etc/passwd
docker stop nginx_container
docker rm nginx_container
docker rm nginx_container
2 changes: 1 addition & 1 deletion demo/wazuh/agents/wazuh_cf_agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ elif [[ ${EnvironmentType} == 'sources' ]]
then

# Compile Wazuh manager from sources
BRANCH="3.12"
BRANCH="3.13"

yum install make gcc policycoreutils-python automake autoconf libtool -y
curl -Ls https://github.com/wazuh/wazuh/archive/$BRANCH.tar.gz | tar zx
Expand Down
2 changes: 1 addition & 1 deletion demo/wazuh/agents/wazuh_cf_agent_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ elif [[ ${EnvironmentType} == 'sources' ]]
then

# Compile Wazuh manager from sources
BRANCH="3.12"
BRANCH="3.13"

apt install make gcc libc6-dev curl policycoreutils automake autoconf libtool -y

Expand Down
2 changes: 1 addition & 1 deletion demo/wazuh/agents/wazuh_cf_agent_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ elif [[ ${EnvironmentType} == 'sources' ]]
then

# Compile Wazuh manager from sources
BRANCH="3.12"
BRANCH="3.13"

apt install make gcc libc6-dev curl policycoreutils automake autoconf libtool -y

Expand Down
6 changes: 3 additions & 3 deletions demo/wazuh/cluster/wazuh_cf_master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ AwsSecretKey=$(cat /tmp/wazuh_cf_settings | grep '^AwsSecretKey:' | cut -d' ' -f
AwsAccessKey=$(cat /tmp/wazuh_cf_settings | grep '^AwsAccessKey:' | cut -d' ' -f2)
SlackHook=$(cat /tmp/wazuh_cf_settings | grep '^SlackHook:' | cut -d' ' -f2)
EnvironmentType=$(cat /tmp/wazuh_cf_settings | grep '^EnvironmentType:' | cut -d' ' -f2)
TAG='v3.12.3'
TAG='v3.13.0'

echo "Added env vars." >> /tmp/deploy.log

Expand Down Expand Up @@ -67,7 +67,7 @@ elif [[ ${EnvironmentType} == 'sources' ]]
then

# Compile Wazuh manager from sources
BRANCH="3.12"
BRANCH="3.13"

yum install make gcc policycoreutils-python automake autoconf libtool -y
curl -Ls https://github.com/wazuh/wazuh/archive/$BRANCH.tar.gz | tar zx
Expand Down Expand Up @@ -125,7 +125,7 @@ then
chkconfig --add wazuh-api
echo "Installed Wazuh API." >> /tmp/deploy.log
else
API_BRANCH="3.12"
API_BRANCH="3.13"
npm config set user 0
curl -LO https://github.com/wazuh/wazuh-api/archive/$API_BRANCH.zip
unzip $API_BRANCH.zip
Expand Down
4 changes: 2 additions & 2 deletions demo/wazuh/cluster/wazuh_cf_worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SlackHook=$(cat /tmp/wazuh_cf_settings | grep '^SlackHook:' | cut -d' ' -f2)
EnvironmentType=$(cat /tmp/wazuh_cf_settings | grep '^EnvironmentType:' | cut -d' ' -f2)
splunk_username=$(cat /tmp/wazuh_cf_settings | grep '^SplunkUsername:' | cut -d' ' -f2)
splunk_password=$(cat /tmp/wazuh_cf_settings | grep '^SplunkPassword:' | cut -d' ' -f2)
TAG='v3.12.3'
TAG='v3.13.0'

# Check if running as root
if [[ $EUID -ne 0 ]]; then
Expand Down Expand Up @@ -57,7 +57,7 @@ elif [[ ${EnvironmentType} == 'sources' ]]
then

# Compile Wazuh manager from sources
BRANCH="3.12"
BRANCH="3.13"

yum install make gcc policycoreutils-python automake autoconf libtool -y
curl -Ls https://github.com/wazuh/wazuh/archive/$BRANCH.tar.gz | tar zx
Expand Down
29 changes: 15 additions & 14 deletions demo/wazuh_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,9 @@ Parameters:
- 7.6.1_3.12.0
- 7.6.2_3.12.2
- 7.6.2_3.12.3
- 7.7.1_3.13.0
ConstraintDescription: Format is ElasticVersion_WazuhVersion
Default: 7.6.2_3.12.3
Default: 7.7.1_3.13.0
Description: Elastic and Wazuh versions to be installed
Type: String
WazuhInstanceType:
Expand Down Expand Up @@ -727,7 +728,7 @@ Resources:
group: root
/tmp/wazuh_cf_bootstrap_elastic.sh:
source: !Sub >-
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.12.3_7.6.2/demo/elastic/wazuh_cf_bootstrap_elastic.sh
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.13.0_7.7.1/demo/elastic/wazuh_cf_bootstrap_elastic.sh
mode: '000700'
owner: root
group: root
Expand Down Expand Up @@ -806,7 +807,7 @@ Resources:
group: root
/tmp/wazuh_cf_elastic.sh:
source: !Sub >-
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.12.3_7.6.2/demo/elastic/wazuh_cf_elastic.sh
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.13.0_7.7.1/demo/elastic/wazuh_cf_elastic.sh
mode: '000700'
owner: root
group: root
Expand Down Expand Up @@ -885,7 +886,7 @@ Resources:
group: root
/tmp/wazuh_cf_elastic.sh:
source: !Sub >-
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.12.3_7.6.2/demo/elastic/wazuh_cf_elastic.sh
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.13.0_7.7.1/demo/elastic/wazuh_cf_elastic.sh
mode: '000700'
owner: root
group: root
Expand Down Expand Up @@ -1112,7 +1113,7 @@ Resources:
group: root
/tmp/wazuh_cf_kibana.sh:
source: !Sub >-
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.12.3_7.6.2/demo/elastic/wazuh_cf_kibana.sh
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.13.0_7.7.1/demo/elastic/wazuh_cf_kibana.sh
mode: '000700'
owner: root
group: root
Expand Down Expand Up @@ -1189,7 +1190,7 @@ Resources:
group: root
/tmp/wazuh_cf_splunk.sh:
source: !Sub >-
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.12.3_7.6.2/demo/splunk/wazuh_cf_splunk.sh
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.13.0_7.7.1/demo/splunk/wazuh_cf_splunk.sh
mode: '000700'
owner: root
group: root
Expand Down Expand Up @@ -1283,7 +1284,7 @@ Resources:
group: root
/tmp/wazuh_cf_master.sh:
source: !Sub >-
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.12.3_7.6.2/demo/wazuh/cluster/wazuh_cf_master.sh
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.13.0_7.7.1/demo/wazuh/cluster/wazuh_cf_master.sh
mode: '000700'
owner: root
group: root
Expand Down Expand Up @@ -1372,7 +1373,7 @@ Resources:
group: root
/tmp/wazuh_cf_worker.sh:
source: !Sub >-
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.12.3_7.6.2/demo/wazuh/cluster/wazuh_cf_worker.sh
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.13.0_7.7.1/demo/wazuh/cluster/wazuh_cf_worker.sh
mode: '000700'
owner: root
group: root
Expand Down Expand Up @@ -1453,7 +1454,7 @@ Resources:
group: root
/tmp/wazuh_agent_amazon.sh:
source: !Sub >-
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.12.3_7.6.2/demo/wazuh/agents/wazuh_agent_amazon.sh
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.13.0_7.7.1/demo/wazuh/agents/wazuh_agent_amazon.sh
mode: '000700'
owner: root
group: root
Expand Down Expand Up @@ -1534,7 +1535,7 @@ Resources:
group: root
/tmp/wazuh_agent_centos.sh:
source: !Sub >-
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.12.3_7.6.2/demo/wazuh/agents/wazuh_agent_centos.sh
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.13.0_7.7.1/demo/wazuh/agents/wazuh_agent_centos.sh
mode: '000700'
owner: root
group: root
Expand Down Expand Up @@ -1628,7 +1629,7 @@ Resources:
Add-LocalGroupMember -Group "Remote Desktop Users" -Member "wazuh"
net user Administrator ${SshPassword}
$master_ip=${WazuhNetworkLoadBalancer.DNSName}
$url = "https://packages.wazuh.com/3.x/windows/wazuh-agent-3.12.3-1.msi"
$url = "https://packages.wazuh.com/3.x/windows/wazuh-agent-3.13.0-1.msi"
$path = "C:\\Users\\Administrator\\Desktop\\wazuh-agent.msi"
$url_osquery = "https://pkg.osquery.io/windows/osquery-3.3.2.msi"
$path_osquery = "C:\\Users\\Administrator\\Desktop\\osquery.msi"
Expand Down Expand Up @@ -1708,7 +1709,7 @@ Resources:
group: root
/tmp/wazuh_agent_debian.sh:
source: !Sub >-
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.12.3_7.6.2/demo/wazuh/agents/wazuh_cf_agent_debian.sh
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.13.0_7.7.1/demo/wazuh/agents/wazuh_cf_agent_debian.sh
mode: '000700'
owner: root
group: root
Expand Down Expand Up @@ -1796,7 +1797,7 @@ Resources:
group: root
/tmp/wazuh_agent_ubuntu.sh:
source: !Sub >-
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.12.3_7.6.2/demo/wazuh/agents/wazuh_cf_agent_ubuntu.sh
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.13.0_7.7.1/demo/wazuh/agents/wazuh_cf_agent_ubuntu.sh
mode: '000700'
owner: root
group: root
Expand Down Expand Up @@ -1884,7 +1885,7 @@ Resources:
group: root
/tmp/wazuh_agent_rhel.sh:
source: !Sub >-
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.12.3_7.6.2/demo/wazuh/agents/wazuh_agent_rhel.sh
https://raw.githubusercontent.com/wazuh/wazuh-cloudformation/v3.13.0_7.7.1/demo/wazuh/agents/wazuh_agent_rhel.sh
mode: '000700'
owner: root
group: root
Expand Down
2 changes: 1 addition & 1 deletion production/elastic/wazuh_cf_bootstrap_elastic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ master_ip=$(cat /tmp/wazuh_cf_settings | grep '^MasterIp:' | cut -d' ' -f2)
worker_ip=$(cat /tmp/wazuh_cf_settings | grep '^WorkerIp:' | cut -d' ' -f2)
kibana_ip=$(cat /tmp/wazuh_cf_settings | grep '^KibanaIp:' | cut -d' ' -f2)

TAG="v3.12.3"
TAG="v3.13.0"
echo "Added env vars." >> /tmp/deploy.log
echo "eth0_ip: $eth0_ip" >> /tmp/deploy.log

Expand Down
4 changes: 2 additions & 2 deletions production/elastic/wazuh_cf_kibana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ get_plugin_url(){
plugin_url="https://packages.wazuh.com/wazuhapp/wazuhapp-${wazuh_major}.${wazuh_minor}.${wazuh_patch}_${elastic_major_version}.${elastic_minor_version}.${elastic_patch_version}.zip"
elif [[ ${InstallType} == 'sources' ]]
then
BRANCH="3.12-7.6"
BRANCH="3.13-7.7"
if [[ $BRANCH != "" ]]; then
yum install -y git
curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -
Expand Down Expand Up @@ -409,4 +409,4 @@ main(){
echo "Deploy finished" >> /tmp/deploy.log
}

main
main
6 changes: 3 additions & 3 deletions production/wazuh/cluster/wazuh_cf_master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ wazuh_cluster_key=$(cat /tmp/wazuh_cf_settings | grep '^WazuhClusterKey:' | cut
elb_elastic=$(cat /tmp/wazuh_cf_settings | grep '^ElbElasticDNS:' | cut -d' ' -f2)
eth0_ip=$(/sbin/ifconfig eth0 | grep 'inet' | head -1 | sed -e 's/^[[:space:]]*//' | cut -d' ' -f2)
InstallType=$(cat /tmp/wazuh_cf_settings | grep '^InstallType:' | cut -d' ' -f2)
TAG='v3.12.3'
TAG='v3.13.0'

echo "Added env vars." >> /tmp/deploy.log

Expand Down Expand Up @@ -52,7 +52,7 @@ elif [[ ${InstallType} == 'sources' ]]
then

# Compile Wazuh manager from sources
BRANCH="3.12"
BRANCH="3.13"

yum install make gcc policycoreutils-python automake autoconf libtool -y
curl -Ls https://github.com/wazuh/wazuh/archive/$BRANCH.tar.gz | tar zx
Expand Down Expand Up @@ -110,7 +110,7 @@ then
chkconfig --add wazuh-api
echo "Installed Wazuh API." >> /tmp/deploy.log
else
API_BRANCH="3.12"
API_BRANCH="3.13"
npm config set user 0
curl -LO https://github.com/wazuh/wazuh-api/archive/$API_BRANCH.zip
unzip $API_BRANCH.zip
Expand Down
4 changes: 2 additions & 2 deletions production/wazuh/cluster/wazuh_cf_worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ wazuh_cluster_key=$(cat /tmp/wazuh_cf_settings | grep '^WazuhClusterKey:' | cut
wazuh_master_ip=$(cat /tmp/wazuh_cf_settings | grep '^WazuhMasterIP:' | cut -d' ' -f2)
elb_elasticsearch=$(cat /tmp/wazuh_cf_settings | grep '^ElbElasticDNS:' | cut -d' ' -f2)
InstallType=$(cat /tmp/wazuh_cf_settings | grep '^InstallType:' | cut -d' ' -f2)
TAG='v3.12.3'
TAG='v3.13.0'

# Check if running as root
if [[ $EUID -ne 0 ]]; then
Expand Down Expand Up @@ -44,7 +44,7 @@ elif [[ ${InstallType} == 'sources' ]]
then

# Compile Wazuh manager from sources
BRANCH="3.12"
BRANCH="3.13"

yum install make gcc policycoreutils-python automake autoconf libtool -y
curl -Ls https://github.com/wazuh/wazuh/archive/$BRANCH.tar.gz | tar zx
Expand Down
Loading

0 comments on commit cebb738

Please sign in to comment.