mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-05-05 10:58:05 +02:00
Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 658d132c38 | |||
| 7d2f39a06f | |||
| 84d5d52ec8 | |||
| 847aab2712 | |||
| 710b800bc2 | |||
| c92b359b79 | |||
| e2fd371886 | |||
| 7e4036f2a5 | |||
| 421cfc46ad | |||
| 0d4a49a0ff | |||
| 6453a86c2a | |||
| d657bbdc18 | |||
| 8aeb4706e1 | |||
| e04ec1042a | |||
| 056072af7d | |||
| fb3fee5d4b | |||
| 488c4d5000 | |||
| 7971d9749a | |||
| 5ebe33d45f | |||
| 4887eb4957 | |||
| 0620919241 | |||
| e84d624d23 |
+11
-11
@@ -1,18 +1,18 @@
|
|||||||
### 2.4.10-20230815 ISO image released on 2023/08/15
|
### 2.4.10-20230821 ISO image released on 2023/08/21
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Download and Verify
|
### Download and Verify
|
||||||
|
|
||||||
2.4.10-20230815 ISO image:
|
2.4.10-20230821 ISO image:
|
||||||
https://download.securityonion.net/file/securityonion/securityonion-2.4.10-20230815.iso
|
https://download.securityonion.net/file/securityonion/securityonion-2.4.10-20230821.iso
|
||||||
|
|
||||||
MD5: 97AEC929FB1FC22F106C0C93E3476FAB
|
MD5: 353EB36F807DC947F08F79B3DCFA420E
|
||||||
SHA1: 78AF37FD19FDC34BA324C1A661632D19D1F2284A
|
SHA1: B25E3BEDB81BBEF319DC710267E6D78422F39C56
|
||||||
SHA256: D04BA45D1664FC3CF7EA2188CB7E570642F6390C3959B4AFBB8222A853859394
|
SHA256: 3D369E92FEB65D14E1A981E99FA223DA52C92057A037C243AD6332B6B9A6D9BC
|
||||||
|
|
||||||
Signature for ISO image:
|
Signature for ISO image:
|
||||||
https://github.com/Security-Onion-Solutions/securityonion/raw/2.4/main/sigs/securityonion-2.4.10-20230815.iso.sig
|
https://github.com/Security-Onion-Solutions/securityonion/raw/2.4/main/sigs/securityonion-2.4.10-20230821.iso.sig
|
||||||
|
|
||||||
Signing key:
|
Signing key:
|
||||||
https://raw.githubusercontent.com/Security-Onion-Solutions/securityonion/2.4/main/KEYS
|
https://raw.githubusercontent.com/Security-Onion-Solutions/securityonion/2.4/main/KEYS
|
||||||
@@ -26,22 +26,22 @@ wget https://raw.githubusercontent.com/Security-Onion-Solutions/securityonion/2.
|
|||||||
|
|
||||||
Download the signature file for the ISO:
|
Download the signature file for the ISO:
|
||||||
```
|
```
|
||||||
wget https://github.com/Security-Onion-Solutions/securityonion/raw/2.4/main/sigs/securityonion-2.4.10-20230815.iso.sig
|
wget https://github.com/Security-Onion-Solutions/securityonion/raw/2.4/main/sigs/securityonion-2.4.10-20230821.iso.sig
|
||||||
```
|
```
|
||||||
|
|
||||||
Download the ISO image:
|
Download the ISO image:
|
||||||
```
|
```
|
||||||
wget https://download.securityonion.net/file/securityonion/securityonion-2.4.10-20230815.iso
|
wget https://download.securityonion.net/file/securityonion/securityonion-2.4.10-20230821.iso
|
||||||
```
|
```
|
||||||
|
|
||||||
Verify the downloaded ISO image using the signature file:
|
Verify the downloaded ISO image using the signature file:
|
||||||
```
|
```
|
||||||
gpg --verify securityonion-2.4.10-20230815.iso.sig securityonion-2.4.10-20230815.iso
|
gpg --verify securityonion-2.4.10-20230821.iso.sig securityonion-2.4.10-20230821.iso
|
||||||
```
|
```
|
||||||
|
|
||||||
The output should show "Good signature" and the Primary key fingerprint should match what's shown below:
|
The output should show "Good signature" and the Primary key fingerprint should match what's shown below:
|
||||||
```
|
```
|
||||||
gpg: Signature made Sun 13 Aug 2023 05:30:29 PM EDT using RSA key ID FE507013
|
gpg: Signature made Mon 21 Aug 2023 09:47:50 AM EDT using RSA key ID FE507013
|
||||||
gpg: Good signature from "Security Onion Solutions, LLC <info@securityonionsolutions.com>"
|
gpg: Good signature from "Security Onion Solutions, LLC <info@securityonionsolutions.com>"
|
||||||
gpg: WARNING: This key is not certified with a trusted signature!
|
gpg: WARNING: This key is not certified with a trusted signature!
|
||||||
gpg: There is no indication that the signature belongs to the owner.
|
gpg: There is no indication that the signature belongs to the owner.
|
||||||
|
|||||||
@@ -20,8 +20,8 @@
|
|||||||
],
|
],
|
||||||
"data_stream.dataset": "import",
|
"data_stream.dataset": "import",
|
||||||
"custom": "",
|
"custom": "",
|
||||||
"processors": "- dissect:\n tokenizer: \"/nsm/import/%{import.id}/evtx/%{import.file}\"\n field: \"log.file.path\"\n target_prefix: \"\"\n- decode_json_fields:\n fields: [\"message\"]\n target: \"\"\n- drop_fields:\n fields: [\"host\"]\n ignore_missing: true\n- add_fields:\n target: data_stream\n fields:\n namespace: default\n type: logs\n dataset: system.security\n- add_fields:\n target: event\n fields:\n dataset: system.security\n module: system\n imported: true \n- if:\n equals:\n winlog.channel: 'Microsoft-Windows-Sysmon/Operational'\n then: \n - add_fields:\n target: data_stream\n fields:\n dataset: windows.sysmon_operational\n - add_fields:\n target: event\n fields:\n dataset: windows.sysmon_operational\n module: windows\n imported: true\n- if:\n equals:\n winlog.channel: 'Application'\n then: \n - add_fields:\n target: data_stream\n fields:\n dataset: system.application\n - add_fields:\n target: event\n fields:\n dataset: system.application\n- if:\n equals:\n winlog.channel: 'System'\n then: \n - add_fields:\n target: data_stream\n fields:\n dataset: system.system\n - add_fields:\n target: event\n fields:\n dataset: system.system\n- if:\n equals:\n winlog.channel: 'Microsoft-Windows-PowerShell/Operational'\n then: \n - add_fields:\n target: data_stream\n fields:\n dataset: windows.powershell_operational\n - add_fields:\n target: event\n fields:\n dataset: windows.powershell_operational\n module: windows",
|
"processors": "- dissect:\n tokenizer: \"/nsm/import/%{import.id}/evtx/%{import.file}\"\n field: \"log.file.path\"\n target_prefix: \"\"\n- decode_json_fields:\n fields: [\"message\"]\n target: \"\"\n- drop_fields:\n fields: [\"host\"]\n ignore_missing: true\n- add_fields:\n target: data_stream\n fields:\n type: logs\n dataset: system.security\n- add_fields:\n target: event\n fields:\n dataset: system.security\n module: system\n imported: true\n- add_fields:\n target: \"@metadata\"\n fields:\n pipeline: logs-system.security-1.34.0\n- if:\n equals:\n winlog.channel: 'Microsoft-Windows-Sysmon/Operational'\n then: \n - add_fields:\n target: data_stream\n fields:\n dataset: windows.sysmon_operational\n - add_fields:\n target: event\n fields:\n dataset: windows.sysmon_operational\n module: windows\n imported: true\n - add_fields:\n target: \"@metadata\"\n fields:\n pipeline: logs-windows.sysmon_operational-1.24.0\n- if:\n equals:\n winlog.channel: 'Application'\n then: \n - add_fields:\n target: data_stream\n fields:\n dataset: system.application\n - add_fields:\n target: event\n fields:\n dataset: system.application\n - add_fields:\n target: \"@metadata\"\n fields:\n pipeline: logs-system.application-1.34.0\n- if:\n equals:\n winlog.channel: 'System'\n then: \n - add_fields:\n target: data_stream\n fields:\n dataset: system.system\n - add_fields:\n target: event\n fields:\n dataset: system.system\n - add_fields:\n target: \"@metadata\"\n fields:\n pipeline: logs-system.system-1.34.0\n \n- if:\n equals:\n winlog.channel: 'Microsoft-Windows-PowerShell/Operational'\n then: \n - add_fields:\n target: data_stream\n fields:\n dataset: windows.powershell_operational\n - add_fields:\n target: event\n fields:\n dataset: windows.powershell_operational\n module: windows\n - add_fields:\n target: \"@metadata\"\n fields:\n pipeline: logs-windows.powershell_operational-1.24.0\n- add_fields:\n target: data_stream\n fields:\n dataset: import",
|
||||||
"tags": [
|
"tags": [
|
||||||
"import"
|
"import"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,8 +62,9 @@ elastic_fleet_package_latest_version_check() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
elastic_fleet_package_install() {
|
elastic_fleet_package_install() {
|
||||||
PKGKEY=$1
|
PKG=$1
|
||||||
curl -s -K /opt/so/conf/elasticsearch/curl.config -b "sid=$SESSIONCOOKIE" -L -X POST -H 'kbn-xsrf: true' "localhost:5601/api/fleet/epm/packages/$PKGKEY"
|
VERSION=$2
|
||||||
|
curl -s -K /opt/so/conf/elasticsearch/curl.config -b "sid=$SESSIONCOOKIE" -L -X POST -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '{"force":true}' "localhost:5601/api/fleet/epm/packages/$PKG/$VERSION"
|
||||||
}
|
}
|
||||||
|
|
||||||
elastic_fleet_package_is_installed() {
|
elastic_fleet_package_is_installed() {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
{%- for PACKAGE in SUPPORTED_PACKAGES %}
|
{%- for PACKAGE in SUPPORTED_PACKAGES %}
|
||||||
echo "Setting up {{ PACKAGE }} package..."
|
echo "Setting up {{ PACKAGE }} package..."
|
||||||
VERSION=$(elastic_fleet_package_version_check "{{ PACKAGE }}")
|
VERSION=$(elastic_fleet_package_version_check "{{ PACKAGE }}")
|
||||||
elastic_fleet_package_install "{{ PACKAGE }}-$VERSION"
|
elastic_fleet_package_install "{{ PACKAGE }}" "$VERSION"
|
||||||
echo
|
echo
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
echo
|
echo
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
{%- for PACKAGE in SUPPORTED_PACKAGES %}
|
{%- for PACKAGE in SUPPORTED_PACKAGES %}
|
||||||
echo "Upgrading {{ PACKAGE }} package..."
|
echo "Upgrading {{ PACKAGE }} package..."
|
||||||
VERSION=$(elastic_fleet_package_latest_version_check "{{ PACKAGE }}")
|
VERSION=$(elastic_fleet_package_latest_version_check "{{ PACKAGE }}")
|
||||||
elastic_fleet_package_install "{{ PACKAGE }}-$VERSION"
|
elastic_fleet_package_install "{{ PACKAGE }}" "$VERSION"
|
||||||
echo
|
echo
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
echo
|
echo
|
||||||
|
|||||||
@@ -78,7 +78,9 @@
|
|||||||
{ "set": { "if": "ctx.network?.direction == 'ingress'", "override": true, "field": "network.initiated", "value": "false" } },
|
{ "set": { "if": "ctx.network?.direction == 'ingress'", "override": true, "field": "network.initiated", "value": "false" } },
|
||||||
{ "set": { "if": "ctx.network?.type == 'ipv4'", "override": true, "field": "destination.ipv6", "value": "false" } },
|
{ "set": { "if": "ctx.network?.type == 'ipv4'", "override": true, "field": "destination.ipv6", "value": "false" } },
|
||||||
{ "set": { "if": "ctx.network?.type == 'ipv6'", "override": true, "field": "destination.ipv6", "value": "true" } },
|
{ "set": { "if": "ctx.network?.type == 'ipv6'", "override": true, "field": "destination.ipv6", "value": "true" } },
|
||||||
{"community_id":{ "if": "ctx.event?.dataset == 'endpoint.events.network'", "ignore_failure":true } },
|
{ "set": { "if": "ctx.tags.0 == 'import'", "override": true, "field": "data_stream.dataset", "value": "import" } },
|
||||||
|
{ "set": { "if": "ctx.tags.0 == 'import'", "override": true, "field": "data_stream.namespace", "value": "so" } },
|
||||||
|
{ "community_id":{ "if": "ctx.event?.dataset == 'endpoint.events.network'", "ignore_failure":true } },
|
||||||
{ "remove": { "field": [ "message2", "type", "fields", "category", "module", "dataset", "event.dataset_temp", "dataset_tag_temp", "module_temp" ], "ignore_missing": true, "ignore_failure": true } }
|
{ "remove": { "field": [ "message2", "type", "fields", "category", "module", "dataset", "event.dataset_temp", "dataset_tag_temp", "module_temp" ], "ignore_missing": true, "ignore_failure": true } }
|
||||||
],
|
],
|
||||||
"on_failure": [
|
"on_failure": [
|
||||||
|
|||||||
@@ -569,6 +569,9 @@ upgrade_check() {
|
|||||||
# Let's make sure we actually need to update.
|
# Let's make sure we actually need to update.
|
||||||
NEWVERSION=$(cat $UPDATE_DIR/VERSION)
|
NEWVERSION=$(cat $UPDATE_DIR/VERSION)
|
||||||
HOTFIXVERSION=$(cat $UPDATE_DIR/HOTFIX)
|
HOTFIXVERSION=$(cat $UPDATE_DIR/HOTFIX)
|
||||||
|
if [ ! -f /etc/sohotfix ]; then
|
||||||
|
touch /etc/sohotfix
|
||||||
|
fi
|
||||||
[[ -f /etc/sohotfix ]] && CURRENTHOTFIX=$(cat /etc/sohotfix)
|
[[ -f /etc/sohotfix ]] && CURRENTHOTFIX=$(cat /etc/sohotfix)
|
||||||
if [ "$INSTALLEDVERSION" == "$NEWVERSION" ]; then
|
if [ "$INSTALLEDVERSION" == "$NEWVERSION" ]; then
|
||||||
echo "Checking to see if there are hotfixes needed"
|
echo "Checking to see if there are hotfixes needed"
|
||||||
@@ -660,15 +663,15 @@ verify_latest_update_script() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Keeping this block in case we need to do a hotfix that requires salt update
|
# Keeping this block in case we need to do a hotfix that requires salt update
|
||||||
#apply_hotfix() {
|
apply_hotfix() {
|
||||||
# if [[ "$INSTALLEDVERSION" == "2.3.90" ]] ; then
|
# if [[ "$INSTALLEDVERSION" == "2.3.90" ]] ; then
|
||||||
# fix_wazuh
|
# fix_wazuh
|
||||||
# elif [[ "$INSTALLEDVERSION" == "2.3.110" ]] ; then
|
# elif [[ "$INSTALLEDVERSION" == "2.3.110" ]] ; then
|
||||||
# 2_3_10_hotfix_1
|
# 2_3_10_hotfix_1
|
||||||
# else
|
# else
|
||||||
# echo "No actions required. ($INSTALLEDVERSION/$HOTFIXVERSION)"
|
echo "No actions required. ($INSTALLEDVERSION/$HOTFIXVERSION)"
|
||||||
# fi
|
# fi
|
||||||
#}
|
}
|
||||||
|
|
||||||
|
|
||||||
#upgrade salt to 3004.1
|
#upgrade salt to 3004.1
|
||||||
@@ -790,7 +793,7 @@ main() {
|
|||||||
else
|
else
|
||||||
update_registry
|
update_registry
|
||||||
set +e
|
set +e
|
||||||
update_docker_containers "soup"
|
update_docker_containers "soup" "" "" "$SOUP_LOG"
|
||||||
set -e
|
set -e
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -198,7 +198,7 @@ etc_elasticfleet_logstash_key:
|
|||||||
- new: True
|
- new: True
|
||||||
{% if salt['file.file_exists']('/etc/pki/elasticfleet-logstash.key') -%}
|
{% if salt['file.file_exists']('/etc/pki/elasticfleet-logstash.key') -%}
|
||||||
- prereq:
|
- prereq:
|
||||||
- x509: etc_elasticfleet_crt
|
- x509: etc_elasticfleet_logstash_crt
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
- retry:
|
- retry:
|
||||||
attempts: 5
|
attempts: 5
|
||||||
@@ -259,7 +259,7 @@ etc_elasticfleetlumberjack_key:
|
|||||||
- new: True
|
- new: True
|
||||||
{% if salt['file.file_exists']('/etc/pki/elasticfleet-lumberjack.key') -%}
|
{% if salt['file.file_exists']('/etc/pki/elasticfleet-lumberjack.key') -%}
|
||||||
- prereq:
|
- prereq:
|
||||||
- x509: etc_elasticfleet_crt
|
- x509: etc_elasticfleetlumberjack_crt
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
- retry:
|
- retry:
|
||||||
attempts: 5
|
attempts: 5
|
||||||
@@ -283,7 +283,7 @@ etc_elasticfleetlumberjack_crt:
|
|||||||
cmd.run:
|
cmd.run:
|
||||||
- name: "/usr/bin/openssl pkcs8 -in /etc/pki/elasticfleet-lumberjack.key -topk8 -out /etc/pki/elasticfleet-lumberjack.p8 -nocrypt"
|
- name: "/usr/bin/openssl pkcs8 -in /etc/pki/elasticfleet-lumberjack.key -topk8 -out /etc/pki/elasticfleet-lumberjack.p8 -nocrypt"
|
||||||
- onchanges:
|
- onchanges:
|
||||||
- x509: etc_elasticfleet_key
|
- x509: etc_elasticfleetlumberjack_key
|
||||||
|
|
||||||
eflogstashlumberjackperms:
|
eflogstashlumberjackperms:
|
||||||
file.managed:
|
file.managed:
|
||||||
@@ -327,7 +327,7 @@ etc_elasticfleet_agent_key:
|
|||||||
- new: True
|
- new: True
|
||||||
{% if salt['file.file_exists']('/etc/pki/elasticfleet-agent.key') -%}
|
{% if salt['file.file_exists']('/etc/pki/elasticfleet-agent.key') -%}
|
||||||
- prereq:
|
- prereq:
|
||||||
- x509: etc_elasticfleet_crt
|
- x509: etc_elasticfleet_agent_crt
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
- retry:
|
- retry:
|
||||||
attempts: 5
|
attempts: 5
|
||||||
@@ -350,7 +350,7 @@ etc_elasticfleet_agent_crt:
|
|||||||
cmd.run:
|
cmd.run:
|
||||||
- name: "/usr/bin/openssl pkcs8 -in /etc/pki/elasticfleet-agent.key -topk8 -out /etc/pki/elasticfleet-agent.p8 -nocrypt"
|
- name: "/usr/bin/openssl pkcs8 -in /etc/pki/elasticfleet-agent.key -topk8 -out /etc/pki/elasticfleet-agent.p8 -nocrypt"
|
||||||
- onchanges:
|
- onchanges:
|
||||||
- x509: etc_elasticfleet_key
|
- x509: etc_elasticfleet_agent_key
|
||||||
|
|
||||||
efagentperms:
|
efagentperms:
|
||||||
file.managed:
|
file.managed:
|
||||||
|
|||||||
@@ -68,6 +68,14 @@ surilogdir:
|
|||||||
- user: 940
|
- user: 940
|
||||||
- group: 939
|
- group: 939
|
||||||
|
|
||||||
|
surinsmdir:
|
||||||
|
file.directory:
|
||||||
|
- name: /nsm/suricata
|
||||||
|
- user: 940
|
||||||
|
- group: 939
|
||||||
|
- mode: 755
|
||||||
|
- makedirs: True
|
||||||
|
|
||||||
suridatadir:
|
suridatadir:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: /nsm/suricata/extracted
|
- name: /nsm/suricata/extracted
|
||||||
|
|||||||
@@ -577,6 +577,7 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
|
|
||||||
if [[ $waitforstate ]]; then
|
if [[ $waitforstate ]]; then
|
||||||
touch /root/accept_changes
|
touch /root/accept_changes
|
||||||
|
touch /etc/sohotfix
|
||||||
make_some_dirs
|
make_some_dirs
|
||||||
percentage=0
|
percentage=0
|
||||||
es_heapsize
|
es_heapsize
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user