-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11777 from Security-Onion-Solutions/2.4/dev
2.4.30
- Loading branch information
Showing
95 changed files
with
11,513 additions
and
4,509 deletions.
There are no files selected for viewing
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
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 +1 @@ | ||
20231012 | ||
|
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 +1 @@ | ||
2.4.20 | ||
2.4.30 |
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 |
---|---|---|
|
@@ -12,7 +12,6 @@ role: | |
eval: | ||
fleet: | ||
heavynode: | ||
helixsensor: | ||
idh: | ||
import: | ||
manager: | ||
|
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,26 @@ | ||
#!/bin/bash | ||
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one | ||
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at | ||
# https://securityonion.net/license; you may not use this file except in compliance with the | ||
# Elastic License 2.0. | ||
|
||
if [[ $# -ne 1 ]]; then | ||
echo "Usage: $0 <python_script_dir>" | ||
echo "Runs tests on all *_test.py files in the given directory." | ||
exit 1 | ||
fi | ||
|
||
HOME_DIR=$(dirname "$0") | ||
TARGET_DIR=${1:-.} | ||
|
||
PATH=$PATH:/usr/local/bin | ||
|
||
if ! which pytest &> /dev/null || ! which flake8 &> /dev/null ; then | ||
echo "Missing dependencies. Consider running the following command:" | ||
echo " python -m pip install flake8 pytest pytest-cov" | ||
exit 1 | ||
fi | ||
|
||
pip install pytest pytest-cov | ||
flake8 "$TARGET_DIR" "--config=${HOME_DIR}/pytest.ini" | ||
python3 -m pytest "--cov-config=${HOME_DIR}/pytest.ini" "--cov=$TARGET_DIR" --doctest-modules --cov-report=term --cov-fail-under=100 "$TARGET_DIR" |
File renamed without changes.
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 @@ | ||
{% macro remove_comments(bpfmerged, app) %} | ||
|
||
{# remove comments from the bpf #} | ||
{% for bpf in bpfmerged[app] %} | ||
{% if bpf.strip().startswith('#') %} | ||
{% do bpfmerged[app].pop(loop.index0) %} | ||
{% endif %} | ||
{% endfor %} | ||
|
||
{% endmacro %} |
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,7 @@ | ||
{% import_yaml 'bpf/defaults.yaml' as BPFDEFAULTS %} | ||
{% set BPFMERGED = salt['pillar.get']('bpf', BPFDEFAULTS.bpf, merge=True) %} | ||
{% import 'bpf/macros.jinja' as MACROS %} | ||
|
||
{{ MACROS.remove_comments(BPFMERGED, 'pcap') }} | ||
|
||
{% set PCAPBPF = BPFMERGED.pcap %} |
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,7 @@ | ||
{% import_yaml 'bpf/defaults.yaml' as BPFDEFAULTS %} | ||
{% set BPFMERGED = salt['pillar.get']('bpf', BPFDEFAULTS.bpf, merge=True) %} | ||
{% import 'bpf/macros.jinja' as MACROS %} | ||
|
||
{{ MACROS.remove_comments(BPFMERGED, 'suricata') }} | ||
|
||
{% set SURICATABPF = BPFMERGED.suricata %} |
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,7 @@ | ||
{% import_yaml 'bpf/defaults.yaml' as BPFDEFAULTS %} | ||
{% set BPFMERGED = salt['pillar.get']('bpf', BPFDEFAULTS.bpf, merge=True) %} | ||
{% import 'bpf/macros.jinja' as MACROS %} | ||
|
||
{{ MACROS.remove_comments(BPFMERGED, 'zeek') }} | ||
|
||
{% set ZEEKBPF = BPFMERGED.zeek %} |
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
Oops, something went wrong.