Skip to content

Commit

Permalink
Merge pull request #2003 from Security-Onion-Solutions/dev
Browse files Browse the repository at this point in the history
2.3.10
  • Loading branch information
TOoSmOotH authored Nov 19, 2020
2 parents 12acc2e + 4051111 commit 5344d30
Show file tree
Hide file tree
Showing 168 changed files with 2,382 additions and 3,081 deletions.
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
PLEASE STOP AND READ THIS INFORMATION!

If you are creating an issue just to ask a question, you will likely get faster and better responses by posting to our discussions forum instead:
https://securityonion.net/discuss

If you think you have found a possible bug or are observing a behavior that you weren't expecting, use the discussion forum to start a conversation about it instead of creating an issue.

If you are very familiar with the latest version of the product and are confident you have found a bug in Security Onion, you can continue with creating an issue here, but please make sure you have done the following:
- duplicated the issue on a fresh installation of the latest version
- provide information about your system and how you installed Security Onion
- include relevant log files
- include reproduction steps
15 changes: 15 additions & 0 deletions .github/workflows/leaktest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: leak-test

on: [push,pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'

- name: Gitleaks
uses: zricethezav/gitleaks-action@master
1 change: 1 addition & 0 deletions KEYS
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBF7rzwEBEADBg87uJhnC3Ls7s60hbHGaywGrPtbz2WuYA/ev3YS3X7WS75p8
PGlzTWUCujx0pEHbK2vYfExl3zksZ8ZmLyZ9VB3oSLiWBzJgKAeB7YCFEo8te+eE
P2Z+8c+kX4eOV+2waxZyewA2TipSkhWgStSI4Ow8SyVUcUWA3hCw7mo2duNVi7KO
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
## Security Onion 2.3.2
## Security Onion 2.3.10

Security Onion 2.3.2 is here!
Security Onion 2.3.10 is here!

## Screenshots

Alerts
![Alerts](https://raw.githubusercontent.com/security-onion-solutions/securityonion/master/screenshots/alerts-1.png)

Hunt
![Hunt](https://raw.githubusercontent.com/security-onion-solutions/securityonion/master/screenshots/hunt-1.png)

### Release Notes

Expand Down
22 changes: 11 additions & 11 deletions VERIFY_ISO.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
### 2.3.2 ISO image built on 2020/10/25
### 2.3.10 ISO image built on 2020/11/19

### Download and Verify

2.3.2 ISO image:
https://download.securityonion.net/file/securityonion/securityonion-2.3.2.iso
2.3.10 ISO image:
https://download.securityonion.net/file/securityonion/securityonion-2.3.10.iso

MD5: 8010C32803CD62AA3F61487524E37049
SHA1: DCA300424C9DF81A4F332B8AA3945E18779C9D28
SHA256: 1099494AA3E476D682746AAD9C2BD7DED292589DFAAB7B517933336C07AA01D0
MD5: 55E10BAE3D90DF47CA4D5DCCDCB67A96
SHA1: 01361123F35CEACE077803BC8074594D57EE653A
SHA256: 772EA4EFFFF12F026593F5D1CC93DB538CC17B9BA5F60308F1976B6ED7032A8D

Signature for ISO image:
https://github.com/Security-Onion-Solutions/securityonion/raw/master/sigs/securityonion-2.3.2.iso.sig
https://github.com/Security-Onion-Solutions/securityonion/raw/master/sigs/securityonion-2.3.10.iso.sig

Signing key:
https://raw.githubusercontent.com/Security-Onion-Solutions/securityonion/master/KEYS
Expand All @@ -24,22 +24,22 @@ wget https://raw.githubusercontent.com/Security-Onion-Solutions/securityonion/ma

Download the signature file for the ISO:
```
wget https://github.com/Security-Onion-Solutions/securityonion/raw/master/sigs/securityonion-2.3.2.iso.sig
wget https://github.com/Security-Onion-Solutions/securityonion/raw/master/sigs/securityonion-2.3.10.iso.sig
```

Download the ISO image:
```
wget https://download.securityonion.net/file/securityonion/securityonion-2.3.2.iso
wget https://download.securityonion.net/file/securityonion/securityonion-2.3.10.iso
```

Verify the downloaded ISO image using the signature file:
```
gpg --verify securityonion-2.3.2.iso.sig securityonion-2.3.2.iso
gpg --verify securityonion-2.3.10.iso.sig securityonion-2.3.10.iso
```

The output should show "Good signature" and the Primary key fingerprint should match what's shown below:
```
gpg: Signature made Sun 25 Oct 2020 10:44:27 AM EDT using RSA key ID FE507013
gpg: Signature made Thu 19 Nov 2020 03:38:54 PM EST using RSA key ID FE507013
gpg: Good signature from "Security Onion Solutions, LLC <[email protected]>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.2
2.3.10
49 changes: 48 additions & 1 deletion salt/_modules/so.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,51 @@
#!py

import logging

def status():
return __salt__['cmd.run']('/usr/sbin/so-status')
return __salt__['cmd.run']('/usr/sbin/so-status')


def mysql_conn(retry):
log = logging.getLogger(__name__)

from time import sleep

try:
from MySQLdb import _mysql
except ImportError as e:
log.error(e)
return False

mainint = __salt__['pillar.get']('sensor:mainint', __salt__['pillar.get']('manager:mainint'))
mainip = __salt__['grains.get']('ip_interfaces').get(mainint)[0]

mysql_up = False
for i in range(0, retry):
log.debug(f'Connection attempt {i+1}')
try:
db = _mysql.connect(
host=mainip,
user='root',
passwd=__salt__['pillar.get']('secrets:mysql')
)
log.debug(f'Connected to MySQL server on {mainip} after {i} attempts.')

db.query("""SELECT 1;""")
log.debug(f'Successfully completed query against MySQL server on {mainip}')

db.close()
mysql_up = True
break
except _mysql.OperationalError as e:
log.debug(e)
except Exception as e:
log.error('Unexpected error occured.')
log.error(e)
break
sleep(1)

if not mysql_up:
log.error(f'Could not connect to MySQL server on {mainip} after {retry} attempts.')

return mysql_up
1 change: 1 addition & 0 deletions salt/common/files/log-rotate.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/opt/so/log/filebeat/*.log
/opt/so/log/telegraf/*.log
/opt/so/log/redis/*.log
/opt/so/log/salt/so-salt-minion-check
{
{{ logrotate_conf | indent(width=4) }}
}
16 changes: 14 additions & 2 deletions salt/common/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ soconfperms:
- gid: 939
- dir_mode: 770

sostatusconf:
file.directory:
- name: /opt/so/conf/so-status
- uid: 939
- gid: 939
- dir_mode: 770

so-status.conf:
file.touch:
- name: /opt/so/conf/so-status/so-status.conf
- unless: ls /opt/so/conf/so-status/so-status.conf

sosaltstackperms:
file.directory:
- name: /opt/so/saltstack
Expand Down Expand Up @@ -158,8 +170,8 @@ Etc/UTC:
utilsyncscripts:
file.recurse:
- name: /usr/sbin
- user: 0
- group: 0
- user: root
- group: root
- file_mode: 755
- template: jinja
- source: salt://common/tools/sbin
Expand Down
5 changes: 0 additions & 5 deletions salt/common/maps/domainstats.map.jinja

This file was deleted.

20 changes: 0 additions & 20 deletions salt/common/maps/eval.map.jinja

This file was deleted.

10 changes: 0 additions & 10 deletions salt/common/maps/fleet.map.jinja

This file was deleted.

7 changes: 0 additions & 7 deletions salt/common/maps/fleet_manager.map.jinja

This file was deleted.

5 changes: 0 additions & 5 deletions salt/common/maps/freq.map.jinja

This file was deleted.

6 changes: 0 additions & 6 deletions salt/common/maps/grafana.map.jinja

This file was deleted.

15 changes: 0 additions & 15 deletions salt/common/maps/heavynode.map.jinja

This file was deleted.

12 changes: 0 additions & 12 deletions salt/common/maps/helixsensor.map.jinja

This file was deleted.

9 changes: 0 additions & 9 deletions salt/common/maps/hotnode.map.jinja

This file was deleted.

10 changes: 0 additions & 10 deletions salt/common/maps/import.map.jinja

This file was deleted.

18 changes: 0 additions & 18 deletions salt/common/maps/manager.map.jinja

This file was deleted.

18 changes: 0 additions & 18 deletions salt/common/maps/managersearch.map.jinja

This file was deleted.

5 changes: 0 additions & 5 deletions salt/common/maps/mdengine.map.jinja

This file was deleted.

5 changes: 0 additions & 5 deletions salt/common/maps/playbook.map.jinja

This file was deleted.

10 changes: 0 additions & 10 deletions salt/common/maps/searchnode.map.jinja

This file was deleted.

9 changes: 0 additions & 9 deletions salt/common/maps/sensor.map.jinja

This file was deleted.

Loading

0 comments on commit 5344d30

Please sign in to comment.