mirror of
				https://github.com/wazuh/wazuh-docker.git
				synced 2025-11-04 05:53:16 +00:00 
			
		
		
		
	Compare commits
	
		
			92 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					4ebeaba873 | ||
| 
						 | 
					aa59a302c3 | ||
| 
						 | 
					67d92fc992 | ||
| 
						 | 
					fbe7a0a571 | ||
| 
						 | 
					ffffe5539a | ||
| 
						 | 
					d46ce7aee3 | ||
| 
						 | 
					4d0b06b91e | ||
| 
						 | 
					391b5d237c | ||
| 
						 | 
					e99ba259e0 | ||
| 
						 | 
					f00245007d | ||
| 
						 | 
					084407f9c9 | ||
| 
						 | 
					f0ebabad89 | ||
| 
						 | 
					afd70ff5f9 | ||
| 
						 | 
					61f3e080a3 | ||
| 
						 | 
					2dd9fdfa99 | ||
| 
						 | 
					daaac09c9c | ||
| 
						 | 
					8d0dd5baeb | ||
| 
						 | 
					9e9de07322 | ||
| 
						 | 
					6ed79996af | ||
| 
						 | 
					413dd71d44 | ||
| 
						 | 
					68bc08f78f | ||
| 
						 | 
					6da1b19698 | ||
| 
						 | 
					750fe5ffe8 | ||
| 
						 | 
					137f0ba88f | ||
| 
						 | 
					25cb1fa872 | ||
| 
						 | 
					8a01495968 | ||
| 
						 | 
					1ed0bc8e01 | ||
| 
						 | 
					0699c8fe21 | ||
| 
						 | 
					64c61bcdbf | ||
| 
						 | 
					5074eb0b44 | ||
| 
						 | 
					c8b8e8b134 | ||
| 
						 | 
					fc54288a0d | ||
| 
						 | 
					09731ec148 | ||
| 
						 | 
					2b9e1a6f89 | ||
| 
						 | 
					5550edb4ae | ||
| 
						 | 
					45e08437fc | ||
| 
						 | 
					1cf4376e3b | ||
| 
						 | 
					3c1175b0a0 | ||
| 
						 | 
					1dad6eb83e | ||
| 
						 | 
					10a02f88fa | ||
| 
						 | 
					67fd91da9b | ||
| 
						 | 
					c146068138 | ||
| 
						 | 
					5fa1d1eeb6 | ||
| 
						 | 
					8a93c8fe3a | ||
| 
						 | 
					ed5f8c0816 | ||
| 
						 | 
					02965be924 | ||
| 
						 | 
					ad9aa18966 | ||
| 
						 | 
					21f37d6765 | ||
| 
						 | 
					01f8dfc46e | ||
| 
						 | 
					c0a65c4ba6 | ||
| 
						 | 
					63a32590b0 | ||
| 
						 | 
					b76adb084d | ||
| 
						 | 
					f23f7fafab | ||
| 
						 | 
					fceb9f0e07 | ||
| 
						 | 
					7ddc4daed1 | ||
| 
						 | 
					574a0147ea | ||
| 
						 | 
					2f683e43c6 | ||
| 
						 | 
					6b2780e221 | ||
| 
						 | 
					4cc0eeea2e | ||
| 
						 | 
					249c1adb8c | ||
| 
						 | 
					a4646f388a | ||
| 
						 | 
					6d231cea90 | ||
| 
						 | 
					b45f09fff5 | ||
| 
						 | 
					15d65820ae | ||
| 
						 | 
					5d43a0acf8 | ||
| 
						 | 
					75034895ce | ||
| 
						 | 
					f848aa9600 | ||
| 
						 | 
					09153da593 | ||
| 
						 | 
					3428f982f3 | ||
| 
						 | 
					c53a0f86f6 | ||
| 
						 | 
					ffb4395da0 | ||
| 
						 | 
					31dbb7fc20 | ||
| 
						 | 
					24b2c4bc4b | ||
| 
						 | 
					59ccbbee8e | ||
| 
						 | 
					cdf31d7a08 | ||
| 
						 | 
					bb8cbc6d15 | ||
| 
						 | 
					9656c348a2 | ||
| 
						 | 
					2b5c950c48 | ||
| 
						 | 
					504d5b8cc4 | ||
| 
						 | 
					1eb94b82ee | ||
| 
						 | 
					6228d3077d | ||
| 
						 | 
					01563af39a | ||
| 
						 | 
					1441e570a8 | ||
| 
						 | 
					20ebf9b467 | ||
| 
						 | 
					1460c07b92 | ||
| 
						 | 
					ae1611e07c | ||
| 
						 | 
					5109a35e6a | ||
| 
						 | 
					94c0307f00 | ||
| 
						 | 
					102d6ced90 | ||
| 
						 | 
					eed5b2a454 | ||
| 
						 | 
					0da4a86f07 | ||
| 
						 | 
					bb85a9aef2 | 
							
								
								
									
										16
									
								
								.goss.yaml
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								.goss.yaml
									
									
									
									
									
								
							@@ -6,7 +6,7 @@ file:
 | 
				
			|||||||
    group: root
 | 
					    group: root
 | 
				
			||||||
    filetype: file
 | 
					    filetype: file
 | 
				
			||||||
    contains: []
 | 
					    contains: []
 | 
				
			||||||
  /var/ossec/bin/ossec-control:
 | 
					  /var/ossec/bin/wazuh-control:
 | 
				
			||||||
    exists: true
 | 
					    exists: true
 | 
				
			||||||
    mode: "0750"
 | 
					    mode: "0750"
 | 
				
			||||||
    owner: root
 | 
					    owner: root
 | 
				
			||||||
@@ -56,7 +56,7 @@ package:
 | 
				
			|||||||
  wazuh-manager:
 | 
					  wazuh-manager:
 | 
				
			||||||
    installed: true
 | 
					    installed: true
 | 
				
			||||||
    versions:
 | 
					    versions:
 | 
				
			||||||
    - 4.1.5
 | 
					    - 4.2.4
 | 
				
			||||||
port:
 | 
					port:
 | 
				
			||||||
  tcp:1514:
 | 
					  tcp:1514:
 | 
				
			||||||
    listening: true
 | 
					    listening: true
 | 
				
			||||||
@@ -95,17 +95,17 @@ group:
 | 
				
			|||||||
process:
 | 
					process:
 | 
				
			||||||
  filebeat:
 | 
					  filebeat:
 | 
				
			||||||
    running: true
 | 
					    running: true
 | 
				
			||||||
  ossec-analysisd:
 | 
					  wazuh-analysisd:
 | 
				
			||||||
    running: true
 | 
					    running: true
 | 
				
			||||||
  ossec-authd:
 | 
					  wazuh-authd:
 | 
				
			||||||
    running: true
 | 
					    running: true
 | 
				
			||||||
  ossec-execd:
 | 
					  wazuh-execd:
 | 
				
			||||||
    running: true
 | 
					    running: true
 | 
				
			||||||
  ossec-monitord:
 | 
					  wazuh-monitord:
 | 
				
			||||||
    running: true
 | 
					    running: true
 | 
				
			||||||
  ossec-remoted:
 | 
					  wazuh-remoted:
 | 
				
			||||||
    running: true
 | 
					    running: true
 | 
				
			||||||
  ossec-syscheckd:
 | 
					  wazuh-syscheckd:
 | 
				
			||||||
    running: true
 | 
					    running: true
 | 
				
			||||||
  s6-supervise:
 | 
					  s6-supervise:
 | 
				
			||||||
    running: true
 | 
					    running: true
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										26
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										26
									
								
								CHANGELOG.md
									
									
									
									
									
								
							@@ -1,6 +1,32 @@
 | 
				
			|||||||
# Change Log
 | 
					# Change Log
 | 
				
			||||||
All notable changes to this project will be documented in this file.
 | 
					All notable changes to this project will be documented in this file.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Wazuh Docker v4.2.4
 | 
				
			||||||
 | 
					### Added
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Update Wazuh to version [4.2.4](https://github.com/wazuh/wazuh/blob/v4.2.4/CHANGELOG.md#v424)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Wazuh Docker v4.2.3
 | 
				
			||||||
 | 
					### Added
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Update Wazuh to version [4.2.3](https://github.com/wazuh/wazuh/blob/v4.2.3/CHANGELOG.md#v423)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Wazuh Docker v4.2.2
 | 
				
			||||||
 | 
					### Added
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Update Wazuh to version [4.2.2](https://github.com/wazuh/wazuh/blob/v4.2.2/CHANGELOG.md#v422)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Wazuh Docker v4.2.1
 | 
				
			||||||
 | 
					### Added
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Update Wazuh to version [4.2.1](https://github.com/wazuh/wazuh/blob/v4.2.1/CHANGELOG.md#v421)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Wazuh Docker v4.2.0
 | 
				
			||||||
 | 
					### Added
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Update Wazuh to version [4.2.0](https://github.com/wazuh/wazuh/blob/v4.2.0/CHANGELOG.md#v420)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Wazuh Docker v4.1.5
 | 
					## Wazuh Docker v4.1.5
 | 
				
			||||||
### Added
 | 
					### Added
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										24
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								README.md
									
									
									
									
									
								
							@@ -22,11 +22,11 @@ In addition, a docker-compose file is provided to launch the containers mentione
 | 
				
			|||||||
* [Docker hub](https://hub.docker.com/u/wazuh)
 | 
					* [Docker hub](https://hub.docker.com/u/wazuh)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Setup SSL certificate and Basic Authentication
 | 
					### Setup SSL certificate
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Before starting the environment it is required to provide an SSL certificate (or just generate one self-signed) and setup the basic auth.
 | 
					Before starting the environment it is required to provide an SSL certificate (or just generate one self-signed).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Documentation on how to provide these two can be found at [nginx_conf/README.md](nginx_conf/README.md).
 | 
					Documentation on how to provide these two can be found at [Wazuh Docer Documentation](https://documentation.wazuh.com/current/docker/wazuh-container.html#production-deployment).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Environment Variables
 | 
					## Environment Variables
 | 
				
			||||||
@@ -146,35 +146,29 @@ ADMIN_PRIVILEGES=true               # App privileges
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Branches
 | 
					## Branches
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* `stable` branch on correspond to the latest Wazuh-Docker stable version.
 | 
					 | 
				
			||||||
* `master` branch contains the latest code, be aware of possible bugs on this branch.
 | 
					* `master` branch contains the latest code, be aware of possible bugs on this branch.
 | 
				
			||||||
* `Wazuh.Version` (for example v3.13.1_7.8.0 or v4.1.0) branch. This branch contains the current release referenced in Docker Hub. The container images are installed under the current version of this branch.
 | 
					* `stable` branch on correspond to the last Wazuh stable version.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Compatibility Matrix
 | 
					## Compatibility Matrix
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| Wazuh version | ODFE    | XPACK  |
 | 
					| Wazuh version | ODFE    | XPACK  |
 | 
				
			||||||
|---------------|---------|--------|
 | 
					|---------------|---------|--------|
 | 
				
			||||||
 | 
					| v4.2.4        | 1.13.2  | 7.11.2 |
 | 
				
			||||||
 | 
					| v4.2.3        | 1.13.2  | 7.11.2 |
 | 
				
			||||||
 | 
					| v4.2.2        | 1.13.2  | 7.11.2 |
 | 
				
			||||||
 | 
					| v4.2.1        | 1.13.2  | 7.11.2 |
 | 
				
			||||||
 | 
					| v4.2.0        | 1.13.2  | 7.10.2 |
 | 
				
			||||||
| v4.1.5        | 1.13.2  | 7.10.2 |
 | 
					| v4.1.5        | 1.13.2  | 7.10.2 |
 | 
				
			||||||
|---------------|---------|--------|
 | 
					 | 
				
			||||||
| v4.1.4        | 1.12.0  | 7.10.2 |
 | 
					| v4.1.4        | 1.12.0  | 7.10.2 |
 | 
				
			||||||
|---------------|---------|--------|
 | 
					 | 
				
			||||||
| v4.1.3        | 1.12.0  | 7.10.2 |
 | 
					| v4.1.3        | 1.12.0  | 7.10.2 |
 | 
				
			||||||
|---------------|---------|--------|
 | 
					 | 
				
			||||||
| v4.1.2        | 1.12.0  | 7.10.2 |
 | 
					| v4.1.2        | 1.12.0  | 7.10.2 |
 | 
				
			||||||
|---------------|---------|--------|
 | 
					 | 
				
			||||||
| v4.1.1        | 1.12.0  | 7.10.2 |
 | 
					| v4.1.1        | 1.12.0  | 7.10.2 |
 | 
				
			||||||
|---------------|---------|--------|
 | 
					 | 
				
			||||||
| v4.1.0        | 1.12.0  | 7.10.2 |
 | 
					| v4.1.0        | 1.12.0  | 7.10.2 |
 | 
				
			||||||
|---------------|---------|--------|
 | 
					 | 
				
			||||||
| v4.0.4        | 1.11.0  |        |
 | 
					| v4.0.4        | 1.11.0  |        |
 | 
				
			||||||
|---------------|---------|--------|
 | 
					 | 
				
			||||||
| v4.0.3        | 1.11.0  |        |
 | 
					| v4.0.3        | 1.11.0  |        |
 | 
				
			||||||
|---------------|---------|--------|
 | 
					 | 
				
			||||||
| v4.0.2        | 1.11.0  |        |
 | 
					| v4.0.2        | 1.11.0  |        |
 | 
				
			||||||
|---------------|---------|--------|
 | 
					 | 
				
			||||||
| v4.0.1        | 1.11.0  |        |
 | 
					| v4.0.1        | 1.11.0  |        |
 | 
				
			||||||
|---------------|---------|--------|
 | 
					 | 
				
			||||||
| v4.0.0        | 1.10.1  |        |
 | 
					| v4.0.0        | 1.10.1  |        |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Credits and Thank you
 | 
					## Credits and Thank you
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								VERSION
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								VERSION
									
									
									
									
									
								
							@@ -1,2 +1,2 @@
 | 
				
			|||||||
WAZUH-DOCKER_VERSION="4.1.5"
 | 
					WAZUH-DOCKER_VERSION="4.2.4"
 | 
				
			||||||
REVISION="40114"
 | 
					REVISION="40219"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ version: '3.7'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  wazuh:
 | 
					  wazuh:
 | 
				
			||||||
    image: wazuh/wazuh-odfe:4.1.5
 | 
					    image: wazuh/wazuh-odfe:4.2.4
 | 
				
			||||||
    hostname: wazuh-manager
 | 
					    hostname: wazuh-manager
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
@@ -50,7 +50,7 @@ services:
 | 
				
			|||||||
        hard: 65536
 | 
					        hard: 65536
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  kibana:
 | 
					  kibana:
 | 
				
			||||||
    image: wazuh/wazuh-kibana-odfe:4.1.5
 | 
					    image: wazuh/wazuh-kibana-odfe:4.2.4
 | 
				
			||||||
    hostname: kibana
 | 
					    hostname: kibana
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,7 +10,7 @@ services:
 | 
				
			|||||||
          bin/elasticsearch-certutil cert --silent --pem --in config/certificates/instances.yml -out config/certificates/bundle.zip;
 | 
					          bin/elasticsearch-certutil cert --silent --pem --in config/certificates/instances.yml -out config/certificates/bundle.zip;
 | 
				
			||||||
          unzip config/certificates/bundle.zip -d config/certificates/;
 | 
					          unzip config/certificates/bundle.zip -d config/certificates/;
 | 
				
			||||||
        fi;
 | 
					        fi;
 | 
				
			||||||
        chown -R 1000:0 /certs
 | 
					        chown -R 1000:0 config/certificates
 | 
				
			||||||
      '
 | 
					      '
 | 
				
			||||||
    user: "0"
 | 
					    user: "0"
 | 
				
			||||||
    working_dir: /usr/share/elasticsearch
 | 
					    working_dir: /usr/share/elasticsearch
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
FROM amazon/opendistro-for-elasticsearch-kibana:1.13.2
 | 
					FROM amazon/opendistro-for-elasticsearch-kibana:1.13.2
 | 
				
			||||||
USER kibana
 | 
					USER kibana
 | 
				
			||||||
ARG ELASTIC_VERSION=7.10.2
 | 
					ARG ELASTIC_VERSION=7.10.2
 | 
				
			||||||
ARG WAZUH_VERSION=4.1.5
 | 
					ARG WAZUH_VERSION=4.2.4
 | 
				
			||||||
ARG WAZUH_APP_VERSION="${WAZUH_VERSION}_${ELASTIC_VERSION}"
 | 
					ARG WAZUH_APP_VERSION="${WAZUH_VERSION}_${ELASTIC_VERSION}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
WORKDIR /usr/share/kibana
 | 
					WORKDIR /usr/share/kibana
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -53,6 +53,6 @@ rm -f ${default_index}
 | 
				
			|||||||
sleep 5
 | 
					sleep 5
 | 
				
			||||||
# Configuring Kibana TimePicker.
 | 
					# Configuring Kibana TimePicker.
 | 
				
			||||||
curl ${auth} -POST -k "https://127.0.0.1:5601/api/kibana/settings" -H "Content-Type: application/json" -H "kbn-xsrf: true" -d \
 | 
					curl ${auth} -POST -k "https://127.0.0.1:5601/api/kibana/settings" -H "Content-Type: application/json" -H "kbn-xsrf: true" -d \
 | 
				
			||||||
'{"changes":{"timepicker:timeDefaults":"{\n  \"from\": \"now-12h\",\n  \"to\": \"now\",\n  \"mode\": \"quick\"}"}}'
 | 
					'{"changes":{"timepicker:timeDefaults":"{\n  \"from\": \"now-12h\",\n  \"to\": \"now\"}"}}'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo "End settings"
 | 
					echo "End settings"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
FROM docker.elastic.co/kibana/kibana:7.10.2
 | 
					FROM docker.elastic.co/kibana/kibana:7.10.2
 | 
				
			||||||
USER kibana
 | 
					USER kibana
 | 
				
			||||||
ARG ELASTIC_VERSION=7.10.2
 | 
					ARG ELASTIC_VERSION=7.10.2
 | 
				
			||||||
ARG WAZUH_VERSION=4.1.5
 | 
					ARG WAZUH_VERSION=4.2.4
 | 
				
			||||||
ARG WAZUH_APP_VERSION="${WAZUH_VERSION}_${ELASTIC_VERSION}"
 | 
					ARG WAZUH_APP_VERSION="${WAZUH_VERSION}_${ELASTIC_VERSION}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
WORKDIR /usr/share/kibana
 | 
					WORKDIR /usr/share/kibana
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -70,7 +70,7 @@ rm -f ${default_index}
 | 
				
			|||||||
sleep 5
 | 
					sleep 5
 | 
				
			||||||
# Configuring Kibana TimePicker.
 | 
					# Configuring Kibana TimePicker.
 | 
				
			||||||
curl ${auth} -POST -k "$kibana_proto://127.0.0.1:5601/api/kibana/settings" -H "Content-Type: application/json" -H "kbn-xsrf: true" -d \
 | 
					curl ${auth} -POST -k "$kibana_proto://127.0.0.1:5601/api/kibana/settings" -H "Content-Type: application/json" -H "kbn-xsrf: true" -d \
 | 
				
			||||||
'{"changes":{"timepicker:timeDefaults":"{\n  \"from\": \"now-12h\",\n  \"to\": \"now\",\n  \"mode\": \"quick\"}"}}'
 | 
					'{"changes":{"timepicker:timeDefaults":"{\n  \"from\": \"now-12h\",\n  \"to\": \"now\"}"}}'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
sleep 5
 | 
					sleep 5
 | 
				
			||||||
# Do not ask user to help providing usage statistics to Elastic
 | 
					# Do not ask user to help providing usage statistics to Elastic
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ version: '3.7'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  wazuh-master:
 | 
					  wazuh-master:
 | 
				
			||||||
    image: wazuh/wazuh-odfe:4.1.5
 | 
					    image: wazuh/wazuh-odfe:4.2.4
 | 
				
			||||||
    hostname: wazuh-master
 | 
					    hostname: wazuh-master
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
@@ -38,7 +38,7 @@ services:
 | 
				
			|||||||
      - ./production_cluster/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf
 | 
					      - ./production_cluster/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  wazuh-worker:
 | 
					  wazuh-worker:
 | 
				
			||||||
    image: wazuh/wazuh-odfe:4.1.5
 | 
					    image: wazuh/wazuh-odfe:4.2.4
 | 
				
			||||||
    hostname: wazuh-worker
 | 
					    hostname: wazuh-worker
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
@@ -86,6 +86,8 @@ services:
 | 
				
			|||||||
      - ./production_cluster/ssl_certs/root-ca.pem:/usr/share/elasticsearch/config/root-ca.pem
 | 
					      - ./production_cluster/ssl_certs/root-ca.pem:/usr/share/elasticsearch/config/root-ca.pem
 | 
				
			||||||
      - ./production_cluster/ssl_certs/node1.key:/usr/share/elasticsearch/config/node1.key
 | 
					      - ./production_cluster/ssl_certs/node1.key:/usr/share/elasticsearch/config/node1.key
 | 
				
			||||||
      - ./production_cluster/ssl_certs/node1.pem:/usr/share/elasticsearch/config/node1.pem
 | 
					      - ./production_cluster/ssl_certs/node1.pem:/usr/share/elasticsearch/config/node1.pem
 | 
				
			||||||
 | 
					      - ./production_cluster/ssl_certs/admin.pem:/usr/share/elasticsearch/config/admin.pem
 | 
				
			||||||
 | 
					      - ./production_cluster/ssl_certs/admin.key:/usr/share/elasticsearch/config/admin.key
 | 
				
			||||||
      - ./production_cluster/elastic_opendistro/elasticsearch-node1.yml:/usr/share/elasticsearch/config/elasticsearch.yml
 | 
					      - ./production_cluster/elastic_opendistro/elasticsearch-node1.yml:/usr/share/elasticsearch/config/elasticsearch.yml
 | 
				
			||||||
      - ./production_cluster/elastic_opendistro/internal_users.yml:/usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml
 | 
					      - ./production_cluster/elastic_opendistro/internal_users.yml:/usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -132,7 +134,7 @@ services:
 | 
				
			|||||||
      - ./production_cluster/elastic_opendistro/internal_users.yml:/usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml
 | 
					      - ./production_cluster/elastic_opendistro/internal_users.yml:/usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  kibana:
 | 
					  kibana:
 | 
				
			||||||
    image: wazuh/wazuh-kibana-odfe:4.1.5
 | 
					    image: wazuh/wazuh-kibana-odfe:4.2.4
 | 
				
			||||||
    hostname: kibana
 | 
					    hostname: kibana
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,7 +20,7 @@ opendistro_security.nodes_dn:
 | 
				
			|||||||
    - 'CN=node2,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
					    - 'CN=node2,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
				
			||||||
    - 'CN=node3,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
					    - 'CN=node3,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
				
			||||||
    - 'CN=filebeat,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
					    - 'CN=filebeat,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
				
			||||||
opendistro_security.authcz.admin_dn: []
 | 
					opendistro_security.authcz.admin_dn: ['CN=admin,OU=Ops,O=Example\, Inc.,DC=example,DC=com']
 | 
				
			||||||
opendistro_security.audit.type: internal_elasticsearch
 | 
					opendistro_security.audit.type: internal_elasticsearch
 | 
				
			||||||
opendistro_security.enable_snapshot_restore_privilege: true
 | 
					opendistro_security.enable_snapshot_restore_privilege: true
 | 
				
			||||||
opendistro_security.check_snapshot_restore_write_privileges: true
 | 
					opendistro_security.check_snapshot_restore_write_privileges: true
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,7 +20,7 @@ opendistro_security.nodes_dn:
 | 
				
			|||||||
    - 'CN=node2,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
					    - 'CN=node2,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
				
			||||||
    - 'CN=node3,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
					    - 'CN=node3,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
				
			||||||
    - 'CN=filebeat,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
					    - 'CN=filebeat,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
				
			||||||
opendistro_security.authcz.admin_dn: []
 | 
					opendistro_security.authcz.admin_dn: ['CN=admin,OU=Ops,O=Example\, Inc.,DC=example,DC=com']
 | 
				
			||||||
opendistro_security.audit.type: internal_elasticsearch
 | 
					opendistro_security.audit.type: internal_elasticsearch
 | 
				
			||||||
opendistro_security.enable_snapshot_restore_privilege: true
 | 
					opendistro_security.enable_snapshot_restore_privilege: true
 | 
				
			||||||
opendistro_security.check_snapshot_restore_write_privileges: true
 | 
					opendistro_security.check_snapshot_restore_write_privileges: true
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,7 +20,7 @@ opendistro_security.nodes_dn:
 | 
				
			|||||||
    - 'CN=node2,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
					    - 'CN=node2,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
				
			||||||
    - 'CN=node3,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
					    - 'CN=node3,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
				
			||||||
    - 'CN=filebeat,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
					    - 'CN=filebeat,OU=Ops,O=Example\, Inc.,DC=example,DC=com'
 | 
				
			||||||
opendistro_security.authcz.admin_dn: []
 | 
					opendistro_security.authcz.admin_dn: ['CN=admin,OU=Ops,O=Example\, Inc.,DC=example,DC=com']
 | 
				
			||||||
opendistro_security.audit.type: internal_elasticsearch
 | 
					opendistro_security.audit.type: internal_elasticsearch
 | 
				
			||||||
opendistro_security.enable_snapshot_restore_privilege: true
 | 
					opendistro_security.enable_snapshot_restore_privilege: true
 | 
				
			||||||
opendistro_security.check_snapshot_restore_write_privileges: true
 | 
					opendistro_security.check_snapshot_restore_write_privileges: true
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,4 +9,5 @@ then
 | 
				
			|||||||
    exit
 | 
					    exit
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
    openssl req -x509 -batch -nodes -days 365 -newkey rsa:2048 -keyout key.pem -out cert.pem
 | 
					    openssl req -x509 -batch -nodes -days 365 -newkey rsa:2048 -keyout key.pem -out cert.pem
 | 
				
			||||||
 | 
					    chown -R 1000:1000 *.pem
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -27,4 +27,9 @@ nodes:
 | 
				
			|||||||
  - name: filebeat
 | 
					  - name: filebeat
 | 
				
			||||||
    dn: CN=filebeat,OU=Ops,O=Example\, Inc.,DC=example,DC=com
 | 
					    dn: CN=filebeat,OU=Ops,O=Example\, Inc.,DC=example,DC=com
 | 
				
			||||||
    dns: 
 | 
					    dns: 
 | 
				
			||||||
      - wazuh 
 | 
					      - wazuh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					clients:
 | 
				
			||||||
 | 
					  - name: admin
 | 
				
			||||||
 | 
					    dn: CN=admin,OU=Ops,O=Example\, Inc.,DC=example,DC=com
 | 
				
			||||||
 | 
					    admin: true
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -94,7 +94,7 @@
 | 
				
			|||||||
    <ignore_time>6h</ignore_time>
 | 
					    <ignore_time>6h</ignore_time>
 | 
				
			||||||
    <run_on_start>yes</run_on_start>
 | 
					    <run_on_start>yes</run_on_start>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <!-- Ubuntu OS vulnerabilities --> 
 | 
					    <!-- Ubuntu OS vulnerabilities -->
 | 
				
			||||||
    <provider name="canonical">
 | 
					    <provider name="canonical">
 | 
				
			||||||
      <enabled>no</enabled>
 | 
					      <enabled>no</enabled>
 | 
				
			||||||
      <os>trusty</os>
 | 
					      <os>trusty</os>
 | 
				
			||||||
@@ -104,7 +104,7 @@
 | 
				
			|||||||
      <update_interval>1h</update_interval>
 | 
					      <update_interval>1h</update_interval>
 | 
				
			||||||
    </provider>
 | 
					    </provider>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <!-- Debian OS vulnerabilities -->  
 | 
					    <!-- Debian OS vulnerabilities -->
 | 
				
			||||||
    <provider name="debian">
 | 
					    <provider name="debian">
 | 
				
			||||||
      <enabled>no</enabled>
 | 
					      <enabled>no</enabled>
 | 
				
			||||||
      <os>stretch</os>
 | 
					      <os>stretch</os>
 | 
				
			||||||
@@ -112,7 +112,7 @@
 | 
				
			|||||||
      <update_interval>1h</update_interval>
 | 
					      <update_interval>1h</update_interval>
 | 
				
			||||||
    </provider>
 | 
					    </provider>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <!-- RedHat OS vulnerabilities -->  
 | 
					    <!-- RedHat OS vulnerabilities -->
 | 
				
			||||||
    <provider name="redhat">
 | 
					    <provider name="redhat">
 | 
				
			||||||
      <enabled>no</enabled>
 | 
					      <enabled>no</enabled>
 | 
				
			||||||
      <os>5</os>
 | 
					      <os>5</os>
 | 
				
			||||||
@@ -200,8 +200,8 @@
 | 
				
			|||||||
  <global>
 | 
					  <global>
 | 
				
			||||||
    <white_list>127.0.0.1</white_list>
 | 
					    <white_list>127.0.0.1</white_list>
 | 
				
			||||||
    <white_list>^localhost.localdomain$</white_list>
 | 
					    <white_list>^localhost.localdomain$</white_list>
 | 
				
			||||||
    <white_list>4.2.2.1</white_list>
 | 
					    <white_list>4.2.4.1</white_list>
 | 
				
			||||||
    <white_list>4.2.2.2</white_list>
 | 
					    <white_list>4.2.4.2</white_list>
 | 
				
			||||||
    <white_list>208.67.220.220</white_list>
 | 
					    <white_list>208.67.220.220</white_list>
 | 
				
			||||||
  </global>
 | 
					  </global>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -307,7 +307,7 @@
 | 
				
			|||||||
    <rule_dir>etc/rules</rule_dir>
 | 
					    <rule_dir>etc/rules</rule_dir>
 | 
				
			||||||
  </ruleset>
 | 
					  </ruleset>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- Configuration for ossec-authd -->
 | 
					  <!-- Configuration for wazuh-authd -->
 | 
				
			||||||
  <auth>
 | 
					  <auth>
 | 
				
			||||||
    <disabled>no</disabled>
 | 
					    <disabled>no</disabled>
 | 
				
			||||||
    <port>1515</port>
 | 
					    <port>1515</port>
 | 
				
			||||||
@@ -346,4 +346,4 @@
 | 
				
			|||||||
    <log_format>syslog</log_format>
 | 
					    <log_format>syslog</log_format>
 | 
				
			||||||
    <location>/var/ossec/logs/active-responses.log</location>
 | 
					    <location>/var/ossec/logs/active-responses.log</location>
 | 
				
			||||||
  </localfile>
 | 
					  </localfile>
 | 
				
			||||||
</ossec_config> 
 | 
					</ossec_config>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -94,7 +94,7 @@
 | 
				
			|||||||
    <ignore_time>6h</ignore_time>
 | 
					    <ignore_time>6h</ignore_time>
 | 
				
			||||||
    <run_on_start>yes</run_on_start>
 | 
					    <run_on_start>yes</run_on_start>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <!-- Ubuntu OS vulnerabilities --> 
 | 
					    <!-- Ubuntu OS vulnerabilities -->
 | 
				
			||||||
    <provider name="canonical">
 | 
					    <provider name="canonical">
 | 
				
			||||||
      <enabled>no</enabled>
 | 
					      <enabled>no</enabled>
 | 
				
			||||||
      <os>trusty</os>
 | 
					      <os>trusty</os>
 | 
				
			||||||
@@ -104,7 +104,7 @@
 | 
				
			|||||||
      <update_interval>1h</update_interval>
 | 
					      <update_interval>1h</update_interval>
 | 
				
			||||||
    </provider>
 | 
					    </provider>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <!-- Debian OS vulnerabilities -->  
 | 
					    <!-- Debian OS vulnerabilities -->
 | 
				
			||||||
    <provider name="debian">
 | 
					    <provider name="debian">
 | 
				
			||||||
      <enabled>no</enabled>
 | 
					      <enabled>no</enabled>
 | 
				
			||||||
      <os>stretch</os>
 | 
					      <os>stretch</os>
 | 
				
			||||||
@@ -112,7 +112,7 @@
 | 
				
			|||||||
      <update_interval>1h</update_interval>
 | 
					      <update_interval>1h</update_interval>
 | 
				
			||||||
    </provider>
 | 
					    </provider>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <!-- RedHat OS vulnerabilities -->  
 | 
					    <!-- RedHat OS vulnerabilities -->
 | 
				
			||||||
    <provider name="redhat">
 | 
					    <provider name="redhat">
 | 
				
			||||||
      <enabled>no</enabled>
 | 
					      <enabled>no</enabled>
 | 
				
			||||||
      <os>5</os>
 | 
					      <os>5</os>
 | 
				
			||||||
@@ -200,8 +200,8 @@
 | 
				
			|||||||
  <global>
 | 
					  <global>
 | 
				
			||||||
    <white_list>127.0.0.1</white_list>
 | 
					    <white_list>127.0.0.1</white_list>
 | 
				
			||||||
    <white_list>^localhost.localdomain$</white_list>
 | 
					    <white_list>^localhost.localdomain$</white_list>
 | 
				
			||||||
    <white_list>4.2.2.1</white_list>
 | 
					    <white_list>4.2.4.1</white_list>
 | 
				
			||||||
    <white_list>4.2.2.2</white_list>
 | 
					    <white_list>4.2.4.2</white_list>
 | 
				
			||||||
    <white_list>208.67.220.220</white_list>
 | 
					    <white_list>208.67.220.220</white_list>
 | 
				
			||||||
  </global>
 | 
					  </global>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -307,7 +307,7 @@
 | 
				
			|||||||
    <rule_dir>etc/rules</rule_dir>
 | 
					    <rule_dir>etc/rules</rule_dir>
 | 
				
			||||||
  </ruleset>
 | 
					  </ruleset>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- Configuration for ossec-authd -->
 | 
					  <!-- Configuration for wazuh-authd -->
 | 
				
			||||||
  <auth>
 | 
					  <auth>
 | 
				
			||||||
    <disabled>no</disabled>
 | 
					    <disabled>no</disabled>
 | 
				
			||||||
    <port>1515</port>
 | 
					    <port>1515</port>
 | 
				
			||||||
@@ -346,4 +346,4 @@
 | 
				
			|||||||
    <log_format>syslog</log_format>
 | 
					    <log_format>syslog</log_format>
 | 
				
			||||||
    <location>/var/ossec/logs/active-responses.log</location>
 | 
					    <location>/var/ossec/logs/active-responses.log</location>
 | 
				
			||||||
  </localfile>
 | 
					  </localfile>
 | 
				
			||||||
</ossec_config> 
 | 
					</ossec_config>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ FROM centos:7
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
ARG FILEBEAT_CHANNEL=filebeat-oss
 | 
					ARG FILEBEAT_CHANNEL=filebeat-oss
 | 
				
			||||||
ARG FILEBEAT_VERSION=7.10.2
 | 
					ARG FILEBEAT_VERSION=7.10.2
 | 
				
			||||||
ARG WAZUH_VERSION=4.1.5-1
 | 
					ARG WAZUH_VERSION=4.2.4
 | 
				
			||||||
ARG TEMPLATE_VERSION="master"
 | 
					ARG TEMPLATE_VERSION="master"
 | 
				
			||||||
ARG WAZUH_FILEBEAT_MODULE="wazuh-filebeat-0.1.tar.gz"
 | 
					ARG WAZUH_FILEBEAT_MODULE="wazuh-filebeat-0.1.tar.gz"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -74,6 +74,23 @@ apply_exclusion_data() {
 | 
				
			|||||||
  done
 | 
					  done
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					##############################################################################
 | 
				
			||||||
 | 
					# This function will rename in the permanent data volume every file
 | 
				
			||||||
 | 
					# contained in PERMANENT_DATA_MOVE
 | 
				
			||||||
 | 
					##############################################################################
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					move_data_files() {
 | 
				
			||||||
 | 
					  for mov_file in "${PERMANENT_DATA_MOVE[@]}"; do
 | 
				
			||||||
 | 
					    file_split=( $mov_file )
 | 
				
			||||||
 | 
					    if [ -e ${file_split[0]} ]
 | 
				
			||||||
 | 
					    then
 | 
				
			||||||
 | 
					      print "moving ${mov_file}"
 | 
				
			||||||
 | 
					      exec_cmd "mv -f ${mov_file}"
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					  done
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
##############################################################################
 | 
					##############################################################################
 | 
				
			||||||
# This function will delete from the permanent data volume every file
 | 
					# This function will delete from the permanent data volume every file
 | 
				
			||||||
# contained in PERMANENT_DATA_DEL
 | 
					# contained in PERMANENT_DATA_DEL
 | 
				
			||||||
@@ -84,7 +101,7 @@ remove_data_files() {
 | 
				
			|||||||
    if [ -e ${del_file} ]
 | 
					    if [ -e ${del_file} ]
 | 
				
			||||||
    then
 | 
					    then
 | 
				
			||||||
      print "Removing ${del_file}"
 | 
					      print "Removing ${del_file}"
 | 
				
			||||||
      exec_cmd "rm ${del_file}"
 | 
					      exec_cmd "rm -f ${del_file}"
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
  done
 | 
					  done
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -94,7 +111,7 @@ remove_data_files() {
 | 
				
			|||||||
##############################################################################
 | 
					##############################################################################
 | 
				
			||||||
 | 
					
 | 
				
			||||||
create_ossec_key_cert() {
 | 
					create_ossec_key_cert() {
 | 
				
			||||||
  print "Creating ossec-authd key and cert"
 | 
					  print "Creating wazuh-authd key and cert"
 | 
				
			||||||
  exec_cmd "openssl genrsa -out ${WAZUH_INSTALL_PATH}/etc/sslmanager.key 4096"
 | 
					  exec_cmd "openssl genrsa -out ${WAZUH_INSTALL_PATH}/etc/sslmanager.key 4096"
 | 
				
			||||||
  exec_cmd "openssl req -new -x509 -key ${WAZUH_INSTALL_PATH}/etc/sslmanager.key -out ${WAZUH_INSTALL_PATH}/etc/sslmanager.cert -days 3650 -subj /CN=${HOSTNAME}/"
 | 
					  exec_cmd "openssl req -new -x509 -key ${WAZUH_INSTALL_PATH}/etc/sslmanager.key -out ${WAZUH_INSTALL_PATH}/etc/sslmanager.cert -days 3650 -subj /CN=${HOSTNAME}/"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -158,10 +175,13 @@ main() {
 | 
				
			|||||||
  # Restore files stored in permanent data that are not permanent  (i.e. internal_options.conf)
 | 
					  # Restore files stored in permanent data that are not permanent  (i.e. internal_options.conf)
 | 
				
			||||||
  apply_exclusion_data
 | 
					  apply_exclusion_data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # Rename files stored in permanent data (i.e. queue/ossec)
 | 
				
			||||||
 | 
					  move_data_files
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Remove some files in permanent_data (i.e. .template.db)
 | 
					  # Remove some files in permanent_data (i.e. .template.db)
 | 
				
			||||||
  remove_data_files
 | 
					  remove_data_files
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Generate ossec-authd certs if AUTO_ENROLLMENT_ENABLED is true and does not exist
 | 
					  # Generate wazuh-authd certs if AUTO_ENROLLMENT_ENABLED is true and does not exist
 | 
				
			||||||
  if [ $AUTO_ENROLLMENT_ENABLED == true ]
 | 
					  if [ $AUTO_ENROLLMENT_ENABLED == true ]
 | 
				
			||||||
  then
 | 
					  then
 | 
				
			||||||
    if [ ! -e ${WAZUH_INSTALL_PATH}/etc/sslmanager.key ]
 | 
					    if [ ! -e ${WAZUH_INSTALL_PATH}/etc/sslmanager.key ]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -123,4 +123,4 @@ function_create_custom_user
 | 
				
			|||||||
function_entrypoint_scripts
 | 
					function_entrypoint_scripts
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Start Wazuh
 | 
					# Start Wazuh
 | 
				
			||||||
/var/ossec/bin/ossec-control start
 | 
					/var/ossec/bin/wazuh-control start
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,7 @@ PERMANENT_DATA[((i++))]="/var/ossec/api/configuration"
 | 
				
			|||||||
PERMANENT_DATA[((i++))]="/var/ossec/etc"
 | 
					PERMANENT_DATA[((i++))]="/var/ossec/etc"
 | 
				
			||||||
PERMANENT_DATA[((i++))]="/var/ossec/logs"
 | 
					PERMANENT_DATA[((i++))]="/var/ossec/logs"
 | 
				
			||||||
PERMANENT_DATA[((i++))]="/var/ossec/queue"
 | 
					PERMANENT_DATA[((i++))]="/var/ossec/queue"
 | 
				
			||||||
PERMANENT_DATA[((i++))]="/var/ossec/queue/tasks"
 | 
					PERMANENT_DATA[((i++))]="/var/ossec/queue/logcollector"
 | 
				
			||||||
PERMANENT_DATA[((i++))]="/var/ossec/agentless"
 | 
					PERMANENT_DATA[((i++))]="/var/ossec/agentless"
 | 
				
			||||||
PERMANENT_DATA[((i++))]="/var/ossec/var/multigroups"
 | 
					PERMANENT_DATA[((i++))]="/var/ossec/var/multigroups"
 | 
				
			||||||
PERMANENT_DATA[((i++))]="/var/ossec/integrations"
 | 
					PERMANENT_DATA[((i++))]="/var/ossec/integrations"
 | 
				
			||||||
@@ -21,23 +21,21 @@ PERMANENT_DATA_EXCP[((i++))]="/var/ossec/integrations/slack"
 | 
				
			|||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/integrations/slack.py"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/integrations/slack.py"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/integrations/virustotal"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/integrations/virustotal"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/integrations/virustotal.py"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/integrations/virustotal.py"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/default-firewall-drop.sh"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/default-firewall-drop"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/disable-account.sh"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/disable-account"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/firewalld-drop.sh"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/firewalld-drop"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/firewall-drop.sh"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/firewall-drop"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/host-deny.sh"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/host-deny"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/ip-customblock.sh"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/ip-customblock"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/ipfw_mac.sh"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/ipfw"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/ipfw.sh"
 | 
					 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/kaspersky.py"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/kaspersky.py"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/kaspersky.sh"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/kaspersky"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/npf.sh"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/npf"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/ossec-slack.sh"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/wazuh-slack"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/ossec-tweeter.sh"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/pf"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/pf.sh"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/restart-wazuh"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/restart-ossec.sh"
 | 
					 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/restart.sh"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/restart.sh"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/route-null.sh"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/active-response/bin/route-null"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/agentless/sshlogin.exp"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/agentless/sshlogin.exp"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/agentless/ssh_pixconfig_diff"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/agentless/ssh_pixconfig_diff"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/agentless/ssh_asa-fwsmconfig_diff"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/agentless/ssh_asa-fwsmconfig_diff"
 | 
				
			||||||
@@ -60,9 +58,15 @@ PERMANENT_DATA_EXCP[((i++))]="/var/ossec/wodles/gcloud/gcloud"
 | 
				
			|||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/wodles/gcloud/gcloud.py"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/wodles/gcloud/gcloud.py"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/wodles/gcloud/integration.py"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/wodles/gcloud/integration.py"
 | 
				
			||||||
PERMANENT_DATA_EXCP[((i++))]="/var/ossec/wodles/gcloud/tools.py"
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/wodles/gcloud/tools.py"
 | 
				
			||||||
 | 
					PERMANENT_DATA_EXCP[((i++))]="/var/ossec/wodles/utils.py"
 | 
				
			||||||
export PERMANENT_DATA_EXCP
 | 
					export PERMANENT_DATA_EXCP
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Files mounted in a volume that should be deleted
 | 
					# Files mounted in a volume that should be deleted
 | 
				
			||||||
i=0
 | 
					i=0
 | 
				
			||||||
PERMANENT_DATA_DEL[((i++))]="/var/ossec/queue/db/.template.db"
 | 
					PERMANENT_DATA_DEL[((i++))]="/var/ossec/queue/db/.template.db"
 | 
				
			||||||
export PERMANENT_DATA_DEL
 | 
					export PERMANENT_DATA_DEL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					i=0
 | 
				
			||||||
 | 
					PERMANENT_DATA_MOVE[((i++))]="/var/ossec/logs/ossec /var/ossec/logs/wazuh"
 | 
				
			||||||
 | 
					PERMANENT_DATA_MOVE[((i++))]="/var/ossec/queue/ossec /var/ossec/queue/sockets"
 | 
				
			||||||
 | 
					export PERMANENT_DATA_MOVE
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ version: '3.7'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  wazuh:
 | 
					  wazuh:
 | 
				
			||||||
    image: wazuh/wazuh:4.1.5
 | 
					    image: wazuh/wazuh:4.2.4
 | 
				
			||||||
    hostname: wazuh-manager
 | 
					    hostname: wazuh-manager
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
@@ -146,7 +146,7 @@ services:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  kibana:
 | 
					  kibana:
 | 
				
			||||||
    image: wazuh/wazuh-kibana:4.1.5
 | 
					    image: wazuh/wazuh-kibana:4.2.4
 | 
				
			||||||
    hostname: kibana
 | 
					    hostname: kibana
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,8 +7,8 @@ services:
 | 
				
			|||||||
      context: wazuh-odfe/
 | 
					      context: wazuh-odfe/
 | 
				
			||||||
      args:
 | 
					      args:
 | 
				
			||||||
        - FILEBEAT_CHANNEL=filebeat
 | 
					        - FILEBEAT_CHANNEL=filebeat
 | 
				
			||||||
        - FILEBEAT_VERSION=7.10.2
 | 
					        - FILEBEAT_VERSION=7.11.2
 | 
				
			||||||
    image: wazuh/wazuh:4.1.5
 | 
					    image: wazuh/wazuh:4.2.4
 | 
				
			||||||
    hostname: wazuh-manager
 | 
					    hostname: wazuh-manager
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
@@ -42,7 +42,7 @@ services:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  elasticsearch:
 | 
					  elasticsearch:
 | 
				
			||||||
    image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2
 | 
					    image: docker.elastic.co/elasticsearch/elasticsearch:7.11.2
 | 
				
			||||||
    hostname: elasticsearch
 | 
					    hostname: elasticsearch
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
@@ -79,7 +79,7 @@ services:
 | 
				
			|||||||
      - ./xpack/elasticsearch/elasticsearch.crt:/usr/share/elasticsearch/config/elasticsearch.crt
 | 
					      - ./xpack/elasticsearch/elasticsearch.crt:/usr/share/elasticsearch/config/elasticsearch.crt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  elasticsearch2:
 | 
					  elasticsearch2:
 | 
				
			||||||
    image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2
 | 
					    image: docker.elastic.co/elasticsearch/elasticsearch:7.11.2
 | 
				
			||||||
    hostname: elasticsearch2
 | 
					    hostname: elasticsearch2
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
@@ -114,7 +114,7 @@ services:
 | 
				
			|||||||
      - ./xpack/elasticsearch2/elasticsearch2.crt:/usr/share/elasticsearch/config/elasticsearch.crt
 | 
					      - ./xpack/elasticsearch2/elasticsearch2.crt:/usr/share/elasticsearch/config/elasticsearch.crt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  elasticsearch3:
 | 
					  elasticsearch3:
 | 
				
			||||||
    image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2
 | 
					    image: docker.elastic.co/elasticsearch/elasticsearch:7.11.2
 | 
				
			||||||
    hostname: elasticsearch3
 | 
					    hostname: elasticsearch3
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
@@ -152,7 +152,7 @@ services:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  kibana:
 | 
					  kibana:
 | 
				
			||||||
    build: kibana/
 | 
					    build: kibana/
 | 
				
			||||||
    image: wazuh/wazuh-kibana:4.1.5
 | 
					    image: wazuh/wazuh-kibana:4.2.4
 | 
				
			||||||
    hostname: kibana
 | 
					    hostname: kibana
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user