-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jose Antonio izquierdo lopez
committed
Oct 24, 2020
1 parent
302116b
commit f0d6187
Showing
330 changed files
with
35,474 additions
and
4,067 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: b7a7e0b90c868c2611afb0120e797a12 | ||
config: cdd1a923d603bc7f759cd62795c4d279 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
|
||
Sync with ELK 7.x | ||
================= | ||
|
||
.. warning:: | ||
|
||
Be sure you are running ELK (elasticsearch, filebeat and kibana) with version >7.3.2 | ||
|
||
.. include:: keepincontact.rst | ||
|
||
|
||
We will need to modify a bit the Wazuh's default filebeat configuration, we will do: | ||
|
||
* import OwlH-Kibana objects in Kibana | ||
* load OwlH template in Elasticsearch | ||
* install OwlH-Filebeat module | ||
* modify Wazuh's module to exclude OwlH Lines | ||
* modify Filebeat main configuration to include OwlH module | ||
|
||
|
||
.. attention:: | ||
You must have access to your Wazuh's manager shell console where Filebeat is installed and to Kibana's console | ||
|
||
.. note:: | ||
Please, check URLs and paths to ensure you use the right commands and that you adapt command lines as needed. | ||
|
||
|
||
|
||
Download files and prepare | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
:: | ||
# cd /tmp | ||
# mkdir /tmp/owlhfilebeat | ||
# wget repo.owlh.net/elastic/owlh-filebeat-7.4-files.tar.gz | ||
# tar -C /tmp/owlhfilebeat -xf owlh-filebeat-7.4-files.tar.gz | ||
|
||
|
||
Import OwlH kibana dashboards and objects in Kibana | ||
--------------------------------------------------- | ||
|
||
:: | ||
|
||
# curl -X POST "localhost:5601/api/saved_objects/_import" -H "kbn-xsrf: true" --form file=@/tmp/owlhfilebeat/owlh-kibana-objects-20191030.ndjson | ||
|
||
Install OwlH template | ||
--------------------- | ||
|
||
:: | ||
|
||
# curl -XPUT -H 'Content-Type: application/json' 'http://localhost:9200/_template/owlh' -d@/tmp/owlhfilebeat/owlh-template.json | ||
|
||
Install OwlH module | ||
------------------- | ||
|
||
:: | ||
|
||
# tar -C /usr/share/filebeat/module/ -xf /tmp/owlhfilebeat/owlh-filebeat-7.4-module.tar.gz | ||
|
||
Modify Wazuh Module | ||
------------------- | ||
|
||
:: | ||
|
||
# vi /usr/share/filebeat/module/wazuh/alerts/config/alerts.yml | ||
|
||
|
||
.. attention:: | ||
be sure your file looks like this | ||
|
||
:: | ||
|
||
fields: | ||
index_prefix: {{ .index_prefix }} | ||
type: log | ||
paths: | ||
{{ range $i, $path := .paths }} | ||
- {{$path}} | ||
{{ end }} | ||
exclude_lines: ["bro_engine"] | ||
|
||
Modify filebeat | ||
^^^^^^^^^^^^^^^ | ||
|
||
Modify Filebeat configuration | ||
----------------------------- | ||
|
||
:: | ||
|
||
# vi /etc/filebeat/filebeat.yml | ||
|
||
.. attention:: | ||
be sure your file looks like this | ||
|
||
:: | ||
|
||
# Wazuh - Filebeat configuration file | ||
filebeat.modules: | ||
- module: wazuh | ||
alerts: | ||
enabled: true | ||
archives: | ||
enabled: false | ||
# OwlH Module | ||
- module: owlh | ||
events: | ||
enabled: true | ||
|
||
setup.template.json.enabled: true | ||
setup.template.json.path: '/etc/filebeat/wazuh-template.json' | ||
setup.template.json.name: 'wazuh' | ||
setup.template.overwrite: true | ||
setup.ilm.enabled: false | ||
## OwlH pipeline sync | ||
filebeat.overwrite_pipelines: true | ||
|
||
|
||
Restart Filebeat | ||
---------------- | ||
|
||
You should be done. check your kibana to see the OwlH dashboards in dashboards section, and indices in discovery section. | ||
|
||
:: | ||
|
||
Restart Filebeat | ||
|
||
# systemctl restart filebeat | ||
|
||
Check Filebeat output | ||
|
||
# journalctl -f -u filebeat | ||
|
||
From your web browser, check kibana->dashboards |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
OwlH API | ||
======== | ||
|
||
The OwlH API is an open source **RESTful API** that allows for interaction with the ``OwlH Master`` and ``OwlH Node`` components from a web browser, command line tool like cURL or any script or program that can make web requests. The OwlH UI and APP relies on this totally. Use the API to easily perform everyday actions like adding a node, restarting the services or looking up status details. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
OwlHAPIM | ||
OwlHAPIN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
OwlH MASTER RESTful API | ||
======================= | ||
|
||
|
||
.. note:: | ||
|
||
Work in progress. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
OwlH NODE RESTful API | ||
======================= | ||
|
||
.. note:: | ||
|
||
Work in progress. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Analyzer configuration file | ||
=========================== | ||
|
||
.. code-block:: JSON | ||
{ | ||
"enable":true, | ||
"outputfile":"/var/log/owlh/alerts.json", | ||
"prefilterfile":"conf/prefilters.json", | ||
"postfilterfile":"conf/postfilters.json", | ||
"tagsfile":"conf/tags.json", | ||
"srcfiles": [ | ||
"/var/log/suricata/eve.json", | ||
"/usr/local/zeek/logs/current/conn.log", | ||
"/usr/local/zeek/logs/current/dns.log" | ||
], | ||
"feedfiles": [ | ||
{ | ||
"feedfile":"/usr/local/owlh/src/owlhnode/conf/feeds/otx.feed", | ||
"workers":4 | ||
}, | ||
{ | ||
"feedfile":"/tmp/local.feed" | ||
}, | ||
{ | ||
"feedfile":"/usr/local/owlh/src/owlhnode/conf/feeds/xforce.feed", | ||
"workers":4 | ||
}, | ||
{ | ||
"feedfile":"/usr/local/owlh/src/owlhnode/conf/feeds/falcon.feed", | ||
"workers":4 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
OwlH BASIC configuration | ||
============================= | ||
|
||
|
||
* prepare your environment | ||
* traffic capture | ||
* sizing | ||
* capture configuration | ||
* OS versions and support | ||
* traffic store sizing | ||
* hardware physical or virtual specs | ||
|
||
* install owlh components | ||
* OwlH Master | ||
* OwlH Node | ||
* OwlH UI | ||
* OwlH Client | ||
|
||
* Configure | ||
* from UI | ||
* API description | ||
|
||
* Visualization | ||
* OwlH dashboards integration Wazuh-ELK | ||
|
||
* Use It | ||
|
||
.. include:: /main/contact.rst |
Oops, something went wrong.