Compare commits

...

978 Commits
1.1.4 ... 1.3.0

Author SHA1 Message Date
Mike Reeves
9eb4d6c1d5 Merge pull request #745 from Security-Onion-Solutions/dev
1.3.0
2020-05-20 13:51:48 -04:00
Mike Reeves
35646b7945 Merge branch 'master' into dev 2020-05-20 13:49:48 -04:00
Josh Patterson
4e9ccdb6ed Merge pull request #743 from Security-Onion-Solutions/quickfix/wazuh
Quickfix/wazuh
2020-05-20 11:55:26 -04:00
m0duspwnens
4917d88db0 remove wazuh-agent being installed during setup, let salt mage it 2020-05-20 11:45:54 -04:00
m0duspwnens
e07f6af156 remove wazuh-agent exlude being added to repo conf during setup 2020-05-20 11:41:33 -04:00
m0duspwnens
d4840d203c fix version lock for wazuh 2020-05-20 11:23:55 -04:00
Mike Reeves
51250ef751 Update wazuh.repo 2020-05-20 09:56:27 -04:00
Josh Patterson
695930a06e Merge pull request #742 from Security-Onion-Solutions/quickfix/wazuh
ensure wazuh-agent service is enabled and running
2020-05-19 17:01:17 -04:00
m0duspwnens
92c2222879 ensure wazuh-agent service is enabled and running 2020-05-19 16:59:43 -04:00
Mike Reeves
0f2369b5cb Fix permissions due to umask issues in Ubuntu 18 2020-05-19 16:31:39 -04:00
William Wernert
320e9d7432 [fix] Apply nginx state before states that rely on it 2020-05-19 14:20:58 -04:00
Mike Reeves
c045e3f936 remove replicas 2020-05-19 13:57:31 -04:00
Mike Reeves
46762e5ad9 change cortex to 0 replicas 2020-05-19 13:56:59 -04:00
Josh Patterson
07560463de Merge pull request #737 from Security-Onion-Solutions/quickfix/wazuh
https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/695
2020-05-19 13:27:52 -04:00
William Wernert
3959e1cd10 [fix] Update packages before anything else 2020-05-19 13:03:07 -04:00
William Wernert
6d5af5b07a [fix] Revert redirect fix for saltify and docker_seed_registry 2020-05-19 12:41:19 -04:00
William Wernert
7f08324862 [fix] Redirect stdout + stderr for every command in so-setup 2020-05-19 11:53:50 -04:00
Doug Burks
064768d07d Fix dce_rpc hunt query #736
https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/736
2020-05-19 11:27:01 -04:00
William Wernert
3f9d2e44b6 Merge branch 'dev' of github.com:Security-Onion-Solutions/securityonion-saltstack into dev 2020-05-19 11:24:04 -04:00
William Wernert
3b3072b002 [fix] Update filtered nic list before trying to flush unused nics 2020-05-19 11:23:59 -04:00
Mike Reeves
1d072eced2 Update VERSION 2020-05-19 10:47:56 -04:00
Josh Brower
10691036e0 Update hive_init 2020-05-19 10:27:46 -04:00
William Wernert
832d2db3f6 Merge branch 'bugfix/whiptail-percent' into dev 2020-05-19 10:22:27 -04:00
William Wernert
c8be95646c [fix] Remove newline in percentage string to fix printing 2020-05-19 10:22:14 -04:00
m0duspwnens
4f65d17690 https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/695 2020-05-19 10:14:40 -04:00
Doug Burks
29420da565 Only process zeek.dns.tld if dns.query.name contains a dot #734
https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/734
2020-05-19 10:08:30 -04:00
Mike Reeves
fc4afe6767 Fix Curl statement 2020-05-19 09:58:16 -04:00
William Wernert
84952d5aa6 [fix][WIP] Revert parts of2261fe9 2020-05-19 09:56:59 -04:00
Mike Reeves
1d677bb529 Update known issues list 2020-05-19 09:36:36 -04:00
William Wernert
2261fe9b66 [fix][WIP] Changes to set_progress_str to fix percentage dropping to 0 2020-05-19 09:32:10 -04:00
Josh Patterson
8957af0a4d Merge pull request #733 from Security-Onion-Solutions/quickfix/sostatus
removing strelka-backend from strelka so-status map
2020-05-18 17:53:32 -04:00
m0duspwnens
411389b68e removing strelka-backend from strelka so-status map 2020-05-18 17:52:47 -04:00
Josh Patterson
341c70de9e Merge pull request #732 from Security-Onion-Solutions/quickfix/sostatus
add strelka container list for so-status
2020-05-18 17:46:55 -04:00
m0duspwnens
e6bc8f2d26 add strelka container list for so-status 2020-05-18 17:46:14 -04:00
Josh Patterson
d25fbfec84 Merge pull request #731 from Security-Onion-Solutions/quickfix/sostatus
add strelka container list for so-status
2020-05-18 17:39:09 -04:00
m0duspwnens
5638c386db add strelka container list for so-status 2020-05-18 17:36:32 -04:00
Mike Reeves
8202344d01 Fix for Strelka 2020-05-18 17:28:26 -04:00
Doug Burks
def928804f Fix Hunt DHCP message_types query #728
https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/728
2020-05-18 17:12:20 -04:00
Josh Patterson
de2082c0e1 Merge pull request #730 from Security-Onion-Solutions/quickfix/sostatus
remove so-nginx from sensor so-status map
2020-05-18 17:09:35 -04:00
m0duspwnens
492e021fa4 remove so-nginx from sensor so-status map 2020-05-18 17:08:04 -04:00
Josh Patterson
b87ac725a4 Merge pull request #729 from Security-Onion-Solutions/quickfix/wazuh
prevent wazuh-agent from updating
2020-05-18 17:03:29 -04:00
m0duspwnens
a6575e7910 prevent wazuh-agent from updating - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/695 2020-05-18 17:00:18 -04:00
Josh Brower
b951094ea2 Change alert pivot links for MASTER 2020-05-18 14:13:32 -04:00
Josh Patterson
b27b7d2805 Merge pull request #725 from Security-Onion-Solutions/quickfix/standalone
allow utility state to run for so-standalone
2020-05-18 14:02:03 -04:00
m0duspwnens
8a4da01b7f allow utility state to run for so-standalone 2020-05-18 14:01:01 -04:00
Doug Burks
b291b242ee temporarily hardcode radius user.name to user.name.keyword 2020-05-18 13:47:21 -04:00
Mike Reeves
a10617c182 Update nids2hive.yaml 2020-05-18 13:43:25 -04:00
Mike Reeves
a56c776695 Update SOCtopus.conf 2020-05-18 13:41:37 -04:00
Mike Reeves
f144fa241f Change to URL base 2020-05-18 13:36:52 -04:00
Josh Patterson
35cb60b801 Merge pull request #720 from Security-Onion-Solutions/quickfix/strelka
change strelka ip for sensor nodes
2020-05-18 10:56:35 -04:00
m0duspwnens
eebe0eb618 get the first ip for the ip_interfaces:mainint grain 2020-05-18 10:54:07 -04:00
m0duspwnens
037bedb0c0 remove whitespace at top of file 2020-05-18 10:48:02 -04:00
m0duspwnens
15cd0c6b49 change strelka ip for sensor nodes 2020-05-18 10:41:39 -04:00
Doug Burks
00f6e8d61b update geoip country descriptions 2020-05-18 10:27:03 -04:00
Doug Burks
028d84b805 remove commas from groupby segments 2020-05-18 10:25:05 -04:00
Doug Burks
a3323c24ac fix ftp.argument 2020-05-18 09:52:56 -04:00
Doug Burks
2f15c30d9a fix dhcp query 2020-05-18 09:44:49 -04:00
weslambert
43a8ec6f50 Merge pull request #719 from Security-Onion-Solutions/fix/so-kibana-config
Fix/so kibana config
2020-05-18 09:23:17 -04:00
Wes Lambert
ee5937d038 update Kibana config 2020-05-18 13:21:18 +00:00
Wes Lambert
228bbbea5f update config export 2020-05-18 13:16:42 +00:00
Mike Reeves
fbbacd205c Update filebeat.yml 2020-05-18 08:47:03 -04:00
Doug Burks
bd4dfcb351 fix dns domain queries 2020-05-18 08:35:43 -04:00
Doug Burks
9cc750a90f fix dns tld failures 2020-05-18 08:32:37 -04:00
Mike Reeves
b29decb95f Remove Kratos placeholder 2020-05-17 21:23:12 -04:00
William Wernert
f319257f8d [feat] Change kratos:redirect to master:url_base 2020-05-17 13:14:28 -04:00
Josh Brower
b01209457d Merge pull request #718 from Security-Onion-Solutions/bugfix/kibana-fleet
Update Fleet IP placeholder
2020-05-17 12:51:57 -04:00
Josh Brower
8a8970d9ee Update Fleet IP placeholder 2020-05-17 12:51:20 -04:00
Mike Reeves
bc5e86bd4b Merge pull request #717 from Security-Onion-Solutions/issue/140
Issue/140
2020-05-17 11:24:59 -04:00
Mike Reeves
329a030585 Merge remote-tracking branch 'remotes/origin/dev' into issue/140 2020-05-17 09:38:30 -04:00
weslambert
f7de391518 Merge pull request #713 from Security-Onion-Solutions/fix/kibana_config_load
change KRATOS to MASTER
2020-05-16 13:07:24 -04:00
Wes Lambert
23eb73a943 change KRATOS to MASTER 2020-05-16 16:31:06 +00:00
weslambert
907702441f Merge pull request #712 from Security-Onion-Solutions/fix/kibana_config_load_order
Fix load order for PLACEHOLDER
2020-05-16 11:49:58 -04:00
Wes Lambert
047f4e31ad Fix load order for PLACEHOLDER 2020-05-16 15:48:55 +00:00
weslambert
6e9784f68c Merge pull request #711 from Security-Onion-Solutions/fix/kibana_config_placeholder
fix placeholder
2020-05-16 11:46:46 -04:00
Wes Lambert
3363a5a20a fix placeholder 2020-05-16 15:45:52 +00:00
weslambert
9d4397806b Merge pull request #710 from Security-Onion-Solutions/fix/kibana_config_export
Fix/kibana config export
2020-05-16 11:35:43 -04:00
Wes Lambert
9b8cf3845a update Kibana config export 2020-05-16 15:34:33 +00:00
Wes Lambert
89527c533a update Kibana config export 2020-05-16 15:33:20 +00:00
weslambert
5d7c020223 Merge pull request #709 from Security-Onion-Solutions/fix/kibana_config
update Kibana config
2020-05-16 11:09:45 -04:00
Wes Lambert
bd5cc35fc0 update Kibana config 2020-05-16 15:07:33 +00:00
weslambert
95141574d4 Merge pull request #707 from Security-Onion-Solutions/fix/dhcp_parsing
Fix/dhcp parsing
2020-05-16 11:04:13 -04:00
Wes Lambert
4b91ade2e8 fix message_types one more time :) 2020-05-16 15:03:27 +00:00
Wes Lambert
9845ee189c fix message_types for real 2020-05-16 15:02:41 +00:00
Wes Lambert
f0662eed48 remark Beat tag for now 2020-05-16 14:59:41 +00:00
Wes Lambert
6a2ddd4ef6 move to DNS 2020-05-16 14:58:51 +00:00
Wes Lambert
66c89abbc6 Fix DHCP message types 2020-05-16 14:58:06 +00:00
William Wernert
5619768212 [fix] Use hostname or ip in Kibana based on setup
Fixes #603
2020-05-15 20:40:35 -04:00
m0duspwnens
6c7f487a3e Merge remote-tracking branch 'remotes/origin/dev' into issue/140 2020-05-15 19:43:18 -04:00
m0duspwnens
0086f0b71b add redis state to standalone - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-15 19:43:06 -04:00
m0duspwnens
bb2587aaa0 add standalone to curator conf and scripts as well as other appopriate node types - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-15 15:42:04 -04:00
Doug Burks
cc7a244d0b Create zeek.dns.tld
https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/599
2020-05-15 15:32:25 -04:00
Doug Burks
60d2a0818b Add to zeek.dns and have it send to zeek.dns.tld
https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/599
2020-05-15 15:31:17 -04:00
m0duspwnens
2bd3a4ddd1 allow curator state to install on so-searchnode, so-eval, so-node, so-mastersearch, so-heavynode, so-standalone - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-15 15:30:00 -04:00
m0duspwnens
4e63477b98 Merge remote-tracking branch 'remotes/origin/dev' into issue/140 2020-05-15 15:21:03 -04:00
m0duspwnens
e7baca16ef allow grafana and influxdb states to run on standalone mode - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-15 15:20:36 -04:00
m0duspwnens
330ea0571f fix container list for so-status for standalone mode - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-15 15:09:40 -04:00
Josh Brower
e02bf2ebb5 Merge branch 'dev' of https://github.com/Security-Onion-Solutions/securityonion-saltstack into dev 2020-05-15 15:05:47 -04:00
Josh Brower
9d4536dcbe osquery ingest parsing update 2020-05-15 15:05:21 -04:00
Doug Burks
fc883745e5 add fields to conn log
https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/599
2020-05-15 15:02:02 -04:00
Doug Burks
58d59c6844 use null safe operator for source.port and destination.port
https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/594
2020-05-15 14:58:21 -04:00
Josh Brower
4737c0da3f Merge pull request #702 from Security-Onion-Solutions/bugfix/fleet-deployment
Fleet Setup - Restart nginx
2020-05-15 14:48:18 -04:00
Josh Brower
6b4822d98d Fleet Setup - Restart nginx 2020-05-15 14:47:19 -04:00
m0duspwnens
c89bc0b51a create nginx conf for standalone - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-15 14:42:38 -04:00
weslambert
baf1de4b34 Merge pull request #700 from Security-Onion-Solutions/fix/common_type_removal
remove type field
2020-05-15 14:37:44 -04:00
William Wernert
87afedae82 [fix] Menu spelling fixes 2020-05-15 14:33:37 -04:00
Wes Lambert
03805bd6e2 remove type field 2020-05-15 18:29:49 +00:00
weslambert
59ece8fd29 Merge pull request #699 from Security-Onion-Solutions/fix/dce_rpc_parsing
update DCE/RPC parsing
2020-05-15 14:20:37 -04:00
Wes Lambert
5d5f5cf105 update DCE/RPC parsing 2020-05-15 18:19:05 +00:00
Mike Reeves
7e1016ff07 Update firewall rules to allow minions to connect 2020-05-15 13:59:07 -04:00
Mike Reeves
10896c1add Update Release Notes 2020-05-15 13:41:51 -04:00
m0duspwnens
2f566bf6d7 add so-standalone to agent/wazuh-register-agent 2020-05-15 13:25:31 -04:00
m0duspwnens
1a157eb6a5 add so-standalone to agent/ossec.conf 2020-05-15 13:23:58 -04:00
m0duspwnens
9c7481a0c7 add so-status map for standalone 2020-05-15 13:21:05 -04:00
Mike Reeves
d04f58a27e Update README.md 2020-05-15 13:10:52 -04:00
William Wernert
2f4ce40095 [fix] Change verbiage to indicate the master vs open is only for OS packages 2020-05-15 11:40:37 -04:00
William Wernert
692d1d72a3 [fix] Change verbiage to indicate the master vs open is only for OS packages 2020-05-15 11:39:59 -04:00
William Wernert
c9614f9baf [fix] Only add user to SOC on masters 2020-05-15 11:20:33 -04:00
m0duspwnens
74290eca2a change = to in - https://github.com/Security-Onion-Solutions/securityonion-saltstack.git 2020-05-15 11:20:06 -04:00
m0duspwnens
f3a2c1fb4d add missing ] - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-15 11:08:10 -04:00
m0duspwnens
f4db261baf change elif - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-15 10:57:25 -04:00
m0duspwnens
fdae84bb74 remove = in - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-15 10:56:16 -04:00
William Wernert
cfec4eb5a2 Merge branch 'dev' of github.com:Security-Onion-Solutions/securityonion-saltstack into dev 2020-05-15 10:52:33 -04:00
William Wernert
b37b993eea [fix] Don't say we're downloading containers on iso install 2020-05-15 10:43:20 -04:00
William Wernert
eeb0579acb [fix] Don't change settings during whiptail menus on ISO 2020-05-15 10:42:52 -04:00
William Wernert
b9456dcc98 [fix] Set output dir for docker registry untar 2020-05-15 10:42:13 -04:00
Doug Burks
d6d27a2861 avoid duplicate entries in _cluster/settings for mastersearch
https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/696
2020-05-15 10:29:24 -04:00
m0duspwnens
509188092c adding so-standalone state logic, add zeek pillar to so-standalone - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-15 10:02:25 -04:00
m0duspwnens
e8244cb2f2 add standalone to case statement in configure_minion so-functions - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-14 17:14:35 -04:00
m0duspwnens
5f1582f39f remove extra space for standalone from pillar/top = https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-14 16:57:50 -04:00
Doug Burks
e41c1b6755 fix typo 2020-05-14 16:57:34 -04:00
m0duspwnens
fb020f4fcd update so-functions to handle STANDALONE mode - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-14 16:26:04 -04:00
m0duspwnens
692f04727f add standalone mode to pillar and state top - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-14 16:06:19 -04:00
m0duspwnens
3064af753b allow STANDALONE mode to install salt-master - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/140 2020-05-14 15:23:53 -04:00
Josh Patterson
09368b05f7 Merge pull request #688 from Security-Onion-Solutions/issue/140
rename PROD to STANDALONE
2020-05-14 15:06:38 -04:00
m0duspwnens
5f4ec41497 rename PROD to STANDALONE 2020-05-14 15:05:37 -04:00
Josh Patterson
989dc418a8 Merge pull request #686 from Security-Onion-Solutions/quickfix/sostatus
rename so-aptcacherng for so-status
2020-05-14 14:12:24 -04:00
m0duspwnens
9667f8b853 rename so-aptcacherng for so-status 2020-05-14 14:11:06 -04:00
Doug Burks
34d9882987 fix Wazuh and Sysmon queries 2020-05-14 13:47:01 -04:00
Josh Patterson
8cd3d0c16c Merge pull request #684 from Security-Onion-Solutions/issue/682
run so-elasticsearch-pipelines only on changes
2020-05-14 13:41:07 -04:00
m0duspwnens
7f464af5fa run so-elasticsearch-pipelines only on changes - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/682 2020-05-14 13:39:19 -04:00
William Wernert
02cd70c2e0 Merge branch 'dev' of github.com:Security-Onion-Solutions/securityonion-saltstack into dev 2020-05-14 12:33:34 -04:00
William Wernert
80cd408821 [fix] Only install nc, not full nmap 2020-05-14 12:33:28 -04:00
Mike Reeves
dbef2e2832 Update soc.json 2020-05-14 11:56:18 -04:00
William Wernert
5078ea8692 Merge branch 'dev' of github.com:Security-Onion-Solutions/securityonion-saltstack into dev 2020-05-14 11:50:22 -04:00
William Wernert
2642968089 [fix] Correct wazuh + suricata pillar placement 2020-05-14 11:50:16 -04:00
Mike Reeves
6991900ceb Update Query for geo 2020-05-14 11:34:10 -04:00
Doug Burks
5c3e7acc6d change resp_mime_types to file.resp_mime_types 2020-05-14 11:21:32 -04:00
Doug Burks
6112322bce change file.path to smb.path 2020-05-14 11:20:11 -04:00
Josh Brower
daf2936635 Merge pull request #680 from Security-Onion-Solutions/bugfix/navigator-top
Navigator top.sls fix
2020-05-14 11:20:00 -04:00
Josh Brower
554612d25f Navigator top.sls fix 2020-05-14 11:19:07 -04:00
Mike Reeves
937f488a8f Update static pillar 2020-05-14 11:13:43 -04:00
Doug Burks
c7b4ab116f fix rfb typo 2020-05-14 10:57:44 -04:00
Josh Brower
9186a553ca Merge pull request #678 from Security-Onion-Solutions/bugfix/nids-and-osquerypackages
osquery packages fix
2020-05-13 20:40:41 -04:00
Josh Brower
3db67de27a osquery packages fix 2020-05-13 20:39:56 -04:00
Josh Brower
a37ce376a7 Merge pull request #676 from Security-Onion-Solutions/bugfix/elastalert-nidsalert
Playbook hivealert fixes
2020-05-13 19:28:19 -04:00
Josh Brower
8a68e6adb3 Playbook hivealert fixes 2020-05-13 19:27:14 -04:00
Josh Patterson
0e43a948b5 Merge pull request #675 from Security-Onion-Solutions/issue/668
add missing install for apt-get
2020-05-13 17:38:44 -04:00
m0duspwnens
367f99bf6e add missing install for apt-get 2020-05-13 17:38:11 -04:00
Josh Patterson
e8778a2ad7 Merge pull request #674 from Security-Onion-Solutions/issue/668
point gpg key to archive/2019.2.5
2020-05-13 17:24:04 -04:00
m0duspwnens
d82c6c34ed Merge branch 'issue/668' of https://github.com/Security-Onion-Solutions/securityonion-saltstack into issue/668 2020-05-13 17:22:34 -04:00
m0duspwnens
f3ff8dc18c add quiet option back to wget 2020-05-13 17:22:24 -04:00
Josh Patterson
5e2a1b9346 Merge branch 'dev' into issue/668 2020-05-13 17:17:53 -04:00
m0duspwnens
1499a0c5fd point gpg key to archive/2019.2.5 2020-05-13 17:16:15 -04:00
Josh Brower
e9deb99d2f Merge pull request #673 from Security-Onion-Solutions/bugfix/elastalert-nidsalert
Elastalert - NIDS fix
2020-05-13 17:04:00 -04:00
Josh Brower
c3627c38e3 Elastalert - NIDS fix 2020-05-13 17:03:14 -04:00
Josh Patterson
1b764f5d90 Merge pull request #672 from Security-Onion-Solutions/issue/668
remove space in package install
2020-05-13 16:43:34 -04:00
m0duspwnens
64cddfeed3 remove space in package install 2020-05-13 16:42:49 -04:00
Josh Brower
48ee1fe016 Merge pull request #671 from Security-Onion-Solutions/bugfix/elastalert
Elastalert --> TheHive fixes
2020-05-13 16:35:22 -04:00
Josh Brower
6e4ee26a58 Elastalert --> TheHive fixes 2020-05-13 16:34:35 -04:00
William Wernert
92bb1499c4 Merge branch 'dev' of github.com:Security-Onion-Solutions/securityonion-saltstack into dev
# Conflicts:
#	setup/so-functions
2020-05-13 16:20:10 -04:00
William Wernert
d7f5246dc4 [feat] Add quiet flag to wget 2020-05-13 16:19:06 -04:00
William Wernert
8c8e0bf0e4 [fix] Set hostname correctly so salt picks it up before reboot 2020-05-13 16:15:41 -04:00
Josh Patterson
c0c173fd71 Merge pull request #670 from Security-Onion-Solutions/issue/668
fix the missed changes for 2019.2.5 salt upgrade
2020-05-13 16:04:58 -04:00
m0duspwnens
c4ba7b3024 fix the missed changes for 2019.2.5 salt upgrade - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/668 2020-05-13 16:03:22 -04:00
Josh Patterson
a06498d8fb Merge pull request #669 from Security-Onion-Solutions/issue/668
pin salt repo to 2019.2.5 for centos7
2020-05-13 15:19:34 -04:00
m0duspwnens
9d33d6ae62 pin salt repo to 2019.2.5 for centos - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/668 2020-05-13 15:18:07 -04:00
Josh Patterson
9c98d7d570 Merge pull request #667 from Security-Onion-Solutions/issue/227
add newline to mastersearch tab
2020-05-13 14:10:07 -04:00
m0duspwnens
5b57c58b84 add newline to mastersearch tab 2020-05-13 14:09:15 -04:00
William Wernert
5623f2e9a4 [fix] INSTALLERTYPE > install_type 2020-05-13 13:25:55 -04:00
William Wernert
c7aac11868 [fix] Don't redirect echo twice 2020-05-13 13:04:39 -04:00
William Wernert
530dd3b82b [fix] Don't redirect echo twice 2020-05-13 12:49:37 -04:00
William Wernert
6cdcda30f4 Merge branch 'dev' of github.com:Security-Onion-Solutions/securityonion-saltstack into dev 2020-05-13 12:43:54 -04:00
William Wernert
8ce520317e [fix] Sensor needs to set up firewall before installing packages 2020-05-13 12:43:50 -04:00
Josh Brower
bb0a89f12b Merge pull request #666 from Security-Onion-Solutions/bugfix/playbook-updateplays
Playbook - update plays
2020-05-13 12:20:30 -04:00
Josh Brower
23b4870ee6 Playbook - update plays 2020-05-13 12:19:37 -04:00
Jason Ertel
db51ab9d45 Adjust elastalert salt setup to match new so-elastalert image 2020-05-13 12:14:18 -04:00
Josh Patterson
e9cf0f8599 Merge pull request #665 from Security-Onion-Solutions/issue/227
Issue/227
2020-05-13 12:11:43 -04:00
m0duspwnens
d94a76a2c7 fix docker_container_cpu calculations for grafana 2020-05-13 12:06:02 -04:00
William Wernert
36b16cd2fe [fix] Remove extra backslash 2020-05-13 11:57:17 -04:00
William Wernert
846a875429 [fix] Install epel before installing argon2 2020-05-13 11:54:57 -04:00
m0duspwnens
581000b920 add grafana dashboard for mastersearch node - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/227 2020-05-13 11:52:10 -04:00
William Wernert
10cd6dd8d9 Merge branch 'dev' of github.com:Security-Onion-Solutions/securityonion-saltstack into dev 2020-05-12 18:07:10 -04:00
William Wernert
24dd4e0489 [fix] Add user to SOC after state has been applied 2020-05-12 18:07:04 -04:00
Mike Reeves
50fc9a4713 Merge pull request #664 from Security-Onion-Solutions/feature/defaultsearch
Remove Keyword
2020-05-12 17:55:32 -04:00
Mike Reeves
0b0c8d8471 Remove Keyword 2020-05-12 17:54:25 -04:00
William Wernert
1230cc57d7 [fix] Correct percentages 2020-05-12 17:54:03 -04:00
William Wernert
75af1e9920 Merge branch 'dev' of github.com:Security-Onion-Solutions/securityonion-saltstack into dev 2020-05-12 17:52:48 -04:00
William Wernert
08007a491f [fix] reboot error fix 2020-05-12 17:52:44 -04:00
William Wernert
cb69edc6dd [fix] Add back call to add_web_user 2020-05-12 17:50:52 -04:00
Mike Reeves
71f99528ae Move idstools and master earlier in the setup 2020-05-12 17:47:55 -04:00
Josh Brower
bc4b4385bf Merge pull request #662 from Security-Onion-Solutions/bugfix/soctopus-config
soctopus config fix
2020-05-12 17:04:22 -04:00
Josh Patterson
81d66207ed Merge pull request #661 from Security-Onion-Solutions/quickfix/common
move statedir and salttmp from salt state to common state
2020-05-12 17:00:13 -04:00
Josh Brower
d270c8f32d soctopus config fix 2020-05-12 16:59:35 -04:00
m0duspwnens
d5b2a6f059 move statedir and salttmp from salt state to common state 2020-05-12 16:58:26 -04:00
m0duspwnens
56b92afb6b fix telegraf.conf for different roles 2020-05-12 16:54:38 -04:00
Josh Brower
6956f14c0d Merge pull request #660 from Security-Onion-Solutions/bugfix/playbook-mysql-final
salt bug workarounds
2020-05-12 16:25:13 -04:00
Josh Brower
4d3d7dc60e salt bug workarounds 2020-05-12 16:24:24 -04:00
William Wernert
6b837f80ff [fix] numeric argument required, return 0 in wait_for_file 2020-05-12 14:26:02 -04:00
William Wernert
01b68e8b6a Merge branch 'dev' of github.com:Security-Onion-Solutions/securityonion-saltstack into dev 2020-05-12 14:20:14 -04:00
William Wernert
f8da001b7c [fix] numeric argument required, unquote var 2020-05-12 14:19:35 -04:00
Josh Brower
abd907fee1 Merge pull request #659 from Security-Onion-Solutions/bugfix/nids-parsing-alerting
suricata parsing
2020-05-12 14:07:51 -04:00
Josh Brower
62bec93190 suricata parsing 2020-05-12 14:04:02 -04:00
Mike Reeves
69bb422fa2 Merge pull request #658 from Security-Onion-Solutions/feature/defaultsearch
Update soc.json with default search info
2020-05-12 13:58:47 -04:00
Mike Reeves
0b7568e08f Update soc.json with default search info 2020-05-12 13:57:40 -04:00
Josh Brower
d1eac195d8 Enable Navigator 2020-05-11 22:41:54 -04:00
Josh Brower
4bd8e136be Enabled playbook 2020-05-11 22:41:02 -04:00
Josh Brower
d3992cb6e1 Merge pull request #657 from Security-Onion-Solutions/bugfix/playbook-mysql
playbook mysql fixes
2020-05-11 22:39:58 -04:00
Josh Brower
09ce3e088a playbook mysql fixes 2020-05-11 22:39:13 -04:00
Josh Brower
b658f7133b Update top.sls 2020-05-11 09:48:24 -04:00
Mike Reeves
09e2413695 Remove version hardcode 2020-05-10 17:31:50 -04:00
Josh Brower
945d50cc13 Merge pull request #649 from Security-Onion-Solutions/bugfix/playbook-mysql
navigator fixes
2020-05-10 11:58:39 -04:00
Josh Brower
20e7331bb9 navigator fixes 2020-05-10 11:57:20 -04:00
Josh Brower
4977a8b17c Merge pull request #648 from Security-Onion-Solutions/bugfix/playbook-mysql
Fix playbook mysql errors
2020-05-10 07:58:39 -04:00
Josh Brower
02160b12ee Fix playbook mysql errors 2020-05-10 07:57:45 -04:00
Josh Brower
170d799470 Merge pull request #647 from Security-Onion-Solutions/bugfix/playbook-mysql
feature/playbook mysql
2020-05-09 16:30:50 -04:00
Mike Reeves
02ea4eb410 Update so-functions 2020-05-09 12:00:57 -04:00
Jason Ertel
47295d42f5 Initial iteration of new SOC Event search module 2020-05-08 17:00:06 -04:00
Josh Brower
e3a3a01ee1 Merge remote-tracking branch 'remotes/origin/dev' into bugfix/playbook-mysql 2020-05-08 16:49:38 -04:00
Josh Brower
9b54a432fc mysql playbook 2020-05-08 16:36:59 -04:00
Mike Reeves
818c5025f9 Merge pull request #644 from Security-Onion-Solutions/issue/140
Change Prod Mode to Standalone
2020-05-07 16:11:40 -04:00
Mike Reeves
34bcfd806d Change Prod Mode to Standalone 2020-05-07 16:10:50 -04:00
Mike Reeves
a883af32e7 change core to nginx 2020-05-06 18:07:26 -04:00
Mike Reeves
f2acf93493 Fix version in so-functions 2020-05-06 17:51:32 -04:00
Mike Reeves
3550248d39 Fix registry unpack for ISO 2020-05-06 17:48:47 -04:00
Josh Patterson
dd96a44c05 Merge pull request #640 from Security-Onion-Solutions/issue/632
Issue/632
2020-05-06 16:50:14 -04:00
m0duspwnens
2e6e474a54 require with onchanges is redundant 2020-05-06 16:48:27 -04:00
m0duspwnens
0662245590 fix for https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/632 2020-05-06 16:38:39 -04:00
Mike Reeves
50b352bfb6 Merge pull request #638 from Security-Onion-Solutions/issue/140
Added Production Mode
2020-05-06 14:37:36 -04:00
Mike Reeves
80aca60477 Added Production Mode 2020-05-06 14:27:34 -04:00
Mike Reeves
72ea577c70 Merge pull request #637 from Security-Onion-Solutions/issue/620
Remove Parsing Node
2020-05-06 14:08:50 -04:00
Mike Reeves
bc6c8c8332 Remove Parsing Node 2020-05-06 14:06:02 -04:00
Mike Reeves
1fa1277e31 Fix for osquery firewall 2020-05-06 11:29:28 -04:00
Mike Reeves
48ad831f9f Merge pull request #636 from Security-Onion-Solutions/feature/firewallupdate
Feature/firewallupdate
2020-05-06 09:38:52 -04:00
Josh Brower
bc34c67f47 Merge remote-tracking branch 'remotes/origin/dev' into bugfix/playbook-mysql 2020-05-06 08:30:45 -04:00
Josh Brower
2e3bcf600f Playbook mysql 2020-05-06 08:29:14 -04:00
Mike Reeves
88df4cc7ae Fix location for files 2020-05-05 23:31:34 -04:00
Mike Reeves
77b07bb6f8 Fix location for files 2020-05-05 23:02:50 -04:00
Mike Reeves
13e067c20a Fix location for files 2020-05-05 17:45:19 -04:00
Mike Reeves
6936bc9c3e Fix file for firewall templates 2020-05-05 14:45:54 -04:00
Mike Reeves
fbbf9dab60 Allow Firewall to update between versions 2020-05-05 13:57:36 -04:00
Josh Patterson
981801f23c Merge pull request #630 from Security-Onion-Solutions/issue/629
remove schedule state from being applied
2020-05-05 11:02:46 -04:00
m0duspwnens
ad7e59794a remove schedule state from being applied 2020-05-05 10:57:14 -04:00
William Wernert
754f3ac537 Merge pull request #608 from Security-Onion-Solutions/feature/setup-testing-flag
Feature/setup testing flag
2020-05-05 09:08:55 -04:00
William Wernert
a20f9e2697 Merge branch 'dev' into feature/setup-testing-flag
# Conflicts:
#	setup/so-functions
#	setup/so-whiptail
2020-05-05 09:08:37 -04:00
William Wernert
aa00309f00 [fix] Add TESTING flag to resolve merge conflicts 2020-05-05 09:06:46 -04:00
William Wernert
fc2de5a384 [fix] Pipe firstcheckin output to /dev/null 2020-05-04 20:43:42 -04:00
William Wernert
1c0a78e8ad Merge pull request #628 from Security-Onion-Solutions/feature/hw-requirements
Feature/hw requirements
2020-05-04 16:57:35 -04:00
William Wernert
0b37437102 [fix] so-setup fixes (function ordering
* Firewall function needs to be run at different times for different install types
* Minion pillars need to be copied before running any salt states
2020-05-04 16:56:23 -04:00
William Wernert
d9a8fa0474 [fix] Hit -> Press 2020-05-04 16:06:02 -04:00
William Wernert
6785b9e4d2 [feat] Add check for hardware requirements 2020-05-04 15:59:07 -04:00
Josh Patterson
d9dff52104 Merge pull request #627 from Security-Onion-Solutions/issue/623
nginx portion of https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/623
2020-05-04 15:45:23 -04:00
m0duspwnens
9adf08522c nginx portion of https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/623 2020-05-04 15:43:09 -04:00
William Wernert
457007c9c7 Merge pull request #626 from Security-Onion-Solutions/feature/gitignore
[feat] Add .gitignore
2020-05-04 14:10:16 -04:00
William Wernert
852c3ced3b [feat] Add .gitignore 2020-05-04 14:09:06 -04:00
William Wernert
398991de0c Merge pull request #625 from Security-Onion-Solutions/feature/setup-refactor
Feature/setup refactor
2020-05-04 14:01:47 -04:00
William Wernert
c42c22dc66 [fix] Correct require in fleet sls 2020-05-04 13:49:27 -04:00
William Wernert
07726de250 [fix] Remove old FIXMEs 2020-05-04 12:15:44 -04:00
William Wernert
80aee06a67 [fix] Remove files that are no longer in dev 2020-05-04 10:57:46 -04:00
William Wernert
5805d68b58 [fix] Fix dev merge issues 2020-05-04 10:55:00 -04:00
William Wernert
a2fbdf644c [fix] Move + rename SOVERSION var for ISO build 2020-05-04 10:43:27 -04:00
William Wernert
714cd522cb Merge branch 'dev' into feature/setup-refactor
# Conflicts:
#	README.md
#	VERSION
#	pillar/top.sls
#	salt/common/grafana/grafana_dashboards/eval/eval.json
#	salt/common/init.sls
#	salt/common/tools/sbin/so-status
#	salt/curator/init.sls
#	salt/elastalert/init.sls
#	salt/elasticsearch/init.sls
#	salt/filebeat/init.sls
#	salt/fleet/files/scripts/so-fleet-setup
#	salt/fleet/init.sls
#	salt/grafana/dashboards/sensor_nodes/sensor.json
#	salt/hive/init.sls
#	salt/idstools/init.sls
#	salt/kibana/bin/so-kibana-config-load
#	salt/logstash/init.sls
#	salt/master/init.sls
#	salt/mysql/init.sls
#	salt/nginx/etc/index.html
#	salt/pcap/init.sls
#	salt/playbook/init.sls
#	salt/reactor/fleet.sls
#	salt/redis/init.sls
#	salt/sensoroni/init.sls
#	salt/soctopus/init.sls
#	salt/strelka/init.sls
#	salt/suricata/init.sls
#	salt/tcpreplay/init.sls
#	salt/wazuh/init.sls
#	salt/zeek/init.sls
#	setup/so-functions
#	setup/so-setup
#	setup/so-whiptail
2020-05-04 10:35:53 -04:00
William Wernert
26e40f433b [fix] Pull docker/config.sls changes from dev 2020-05-04 10:28:44 -04:00
William Wernert
c82f55695c [fix] Docker container list fix 2020-05-04 10:27:07 -04:00
William Wernert
2c307242b1 [fix] Set MAINIP var on all installs 2020-05-04 10:24:47 -04:00
William Wernert
6a4f3a526f [fix] Fix so-setup ordering
Run all salt commands after accepting salt key, and apply firewall state after all pillars generated
2020-05-04 09:43:36 -04:00
William Wernert
eb2c432f22 [fix] Correct ordering of setup commands
Firewall must be updated before checking in to salt,
and schedule state must run before copying minion temp files to master
2020-05-04 09:36:17 -04:00
William Wernert
c4741043e9 [fix] Only chmod files if they exist 2020-05-04 09:34:57 -04:00
William Wernert
6ae91c2ff0 [feat] Use getent instead of hosts in case the hostsfile has already been updated 2020-05-04 09:34:36 -04:00
Josh Patterson
285d74767d Merge pull request #624 from Security-Onion-Solutions/issue/619
Issue/619
2020-05-01 15:44:12 -04:00
m0duspwnens
2dd2289c94 fix some happy mistakes - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/619 2020-05-01 15:37:54 -04:00
m0duspwnens
174b353ce0 salt version pulled due to vuln, update to 2019.2.4 2020-05-01 14:01:10 -04:00
m0duspwnens
e2244bd839 use maps for so-status - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/619 2020-05-01 13:21:11 -04:00
William Wernert
299709108f [fix] Don't run check_exitstatus in whiptail_homenet_sensor 2020-05-01 11:04:35 -04:00
Mike Reeves
cb59d21f5a Merge pull request #622 from Security-Onion-Solutions/fix/1.2.2
Fix/1.2.2
2020-05-01 10:47:33 -04:00
Mike Reeves
aeebc893de Update SOC page 2020-05-01 10:44:05 -04:00
Mike Reeves
a0310b1c2c Update Readme 2020-05-01 10:38:04 -04:00
Mike Reeves
90840f6d00 Update Kratos yaml 2020-04-30 15:21:52 -04:00
William Wernert
a44158261a [fix] Run salt command to check in to master before accepting salt key 2020-04-30 12:45:48 -04:00
William Wernert
6359da0010 [fix] Move salt-key accept to after the ca + ssl states 2020-04-30 11:31:33 -04:00
Mike Reeves
784e2896bd Fix Strelka Versioning 2020-04-30 11:31:07 -04:00
William Wernert
4c6b841b16 [fix] Set minion id after prompting for hostname 2020-04-30 10:06:53 -04:00
Mike Reeves
793b887aea Update vertsion to 1.2.2 2020-04-30 09:44:49 -04:00
William Wernert
a281f59319 [fix] Update packages before setting highstate on salt startup in case it updates 2020-04-30 08:51:38 -04:00
William Wernert
1f030160b0 [feat] Update salt ver to 2019.2.4 2020-04-30 08:49:16 -04:00
William Wernert
93493b204f [fix] Add new whitespace 2020-04-29 18:15:21 -04:00
William Wernert
3d04ab59d5 [fix] Comment template lines in so-status 2020-04-29 18:14:28 -04:00
William Wernert
0ee4aa9eb9 [fix] Move common pillar values to the bottom of the top file 2020-04-29 18:13:22 -04:00
William Wernert
5e18eb6e4d [fix] Use False instead of 0 as default val in docker/config.sls 2020-04-29 18:12:50 -04:00
Mike Reeves
bf6b525359 Update Salt Version 2020-04-29 16:39:41 -04:00
Josh Patterson
cb541ebea2 Merge pull request #614 from Security-Onion-Solutions/issue/613
only do sed if fleet_node is true
2020-04-29 16:02:22 -04:00
m0duspwnens
9833d1754a only do sed if fleet_node is true - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/613 2020-04-29 11:19:28 -04:00
William Wernert
bf41fe838c [fix] Correct order of setup salt states 2020-04-28 22:40:21 -04:00
William Wernert
31f9f31ff2 [fix] Run docker pull once more if the first time fails 2020-04-28 22:39:45 -04:00
William Wernert
fcc15e283a [fix] Remove duplicate salt state 2020-04-28 22:38:52 -04:00
William Wernert
e1a457e445 [fix] Correct mysql port 2020-04-28 22:38:36 -04:00
William Wernert
8afacd9709 [fix] Run elasticsearch state earlier in setup 2020-04-28 16:19:26 -04:00
William Wernert
05c55efe12 [fix] Test for 3306 on MASTERIP, not localhost 2020-04-28 16:19:08 -04:00
William Wernert
3cff145e2d [fix] Verify vm.max_map_count is present before so-thehive-es 2020-04-28 16:18:48 -04:00
Josh Patterson
f8dde1201e Merge pull request #609 from Security-Onion-Solutions/issue/585
Issue/585
2020-04-28 16:11:38 -04:00
m0duspwnens
fdf5450a2e remove stuff.sls 2020-04-28 14:29:44 -04:00
William Wernert
f22cb9aac1 [feat] Add TESTING flag to whiptail menus for automated setup script testing 2020-04-28 14:11:08 -04:00
m0duspwnens
8d2ca003fb change how we populate local.zeek - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/585 2020-04-28 14:10:57 -04:00
Mike Reeves
d5075d68b1 Change Version Files 2020-04-28 14:00:20 -04:00
William Wernert
0ea8c349fb [fix] Fix typo + permissions 2020-04-28 13:34:36 -04:00
William Wernert
fa09a0ef4d [fix] Add back missing containers 2020-04-28 13:19:01 -04:00
William Wernert
e6492d4852 [fix] Don't set startup state until end of setup 2020-04-28 13:02:27 -04:00
m0duspwnens
c46a45f00f LOAD to LOCAL in local.zeek and sort local.zeek and zeekctl.cfg output 2020-04-28 12:08:32 -04:00
m0duspwnens
ca42850a0c add missing ) 2020-04-28 11:31:19 -04:00
William Wernert
7a456c2c6b [fix] Install netcat so nc command works 2020-04-28 10:58:32 -04:00
William Wernert
54127cf77a [fix] Revert changes to collect_webuser_inputs 2020-04-28 10:58:16 -04:00
William Wernert
968e3189e7 [fix] Fix indentation on mysql init.sls + depend on mysql container for fleet 2020-04-28 10:57:14 -04:00
m0duspwnens
b6741daca6 pillarize local.zeek and move zeekctl from defaults.yml to zeek pillar - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/585 2020-04-28 09:44:37 -04:00
William Wernert
34ddc69bfe [refactor][fix] Move so_version to so-variables 2020-04-28 09:01:27 -04:00
William Wernert
1eb387dcdd [fix] Change docker image prune back to docker rmi 2020-04-28 09:01:01 -04:00
William Wernert
af7accd1e9 [fix] Only disable unused nics if the array is not empty 2020-04-28 09:00:22 -04:00
William Wernert
b4f65955fe [fix] Update FS variables to correct names 2020-04-28 02:34:47 -04:00
William Wernert
d88382af12 [refactor] Change fleet sls to depend on mysql 2020-04-28 01:36:57 -04:00
William Wernert
3bfaa6f8de [merge] Merge master into feature/setup-refactor 2020-04-28 01:35:09 -04:00
Josh Patterson
90aabde4c9 Merge pull request #607 from Security-Onion-Solutions/issue/587
remove nginx from unneeded states
2020-04-27 15:10:12 -04:00
m0duspwnens
aff02e1f1c remove nginx from unneeded states 2020-04-27 15:02:30 -04:00
William Wernert
5c5a97ca75 [fix] Change order of ip link parsing 2020-04-27 12:10:59 -04:00
William Wernert
dc8ed1978d [fix] Redirect further lines to setup log, and fix issues with install 2020-04-27 08:48:06 -04:00
Jason Ertel
e4afc20366 Update Kratos config to match latest version of Kratos 2020-04-24 16:27:36 -04:00
Josh Patterson
19a3354aa2 Merge pull request #602 from Security-Onion-Solutions/issue/587
Issue/587
2020-04-24 16:26:46 -04:00
m0duspwnens
8a64ba727f remote html bind for nginx 2020-04-24 16:18:55 -04:00
Mike Reeves
d695514929 Fix Error locations 2020-04-24 14:28:23 -04:00
m0duspwnens
3136affc91 updating nginx index.html - issue/587 2020-04-24 14:24:33 -04:00
Mike Reeves
09abd723d1 Add favicons back 2020-04-24 13:42:08 -04:00
m0duspwnens
00e12d0747 Merge remote-tracking branch 'remotes/origin/dev' into issue/587 2020-04-23 15:46:50 -04:00
Mike Reeves
ad17c18824 Update Version to 1.2.2 for build automation 2020-04-23 13:59:18 -04:00
William Wernert
3f8d063bde [fix] Install wget on CentOS 2020-04-23 12:12:35 -04:00
William Wernert
46fd4cf96e [fix] Move common package install and fix typo 2020-04-23 11:52:21 -04:00
Mike Reeves
4197bfb348 Change tarball location 2020-04-23 10:29:09 -04:00
m0duspwnens
766b56a944 update dockers to 1.2.2 2020-04-23 10:11:26 -04:00
William Wernert
805299bc75 [fix[ Don't repeat whiptail menu 2020-04-22 23:06:46 -04:00
William Wernert
948e6fd20d [fix] Correct conversion ratio for log_size_limit 2020-04-22 22:48:41 -04:00
William Wernert
10e46b6fc3 [fix] Calc log_size_limit more accurately + actually call function 2020-04-22 22:42:24 -04:00
William Wernert
09c22bbe43 [fix] Create arrays for bro_pins and suricata_pins 2020-04-22 16:59:31 -04:00
William Wernert
02cd1a7623 [fix] Provide more feedback about whiptail exit status to user 2020-04-22 16:58:33 -04:00
William Wernert
5b3584d738 [fix] Add check for TESTHOST being blank, only install packages before setup if missing 2020-04-22 15:56:27 -04:00
William Wernert
d011be3faa [fix] Sensor should also set minion flag 2020-04-22 15:35:08 -04:00
William Wernert
4024c9758c [fix] Don't trim double quotes inline, masks whiptail cancel ret code 2020-04-22 15:25:25 -04:00
William Wernert
158f380dac [fix] Change =<(...) to =$(...) 2020-04-22 14:59:46 -04:00
William Wernert
5c9e2f1820 [fix] Blank terminal before whiptail starts 2020-04-22 14:57:37 -04:00
William Wernert
8404453cec [refactor] Use nproc to calculate number of cpu cores 2020-04-22 14:48:52 -04:00
William Wernert
212e57a16c [fix] Correct calculation order in calculate_useable_cores 2020-04-22 14:41:54 -04:00
William Wernert
088e9f1e7d [fix] Propagate variable rename CPUCORES -> num_cpu_cores 2020-04-22 14:37:27 -04:00
William Wernert
7c1bf39ff4 [fix] Don't print hostname in whiptail_set_redirect
* Fixes #598
2020-04-22 14:14:57 -04:00
William Wernert
a3927e2e5a [fix] Move get_redirect to run under any master node 2020-04-22 13:59:57 -04:00
William Wernert
1d55d00caf [fix] Redirect so-user command output to setup log 2020-04-22 13:57:24 -04:00
William Wernert
25432b745d [fix] Export instead of declaring dynamic variables 2020-04-22 13:56:53 -04:00
William Wernert
89674a0697 [fix] Add back web user prompts to setup 2020-04-22 13:27:49 -04:00
William Wernert
39e6f8ecbd [fix] Misc fixes for setup to run properly 2020-04-22 13:15:39 -04:00
William Wernert
3f264163d4 [fix] Test if QUIET var is set, and convert whiptail output to arrays
Also rewrite filter_unused_nics so it is the only source for list of nics
2020-04-22 13:15:08 -04:00
William Wernert
0250bf026a [fix] Redirect command outputs within saltify and docker_install 2020-04-22 13:12:12 -04:00
m0duspwnens
7e34595f99 rename docker container so-core to so-nginx - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/587 2020-04-21 15:16:08 -04:00
m0duspwnens
fd87e7bc1d breakout common state - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/587 2020-04-21 13:01:56 -04:00
Mike Reeves
8b76b30266 Merge pull request #586 from Security-Onion-Solutions/dev
1.2.1-1
2020-04-20 16:12:54 -04:00
Mike Reeves
a0c79f1a4a Merge pull request #581 from joeb1kenobe/patch-1
Update README.md
2020-04-20 16:06:42 -04:00
Mike Reeves
fe2f1f9aa3 Merge branch 'master' into patch-1 2020-04-20 16:05:01 -04:00
Mike Reeves
eaf54781e8 Merge branch 'master' into dev 2020-04-20 16:03:23 -04:00
William Wernert
739989473d [fix] Provide feedback when first running script, and execute whiptail commands 2020-04-20 15:41:01 -04:00
Mike Reeves
c024bdf427 remove proxy declaration 2020-04-20 15:31:13 -04:00
William Wernert
12e87d119b [fix] Reference correct variable when checking for setup type 2020-04-20 15:30:30 -04:00
Mike Reeves
f271fadfec Fix tarball 2020-04-20 15:28:13 -04:00
Mike Reeves
af1a44f479 Merge pull request #580 from Security-Onion-Solutions/dougburks-patch-1
Update README.md to point ISO users to the ISO page
2020-04-19 18:43:48 -04:00
Mike Reeves
c213287e07 Update README.md 2020-04-18 19:15:55 -04:00
Josh Patterson
9f1a4ddf9b Update so-functions 2020-04-18 19:15:55 -04:00
Mike Reeves
a48baf528b Update README.md 2020-04-18 19:12:21 -04:00
m0duspwnens
eca8cf5502 remove logstash pillars from eval in top 2020-04-18 19:12:21 -04:00
Wes Lambert
7ea861650f updated placeholder in saved objects 2020-04-18 19:11:20 -04:00
Wes Lambert
8622dab0d2 update load script 2020-04-18 19:11:19 -04:00
Mike Reeves
977cf8d3d1 Update Notes 2020-04-18 19:11:19 -04:00
Mike Reeves
6798c35728 Update Version File 2020-04-18 19:11:19 -04:00
Mike Reeves
ff29c9741e Update JOSN for release 2020-04-18 19:11:18 -04:00
m0duspwnens
8fd79fb6c8 add missing , 2020-04-18 19:11:18 -04:00
Josh Brower
e660de236a osquery pipeline fix 2020-04-18 19:11:18 -04:00
Mike Reeves
698a0d285c Fix the Strelka redis 2020-04-18 19:11:17 -04:00
m0duspwnens
e2c8bdcd40 remove space - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/571 2020-04-18 19:11:17 -04:00
m0duspwnens
1e8bb8b887 fix bug not allowing grafana to install on mastersearch - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/571 2020-04-18 19:11:16 -04:00
William Wernert
c76ce035a6 [refactor][WIP] Initial main setup script refactor
Untested, probably broken
2020-04-18 19:11:16 -04:00
William Wernert
ceb46c4eca [fix] Revert variable rename (HNSENSOR, HNMASTER) 2020-04-18 19:10:37 -04:00
William Wernert
ae9a7a4b55 [fix] Variable renames 2020-04-18 19:10:37 -04:00
William Wernert
b27efec2ef [refactor][WIP] Add functions for setup refactor 2020-04-18 19:10:37 -04:00
William Wernert
c851ff449b [fix] Redirect all needed commands to setup log 2020-04-18 19:10:36 -04:00
William Wernert
2e0e5c0014 [fix] Correct progress string logic 2020-04-18 19:10:36 -04:00
William Wernert
6ec2a24cbe [refactor] Remove redundant function docs 2020-04-18 19:10:35 -04:00
William Wernert
ef2bc3bfad [refactor][WIP] Delete so-contstants 2020-04-18 19:10:35 -04:00
William Wernert
8083550bb4 [fix] Revert find+replace error in suricata yaml 2020-04-18 19:10:35 -04:00
William Wernert
fcbd22318a [feat] Add dependence on mysql state to fleet state 2020-04-18 19:10:34 -04:00
William Wernert
068672ea12 [feat] Add a port check to the mysql state 2020-04-18 19:10:34 -04:00
William Wernert
3ef3c157f3 [refactor][WIP] Setup changes part 6 2020-04-18 19:10:33 -04:00
m0duspwnens
860e4fcead fix nsm threshold sensor dashboard 2020-04-18 19:04:24 -04:00
Mike Reeves
759204e77b Update Versions 2020-04-18 19:04:23 -04:00
Josh Brower
a9fba05b03 rename kratos config field 2020-04-18 19:04:23 -04:00
Mike Reeves
ea6d78b294 Download Strlka Dockers 2020-04-18 19:04:23 -04:00
Mike Reeves
137ef36f74 Change location of strelka dockers 2020-04-18 19:03:11 -04:00
Wes Lambert
66b4f15a7b replace static value for comm id 2020-04-18 19:03:11 -04:00
m0duspwnens
ff56b0db2b update nsm threshholds for searchnode 2020-04-18 19:03:10 -04:00
m0duspwnens
e6f1d487a9 changes to master dashboard 2020-04-18 19:03:10 -04:00
m0duspwnens
2cca01fdee update master dashboard 2020-04-18 19:03:10 -04:00
m0duspwnens
c95ecac7a3 rename forward node to sensor node for grafana 2020-04-18 19:03:09 -04:00
m0duspwnens
b33eccf929 rename forward node to sensor node for grafana 2020-04-18 19:03:09 -04:00
m0duspwnens
4b35098dfe rename forward node to sensor node for grafana 2020-04-18 19:03:09 -04:00
m0duspwnens
9d04c7fb7c remove graph from uptime eval 2020-04-18 19:03:08 -04:00
m0duspwnens
e8990b4009 zeek restart count red if >= 1 2020-04-18 19:03:08 -04:00
m0duspwnens
70010db77b fix spacing in zeek packet loss grafana panel 2020-04-18 19:03:07 -04:00
m0duspwnens
812e439d85 changes to eval grafana dashboard 2020-04-18 19:03:07 -04:00
m0duspwnens
a738995b09 change healthcheck to send 0 or 1 to telegraf for zeek restart 2020-04-18 19:03:07 -04:00
Josh Brower
8cb94872e6 osquery package versioning bugfix 2020-04-18 19:03:06 -04:00
William Wernert
9f8064563e [fix] Correct placeholder subbing for Kibana 2020-04-18 19:03:06 -04:00
William Wernert
2ca8d4ed9e [fix] Add correct PATH location in so-setup 2020-04-18 19:03:05 -04:00
Josh Brower
8fdc2a59c2 Playbook - automatically set SOCtopus IP 2020-04-18 19:03:05 -04:00
Mike Reeves
4c837c7d15 Apply yum fixes once changes are opk 2020-04-18 19:02:46 -04:00
Wes Lambert
b67229783b update parsing for Zeek files 2020-04-18 18:59:21 -04:00
Josh Brower
4475ebfaa8 Fleet package fixes 2020-04-18 18:59:20 -04:00
Wes Lambert
358d2f74b2 update key name 2020-04-18 18:58:27 -04:00
Josh Brower
9216d92488 osquery ingest ecs 2020-04-18 18:58:27 -04:00
Wes Lambert
0a564a438b update Kibana config 2020-04-18 18:58:27 -04:00
Josh Brower
066f1251a7 NIDS2TheHive Update for ECS 2020-04-18 18:58:26 -04:00
Jason Ertel
b7f50c321b secure config files 2020-04-18 18:58:26 -04:00
Jason Ertel
61ae94b2b3 secure config files 2020-04-18 18:58:25 -04:00
Josh Brower
12af856d00 fleet osquery fixes 2020-04-18 18:58:25 -04:00
Jason Ertel
ad26900a01 Ensure Path=/ is specified for cookie for eval mode 2020-04-18 18:58:24 -04:00
m0duspwnens
cca408e2d8 change log_size_limit logic - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/551 2020-04-18 18:58:24 -04:00
Wes Lambert
5f2fa0fdc5 migrate Zeek clean script from Bro 2020-04-18 18:56:34 -04:00
Jason Ertel
f205d97f26 support auto redirect on login 2020-04-18 18:56:34 -04:00
Jason Ertel
decf2ef022 Added config changes needed for new admin pages in SOC 2020-04-18 18:56:34 -04:00
Jason Ertel
9c2975a546 Continued auth improvements 2020-04-18 18:56:33 -04:00
m0duspwnens
308ef0fc30 move salt logs to /opt/so/logs - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/530 2020-04-18 18:56:32 -04:00
Mike Reeves
bd0aaab003 Fix Filebeat Yaml 2020-04-18 18:55:44 -04:00
Mike Reeves
18450815d8 Have templates applied on the master only 2020-04-18 18:55:44 -04:00
Mike Reeves
2d086b7355 Disable Strelka for all things 2020-04-18 18:55:44 -04:00
Mike Reeves
093b6431f2 Fix Wazuh and Strelka 2020-04-18 18:55:43 -04:00
Mike Reeves
d3699cb9e3 Remove ES watch 2020-04-18 18:54:43 -04:00
Mike Reeves
a7c8df7f45 Fix ES Watch 2020-04-18 18:54:43 -04:00
Josh Brower
294fb67007 so-status Fleet node 2020-04-18 18:54:42 -04:00
m0duspwnens
38d4687b78 fix missing telegraf data for /nsm 2020-04-18 18:54:42 -04:00
William Wernert
48549cdd83 [fix] NetworkManager dir should not be string 2020-04-18 18:54:41 -04:00
Mike Reeves
786454c8d4 Make Kibana run faster on checkins 2020-04-18 18:53:50 -04:00
m0duspwnens
8f67056c71 removing path.config 2020-04-18 18:53:49 -04:00
m0duspwnens
ab6e989663 adding searchnode to salt/top 2020-04-18 18:53:49 -04:00
William Wernert
87e6763859 [fix] Change script permissions to allow execution 2020-04-18 18:53:43 -04:00
William Wernert
6a29c81f67 [refactor] Rename variables in suricata yamls 2020-04-18 18:52:34 -04:00
William Wernert
35b5dfd83e [refactor] Move functions used by multiple scripts to separate file 2020-04-18 18:51:58 -04:00
William Wernert
5c3a56a289 [refactor] Start using lower case for variables 2020-04-18 18:50:13 -04:00
William Wernert
ce59019967 [refactor] Move variables to their own file 2020-04-18 18:41:19 -04:00
William Wernert
63fd274106 [Fix] Remove mysql salt dep function calls from so-setup 2020-04-18 18:38:24 -04:00
William Wernert
1ac29c6fbe [refactor] Formatting change to calculate_useable_cores 2020-04-18 18:37:43 -04:00
William Wernert
912fb6d583 [refactor] Generic wait_for_file function 2020-04-18 18:36:52 -04:00
William Wernert
74375fe839 [refactor] More case statements. local vars, and double quoted strings 2020-04-18 18:36:12 -04:00
William Wernert
a7539c111e [refactor] Remove duplicate code in set_hostname 2020-04-18 18:34:04 -04:00
William Wernert
6e4a6ccfeb [refactor] Initial saltify function refactor 2020-04-18 18:32:44 -04:00
William Wernert
b57b1b6689 [refactor] Start using case statements and local vars 2020-04-18 18:29:57 -04:00
William Wernert
f801cbe376 [refactor] Use 0/1 for MASTERUPDATES variable 2020-04-18 18:28:02 -04:00
William Wernert
043f2df7e3 [refactor] Set enabled components in whiptail function 2020-04-18 18:26:27 -04:00
William Wernert
6ca5827ce6 [refactor] Use = instead of ==, more printf changes 2020-04-18 18:23:27 -04:00
William Wernert
076f161c35 [refactor][fix] Cleanup docker_install 2020-04-18 18:19:27 -04:00
William Wernert
2ab1fa75ee [refactor] Rearrange docker_registry seed 2020-04-18 18:18:41 -04:00
William Wernert
a4267fd28b [refactor] Use printf instead of echo to create multiline files 2020-04-18 18:18:08 -04:00
William Wernert
723d8f6f3f [fix] Fix various code formatting issues 2020-04-18 18:17:28 -04:00
William Wernert
b009c2677b [refactor] Generic user create and check password functions 2020-04-18 18:16:11 -04:00
William Wernert
9331ede408 [fix] Double quote variables, fix indents, remove useless cats 2020-04-18 18:14:55 -04:00
Wes Lambert
159799c91d move PL 2020-04-18 18:10:34 -04:00
Wes Lambert
0c658d01ef remark config load section for now 2020-04-18 18:10:33 -04:00
m0duspwnens
a8bd50a0cd adding searchnode to pillar/top 2020-04-18 18:10:33 -04:00
William Wernert
ef550fed2b [fix] Networking fixes 2020-04-18 18:10:32 -04:00
Wes Lambert
19678aa977 fix order 2020-04-18 18:09:38 -04:00
Wes Lambert
40e683d7a6 replace URL template with Label template 2020-04-18 18:09:38 -04:00
Wes Lambert
0e3978b87c Revert "update Kibana config"
This reverts commit 82bd14252c.
2020-04-18 18:09:37 -04:00
Mike Reeves
e1bd8c6d51 Filter out KVM kits so cpu count is correct 2020-04-18 18:09:37 -04:00
Mike Reeves
73f52d69d4 Fix so not executed in tmp 2020-04-18 18:08:41 -04:00
Wes Lambert
f2b3ca8763 add Kibana config export command 2020-04-18 18:08:41 -04:00
Wes Lambert
a7bb014fba update Kibana config 2020-04-18 18:08:40 -04:00
William Wernert
6d3bc4ec1d [refactor] grep file instead of piping cat to grep 2020-04-18 18:08:33 -04:00
William Wernert
789173be98 [refactor] Move collect_webuser_inputs to so-functions 2020-04-18 18:07:50 -04:00
William Wernert
586d231ab1 [refactor] Copy public keys instead of using HEREDOC 2020-04-18 18:07:11 -04:00
William Wernert
2127924066 [fix] Double quote variables + fix indents 2020-04-18 18:06:30 -04:00
Joe Brown
acf9c29c83 Update README.md
You stated in the blog that 16.04 was no longer supported. However in the Readme, it states to use 16.04. Update readme to 18.04.
2020-04-18 07:05:58 -04:00
Doug Burks
ea7dd0763f Update README.md 2020-04-18 06:50:17 -04:00
Doug Burks
eebc75d245 Update README.md 2020-04-18 06:48:12 -04:00
Doug Burks
997cb8f9ae Update README.md 2020-04-18 06:26:12 -04:00
Mike Reeves
b65b66fe57 Merge pull request #578 from Security-Onion-Solutions/dev
1.2.1
2020-04-17 13:40:32 -04:00
Mike Reeves
0e654f5394 Update README.md 2020-04-17 13:38:13 -04:00
Mike Reeves
ed2152ce74 Merge branch 'master' into dev 2020-04-17 13:36:48 -04:00
Mike Reeves
39d70d2e99 Update README.md 2020-04-17 13:30:35 -04:00
Josh Patterson
6cc7b98e7e Merge pull request #577 from Security-Onion-Solutions/quickfix/evallspillar
remove logstash pillars from eval in top
2020-04-16 16:13:35 -04:00
m0duspwnens
93c0730a2f remove logstash pillars from eval in top 2020-04-16 16:12:24 -04:00
Mike Reeves
919c57ce00 Merge branch 'dev' of https://github.com/Security-Onion-Solutions/securityonion-saltstack into dev 2020-04-16 16:00:15 -04:00
Mike Reeves
f1f681794c Update Notes 2020-04-16 16:00:08 -04:00
Josh Patterson
08f3d29b91 Merge pull request #568 from Security-Onion-Solutions/issue566
fix failed setup FP
2020-04-16 15:54:14 -04:00
weslambert
60702687d2 Merge pull request #576 from Security-Onion-Solutions/fix/kibana_config
Fix/kibana config
2020-04-16 15:00:27 -04:00
Wes Lambert
1020428e49 updated placeholder in saved objects 2020-04-16 18:58:42 +00:00
Wes Lambert
15ba411d0a update load script 2020-04-16 18:58:14 +00:00
Mike Reeves
a81d886063 Update Version File 2020-04-16 13:55:54 -04:00
Mike Reeves
616baaf4be Update JOSN for release 2020-04-16 10:53:35 -04:00
Josh Patterson
eef6f299f9 Merge pull request #574 from Security-Onion-Solutions/quickfix/grafana
add missing ,
2020-04-16 00:21:53 -04:00
m0duspwnens
38d0d5285e add missing , 2020-04-16 00:19:16 -04:00
Josh Brower
aa266418ac Merge pull request #573 from Security-Onion-Solutions/bugfix/osquery-pipeline
osquery pipeline fix
2020-04-15 20:23:40 -04:00
Josh Brower
6332509a33 osquery pipeline fix 2020-04-15 20:22:54 -04:00
Mike Reeves
4cc2951ac4 Fix the Strelka redis 2020-04-15 17:34:54 -04:00
Josh Patterson
99355de2d4 Merge pull request #572 from Security-Onion-Solutions/issue/571
Issue/571
2020-04-15 16:09:51 -04:00
m0duspwnens
e4f384f25c remove space - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/571 2020-04-15 16:09:12 -04:00
m0duspwnens
a7dea8b087 fix bug not allowing grafana to install on mastersearch - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/571 2020-04-15 16:06:17 -04:00
Mike Reeves
5eed79e87e Fix the Strelka version 2020-04-15 15:38:48 -04:00
Mike Reeves
acc323f5ca Merge branch 'dev' of https://github.com/Security-Onion-Solutions/securityonion-saltstack into dev 2020-04-15 15:38:05 -04:00
Mike Reeves
d9e27a5444 Update Versions 2020-04-15 15:37:59 -04:00
Josh Patterson
81bef868c2 Merge pull request #570 from Security-Onion-Solutions/quickfix/grafana
fix nsm threshold sensor dashboard
2020-04-15 14:58:54 -04:00
m0duspwnens
11be93e9a4 fix nsm threshold sensor dashboard 2020-04-15 14:57:00 -04:00
Mike Reeves
017d0f1390 Merge branch 'dev' of https://github.com/Security-Onion-Solutions/securityonion-saltstack into dev 2020-04-15 14:41:41 -04:00
Mike Reeves
cb7b6b6124 Download Strlka Dockers 2020-04-15 14:41:25 -04:00
Josh Brower
e8a32e439f Merge pull request #569 from Security-Onion-Solutions/bugfix/kratos-config
rename kratos config field
2020-04-15 14:39:12 -04:00
Josh Brower
c47abf7c56 rename kratos config field 2020-04-15 14:37:59 -04:00
Mike Reeves
fb09c85386 Change location of strelka dockers 2020-04-15 14:37:37 -04:00
weslambert
133450d2de Merge pull request #567 from Security-Onion-Solutions/fix/comm_id_pivot
replace static value for comm id
2020-04-15 14:16:36 -04:00
Wes Lambert
9a02550c69 replace static value for comm id 2020-04-15 18:15:01 +00:00
m0duspwnens
fe3d0867a5 fix failed setup FP - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/566 2020-04-15 14:05:45 -04:00
Josh Patterson
19190cd137 Merge pull request #565 from Security-Onion-Solutions/issue/551
Issue/551
2020-04-15 10:21:33 -04:00
m0duspwnens
2e5877ff68 update nsm threshholds for searchnode 2020-04-15 10:16:30 -04:00
m0duspwnens
bef6d6d9f7 changes to master dashboard 2020-04-15 10:16:01 -04:00
m0duspwnens
e38d199e25 update master dashboard 2020-04-15 09:04:42 -04:00
m0duspwnens
eb3a069e8d rename forward node to sensor node for grafana 2020-04-14 19:02:44 -04:00
m0duspwnens
bb7c78891e rename forward node to sensor node for grafana 2020-04-14 18:55:08 -04:00
m0duspwnens
274ab07ce8 rename forward node to sensor node for grafana 2020-04-14 18:48:33 -04:00
m0duspwnens
41fd4fe715 remove graph from uptime eval 2020-04-14 18:47:49 -04:00
Josh Brower
615eb661c4 Merge pull request #564 from Security-Onion-Solutions/bugfix/fleet-package-versioning
osquery package versioning bugfix
2020-04-14 16:43:15 -04:00
Josh Brower
fabec23b37 osquery package versioning bugfix 2020-04-14 16:42:25 -04:00
m0duspwnens
51b68fde2d zeek restart count red if >= 1 2020-04-14 15:36:57 -04:00
m0duspwnens
efd43f6fe4 fix spacing in zeek packet loss grafana panel 2020-04-14 15:13:16 -04:00
m0duspwnens
28b4381e3c changes to eval grafana dashboard 2020-04-14 14:25:46 -04:00
William Wernert
7360f6ce7f [fix] Correct placeholder subbing for Kibana 2020-04-14 14:17:36 -04:00
William Wernert
8fdd32f263 [fix] Add correct PATH location in so-setup 2020-04-14 14:01:26 -04:00
m0duspwnens
f2980d7e09 change healthcheck to send 0 or 1 to telegraf for zeek restart 2020-04-14 12:57:54 -04:00
Josh Brower
983e9476e6 Merge pull request #563 from Security-Onion-Solutions/bugfix/playbook-set-api
Playbook - automatically set SOCtopus IP
2020-04-14 12:49:06 -04:00
Josh Brower
10b7f55372 Playbook - automatically set SOCtopus IP 2020-04-14 12:47:59 -04:00
Mike Reeves
9c5ef3d092 Fix Logix so py3 salt gets installed for non masters 2020-04-14 10:10:43 -04:00
Mike Reeves
6ef14afa9e Apply yum fixes once changes are opk 2020-04-14 09:59:48 -04:00
weslambert
3321e975bd Merge pull request #562 from Security-Onion-Solutions/fix/zeek_files
update parsing for Zeek files
2020-04-14 09:09:40 -04:00
Wes Lambert
59787a6532 update parsing for Zeek files 2020-04-14 13:08:31 +00:00
Josh Brower
a1bea7217b Merge pull request #561 from Security-Onion-Solutions/bugfix/fleet-launcher-versioning
Fleet package fixes
2020-04-13 16:19:44 -04:00
Josh Brower
29ebed3005 Fleet package fixes 2020-04-13 16:18:58 -04:00
weslambert
84e37856f0 Merge pull request #560 from Security-Onion-Solutions/fix/static_rename
Update key name for Wazuh and Strelka for Filebeat
2020-04-13 12:10:27 -04:00
Wes Lambert
e086db3de6 update key name 2020-04-13 16:09:06 +00:00
Josh Brower
febf18174d Merge pull request #559 from Security-Onion-Solutions/bugfix/playbook1
osquery ingest ecs
2020-04-13 10:58:54 -04:00
Josh Brower
634100318e osquery ingest ecs 2020-04-13 10:58:13 -04:00
weslambert
29437b9082 Merge pull request #557 from Security-Onion-Solutions/fix/kibana_config
update Kibana config
2020-04-13 08:18:47 -04:00
Wes Lambert
4df91ed008 update Kibana config 2020-04-13 12:17:07 +00:00
Josh Brower
277ee4d5ea Merge pull request #556 from Security-Onion-Solutions/bugfix/playbook1
NIDS2TheHive Update for ECS
2020-04-11 11:48:13 -04:00
Josh Brower
995b255017 NIDS2TheHive Update for ECS 2020-04-11 11:47:34 -04:00
Jason Ertel
5a16dc066d Merge pull request #554 from Security-Onion-Solutions/feature/auth
Feature/auth
2020-04-10 17:50:01 -04:00
Jason Ertel
607ff1fd0d secure config files 2020-04-10 17:48:28 -04:00
Jason Ertel
7529144635 secure config files 2020-04-10 17:27:50 -04:00
Josh Brower
7d92db23b4 Merge pull request #553 from Security-Onion-Solutions/bugfix/fleetv2
fleet osquery fixes
2020-04-10 16:57:12 -04:00
Josh Brower
edae63097c fleet osquery fixes 2020-04-10 16:56:37 -04:00
Jason Ertel
c5a4e567d9 Ensure Path=/ is specified for cookie for eval mode 2020-04-10 16:35:58 -04:00
Josh Patterson
1735cc8252 Merge pull request #552 from Security-Onion-Solutions/issue/551
change log_size_limit logic - https://github.com/Security-Onion-Solut…
2020-04-10 16:17:56 -04:00
m0duspwnens
69031ab6b2 change log_size_limit logic - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/551 2020-04-10 16:15:43 -04:00
weslambert
6aafc4ef01 Merge pull request #550 from Security-Onion-Solutions/fix/zeek_clean
Zeek: migrate Zeek clean script from Bro
2020-04-10 08:51:54 -04:00
Wes Lambert
8d8bde36e8 migrate Zeek clean script from Bro 2020-04-10 12:46:28 +00:00
Jason Ertel
3bf7a5aab5 Merge pull request #549 from Security-Onion-Solutions/feature/auth
Feature/auth
2020-04-09 17:39:23 -04:00
Jason Ertel
c130c8fbf4 Merge branch 'dev' into feature/auth 2020-04-09 17:37:09 -04:00
Jason Ertel
bb470be4e6 support auto redirect on login 2020-04-09 17:37:03 -04:00
Mike Reeves
c0739976c9 Merge branch 'dev' of https://github.com/Security-Onion-Solutions/securityonion-saltstack into dev 2020-04-09 13:58:25 -04:00
Mike Reeves
b70d19781d Fix Filebeat Yaml 2020-04-09 13:58:19 -04:00
Josh Patterson
be70de9623 Merge pull request #546 from Security-Onion-Solutions/issue/530
move salt logs to /opt/so/logs - https://github.com/Security-Onion-So…
2020-04-09 13:28:27 -04:00
m0duspwnens
57570fb740 move salt logs to /opt/so/logs - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/530 2020-04-09 13:27:32 -04:00
Mike Reeves
6625e17bf2 Have templates applied on the master only 2020-04-09 12:22:27 -04:00
Mike Reeves
5a985736e5 Disable Strelka for all things 2020-04-09 11:49:38 -04:00
Mike Reeves
8ffeb0a33d Fix Wazuh and Strelka 2020-04-09 11:45:45 -04:00
Mike Reeves
ac52c014d1 Remove ES watch 2020-04-09 11:30:24 -04:00
Mike Reeves
0b07d0f25f Fix ES Watch 2020-04-09 11:25:46 -04:00
Mike Reeves
69dca74afd Merge branch 'dev' of https://github.com/Security-Onion-Solutions/securityonion-saltstack into dev 2020-04-09 11:16:50 -04:00
Mike Reeves
5692f2a672 Make Kibana run faster on checkins 2020-04-09 11:16:36 -04:00
Josh Brower
422f4c928c Merge pull request #544 from Security-Onion-Solutions/bugfix/fleet-so-status
so-status Fleet node
2020-04-09 10:05:01 -04:00
Josh Brower
55ae5fa9f3 so-status Fleet node 2020-04-09 10:04:18 -04:00
Josh Patterson
b10c424a7f Merge pull request #543 from Security-Onion-Solutions/quickfix/telegrafnsm
fix missing telegraf data for /nsm
2020-04-08 17:37:01 -04:00
m0duspwnens
7fe25f4c96 fix missing telegraf data for /nsm 2020-04-08 17:36:16 -04:00
William Wernert
40af9f871e [fix] NetworkManager dir should not be string 2020-04-08 17:02:33 -04:00
Josh Patterson
09de027d2c Merge pull request #542 from Security-Onion-Solutions/quickfix/telegrafmodule
fix salt telegraf module
2020-04-08 16:25:35 -04:00
m0duspwnens
86c13fc392 fix salt telegraf module 2020-04-08 16:24:15 -04:00
Josh Patterson
19c5ca5643 Merge pull request #541 from Security-Onion-Solutions/quickfix/searchnode
removing path.config
2020-04-08 15:31:56 -04:00
m0duspwnens
749935339b removing path.config 2020-04-08 15:31:11 -04:00
Josh Patterson
95f37ac357 Merge pull request #540 from Security-Onion-Solutions/quickfix/searchnode
adding searchnode to salt/top
2020-04-08 14:55:40 -04:00
weslambert
5ecbac9abd Merge pull request #538 from Security-Onion-Solutions/fix/kibana_config_load
remark config load section for now
2020-04-08 14:49:24 -04:00
m0duspwnens
8a186285a5 adding searchnode to salt/top 2020-04-08 14:49:09 -04:00
Wes Lambert
f4c01eb313 move PL 2020-04-08 18:48:22 +00:00
Wes Lambert
ead03f5147 remark config load section for now 2020-04-08 18:47:04 +00:00
Josh Patterson
494e1aff49 Merge pull request #537 from Security-Onion-Solutions/quickfix/searchnode
adding searchnode to pillar/top
2020-04-08 14:44:01 -04:00
William Wernert
bc99903885 [fix] Networking fixes 2020-04-08 14:43:14 -04:00
m0duspwnens
f28187099d adding searchnode to pillar/top 2020-04-08 14:43:06 -04:00
weslambert
b293c3dd2c Merge pull request #536 from Security-Onion-Solutions/fix/kibana_config
Fix/kibana config
2020-04-08 14:26:40 -04:00
Wes Lambert
a6c7765dd1 fix order 2020-04-08 18:25:47 +00:00
Wes Lambert
ce3807a605 replace URL template with Label template 2020-04-08 18:16:09 +00:00
weslambert
3fab895435 Merge pull request #535 from Security-Onion-Solutions/fix/revert_kibana_config
Revert "update Kibana config"
2020-04-08 14:00:35 -04:00
Wes Lambert
433e571369 Revert "update Kibana config"
This reverts commit 82bd14252c.
2020-04-08 17:59:24 +00:00
Mike Reeves
394dfe654f Filter out KVM kits so cpu count is correct 2020-04-08 13:59:01 -04:00
Mike Reeves
eeeec6f7b9 Fix so not executed in tmp 2020-04-08 13:28:07 -04:00
Jason Ertel
7a7fcce1e1 Added config changes needed for new admin pages in SOC 2020-04-08 12:39:37 -04:00
weslambert
313f332ac8 Merge pull request #533 from Security-Onion-Solutions/elastic_updates
Elastic updates
2020-04-08 12:28:14 -04:00
Wes Lambert
051167a692 add Kibana config export command 2020-04-08 16:26:13 +00:00
Wes Lambert
82bd14252c update Kibana config 2020-04-08 16:25:24 +00:00
Jason Ertel
d906a89ad1 Continued auth improvements 2020-04-08 10:35:29 -04:00
William Wernert
56326026b7 [refactor] Add variable to whiptail functions for quiet install
This is an initial change to allow for automated installs and testing.
The variable `QUIET` is checked in all whiptail functions and they are
skipped if the variable is set.

Closes #526
2020-04-07 15:24:36 -04:00
Josh Brower
cf8c33ccea Merge pull request #532 from Security-Onion-Solutions/bugfix/fleet-link
Redirect SOC Fleet link to current Fleet instance
2020-04-07 11:59:25 -04:00
Josh Brower
22ae8ac96a Redirect SOC Fleet link to current Fleet instance 2020-04-07 11:58:35 -04:00
William Wernert
0048ffde70 [fix] ES is not set up to use ssl by default 2020-04-06 11:46:23 -04:00
weslambert
fea345326b Merge pull request #525 from Security-Onion-Solutions/fix/strelka_filebeat
update variables
2020-04-06 09:11:04 -04:00
Wes Lambert
ad5626f407 update variables 2020-04-06 13:09:52 +00:00
Josh Brower
6b53770d5e Merge pull request #524 from Security-Onion-Solutions/bugfix/fleet-ingest
Gen filebeat certs for Fleet node
2020-04-06 08:53:22 -04:00
Josh Brower
9937ccaee7 Gen filebeat certs for Fleet node 2020-04-06 08:52:37 -04:00
weslambert
673c64d2a4 Merge pull request #523 from Security-Onion-Solutions/fix/elastic_improvements
Fix/elastic improvements
2020-04-05 16:53:19 -04:00
Wes Lambert
c476b28ac8 update script 2020-04-05 20:52:00 +00:00
Wes Lambert
cc9a91bfdb update Kibana config 2020-04-05 20:50:29 +00:00
Wes Lambert
7765d9a038 update common template 2020-04-05 20:40:30 +00:00
Wes Lambert
9e50387eec update ingest files 2020-04-05 20:40:00 +00:00
Josh Brower
35fc87e5f6 Merge pull request #522 from Security-Onion-Solutions/bugfix/fleet-ingest
Fleet pipeline fixes
2020-04-03 16:14:28 -04:00
Josh Brower
051f6d2310 Fleet pipeline fixes 2020-04-03 16:10:38 -04:00
Jason Ertel
476c6018c0 Merge pull request #521 from Security-Onion-Solutions/feature/auth
Validate email and password for the webuser during install
2020-04-03 15:50:39 -04:00
Jason Ertel
b7545c8dc5 Improve default SKIP_BOND behavior 2020-04-03 14:59:09 -04:00
Jason Ertel
b57892e806 Remove debug line 2020-04-03 14:50:07 -04:00
William Wernert
ae4db04603 [fix] so-status docker api version fix
* Change Docker api version from 2 to 1.40
2020-04-03 13:28:53 -04:00
Jason Ertel
99e8226ae5 Validate email and password for the webuser during install 2020-04-03 12:04:42 -04:00
weslambert
69c90fcdc1 Merge pull request #516 from Security-Onion-Solutions/fix/kibana_placeholders
fix placeholders
2020-04-03 08:31:54 -04:00
Wes Lambert
52edbd23d6 fix placeholders 2020-04-03 12:21:32 +00:00
weslambert
0e568103d1 Merge pull request #515 from Security-Onion-Solutions/fix/add_more_dashes
update dashboards
2020-04-03 00:25:58 -04:00
Wes Lambert
638ed36a79 update dashboards 2020-04-03 04:23:50 +00:00
weslambert
61aa723c1d Merge pull request #514 from Security-Onion-Solutions/fix/strelka_setup
install Strelka for sensor
2020-04-02 21:37:07 -04:00
Wes Lambert
b22a3a6534 install Strelka for sensor 2020-04-03 01:36:00 +00:00
weslambert
86ccca3c2e Merge pull request #513 from Security-Onion-Solutions/fix/strelka_backend_restart
change restart policy for now
2020-04-02 21:09:56 -04:00
Wes Lambert
17fd32f12d change restart policy for now 2020-04-03 01:07:45 +00:00
weslambert
395503165c Merge pull request #512 from Security-Onion-Solutions/fix/strelka_cron
change user
2020-04-02 21:03:32 -04:00
Wes Lambert
d477d73baa change user 2020-04-03 01:02:46 +00:00
weslambert
8d84ee9c81 Merge pull request #511 from Security-Onion-Solutions/fix/kibana_load
update Kibana config
2020-04-02 21:00:45 -04:00
Wes Lambert
f0848906e7 update Kibana config 2020-04-03 00:59:23 +00:00
William Wernert
375be3562e Merge pull request #510 from Security-Onion-Solutions/feature/soctopus-conf
Feature/soctopus conf
2020-04-02 20:54:00 -04:00
William Wernert
d626152e2f [fix] Remove extra blank line 2020-04-02 20:53:22 -04:00
William Wernert
dcbd5dcfb0 Merge branch 'dev' into feature/soctopus-conf 2020-04-02 20:49:46 -04:00
William Wernert
1e94961665 [fix] Bond NICs array expansion 2020-04-02 20:49:19 -04:00
William Wernert
baa5dba199 [fix] Network functions
* Rename network-manager.service references to NetworkManager for compatibility
* Fix array expansion in function to disable unused NICs
2020-04-02 20:47:19 -04:00
Josh Brower
a38299d4ea Merge pull request #508 from Security-Onion-Solutions/feature/fleet-ingest
template + nginx config
2020-04-02 20:17:54 -04:00
Josh Brower
513419ce2f template + nginx config 2020-04-02 20:16:21 -04:00
Josh Patterson
8743244aa5 Merge pull request #507 from Security-Onion-Solutions/issue/90
Issue/90
2020-04-02 19:50:08 -04:00
m0duspwnens
c42f8276e2 change default in healthcheck state 2020-04-02 19:48:54 -04:00
m0duspwnens
f1857c61b9 remove comment from healthcheck module 2020-04-02 19:48:21 -04:00
m0duspwnens
5411307856 change default healthcheck schedule to 300 seconds 2020-04-02 19:46:29 -04:00
m0duspwnens
8c3a9ff5a3 change log levels in healthcheck module 2020-04-02 19:44:09 -04:00
Mike Reeves
f9377a9d39 Fix error in sudoers file 2020-04-02 19:42:24 -04:00
m0duspwnens
4a920e317c Merge remote-tracking branch 'remotes/origin/dev' into issue/90 2020-04-02 19:40:07 -04:00
m0duspwnens
85cfe3244c rename zeek restarts on grafana dashboard 2020-04-02 19:39:09 -04:00
Mike Reeves
1b6222a04b Fix Password Bug for SOREMOTE 2020-04-02 18:01:39 -04:00
Mike Reeves
4c112453eb Merge branch 'dev' of https://github.com/Security-Onion-Solutions/securityonion-saltstack into dev 2020-04-02 16:56:52 -04:00
Mike Reeves
ffe3ae7d70 Update soremote process 2020-04-02 16:56:28 -04:00
m0duspwnens
4bc592c751 Merge remote-tracking branch 'remotes/origin/dev' into issue/90 2020-04-02 16:42:57 -04:00
Jason Ertel
f2ceaf074b Switch from auth_pillar to secrets_pillar 2020-04-02 16:11:05 -04:00
weslambert
7cefc218c4 Merge pull request #505 from Security-Onion-Solutions/strelka-sensor
Strelka sensor
2020-04-02 16:04:35 -04:00
Wes Lambert
9a082725d1 add Strelka for sensor if enabled 2020-04-02 20:03:29 +00:00
Wes Lambert
eb0c23387b specify ES vs LS in FB config 2020-04-02 20:01:49 +00:00
Jason Ertel
be8398387e Support individual email or password validation 2020-04-02 15:38:30 -04:00
m0duspwnens
290abaf1d7 merge with dev and resolve conflicts 2020-04-02 15:24:23 -04:00
m0duspwnens
ec60b7a2d4 changing back from beacon to scheduled jobs for healthcheck 2020-04-02 15:22:20 -04:00
Jason Ertel
1cac115009 Add support for validating email address via so-user tool 2020-04-02 15:18:51 -04:00
Mike Reeves
4368bebbd5 Merge pull request #503 from Security-Onion-Solutions/feature/soremote
Feature/soremote
2020-04-02 15:13:28 -04:00
Mike Reeves
e270b18d94 Remove special character in logstash pillar 2020-04-02 14:25:58 -04:00
Jason Ertel
df89ef9672 Increase limit of HTTP request size from 1M to 1024M to support large PCAPS 2020-04-02 12:21:12 -04:00
Mike Reeves
fffe1ef720 Add soremote user 2020-04-02 11:51:39 -04:00
Jason Ertel
4b45a7d2d5 Merge pull request #501 from Security-Onion-Solutions/feature/auth
Renamed auth pillar to secrets pillar; removed remnants from old auth…
2020-04-02 11:31:11 -04:00
Jason Ertel
a25c16508f Renamed auth pillar to secrets pillar; removed remnants from old auth saltstack 2020-04-02 11:24:13 -04:00
Mike Reeves
c0f143d7f5 Add Epel earlier for argon2 2020-04-02 09:45:02 -04:00
Jason Ertel
ebcae86c0b Correct log directory for sensoroni agent 2020-04-02 09:06:37 -04:00
m0duspwnens
839b5673d4 merge with dev 2020-04-02 08:33:16 -04:00
Josh Brower
551af39446 Merge pull request #499 from Security-Onion-Solutions/feature/osquery-ingest-fixes
osquery updates and fixes
2020-04-02 08:29:20 -04:00
Josh Brower
1ca290c766 osquery updates and fixes 2020-04-02 08:28:22 -04:00
weslambert
fd2b35dd21 Merge pull request #498 from Security-Onion-Solutions/fix/observer
use agent name for observer name
2020-04-01 17:28:52 -04:00
Wes Lambert
e023aeb9be use agent name for observer name 2020-04-01 21:27:25 +00:00
m0duspwnens
28d11032b6 Merge remote-tracking branch 'remotes/origin/dev' into issue/90 2020-04-01 16:55:12 -04:00
m0duspwnens
53b72f8743 change log levels 2020-04-01 16:54:48 -04:00
Josh Patterson
7e21dd92ba Merge pull request #496 from Security-Onion-Solutions/issue/90
adding auth and comment back to pillar and salt top
2020-04-01 15:37:21 -04:00
m0duspwnens
884e267db5 adding auth and comment back to pillar and salt top 2020-04-01 15:36:15 -04:00
weslambert
b14f9067ab Merge pull request #495 from Security-Onion-Solutions/fix/zeek_output_config
Bro to Zeek
2020-04-01 15:19:02 -04:00
weslambert
edbe512d82 Bro to Zeek 2020-04-01 15:18:30 -04:00
weslambert
5f8d1c29b4 Merge pull request #494 from Security-Onion-Solutions/search_ls_pillar
Search ls pillar
2020-04-01 15:13:17 -04:00
Wes Lambert
22e7777d67 update search sls 2020-04-01 19:12:07 +00:00
Wes Lambert
09022ad752 Update Zeek and Strelka 2020-04-01 19:11:10 +00:00
Wes Lambert
1df2302287 Update Zeek and Strelka 2020-04-01 19:09:38 +00:00
Josh Patterson
38b5cffd16 Merge pull request #493 from Security-Onion-Solutions/issue/90
adding auth state back
2020-04-01 15:05:43 -04:00
m0duspwnens
832128ac96 adding auth state back 2020-04-01 15:04:32 -04:00
weslambert
82c99edbfc Update Suricata output 2020-04-01 15:02:52 -04:00
weslambert
e1008269ce Update OSSEC output 2020-04-01 15:00:52 -04:00
weslambert
9f58081ce8 Typo 2020-04-01 14:57:47 -04:00
weslambert
d0ad7e7ef9 Update config for search pipeline 2020-04-01 14:57:32 -04:00
weslambert
5c433c39e5 Merge pull request #492 from Security-Onion-Solutions/fix/strelka-zeek-extracted-sync
Add Zeek extracted file sync
2020-04-01 14:20:36 -04:00
weslambert
cc4b1bf936 Add Zeek extracted file sync 2020-04-01 14:19:36 -04:00
William Wernert
0a50c47525 Merge branch 'dev' into feature/soctopus-conf 2020-04-01 13:35:44 -04:00
William Wernert
13035a6c32 [fix] Update soctopus default es-index-patter 2020-04-01 13:35:11 -04:00
weslambert
df00405265 Merge pull request #491 from Security-Onion-Solutions/fix/strelka_init
Remove restart policy
2020-04-01 13:19:57 -04:00
weslambert
5173da5a33 Remove restart policy 2020-04-01 13:19:31 -04:00
Josh Patterson
c8e881b8c5 Merge pull request #490 from Security-Onion-Solutions/issue/90
Issue/90
2020-04-01 13:13:40 -04:00
m0duspwnens
62e8aa1063 fix conflict in salt/top.sls 2020-04-01 13:09:23 -04:00
m0duspwnens
9acaa514cf monitoring zeek - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/90 2020-04-01 13:06:37 -04:00
weslambert
44ae4604b5 Merge pull request #489 from Security-Onion-Solutions/fix/strelka-curly
Fix curly brace
2020-04-01 12:33:02 -04:00
weslambert
7390063026 Fix curly brace 2020-04-01 12:32:29 -04:00
Mike Reeves
7db4dafea1 Reserve Kratos Group ID 2020-04-01 11:56:36 -04:00
weslambert
92c714ea4c Merge pull request #488 from Security-Onion-Solutions/fix/strelka_top
Update Eval for Strelka
2020-04-01 11:42:18 -04:00
weslambert
2fcfb06ba5 Update Eval for Strelka 2020-04-01 11:41:56 -04:00
weslambert
3001abc3ea Merge pull request #487 from Security-Onion-Solutions/fix/elastic_fixes
Fix/elastic fixes
2020-04-01 11:32:22 -04:00
weslambert
f13093dc51 Add message rename 2020-04-01 11:31:57 -04:00
weslambert
26efad1c45 Update Strelka log path 2020-04-01 11:30:02 -04:00
Josh Brower
572c1b5582 Merge pull request #486 from Security-Onion-Solutions/feature/osquery-ingest
osquery ingest - initial support
2020-04-01 10:19:42 -04:00
Josh Brower
5ca9a643a8 Merge branch 'dev' into feature/osquery-ingest 2020-04-01 10:19:35 -04:00
Josh Brower
0e76447d11 osquery ingest - initial support 2020-04-01 10:17:36 -04:00
weslambert
9f44a86ae4 Merge pull request #485 from Security-Onion-Solutions/strelka_enable
Enable Strelka via Setup
2020-04-01 10:08:09 -04:00
Wes Lambert
2164de97b5 Enable Strelka via Setup 2020-04-01 14:06:19 +00:00
weslambert
fd6832bf51 Merge pull request #483 from Security-Onion-Solutions/elastic_config
template and kibana config updates
2020-04-01 09:15:10 -04:00
Wes Lambert
33512eca2a template and kibana config updates 2020-04-01 13:14:13 +00:00
weslambert
a6b3e0e4a8 Merge pull request #482 from Security-Onion-Solutions/fix/strelka_config
add strelka index
2020-04-01 09:04:35 -04:00
Wes Lambert
6cc757e1de add strelka index 2020-04-01 13:02:36 +00:00
weslambert
d8f30a0240 Merge pull request #481 from Security-Onion-Solutions/fix/strelka_stuff
Fix/strelka stuff
2020-04-01 09:00:07 -04:00
Wes Lambert
70422809ec add category 2020-04-01 12:59:10 +00:00
Wes Lambert
9bbcc185aa change Strelka log location 2020-04-01 12:57:51 +00:00
William Wernert
df7851c2ed Merge branch 'dev' into feature/soctopus-conf 2020-03-31 18:59:07 -04:00
Jason Ertel
8767f17325 Removed obsolete osquery-packages.html since it's now in soc 2020-03-31 17:43:03 -04:00
William Wernert
2a0ed7a466 Merge branch 'dev' into feature/soctopus-conf 2020-03-31 15:08:07 -04:00
William Wernert
a8cdda84d1 [fix] Put soctopus.conf in the right folder 2020-03-31 11:12:01 -04:00
Josh Brower
2bfacecb4b Merge pull request #478 from Security-Onion-Solutions/bugfix/osquery
fleet init fix
2020-03-31 09:54:45 -04:00
Josh Brower
131fd1f322 fleet init fix 2020-03-31 09:53:59 -04:00
Jason Ertel
14c44e0f6e Merge pull request #476 from Security-Onion-Solutions/feature/auth
Integrate new auth system and SOC interface
2020-03-31 08:57:19 -04:00
Jason Ertel
f7e9e99eae Added new soc-related saltstack files. 2020-03-30 22:15:49 -04:00
weslambert
fd00cdf8f3 Merge pull request #473 from Security-Onion-Solutions/more_elastic_stuff
More elastic stuff
2020-03-30 20:41:56 -04:00
Wes Lambert
68138e009a update FB config 2020-03-31 00:37:58 +00:00
Wes Lambert
5226ec1560 update Kibana config/dashboards/etc 2020-03-31 00:37:17 +00:00
Wes Lambert
eacd3c9bfd update zeek.common 2020-03-31 00:36:42 +00:00
Jason Ertel
cbd710bcf2 Replaced auth system with new identity management system. 2020-03-30 19:27:56 -04:00
weslambert
9758563967 Merge pull request #470 from Security-Onion-Solutions/ecs_community_id
add community_id parsing for ingest
2020-03-30 11:51:05 -04:00
Wes Lambert
ad50093315 add community_id parsing for ingest 2020-03-30 15:49:36 +00:00
weslambert
ee4e3c0659 Merge pull request #469 from Security-Onion-Solutions/fix/ingest_stuff
update wazuh fields and category
2020-03-30 10:24:43 -04:00
Wes Lambert
93c3c86e2f update wazuh fields and category 2020-03-30 14:24:01 +00:00
weslambert
b6db36723d Merge pull request #467 from Security-Onion-Solutions/fix/kibana_config_update
update Kibana json config
2020-03-30 10:21:18 -04:00
Wes Lambert
70bc35eb7e update Kibana json config 2020-03-30 14:20:06 +00:00
William Wernert
d7478bbcb7 [fix] Revert checksum script change 2020-03-27 09:05:21 -04:00
William Wernert
c105732976 Merge pull request #466 from Security-Onion-Solutions/bugfix/ubuntu-xenial-fixes
Bugfix/ubuntu xenial fixes
2020-03-26 18:55:41 -04:00
William Wernert
04cbda356f Merge pull request #465 from Security-Onion-Solutions/hotfix/so-status-docker-api
[fix] Use v2 of Docker http api
2020-03-26 18:48:11 -04:00
William Wernert
7709bfd28e [fix] Use v2 of Docker http api
Docker no longer exposes the default api path, so we need to use /v2 in our api call
2020-03-26 18:47:37 -04:00
William Wernert
f02808aaa7 [fix] Networking config fixes + 18.04 changes
* Add code to allow 18.04 to use Network Manager
* Disable ipv6 on all interfaces to prevent multicast traffic on sniffing interface (revisit later)
* Rename and modify checksum disable script for 18.04 compatibility

Fixes #387
Fixes #413
2020-03-26 18:45:56 -04:00
Josh Brower
e44157aa7d Merge pull request #464 from Security-Onion-Solutions/feature/zeek-communityid
Zeek - enable Community ID policy
2020-03-26 16:34:46 -04:00
Josh Brower
31ae8a2c26 Zeek - enable Community ID policy 2020-03-26 16:33:47 -04:00
Josh Patterson
3918b697e4 Merge pull request #463 from Security-Onion-Solutions/issue/90
Issue/90
2020-03-26 15:54:25 -04:00
m0duspwnens
c14f32fcc9 more changes for healthcheck - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/90 2020-03-26 15:45:19 -04:00
Josh Brower
11907dc4ad Merge pull request #462 from Security-Onion-Solutions/bugfix/fleet
Bugfix/fleet
2020-03-26 11:23:28 -04:00
Josh Brower
1c9dd40b02 Fleet webpage fix 2020-03-26 11:20:20 -04:00
m0duspwnens
22127a3d58 Merge remote-tracking branch 'remotes/origin/dev' into issue/90 2020-03-26 11:01:10 -04:00
m0duspwnens
cfdaedb89c changes to healthcheck. specify mount points for telegraf 2020-03-26 11:00:46 -04:00
William Wernert
83c2edb0d9 [fix] Set all indents to tabs 2020-03-25 15:59:04 -04:00
William Wernert
ecbd78c6a1 [feature] Add options to soctopus.conf
Resolves #420
2020-03-25 15:38:42 -04:00
William Wernert
693e3e69de [fix] Manage soctopus.conf separately
Resolves #419
2020-03-25 15:37:35 -04:00
Josh Brower
e5ecf0f4cb Fleet dedicated node - various fixes 2020-03-25 13:03:40 -04:00
m0duspwnens
e6f91264fb send proper format data to telegraf module from healtheck module - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/90 2020-03-25 12:48:47 -04:00
m0duspwnens
566a26e3b7 fix dashboards to use right node name 2020-03-25 12:47:01 -04:00
Josh Brower
05690691f5 Merge pull request #459 from Security-Onion-Solutions/feature/communityid-suricata
Suricata - enable community id
2020-03-25 09:28:02 -04:00
Josh Brower
51b9af7ac4 Suricata - enable community id 2020-03-25 09:24:45 -04:00
m0duspwnens
77a48b1d66 Merge remote-tracking branch 'remotes/origin/dev' into issue/90 2020-03-25 09:03:16 -04:00
Josh Brower
9bcba41882 Feature/Fleet-Standalone 2020-03-24 20:57:24 -04:00
m0duspwnens
b96579f6d3 Merge remote-tracking branch 'remotes/origin/dev' into issue/90 2020-03-24 17:28:46 -04:00
m0duspwnens
7e6c70aff2 add modules to be used in monitoring - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/90 2020-03-24 17:27:55 -04:00
Josh Brower
e4e598f0be Merge pull request #458 from Security-Onion-Solutions/bugfix/so-functions
so-functions --- conditional-fix
2020-03-24 16:01:12 -04:00
Josh Brower
166a21c1d1 conditional-fix 2020-03-24 15:59:50 -04:00
weslambert
b59fc5b77e Merge pull request #457 from Security-Onion-Solutions/fix/more_ossec_fields
fix ossec fields
2020-03-24 11:44:45 -04:00
Wes Lambert
ef808875f4 fix ossec fields 2020-03-24 15:42:31 +00:00
weslambert
239e0a0cb6 Merge pull request #456 from Security-Onion-Solutions/kibana_disable_telem
Disable telemetry
2020-03-24 10:20:51 -04:00
weslambert
fef0185e90 Disable telemetry 2020-03-24 10:18:39 -04:00
weslambert
81a481022c Merge pull request #455 from Security-Onion-Solutions/fix/zeek_weird_ingest
add some more fields
2020-03-23 23:44:47 -04:00
Wes Lambert
083c588a87 add some more fields 2020-03-24 03:43:31 +00:00
weslambert
a01b0e44e1 Merge pull request #454 from Security-Onion-Solutions/es_template_fix
Add message field
2020-03-23 23:39:44 -04:00
weslambert
ece7e139f2 Add message 2020-03-23 23:39:15 -04:00
weslambert
126913e41b Merge pull request #453 from Security-Onion-Solutions/fix/kibana_config_load
Fix/kibana config load
2020-03-23 23:24:09 -04:00
weslambert
f5e932ab58 Re-enable load script 2020-03-23 23:23:32 -04:00
weslambert
1a44b744f7 Update so-kibana-config-load 2020-03-23 23:23:04 -04:00
weslambert
1c153b9081 Fix path 2020-03-23 23:09:00 -04:00
Mike Reeves
d3ecfe543f Update so-functions 2020-03-23 18:08:27 -04:00
weslambert
5207ca71c9 Merge pull request #452 from Security-Onion-Solutions/fix/remove_dupe
Update init.sls
2020-03-23 17:07:50 -04:00
weslambert
951a087c20 Update init.sls 2020-03-23 17:07:18 -04:00
weslambert
2ae3ff7490 Merge pull request #451 from Security-Onion-Solutions/fix/saved_objects_config
Fix/saved objects config
2020-03-23 15:58:20 -04:00
Wes Lambert
0b6ff18a0d change default route 2020-03-23 19:57:41 +00:00
Josh Patterson
6c39f93569 Merge pull request #450 from Security-Onion-Solutions/issue/90
adding zeekctl module to be used for monitoring zeek
2020-03-23 15:57:12 -04:00
m0duspwnens
bc76739f6e adding zeekctl module to be used for monitoring zeek - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/90 2020-03-23 15:55:45 -04:00
Wes Lambert
fe0ab0965a move saved_objects 2020-03-23 19:55:07 +00:00
weslambert
79feee1dd1 Merge pull request #449 from Security-Onion-Solutions/fix/kibana_master
Fix master and remark config load
2020-03-23 15:36:38 -04:00
weslambert
8edecfceb9 Fix master and remark config load 2020-03-23 15:36:12 -04:00
Mike Reeves
c88a356a73 Merge pull request #448 from Security-Onion-Solutions/feature/updates
Feature/updates
2020-03-23 15:20:46 -04:00
Mike Reeves
a48ecfbbb1 Merge branch 'dev' into feature/updates 2020-03-23 15:20:36 -04:00
weslambert
c8345753ac Merge pull request #447 from Security-Onion-Solutions/fix/kibana_state
Fix/kibana state
2020-03-23 15:17:04 -04:00
weslambert
8e9cffad4a Update init.sls 2020-03-23 15:15:05 -04:00
weslambert
2a5ab3492d Update init.sls 2020-03-23 15:14:42 -04:00
Mike Reeves
98caae8ec9 Update Stuff round 3 2020-03-23 15:12:36 -04:00
weslambert
9c29f39cc1 Merge pull request #446 from Security-Onion-Solutions/fix/kibana_docker_image
Update init.sls
2020-03-23 14:50:54 -04:00
weslambert
8d0659c200 Update init.sls 2020-03-23 14:50:34 -04:00
weslambert
c1e3a00d22 Merge pull request #445 from Security-Onion-Solutions/fix/kibana_config
more Kibana config
2020-03-23 14:12:11 -04:00
Wes Lambert
a43154e0eb more Kibana config 2020-03-23 18:07:12 +00:00
Mike Reeves
b48612dd3b Update Stuff Round 2 2020-03-19 13:46:19 -04:00
William Wernert
d21df50689 Merge pull request #439 from Security-Onion-Solutions/bugfix/html-formatting
[fix] HTML formatting and css changes
2020-03-19 10:09:12 -04:00
William Wernert
c58e6d6cba [fix] HTML formatting and css changes
* Centered osquery packages page
* Fixed HTML formatting on main and osquery pages
2020-03-19 10:08:15 -04:00
weslambert
029c1791a2 Merge pull request #438 from Security-Onion-Solutions/fix/elastic_fixes
Fix/elastic fixes
2020-03-18 16:18:55 -04:00
Wes Lambert
7a71a2c459 removing mapping types 2020-03-18 20:17:57 +00:00
Wes Lambert
5072095eeb removing mapping types 2020-03-18 20:15:10 +00:00
Wes Lambert
150eaf59fd don't load FB template 2020-03-18 20:05:42 +00:00
weslambert
8bd3c3f333 Merge pull request #435 from Security-Onion-Solutions/fix/index_names
fix index names
2020-03-18 12:45:01 -04:00
Wes Lambert
fcc5c306ea fix index names 2020-03-18 16:42:06 +00:00
Josh Patterson
85cc1e9e17 Merge pull request #433 from Security-Onion-Solutions/quickfix/lsetcsync
fix issue lsetcsync if node doesnt have templates defined
2020-03-18 10:50:52 -04:00
m0duspwnens
504d22de83 fix issue lsetcsync if node doesnt have templates defined 2020-03-18 10:49:51 -04:00
weslambert
0d3280feb7 Merge pull request #432 from Security-Onion-Solutions/fix/template
fix strelka pattern
2020-03-18 09:52:24 -04:00
Wes Lambert
29a4932785 fix strelka pattern 2020-03-18 13:47:22 +00:00
weslambert
597f746ccb Merge pull request #431 from Security-Onion-Solutions/fix/elastic_changes
Fix/elastic changes
2020-03-17 17:32:05 -04:00
Wes Lambert
4eac285fd9 change soversion 2020-03-17 21:31:19 +00:00
Wes Lambert
70f109af86 elastic changes 2020-03-17 21:29:28 +00:00
Mike Reeves
73be1d0927 Update Stuff Round 1 2020-03-17 17:06:37 -04:00
Mike Reeves
c3055b0a03 Update Versions for Docker 2020-03-17 15:23:55 -04:00
weslambert
bfefbe247f Merge pull request #430 from Security-Onion-Solutions/kibana_7_dark_mode
UI Dark Mode
2020-03-17 12:19:56 -04:00
weslambert
272649f330 UI Dark Mode 2020-03-17 12:19:27 -04:00
weslambert
caeef9c903 Merge pull request #429 from Security-Onion-Solutions/kibana_7
Update config.json
2020-03-17 11:51:29 -04:00
weslambert
113fbdb863 Update config.json 2020-03-17 11:50:53 -04:00
weslambert
367626c65e Merge pull request #428 from Security-Onion-Solutions/more_ecs
More ecs
2020-03-17 11:23:19 -04:00
Wes Lambert
a5ff21c528 remove agent field for non-Wazuh logs 2020-03-17 15:20:46 +00:00
Wes Lambert
b80e7fedcb remove agent field for non-Wazuh logs 2020-03-17 15:20:31 +00:00
Wes Lambert
488858f8bc remove beat field removal 2020-03-17 15:19:08 +00:00
Wes Lambert
8bea56eccf change prospectors to inputs 2020-03-17 15:17:52 +00:00
Wes Lambert
faea67c9cf update env vars 2020-03-17 15:17:13 +00:00
Wes Lambert
5ed3dbff39 Fix template name 2020-03-17 15:15:01 +00:00
Josh Patterson
2e72816d2a Merge pull request #427 from Security-Onion-Solutions/quickfix/hostnames
ensure name uniformity for elascticsearch and telegraf/grafana
2020-03-17 09:19:27 -04:00
m0duspwnens
cd84f87581 ensure name uniformity for elascticsearch and telegraf/grafana 2020-03-17 09:18:00 -04:00
Josh Patterson
ad0aa85e79 Merge pull request #426 from Security-Onion-Solutions/issue/97
add tojson to dict passed into zeekctl
2020-03-16 10:28:49 -04:00
m0duspwnens
20a6a79551 add tojson to dict passed into zeekctl 2020-03-16 10:28:12 -04:00
weslambert
85f5c53b51 Merge pull request #425 from Security-Onion-Solutions/fix/template_script
Fix/template script
2020-03-14 20:36:17 -04:00
Wes Lambert
81da44b85d fix Logstash Eval SLS 2020-03-15 00:32:29 +00:00
Wes Lambert
26c4d453d3 Add ES templates script 2020-03-15 00:30:59 +00:00
weslambert
775066489a Merge pull request #424 from Security-Onion-Solutions/ecs_parsing
ECS parsing
2020-03-14 08:11:15 -04:00
Wes Lambert
85c1873f4d switch logging to error 2020-03-14 12:10:06 +00:00
Wes Lambert
b6ba8e483d update ES init 2020-03-14 12:06:32 +00:00
Wes Lambert
d2016d3ff2 modify Filebeat config 2020-03-14 12:05:16 +00:00
Wes Lambert
c52220330b modify pipelines 2020-03-14 12:03:32 +00:00
Wes Lambert
d48c2723ba modify default templates 2020-03-14 12:02:52 +00:00
Wes Lambert
9fb3a47358 modify default templates 2020-03-14 12:02:42 +00:00
Wes Lambert
ffc33b15e5 switch to Filebeat 2020-03-14 12:00:17 +00:00
Josh Patterson
a9d286b90f Merge pull request #423 from Security-Onion-Solutions/issue/97
allow all zeekctl configuration options to be defined
2020-03-13 16:12:54 -04:00
m0duspwnens
2bda1f4beb remove whitespace 2020-03-13 16:12:16 -04:00
m0duspwnens
1db9692c6b allow all zeekctl configuration options to be defined - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/97 2020-03-13 16:10:42 -04:00
Josh Patterson
1c4429613d Merge pull request #422 from Security-Onion-Solutions/issue/97
add option to compress archived logs for zeekctl
2020-03-13 15:06:34 -04:00
m0duspwnens
a21ffaecc8 add option to compress archived logs for zeekctl - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/97 2020-03-13 15:05:25 -04:00
Josh Patterson
b18f4eb720 Merge pull request #421 from Security-Onion-Solutions/issue/97
Issue/97
2020-03-13 14:52:34 -04:00
m0duspwnens
da8811bc87 restart zeek docker if zeekctl.cfg changes 2020-03-13 14:44:56 -04:00
m0duspwnens
1b7e22d5bd fix couple minor issue - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/97 2020-03-13 14:41:16 -04:00
m0duspwnens
8e82633772 fix missing : in playbook state 2020-03-13 13:45:29 -04:00
m0duspwnens
f9cf04e14e fix couple minor issue - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/97 2020-03-13 13:42:28 -04:00
m0duspwnens
bc6aab5b22 add zeekctl.cfg docker file bind 2020-03-13 13:23:27 -04:00
m0duspwnens
3aa48b1a23 first go at managing zeekctl.cfg - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/97 2020-03-13 13:20:48 -04:00
Josh Patterson
762841b14a Merge pull request #417 from Security-Onion-Solutions/issue/134
add salt cron identifiers
2020-03-13 08:43:12 -04:00
m0duspwnens
7ea0b2c284 add salt cron identifiers - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/134 2020-03-13 08:38:45 -04:00
Josh Patterson
1a8c8e4c17 Merge pull request #416 from Security-Onion-Solutions/issue/362
fix spacing for titles in grafana dashboard
2020-03-13 08:10:41 -04:00
m0duspwnens
2d91851c34 fix spacing for titles in grafana dashboard - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/362 2020-03-13 08:08:51 -04:00
Josh Patterson
8b0509aa4a Merge pull request #415 from Security-Onion-Solutions/issue/136
Issue/136
2020-03-12 17:46:38 -04:00
m0duspwnens
804a87eb21 append role to minion id and use it to target in top - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/136 2020-03-12 17:42:32 -04:00
Mike Reeves
efda3b9295 Merge pull request #412 from Security-Onion-Solutions/feature/ubuntu18
Feature/ubuntu18
2020-03-11 12:03:55 -04:00
Mike Reeves
fa9dbf7316 Merge branch 'dev' into feature/ubuntu18 2020-03-11 12:03:46 -04:00
Mike Reeves
16d549ce03 Fix mysql 2020-03-11 10:58:54 -04:00
weslambert
7838018e3d Merge pull request #410 from Security-Onion-Solutions/feature/ECS
Feature/ecs
2020-03-11 08:23:22 -04:00
Wes Lambert
648b0ba790 remove old config 2020-03-11 12:14:22 +00:00
Wes Lambert
9ad16e8c71 upadte ingest config 2020-03-11 12:13:53 +00:00
Wes Lambert
f9e4d218ec update config 2020-03-11 12:13:11 +00:00
Wes Lambert
70e78a0642 add renamed templates 2020-03-11 12:12:32 +00:00
Wes Lambert
84e54a8fae update Eval pillar 2020-03-11 12:09:34 +00:00
Mike Reeves
f74bc4cfa0 Fix IP Calculation 2020-03-10 15:56:05 -04:00
Mike Reeves
68d1e7993e Merge pull request #408 from Security-Onion-Solutions/quickfix/saltinstall
Update so-functions
2020-03-09 15:26:00 -04:00
Josh Patterson
f4f31ef2a5 Update so-functions 2020-03-09 15:22:30 -04:00
Josh Patterson
1b81223eb6 update repo location for ubuntu non master install 2020-03-09 15:20:05 -04:00
Mike Reeves
4ca2f3eafd Merge branch 'dev' of https://github.com/Security-Onion-Solutions/securityonion-saltstack into feature/ubuntu18 2020-03-09 11:41:49 -04:00
Mike Reeves
868e7bd807 Fix the repo definition 2020-03-09 09:52:03 -04:00
weslambert
aff51b6bb9 Merge pull request #407 from Security-Onion-Solutions/fix/bro_template
Fix/bro template
2020-03-09 09:19:37 -04:00
weslambert
14dfec5365 Change to bro template 2020-03-09 09:18:57 -04:00
weslambert
4a4c378327 Add bro template 2020-03-09 09:18:14 -04:00
Josh Brower
e3916e5de2 Merge pull request #406 from Security-Onion-Solutions/feature/playbook-alerting
Playbook - Schedule Playbook rule updates
2020-03-09 08:58:39 -04:00
Josh Brower
a96465383f Schedule Playbook rule updates 2020-03-09 08:57:31 -04:00
weslambert
47a7e025ee Merge pull request #403 from Security-Onion-Solutions/fix/zeek-extract
fix typo
2020-03-06 13:50:36 -05:00
Wes Lambert
aeb298a818 fix typo 2020-03-06 18:49:29 +00:00
weslambert
0f8fb7bd89 Merge pull request #402 from Security-Onion-Solutions/fix/node_init
fix repo name
2020-03-06 12:46:12 -05:00
Wes Lambert
84df1db201 fix repo name 2020-03-06 17:45:16 +00:00
weslambert
21aa54690e Merge pull request #401 from Security-Onion-Solutions/fix/node_files
add files back
2020-03-06 12:34:07 -05:00
Wes Lambert
ed8adcae5a add files back 2020-03-06 17:28:05 +00:00
weslambert
1b667b9cb9 Merge pull request #400 from Security-Onion-Solutions/fix/node_webhook
Fix/node webhook
2020-03-06 11:17:40 -05:00
Wes Lambert
6af6d7f5b6 fix typo 2020-03-06 16:17:04 +00:00
Wes Lambert
627d89c481 fix webhook 2020-03-06 16:16:02 +00:00
weslambert
08c16aaf67 Merge pull request #399 from Security-Onion-Solutions/fix/node_scripts
add Node scripts
2020-03-06 08:48:17 -05:00
Wes Lambert
0bf125e88e add Node scripts 2020-03-06 13:47:21 +00:00
weslambert
162bbaebb6 Merge pull request #398 from Security-Onion-Solutions/feature/nodered
Feature/nodered
2020-03-06 08:32:32 -05:00
Wes Lambert
19cff23a2b restructure files 2020-03-06 13:14:52 +00:00
Wes Lambert
8bac9118fb add flows 2020-03-06 13:13:34 +00:00
Wes Lambert
32f8d7c793 update init 2020-03-06 13:11:00 +00:00
Mike Reeves
746a1d1c3a More Ubuntu 18 Python 2020-03-05 13:53:27 -05:00
weslambert
b0b3211f02 Merge pull request #397 from Security-Onion-Solutions/fix/zeek-file-extraction
Fix/zeek file extraction
2020-03-05 10:50:16 -05:00
Wes Lambert
73cbadfe5c add complete directory to extracted 2020-03-05 15:49:22 +00:00
Wes Lambert
ee611d44cf update file extraction script 2020-03-05 15:48:28 +00:00
Mike Reeves
4e9f1b1a7b Make Ubuntu 18 defautl to python 3 2020-03-04 17:01:48 -05:00
Mike Reeves
cb8493551d Fix Salt Repo for Python 3 2020-03-04 16:10:32 -05:00
Mike Reeves
dd47b5825d Fix Salt Repo for Python 3 2020-03-04 15:42:15 -05:00
Mike Reeves
ef47a87715 Fix Salt Repo 2020-03-04 14:33:31 -05:00
Mike Reeves
b7a977184d Fix Salt Repo 2020-03-04 14:30:41 -05:00
Mike Reeves
1bb77fb07a Activate 18.04 2020-03-04 13:56:49 -05:00
Josh Patterson
79210a07da Merge pull request #396 from Security-Onion-Solutions/issue/326
fix issue with salt not removing pipeline configs or templates if removed from pillar
2020-03-04 10:14:57 -05:00
m0duspwnens
28c4bb4b22 fix issue with salt not removing pipeline configs or templates if removed from pillar 2020-03-04 10:12:28 -05:00
weslambert
478b14c488 Merge pull request #395 from Security-Onion-Solutions/fix/zeek_extracted
Fix/zeek extracted
2020-03-03 17:41:58 -05:00
Wes Lambert
a0522943f7 fix path 2020-03-03 22:40:46 +00:00
Wes Lambert
a8a93260a9 add file extraction 2020-03-03 22:40:06 +00:00
weslambert
84b29839d8 Merge pull request #394 from Security-Onion-Solutions/config_cleanup
Config cleanup
2020-03-03 16:21:54 -05:00
Wes Lambert
b1203cfb9f add initial Strelka ingest config 2020-03-03 21:20:45 +00:00
Wes Lambert
b75bd35bc2 remove Strelka from LS PL 2020-03-03 21:19:54 +00:00
weslambert
02cf44f4a5 Merge pull request #393 from Security-Onion-Solutions/cleanup/more_eval_ls_cleanup
cleanup default config files
2020-03-03 13:04:58 -05:00
Wes Lambert
3fbb81f6d1 cleanup default config files 2020-03-03 18:03:45 +00:00
weslambert
12ada0c127 Merge pull request #391 from Security-Onion-Solutions/fix/strelka_init
Update Strelka init
2020-03-02 17:16:59 -05:00
Wes Lambert
4939884d93 Update Strelka init 2020-03-02 22:15:55 +00:00
weslambert
00adb06d7c Merge pull request #390 from Security-Onion-Solutions/ls_config_cleanup
Ls config cleanup
2020-03-02 15:04:08 -05:00
Wes Lambert
bbebc4fc9b Add src/dst objects and Bro template 2020-03-02 20:02:39 +00:00
Wes Lambert
880c5abe6b prune default loaded configs for Eval Mode 2020-03-02 19:58:46 +00:00
weslambert
80a23f99fa Merge pull request #389 from Security-Onion-Solutions/ecs_prep
ecs prep
2020-03-02 14:13:37 -05:00
Wes Lambert
ec6638a276 src/dst ip/port fields to ECS 2020-03-02 19:10:18 +00:00
Wes Lambert
e4fee51ed6 Change Bro Files source to file_source 2020-03-02 19:09:24 +00:00
Wes Lambert
9eb5a9be3a Begin switch to ECS for Suricata 2020-03-02 19:07:40 +00:00
m0duspwnens
6c8d6812f9 rename INSTALL type for starting issue 136 2020-02-28 11:11:24 -05:00
Josh Patterson
f40b23e4b2 Merge pull request #376 from Security-Onion-Solutions/issue/326
Issue/326
2020-02-26 16:41:07 -05:00
m0duspwnens
847e6d2d13 create pipelines directory 2020-02-26 16:38:47 -05:00
m0duspwnens
a3e48f0315 logstash cleanup and conflict resolution - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/326 2020-02-26 10:58:39 -05:00
m0duspwnens
54e4c40c2a logstash cleanup and conflict resolution - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/326 2020-02-26 10:26:50 -05:00
m0duspwnens
0c4973ad77 pillarize logstash config,parsers,templates and docker port bindings 2020-02-25 17:44:32 -05:00
weslambert
cc76699a2e Merge pull request #375 from Security-Onion-Solutions/strelka_config
remove source
2020-02-25 13:47:56 -05:00
Wes Lambert
5d81bf3204 remove source 2020-02-25 12:36:35 +00:00
m0duspwnens
e2ccebd2fa resolve conflicts 2020-02-20 17:00:15 -05:00
m0duspwnens
2b34bdece9 logstash cleanup - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/326 2020-02-20 16:47:40 -05:00
weslambert
38b856b2b0 Merge pull request #368 from Security-Onion-Solutions/fix/more_template_fixes
More template fixes
2020-02-20 11:46:41 -05:00
weslambert
fc9786e541 Change template name 2020-02-20 11:46:15 -05:00
weslambert
6945cbb843 Change template name 2020-02-20 11:45:50 -05:00
weslambert
3303992685 Merge pull request #367 from Security-Onion-Solutions/fix/template_fix
Fix template name
2020-02-20 11:20:48 -05:00
weslambert
30a1197b44 Rename template to avoid duplication under different name 2020-02-20 11:20:06 -05:00
m0duspwnens
7604853c59 fix logic for logstash pipelines 2020-02-19 16:02:24 -05:00
m0duspwnens
54e94676fe fix pipelines variable 2020-02-19 14:59:39 -05:00
m0duspwnens
408b3695e0 add back deleted states to logstash state 2020-02-19 14:12:18 -05:00
m0duspwnens
c396342aea fix syntax error with new ls pipeline config 2020-02-19 13:46:52 -05:00
m0duspwnens
6a7580404d directory cleanup - logstash pipeline rework 2020-02-19 13:08:14 -05:00
Josh Brower
689ef31189 Merge pull request #361 from Security-Onion-Solutions/bugfix/bpf
bpf fix
2020-02-18 16:38:54 -05:00
Josh Brower
f9e07709f2 bpf fix 2020-02-18 16:36:20 -05:00
weslambert
82dac03199 Merge pull request #360 from Security-Onion-Solutions/feature/nodered
Experimental: Node-RED
2020-02-18 00:12:01 -05:00
Wes Lambert
de6efffd95 Experimental: Node-RED 2020-02-18 05:04:51 +00:00
weslambert
3eb34d9926 Merge pull request #359 from Security-Onion-Solutions/feature/strelka_ls
Add initial/basic Strelka config
2020-02-17 21:47:32 -05:00
Wes Lambert
50fcf8307f Add initia/basic Strelka config 2020-02-18 02:46:31 +00:00
weslambert
4d98670fac Merge pull request #358 from Security-Onion-Solutions/fix/strelka_config
Fix/strelka config
2020-02-17 16:16:16 -05:00
Wes Lambert
64166f96a1 Ensure correct template is used 2020-02-17 21:15:11 +00:00
Wes Lambert
8d9ff4428b Update Strelka LS config 2020-02-17 21:12:25 +00:00
Josh Brower
074ebe6008 Merge pull request #357 from Security-Onion-Solutions/bugfix/playbook
SOCtopus.conf quick fix RE: playbook API
2020-02-17 07:49:29 -05:00
Josh Brower
63c8515d87 SOCtopus.conf quick fix RE: playbook API 2020-02-17 07:48:54 -05:00
Josh Brower
6c37fbd020 Merge pull request #355 from Security-Onion-Solutions/feature/playbook-changes
Playbook - Schema changes & more
2020-02-14 16:40:28 -05:00
Josh Brower
240620caa3 Playbook - create play API 2020-02-14 16:38:02 -05:00
Josh Brower
9491e75b77 Merge pull request #354 from Security-Onion-Solutions/dev
Update README.md
2020-02-13 16:50:30 -05:00
Mike Reeves
ae1fa9a7a4 Update README.md 2020-02-13 16:48:06 -05:00
Mike Reeves
a04daff113 Merge pull request #353 from Security-Onion-Solutions/dev
Final Final
2020-02-13 15:32:14 -05:00
Mike Reeves
61063d62c4 Merge pull request #352 from Security-Onion-Solutions/TOoSmOotH-patch-1
T oo sm oot h patch 1
2020-02-13 15:28:24 -05:00
Mike Reeves
4caedca795 Update telegraf.conf 2020-02-13 15:27:45 -05:00
Doug Burks
a1e80d8366 Merge pull request #351 from Security-Onion-Solutions/dev
last fixes
2020-02-13 15:12:12 -05:00
Mike Reeves
6f42c607f7 Update telegraf.conf 2020-02-13 15:08:00 -05:00
Mike Reeves
ae113c0b84 Merge pull request #348 from Security-Onion-Solutions/fix/patch-1
Update README - install instructions
2020-02-13 14:32:25 -05:00
weslambert
f8d162ac5f Merge pull request #349 from Security-Onion-Solutions/hotfix/wazuh_archive_path
Fix Wazuh archives path
2020-02-13 13:48:45 -05:00
Wes Lambert
11319362c4 Fix Wazuh archives path 2020-02-13 18:47:45 +00:00
Josh Brower
6920240f8e Update README - install instructions 2020-02-13 12:50:12 -05:00
Mike Reeves
9666f24e14 Update VERSION 2020-02-13 10:55:24 -05:00
504 changed files with 26937 additions and 25054 deletions

59
.gitignore vendored
View File

@@ -1,2 +1,59 @@
# Created by https://www.gitignore.io/api/macos,windows
# Edit at https://www.gitignore.io/?templates=macos,windows
### macOS ###
# General
.DS_Store
.idea
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# Windows shortcuts
*.lnk
# End of https://www.gitignore.io/api/macos,windows

View File

@@ -1,37 +1,41 @@
## Hybrid Hunter Alpha 1.1.4 - Feature Parity Release
## Hybrid Hunter Beta 1.3.0 - Beta 2
### Changes:
- Added new in-house auth method [Security Onion Auth](https://github.com/Security-Onion-Solutions/securityonion-auth).
- Web user creation is done via the browser now instead of so-user-add.
- New Logstash pipeline setup. Now uses multiple pipelines.
- New Master + Search node type and well as a Heavy Node type in the install.
- Change all nodes to point to the docker registry on the Master. This cuts down on the calls to dockerhub.
- Zeek 3.0.1
- Elastic 6.8.6
- New SO Start | Stop | Restart scripts for all components (eg. `so-playbook-restart`).
- BPF support for Suricata (NIDS), Steno (PCAP) & Zeek ([Docs](https://github.com/Security-Onion-Solutions/securityonion-saltstack/wiki/BPF)).
- Updated Domain Stats & Frequency Server containers to Python3 & created new Salt states for them.
- Added so-status script which gives an easy to read look at container status.
- Manage threshold.conf for Suricata using the thresholding pillar.
- The ISO now includes all the docker containers for faster install speeds.
- You now set the password for the onion account during the iso install. This account is temporary and will be removed after so-setup.
- Updated Helix parsers for better compatibility.
- Updated telegraf docker to include curl and jq.
- CVE-2020-0601 Zeek Detection Script.
- ISO Install now prompts you to create a password for the onion user during imaging. This account gets disabled during setup.
- New Feature: Codename: "Onion Hunt". Select Hunt from the menu and start hunting down your adversaries!
- Improved ECS support.
- Complete refactor of the setup to make it easier to follow.
- Improved setup script logging to better assist on any issues.
- Setup now checks for minimal requirements during install.
- Updated Cyberchef to version 9.20.3.
- Updated Elastalert to version 0.2.4 and switched to alpine to reduce container size.
- Updated Redis to 5.0.9 and switched to alpine to reduce container size.
- Updated Salt to 2019.2.5
- Updated Grafana to 6.7.3.
- Zeek 3.0.6
- Suricata 4.1.8
- Fixes so-status to now display correct containers and status.
- local.zeek is now controlled by a pillar instead of modifying the file directly.
- Renamed so-core to so-nginx and switched to alpine to reduce container size.
- Playbook now uses MySQL instead of SQLite.
- Sigma rules have all been updated.
- Kibana dashboard improvements for ECS.
- Fixed an issue where geoip was not properly parsed.
- ATT&CK Navigator is now it's own state.
- Standlone mode is now supported.
- Mastersearch previously used the same Grafana dashboard as a Search node. It now has its own dashboard that incorporates panels from the Master node and Search node dashboards.
### Known Issues:
## Version 1.1.4 ISO Download
[HH1.1.4-44.ISO](https://download.securityonion.net/file/Hybrid-Hunter/HH-1.1.4-44.iso)
MD5: C881536D55C5791F69596E474513E953
SHA1: 1CF503A46279EDDC5C84AA9F02167839004E7723
SHA256: F5C2FB52DFD314540019953BFE1960AF130AB09CD75E60E66CAA122DAD4DA414
- The Hunt feature is currently considered "Preview" and although very useful in its current state, not everything works. We wanted to get this out as soon as possible to get the feedback from you! Let us know what you want to see! Let us know what you think we should call it!
- You cannot pivot to PCAP from Suricata alerts in Kibana or Hunt.
- Updating users via the SOC ui is known to fail. To change a user, delete the user and re-add them.
- Due to the move to ECS, the current Playbook plays may not alert correctly at this time.
- The osquery MacOS package does not install correctly.
### Warnings and Disclaimers
- This ALPHA release is BLEEDING EDGE and TOTALLY UNSUPPORTED!
- This BETA release is BLEEDING EDGE and TOTALLY UNSUPPORTED!
- If this breaks your system, you get to keep both pieces!
- This script is a work in progress and is in constant flux.
- This script is intended to build a quick prototype proof of concept so you can see what our new platform might look like. This configuration will change drastically over time leading up to the final release.
@@ -44,33 +48,36 @@ SHA256: F5C2FB52DFD314540019953BFE1960AF130AB09CD75E60E66CAA122DAD4DA414
Evaluation Mode:
- ISO or a Single VM running Ubuntu 16.04 or CentOS 7
- ISO or a Single VM running Ubuntu 18.04 or CentOS 7
- Minimum 12GB of RAM
- Minimum 4 CPU cores
- Minimum 2 NICs
Distributed:
- 3 VMs running the ISO or Ubuntu 16.04 or CentOS 7 (You can mix and match)
- 3 VMs running the ISO or Ubuntu 18.04 or CentOS 7 (You can mix and match)
- Minimum 8GB of RAM per VM
- Minimum 4 CPU cores per VM
- Minimum 2 NICs for forward nodes
### Prerequisites for Network Based Install
### Installation
Install git if using a Centos 7 Minimal install:
For most users, we recommend installing using [our ISO image](https://github.com/Security-Onion-Solutions/securityonion-saltstack/wiki/ISO).
If instead you would like to try a manual installation (not using our ISO), you can build from CentOS 7 or Ubuntu 18.04.
If using CentOS 7 Minimal, you will need to install git:
```sudo yum -y install git```
### Installation
Once you resolve those requirements or are using Ubuntu 16.04 do the following:
Once you have git, then do the following:
```
git clone https://github.com/Security-Onion-Solutions/securityonion-saltstack
cd securityonion-saltstack
sudo bash so-setup-network.sh
sudo bash so-setup-network
```
Follow the prompts and reboot if asked to do so.
Then proceed to the [Hybrid Hunter Quick Start Guide](https://github.com/Security-Onion-Solutions/securityonion-saltstack/wiki/Hybrid-Hunter-Quick-Start-Guide).

View File

@@ -1 +1 @@
1.0.6
1.3.0

View File

@@ -1,2 +0,0 @@
salt/bro/files/local.bro
salt/bro/files/local.bro.community

View File

@@ -12,6 +12,7 @@
# modified files cause conflicts, set verify_env to False.
# user: socore
log_file: /opt/so/log/salt/master
##### File Server settings #####
##########################################
@@ -57,3 +58,7 @@ pillar_roots:
peer:
.*:
- x509.sign_remote_certificate
reactor:
- 'so/fleet':
- salt://reactor/fleet.sls

View File

@@ -0,0 +1 @@
mastersearchtab:

View File

@@ -1,4 +1,5 @@
{% set OSQUERY = salt['pillar.get']('master:osquery', '0') %}
{%- set FLEETMASTER = salt['pillar.get']('static:fleet_master', False) -%}
{%- set FLEETNODE = salt['pillar.get']('static:fleet_node', False) -%}
{% set WAZUH = salt['pillar.get']('master:wazuh', '0') %}
{% set THEHIVE = salt['pillar.get']('master:thehive', '0') %}
{% set PLAYBOOK = salt['pillar.get']('master:playbook', '0') %}
@@ -7,21 +8,19 @@
{% set BROVER = salt['pillar.get']('static:broversion', 'COMMUNITY') %}
{% set GRAFANA = salt['pillar.get']('master:grafana', '0') %}
eval:
containers:
- so-core
- so-nginx
- so-telegraf
{% if GRAFANA == '1' %}
- so-influxdb
- so-grafana
{% endif %}
- so-dockerregistry
- so-sensoroni
- so-soc
- so-kratos
- so-idstools
- so-auth-api
- so-auth-ui
{% if OSQUERY != '0' %}
{% if FLEETMASTER %}
- so-mysql
- so-fleet
- so-redis
@@ -55,7 +54,7 @@ eval:
{% endif %}
heavy_node:
containers:
- so-core
- so-nginx
- so-telegraf
- so-redis
- so-logstash
@@ -70,7 +69,7 @@ heavy_node:
{% endif %}
helix:
containers:
- so-core
- so-nginx
- so-telegraf
- so-idstools
- so-steno
@@ -80,21 +79,20 @@ helix:
- so-filebeat
hot_node:
containers:
- so-core
- so-nginx
- so-telegraf
- so-logstash
- so-elasticsearch
- so-curator
master_search:
containers:
- so-core
- so-nginx
- so-telegraf
- so-sensoroni
- so-soc
- so-kratos
- so-acng
- so-idstools
- so-redis
- so-auth-api
- so-auth-ui
- so-logstash
- so-elasticsearch
- so-curator
@@ -102,7 +100,7 @@ master_search:
- so-elastalert
- so-filebeat
- so-soctopus
{% if OSQUERY != '0' %}
{% if FLEETMASTER %}
- so-mysql
- so-fleet
- so-redis
@@ -129,24 +127,23 @@ master_search:
master:
containers:
- so-dockerregistry
- so-core
- so-nginx
- so-telegraf
{% if GRAFANA == '1' %}
- so-influxdb
- so-grafana
{% endif %}
- so-sensoroni
- so-soc
- so-kratos
- so-acng
- so-idstools
- so-redis
- so-auth-api
- so-auth-ui
- so-elasticsearch
- so-logstash
- so-kibana
- so-elastalert
- so-filebeat
{% if OSQUERY != '0' %}
{% if FLEETMASTER %}
- so-mysql
- so-fleet
- so-redis
@@ -172,12 +169,12 @@ master:
{% endif %}
parser_node:
containers:
- so-core
- so-nginx
- so-telegraf
- so-logstash
search_node:
containers:
- so-core
- so-nginx
- so-telegraf
- so-logstash
- so-elasticsearch
@@ -188,7 +185,7 @@ search_node:
{% endif %}
sensor:
containers:
- so-core
- so-nginx
- so-telegraf
- so-steno
- so-suricata
@@ -199,7 +196,16 @@ sensor:
- so-filebeat
warm_node:
containers:
- so-core
- so-nginx
- so-telegraf
- so-elasticsearch
fleet:
containers:
{% if FLEETNODE %}
- so-mysql
- so-fleet
- so-redis
- so-filebeat
- so-nginx
- so-telegraf
{% endif %}

View File

@@ -1,3 +0,0 @@
analyst:
- 127.0.0.1

View File

@@ -1,3 +0,0 @@
beats_endpoint:
- 127.0.0.1

View File

@@ -1,3 +0,0 @@
forward_nodes:
- 127.0.0.1

View File

@@ -1,2 +0,0 @@
masterfw:
- 127.0.0.1

View File

@@ -1,3 +0,0 @@
minions:
- 127.0.0.1

View File

@@ -1,3 +0,0 @@
osquery_endpoint:
- 127.0.0.1

View File

@@ -1,2 +0,0 @@
search_nodes:
- 127.0.0.1

View File

@@ -1,2 +0,0 @@
wazuh_endpoint:
- 127.0.0.1

View File

@@ -0,0 +1,5 @@
healthcheck:
enabled: False
schedule: 300
checks:
- zeek

View File

@@ -0,0 +1,5 @@
healthcheck:
enabled: False
schedule: 300
checks:
- zeek

View File

@@ -0,0 +1,5 @@
healthcheck:
enabled: False
schedule: 300
checks:
- zeek

View File

@@ -1,4 +1,21 @@
logstash:
pipelines:
eval:
config: "/usr/share/logstash/pipelines/eval/*.conf"
config:
- so/0800_input_eval.conf
- so/1002_preprocess_json.conf
- so/1033_preprocess_snort.conf
- so/7100_osquery_wel.conf
- so/8999_postprocess_rename_type.conf
- so/9000_output_bro.conf.jinja
- so/9002_output_import.conf.jinja
- so/9033_output_snort.conf.jinja
- so/9100_output_osquery.conf.jinja
- so/9400_output_suricata.conf.jinja
- so/9500_output_beats.conf.jinja
- so/9600_output_ossec.conf.jinja
- so/9700_output_strelka.conf.jinja
templates:
- so/so-beats-template.json
- so/so-common-template.json
- so/so-zeek-template.json

View File

@@ -1,4 +1,42 @@
logstash:
pipelines:
helix:
config: "/usr/share/logstash/pipelines/helix/*.conf"
config:
- so/0010_input_hhbeats.conf
- so/1033_preprocess_snort.conf
- so/1100_preprocess_bro_conn.conf
- so/1101_preprocess_bro_dhcp.conf
- so/1102_preprocess_bro_dns.conf
- so/1103_preprocess_bro_dpd.conf
- so/1104_preprocess_bro_files.conf
- so/1105_preprocess_bro_ftp.conf
- so/1106_preprocess_bro_http.conf
- so/1107_preprocess_bro_irc.conf
- so/1108_preprocess_bro_kerberos.conf
- so/1109_preprocess_bro_notice.conf
- so/1110_preprocess_bro_rdp.conf
- so/1111_preprocess_bro_signatures.conf
- so/1112_preprocess_bro_smtp.conf
- so/1113_preprocess_bro_snmp.conf
- so/1114_preprocess_bro_software.conf
- so/1115_preprocess_bro_ssh.conf
- so/1116_preprocess_bro_ssl.conf
- so/1117_preprocess_bro_syslog.conf
- so/1118_preprocess_bro_tunnel.conf
- so/1119_preprocess_bro_weird.conf
- so/1121_preprocess_bro_mysql.conf
- so/1122_preprocess_bro_socks.conf
- so/1123_preprocess_bro_x509.conf
- so/1124_preprocess_bro_intel.conf
- so/1125_preprocess_bro_modbus.conf
- so/1126_preprocess_bro_sip.conf
- so/1127_preprocess_bro_radius.conf
- so/1128_preprocess_bro_pe.conf
- so/1129_preprocess_bro_rfb.conf
- so/1130_preprocess_bro_dnp3.conf
- so/1131_preprocess_bro_smb_files.conf
- so/1132_preprocess_bro_smb_mapping.conf
- so/1133_preprocess_bro_ntlm.conf
- so/1134_preprocess_bro_dce_rpc.conf
- so/8001_postprocess_common_ip_augmentation.conf
- so/9997_output_helix.conf.jinja

11
pillar/logstash/init.sls Normal file
View File

@@ -0,0 +1,11 @@
logstash:
docker_options:
port_bindings:
- 0.0.0.0:514:514
- 0.0.0.0:5044:5044
- 0.0.0.0:5644:5644
- 0.0.0.0:6050:6050
- 0.0.0.0:6051:6051
- 0.0.0.0:6052:6052
- 0.0.0.0:6053:6053
- 0.0.0.0:9600:9600

View File

@@ -1,4 +1,6 @@
logstash:
pipelines:
master:
config: "/usr/share/logstash/pipelines/master/*.conf"
config:
- so/0010_input_hhbeats.conf
- so/9999_output_redis.conf.jinja

View File

@@ -1,4 +1,16 @@
logstash:
pipelines:
search:
config: "/usr/share/logstash/pipelines/search/*.conf"
config:
- so/0900_input_redis.conf.jinja
- so/9000_output_zeek.conf.jinja
- so/9002_output_import.conf.jinja
- so/9100_output_osquery.conf.jinja
- so/9400_output_suricata.conf.jinja
- so/9500_output_beats.conf.jinja
- so/9600_output_ossec.conf.jinja
- so/9700_output_strelka.conf.jinja
templates:
- so/so-beats-template.json
- so/so-common-template.json
- so/so-zeek-template.json

View File

@@ -1,10 +0,0 @@
# Example Pillar file for a master
master:
esaccessip: 127.0.0.1
esheap: CHANGEME
esclustername: {{ grains.host }}
freq: 0
domainstats: 0
lsheap: 1500m
lsaccessip: 127.0.0.1
elastalert: 1

View File

@@ -1,5 +0,0 @@
# Example Pillar file for a sensor
node:
ls_heapsize: CHANGEME
es_heapsize: CHANGEME
node_type: CHANGEME

View File

@@ -1,14 +0,0 @@
# Example Pillar file for a sensor
sensor:
interface: CHANGEME
bro_pins:
- 1
- 2
- 3
- 4
brobpf:
pcapbpf:
nidsbpf:
s3bucket:
s3key:

View File

@@ -1,55 +1,87 @@
base:
'*':
- patch.needs_restarting
- docker.config
'G@role:so-mastersearch or G@role:so-heavynode':
'*_eval or *_helix or *_heavynode or *_sensor or *_standalone':
- match: compound
- zeek
'*_mastersearch or *_heavynode':
- match: compound
- logstash
- logstash.master
- logstash.search
'G@role:so-sensor':
'*_sensor':
- static
- firewall.*
- brologs
- healthcheck.sensor
- minions.{{ grains.id }}
'G@role:so-master or G@role:so-mastersearch':
'*_master or *_mastersearch':
- match: compound
- static
- firewall.*
- data.*
- auth
- secrets
- minions.{{ grains.id }}
'G@role:so-master':
'*_master':
- logstash
- logstash.master
'G@role:so-eval':
'*_eval':
- static
- firewall.*
- data.*
- brologs
- auth
- logstash.eval
- secrets
- healthcheck.eval
- minions.{{ grains.id }}
'G@role:so-node':
'*_standalone':
- logstash
- logstash.master
- logstash.search
- firewall.*
- data.*
- brologs
- secrets
- healthcheck.standalone
- static
- minions.{{ grains.id }}
'*_node':
- static
- firewall.*
- minions.{{ grains.id }}
'G@role:so-heavynode':
'*_heavynode':
- static
- firewall.*
- brologs
- minions.{{ grains.id }}
'G@role:so-helix':
'*_helix':
- static
- firewall.*
- fireeye
- brologs
- logstash
- logstash.helix
- static
- minions.{{ grains.id }}
'*_fleet':
- static
- firewall.*
- data.*
- secrets
- minions.{{ grains.id }}
'*_searchnode':
- static
- firewall.*
- logstash
- logstash.search
- minions.{{ grains.id }}

55
pillar/zeek/init.sls Normal file
View File

@@ -0,0 +1,55 @@
zeek:
zeekctl:
MailTo: root@localhost
MailConnectionSummary: 1
MinDiskSpace: 5
MailHostUpDown: 1
LogRotationInterval: 3600
LogExpireInterval: 0
StatsLogEnable: 1
StatsLogExpireInterval: 0
StatusCmdShowAll: 0
CrashExpireInterval: 0
SitePolicyScripts: local.zeek
LogDir: /nsm/zeek/logs
SpoolDir: /nsm/zeek/spool
CfgDir: /opt/zeek/etc
CompressLogs: 1
local:
'@load':
- misc/loaded-scripts
- tuning/defaults
- misc/capture-loss
- misc/stats
- frameworks/software/vulnerable
- frameworks/software/version-changes
- protocols/ftp/software
- protocols/smtp/software
- protocols/ssh/software
- protocols/http/software
- protocols/dns/detect-external-names
- protocols/ftp/detect
- protocols/conn/known-hosts
- protocols/conn/known-services
- protocols/ssl/known-certs
- protocols/ssl/validate-certs
- protocols/ssl/log-hostcerts-only
- protocols/ssh/geo-data
- protocols/ssh/detect-bruteforcing
- protocols/ssh/interesting-hostnames
- protocols/http/detect-sqli
- frameworks/files/hash-all-files
- frameworks/files/detect-MHR
- policy/frameworks/notice/extend-email/hostnames
- ja3
- hassh
- intel
- cve-2020-0601
- securityonion/bpfconf
- securityonion/communityid
- securityonion/file-extraction
'@load-sigs':
- frameworks/signatures/detect-windows-shells
redef:
- LogAscii::use_json = T;
- LogAscii::json_timestamps = JSON::TS_ISO8601;

33
salt/_beacons/zeek.py Normal file
View File

@@ -0,0 +1,33 @@
import logging
def status():
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl status'"
retval = __salt__['docker.run']('so-zeek', cmd)
logging.info('zeekctl_module: zeekctl.status retval: %s' % retval)
return retval
def beacon(config):
retval = []
is_enabled = __salt__['healthcheck.is_enabled']()
logging.info('zeek_beacon: healthcheck_is_enabled: %s' % is_enabled)
if is_enabled:
zeekstatus = status().lower().split(' ')
logging.info('zeek_beacon: zeekctl.status: %s' % str(zeekstatus))
if 'stopped' in zeekstatus or 'crashed' in zeekstatus or 'error' in zeekstatus or 'error:' in zeekstatus:
zeek_restart = True
else:
zeek_restart = False
__salt__['telegraf.send']('healthcheck zeek_restart=%s' % str(zeek_restart))
retval.append({'zeek_restart': zeek_restart})
logging.info('zeek_beacon: retval: %s' % str(retval))
return retval

View File

@@ -0,0 +1,96 @@
#!py
import logging
import sys
allowed_functions = ['is_enabled', 'zeek']
states_to_apply = []
def apply_states(states=''):
calling_func = sys._getframe().f_back.f_code.co_name
logging.debug('healthcheck_module: apply_states function caller: %s' % calling_func)
if not states:
states = ','.join(states_to_apply)
if states:
logging.info('healthcheck_module: apply_states states: %s' % str(states))
__salt__['state.apply'](states)
def docker_stop(container):
try:
stopdocker = __salt__['docker.rm'](container, 'stop=True')
except Exception as e:
logging.error('healthcheck_module: %s' % e)
def is_enabled():
if __salt__['pillar.get']('healthcheck:enabled', 'False'):
retval = True
else:
retval = False
return retval
def run(checks=''):
retval = []
calling_func = sys._getframe().f_back.f_code.co_name
logging.debug('healthcheck_module: run function caller: %s' % calling_func)
if checks:
checks = checks.split(',')
else:
checks = __salt__['pillar.get']('healthcheck:checks', {})
logging.debug('healthcheck_module: run checks to be run: %s' % str(checks))
for check in checks:
if check in allowed_functions:
retval.append(check)
check = getattr(sys.modules[__name__], check)
check()
else:
logging.warning('healthcheck_module: attempted to run function %s' % check)
# If you want to apply states at the end of the run,
# be sure to append the state name to states_to_apply[]
apply_states()
return retval
def send_event(tag, eventdata):
__salt__['event.send'](tag, eventdata[0])
def zeek():
calling_func = sys._getframe().f_back.f_code.co_name
logging.debug('healthcheck_module: zeek function caller: %s' % calling_func)
retval = []
retcode = __salt__['zeekctl.status'](verbose=False)
logging.debug('healthcheck_module: zeekctl.status retcode: %i' % retcode)
if retcode:
zeek_restart = 1
if calling_func != 'beacon':
docker_stop('so-zeek')
states_to_apply.append('zeek')
else:
zeek_restart = 0
__salt__['telegraf.send']('healthcheck zeek_restart=%i' % zeek_restart)
if calling_func == 'execute' and zeek_restart:
apply_states()
retval.append({'zeek_restart': zeek_restart})
send_event('so/healthcheck/zeek', retval)
return retval

16
salt/_modules/telegraf.py Normal file
View File

@@ -0,0 +1,16 @@
#!py
import logging
import socket
def send(data):
mainint = __salt__['pillar.get']('sensor:mainint', __salt__['pillar.get']('master:mainint'))
mainip = __salt__['grains.get']('ip_interfaces').get(mainint)[0]
dstport = 8094
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sent = sock.sendto(data.encode('utf-8'), (mainip, dstport))
return sent

160
salt/_modules/zeekctl.py Normal file
View File

@@ -0,0 +1,160 @@
#!py
import logging
def capstats(interval=10):
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl capstats %i'" % interval
retval = __salt__['docker.run']('so-zeek', cmd)
return retval
def check():
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl check'"
retval = __salt__['docker.run']('so-zeek', cmd)
return retval
def cleanup(all=''):
retval = ''
if all:
if all == 'all':
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl cleanup --all'"
else:
retval = 'Invalid option. zeekctl.help for options'
else:
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl cleanup'"
if not retval:
retval = __salt__['docker.run']('so-zeek', cmd)
return retval
def config():
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl config'"
retval = __salt__['docker.run']('so-zeek', cmd)
return retval
def deploy():
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl deploy'"
retval = __salt__['docker.run']('so-zeek', cmd)
return retval
def df():
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl df'"
retval = __salt__['docker.run']('so-zeek', cmd)
return retval
def diag():
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl diag'"
retval = __salt__['docker.run']('so-zeek', cmd)
return retval
def install(local=''):
retval = ''
if local:
if local == 'local':
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl install --local'"
else:
retval = 'Invalid option. zeekctl.help for options'
else:
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl install'"
if not retval:
retval = __salt__['docker.run']('so-zeek', cmd)
return retval
def netstats():
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl netstats'"
retval = __salt__['docker.run']('so-zeek', cmd)
return retval
def nodes():
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl nodes'"
retval = __salt__['docker.run']('so-zeek', cmd)
return retval
def restart(clean=''):
retval = ''
if clean:
if clean == 'clean':
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl restart --clean'"
else:
retval = 'Invalid option. zeekctl.help for options'
else:
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl restart'"
if not retval:
retval = __salt__['docker.run']('so-zeek', cmd)
return retval
def scripts(c=''):
retval = ''
if c:
if c == 'c':
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl scripts -c'"
else:
retval = 'Invalid option. zeekctl.help for options'
else:
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl scripts'"
if not retval:
retval = __salt__['docker.run']('so-zeek', cmd)
return retval
def start():
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl start'"
retval = __salt__['docker.run']('so-zeek', cmd)
return retval
def status(verbose=True):
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl status'"
retval = __salt__['docker.run']('so-zeek', cmd)
if not verbose:
retval = __context__['retcode']
logging.info('zeekctl_module: zeekctl.status retval: %s' % retval)
return retval
def stop():
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl stop'"
retval = __salt__['docker.run']('so-zeek', cmd)
return retval
def top():
cmd = "runuser -l zeek -c '/opt/zeek/bin/zeekctl top'"
retval = __salt__['docker.run']('so-zeek', cmd)
return retval

View File

@@ -1,30 +0,0 @@
{% set VERSION = salt['pillar.get']('static:soversion', 'HH1.1.4') %}
{% set MASTER = salt['grains.get']('master') %}
so-auth-api-dir:
file.directory:
- name: /opt/so/conf/auth/api
- user: 939
- group: 939
- makedirs: True
so-auth-api:
docker_container.running:
- image: {{ MASTER }}:5000/soshybridhunter/so-auth-api:{{ VERSION }}
- hostname: so-auth-api
- name: so-auth-api
- environment:
- BASE_PATH: "/so-auth/api"
- AUTH_TOKEN_TIMEOUT: 32400
- binds:
- /opt/so/conf/auth/api:/data
- port_bindings:
- 0.0.0.0:5656:5656
so-auth-ui:
docker_container.running:
- image: {{ MASTER }}:5000/soshybridhunter/so-auth-ui:{{ VERSION }}
- hostname: so-auth-ui
- name: so-auth-ui
- port_bindings:
- 0.0.0.0:4242:80

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,3 @@
{% set VERSION = salt['pillar.get']('static:soversion', 'HH1.1.4') %}
{% set MASTER = salt['grains.get']('master') %}
{% set GRAFANA = salt['pillar.get']('master:grafana', '0') %}
# Add socore Group
socoregroup:
group.present:
@@ -17,7 +14,6 @@ socore:
- shell: /bin/bash
# Create a state directory
statedir:
file.directory:
- name: /opt/so/state
@@ -33,17 +29,13 @@ salttmp:
- makedirs: True
# Install packages needed for the sensor
sensorpkgs:
pkg.installed:
- skip_suggestions: False
- pkgs:
- docker-ce
- wget
- jq
{% if grains['os'] != 'CentOS' %}
- python-docker
- python-m2crypto
- apache2-utils
{% else %}
- net-tools
@@ -62,7 +54,6 @@ alwaysupdated:
- skip_suggestions: True
# Set time to UTC
Etc/UTC:
timezone.system
@@ -74,339 +65,4 @@ utilsyncscripts:
- group: 0
- file_mode: 755
- template: jinja
- source: salt://common/tools/sbin
# Make sure Docker is running!
docker:
service.running:
- enable: True
salt-minion:
service.running:
- enable: True
# Drop the correct nginx config based on role
nginxconfdir:
file.directory:
- name: /opt/so/conf/nginx
- user: 939
- group: 939
- makedirs: True
nginxconf:
file.managed:
- name: /opt/so/conf/nginx/nginx.conf
- user: 939
- group: 939
- template: jinja
- source: salt://common/nginx/nginx.conf.{{ grains.role }}
copyindex:
file.managed:
- name: /opt/so/conf/nginx/index.html
- user: 939
- group: 939
- source: salt://common/nginx/index.html
nginxlogdir:
file.directory:
- name: /opt/so/log/nginx/
- user: 939
- group: 939
- makedirs: True
nginxtmp:
file.directory:
- name: /opt/so/tmp/nginx/tmp
- user: 939
- group: 939
- makedirs: True
so-core:
docker_container.running:
- image: {{ MASTER }}:5000/soshybridhunter/so-core:{{ VERSION }}
- hostname: so-core
- user: socore
- binds:
- /opt/so:/opt/so:rw
- /opt/so/conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- /opt/so/conf/nginx/index.html:/opt/socore/html/index.html:ro
- /opt/so/log/nginx/:/var/log/nginx:rw
- /opt/so/tmp/nginx/:/var/lib/nginx:rw
- /opt/so/tmp/nginx/:/run:rw
- /etc/pki/masterssl.crt:/etc/pki/nginx/server.crt:ro
- /etc/pki/masterssl.key:/etc/pki/nginx/server.key:ro
- /opt/so/conf/fleet/packages:/opt/socore/html/packages
- cap_add: NET_BIND_SERVICE
- port_bindings:
- 80:80
- 443:443
- watch:
- file: /opt/so/conf/nginx/nginx.conf
# Add Telegraf to monitor all the things.
tgraflogdir:
file.directory:
- name: /opt/so/log/telegraf
- makedirs: True
tgrafetcdir:
file.directory:
- name: /opt/so/conf/telegraf/etc
- makedirs: True
tgrafetsdir:
file.directory:
- name: /opt/so/conf/telegraf/scripts
- makedirs: True
tgrafsyncscripts:
file.recurse:
- name: /opt/so/conf/telegraf/scripts
- user: 939
- group: 939
- file_mode: 755
- template: jinja
- source: salt://common/telegraf/scripts
tgrafconf:
file.managed:
- name: /opt/so/conf/telegraf/etc/telegraf.conf
- user: 939
- group: 939
- template: jinja
- source: salt://common/telegraf/etc/telegraf.conf
so-telegraf:
docker_container.running:
- image: {{ MASTER }}:5000/soshybridhunter/so-telegraf:{{ VERSION }}
- environment:
- HOST_PROC=/host/proc
- HOST_ETC=/host/etc
- HOST_SYS=/host/sys
- HOST_MOUNT_PREFIX=/host
- network_mode: host
- binds:
- /opt/so/log/telegraf:/var/log/telegraf:rw
- /opt/so/conf/telegraf/etc/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/utmp:/var/run/utmp:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /:/host/root:ro
- /sys:/host/sys:ro
- /proc:/host/proc:ro
- /nsm:/host/nsm:ro
- /etc:/host/etc:ro
{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' or grains['role'] == 'so-mastersearch' %}
- /etc/pki/ca.crt:/etc/telegraf/ca.crt:ro
{% else %}
- /etc/ssl/certs/intca.crt:/etc/telegraf/ca.crt:ro
{% endif %}
- /etc/pki/influxdb.crt:/etc/telegraf/telegraf.crt:ro
- /etc/pki/influxdb.key:/etc/telegraf/telegraf.key:ro
- /opt/so/conf/telegraf/scripts:/scripts:ro
- /opt/so/log/stenographer:/var/log/stenographer:ro
- /opt/so/log/suricata:/var/log/suricata:ro
- watch:
- /opt/so/conf/telegraf/etc/telegraf.conf
- /opt/so/conf/telegraf/scripts
# If its a master or eval lets install the back end for now
{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' and GRAFANA == 1 %}
# Influx DB
influxconfdir:
file.directory:
- name: /opt/so/conf/influxdb/etc
- makedirs: True
influxdbdir:
file.directory:
- name: /nsm/influxdb
- makedirs: True
influxdbconf:
file.managed:
- name: /opt/so/conf/influxdb/etc/influxdb.conf
- user: 939
- group: 939
- template: jinja
- source: salt://common/influxdb/etc/influxdb.conf
so-influxdb:
docker_container.running:
- image: {{ MASTER }}:5000/soshybridhunter/so-influxdb:{{ VERSION }}
- hostname: influxdb
- environment:
- INFLUXDB_HTTP_LOG_ENABLED=false
- binds:
- /opt/so/conf/influxdb/etc/influxdb.conf:/etc/influxdb/influxdb.conf:ro
- /nsm/influxdb:/var/lib/influxdb:rw
- /etc/pki/influxdb.crt:/etc/ssl/influxdb.crt:ro
- /etc/pki/influxdb.key:/etc/ssl/influxdb.key:ro
- port_bindings:
- 0.0.0.0:8086:8086
- watch:
- file: /opt/so/conf/influxdb/etc/influxdb.conf
# Grafana all the things
grafanadir:
file.directory:
- name: /nsm/grafana
- user: 939
- group: 939
- makedirs: True
grafanaconfdir:
file.directory:
- name: /opt/so/conf/grafana/etc
- user: 939
- group: 939
- makedirs: True
grafanadashdir:
file.directory:
- name: /opt/so/conf/grafana/grafana_dashboards
- user: 939
- group: 939
- makedirs: True
grafanadashmdir:
file.directory:
- name: /opt/so/conf/grafana/grafana_dashboards/master
- user: 939
- group: 939
- makedirs: True
grafanadashevaldir:
file.directory:
- name: /opt/so/conf/grafana/grafana_dashboards/eval
- user: 939
- group: 939
- makedirs: True
grafanadashfndir:
file.directory:
- name: /opt/so/conf/grafana/grafana_dashboards/forward_nodes
- user: 939
- group: 939
- makedirs: True
grafanadashsndir:
file.directory:
- name: /opt/so/conf/grafana/grafana_dashboards/search_nodes
- user: 939
- group: 939
- makedirs: True
grafanaconf:
file.recurse:
- name: /opt/so/conf/grafana/etc
- user: 939
- group: 939
- template: jinja
- source: salt://common/grafana/etc
{% if salt['pillar.get']('mastertab', False) %}
{%- for SN, SNDATA in salt['pillar.get']('mastertab', {}).items() %}
dashboard-master:
file.managed:
- name: /opt/so/conf/grafana/grafana_dashboards/master/{{ SN }}-Master.json
- user: 939
- group: 939
- template: jinja
- source: salt://common/grafana/grafana_dashboards/master/master.json
- defaults:
SERVERNAME: {{ SN }}
MANINT: {{ SNDATA.manint }}
MONINT: {{ SNDATA.manint }}
CPUS: {{ SNDATA.totalcpus }}
UID: {{ SNDATA.guid }}
ROOTFS: {{ SNDATA.rootfs }}
NSMFS: {{ SNDATA.nsmfs }}
{%- endfor %}
{% endif %}
{% if salt['pillar.get']('sensorstab', False) %}
{%- for SN, SNDATA in salt['pillar.get']('sensorstab', {}).items() %}
dashboard-{{ SN }}:
file.managed:
- name: /opt/so/conf/grafana/grafana_dashboards/forward_nodes/{{ SN }}-Sensor.json
- user: 939
- group: 939
- template: jinja
- source: salt://common/grafana/grafana_dashboards/forward_nodes/sensor.json
- defaults:
SERVERNAME: {{ SN }}
MONINT: {{ SNDATA.monint }}
MANINT: {{ SNDATA.manint }}
CPUS: {{ SNDATA.totalcpus }}
UID: {{ SNDATA.guid }}
ROOTFS: {{ SNDATA.rootfs }}
NSMFS: {{ SNDATA.nsmfs }}
{% endfor %}
{% endif %}
{% if salt['pillar.get']('nodestab', False) %}
{%- for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %}
dashboardsearch-{{ SN }}:
file.managed:
- name: /opt/so/conf/grafana/grafana_dashboards/search_nodes/{{ SN }}-Node.json
- user: 939
- group: 939
- template: jinja
- source: salt://common/grafana/grafana_dashboards/search_nodes/searchnode.json
- defaults:
SERVERNAME: {{ SN }}
MANINT: {{ SNDATA.manint }}
MONINT: {{ SNDATA.manint }}
CPUS: {{ SNDATA.totalcpus }}
UID: {{ SNDATA.guid }}
ROOTFS: {{ SNDATA.rootfs }}
NSMFS: {{ SNDATA.nsmfs }}
{% endfor %}
{% endif %}
{% if salt['pillar.get']('evaltab', False) %}
{%- for SN, SNDATA in salt['pillar.get']('evaltab', {}).items() %}
dashboard-{{ SN }}:
file.managed:
- name: /opt/so/conf/grafana/grafana_dashboards/eval/{{ SN }}-Node.json
- user: 939
- group: 939
- template: jinja
- source: salt://common/grafana/grafana_dashboards/eval/eval.json
- defaults:
SERVERNAME: {{ SN }}
MANINT: {{ SNDATA.manint }}
MONINT: {{ SNDATA.monint }}
CPUS: {{ SNDATA.totalcpus }}
UID: {{ SNDATA.guid }}
ROOTFS: {{ SNDATA.rootfs }}
NSMFS: {{ SNDATA.nsmfs }}
{% endfor %}
{% endif %}
so-grafana:
docker_container.running:
- image: {{ MASTER }}:5000/soshybridhunter/so-grafana:{{ VERSION }}
- hostname: grafana
- user: socore
- binds:
- /nsm/grafana:/var/lib/grafana:rw
- /opt/so/conf/grafana/etc/grafana.ini:/etc/grafana/grafana.ini:ro
- /opt/so/conf/grafana/etc/datasources:/etc/grafana/provisioning/datasources:rw
- /opt/so/conf/grafana/etc/dashboards:/etc/grafana/provisioning/dashboards:rw
- /opt/so/conf/grafana/grafana_dashboards:/etc/grafana/grafana_dashboards:rw
- environment:
- GF_SECURITY_ADMIN_PASSWORD=augusta
- port_bindings:
- 0.0.0.0:3000:3000
- watch:
- file: /opt/so/conf/grafana/*
{% endif %}
- source: salt://common/tools/sbin

View File

@@ -0,0 +1,5 @@
{% set docker = {
'containers': [
'so-zeek'
]
} %}

View File

@@ -0,0 +1,5 @@
{% set docker = {
'containers': [
'so-domainstats'
]
} %}

View File

@@ -0,0 +1,18 @@
{% set docker = {
'containers': [
'so-nginx',
'so-telegraf',
'so-dockerregistry',
'so-soc',
'so-kratos',
'so-idstools',
'so-elasticsearch',
'so-kibana',
'so-steno',
'so-suricata',
'so-zeek',
'so-curator',
'so-elastalert',
'so-soctopus'
]
} %}

View File

@@ -0,0 +1,10 @@
{% set docker = {
'containers': [
'so-mysql',
'so-fleet',
'so-redis',
'so-filebeat',
'so-nginx',
'so-telegraf'
]
} %}

View File

@@ -0,0 +1,7 @@
{% set docker = {
'containers': [
'so-mysql',
'so-fleet',
'so-redis'
]
} %}

View File

@@ -0,0 +1,5 @@
{% set docker = {
'containers': [
'so-freqserver'
]
} %}

View File

@@ -0,0 +1,6 @@
{% set docker = {
'containers': [
'so-influxdb',
'so-grafana'
]
} %}

View File

@@ -0,0 +1,14 @@
{% set docker = {
'containers': [
'so-nginx',
'so-telegraf',
'so-redis',
'so-logstash',
'so-elasticsearch',
'so-curator',
'so-steno',
'so-suricata',
'so-wazuh',
'so-filebeat
]
} %}

View File

@@ -0,0 +1,12 @@
{% set docker = {
'containers': [
'so-nginx',
'so-telegraf',
'so-idstools',
'so-steno',
'so-zeek',
'so-redis',
'so-logstash',
'so-filebeat
]
} %}

View File

@@ -0,0 +1,9 @@
{% set docker = {
'containers': [
'so-nginx',
'so-telegraf',
'so-logstash',
'so-elasticsearch',
'so-curator',
]
} %}

View File

@@ -0,0 +1,18 @@
{% set docker = {
'containers': [
'so-dockerregistry',
'so-nginx',
'so-telegraf',
'so-soc',
'so-kratos',
'so-aptcacherng',
'so-idstools',
'so-redis',
'so-elasticsearch',
'so-logstash',
'so-kibana',
'so-elastalert',
'so-filebeat',
'so-soctopus'
]
} %}

View File

@@ -0,0 +1,18 @@
{% set docker = {
'containers': [
'so-nginx',
'so-telegraf',
'so-soc',
'so-kratos',
'so-aptcacherng',
'so-idstools',
'so-redis',
'so-logstash',
'so-elasticsearch',
'so-curator',
'so-kibana',
'so-elastalert',
'so-filebeat',
'so-soctopus'
]
} %}

View File

@@ -0,0 +1,6 @@
{% set docker = {
'containers': [
'so-playbook',
'so-navigator'
]
} %}

View File

@@ -0,0 +1,10 @@
{% set docker = {
'containers': [
'so-nginx',
'so-telegraf',
'so-logstash',
'so-elasticsearch',
'so-curator',
'so-filebeat'
]
} %}

View File

@@ -0,0 +1,8 @@
{% set docker = {
'containers': [
'so-telegraf',
'so-steno',
'so-suricata',
'so-filebeat'
]
} %}

View File

@@ -0,0 +1,45 @@
{% set role = grains.id.split('_') | last %}
{% from 'common/maps/'~ role ~'.map.jinja' import docker with context %}
# Check if the service is enabled and append it's required containers
# to the list predefined by the role / minion id affix
{% macro append_containers(pillar_name, k, compare )%}
{% if salt['pillar.get'](pillar_name~':'~k, {}) != compare %}
{% from 'common/maps/'~k~'.map.jinja' import docker as d with context %}
{% for li in d['containers'] %}
{{ docker['containers'].append(li) }}
{% endfor %}
{% endif %}
{% endmacro %}
{% set docker = salt['grains.filter_by']({
'*_'~role: {
'containers': docker['containers']
}
},grain='id', merge=salt['pillar.get']('docker')) %}
{% if role in ['eval', 'mastersearch', 'master', 'standalone'] %}
{{ append_containers('master', 'grafana', 0) }}
{{ append_containers('static', 'fleet_master', 0) }}
{{ append_containers('master', 'wazuh', 0) }}
{{ append_containers('master', 'thehive', 0) }}
{{ append_containers('master', 'playbook', 0) }}
{{ append_containers('master', 'freq', 0) }}
{{ append_containers('master', 'domainstats', 0) }}
{% endif %}
{% if role in ['eval', 'heavynode', 'sensor', 'standalone'] %}
{{ append_containers('static', 'strelka', 0) }}
{% endif %}
{% if role in ['heavynode', 'standalone'] %}
{{ append_containers('static', 'broversion', 'SURICATA') }}
{% endif %}
{% if role == 'searchnode' %}
{{ append_containers('master', 'wazuh', 0) }}
{% endif %}
{% if role == 'sensor' %}
{{ append_containers('static', 'broversion', 'SURICATA') }}
{% endif %}

View File

@@ -0,0 +1,21 @@
{% set docker = {
'containers': [
'so-nginx',
'so-telegraf',
'so-soc',
'so-kratos',
'so-aptcacherng',
'so-idstools',
'so-redis',
'so-logstash',
'so-elasticsearch',
'so-curator',
'so-kibana',
'so-elastalert',
'so-filebeat',
'so-suricata',
'so-steno',
'so-dockerregistry',
'so-soctopus'
]
} %}

View File

@@ -0,0 +1,9 @@
{% set docker = {
'containers': [
'so-strelka-coordinator',
'so-strelka-gatekeeper',
'so-strelka-manager',
'so-strelka-frontend',
'so-strelka-filestream'
]
} %}

View File

@@ -0,0 +1,7 @@
{% set docker = {
'containers': [
'so-thehive',
'so-thehive-es',
'so-cortex'
]
} %}

View File

@@ -0,0 +1,7 @@
{% set docker = {
'containers': [
'so-nginx',
'so-telegraf',
'so-elasticsearch'
]
} %}

View File

@@ -0,0 +1,5 @@
{% set docker = {
'containers': [
'so-wazuh'
]
} %}

View File

@@ -1,130 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Security Onion - Hybrid Hunter</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
<style>
* {
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
padding-left: 30px;
padding-right: 30px;
}
body {
font-family: Arial, Helvetica, sans-serif;
background-color: #2a2a2a;
}
a {
color: #f2f2f2;
text-align: left;
padding: 0px;
}
.center {
margin: 0 auto;
}
/* Style the top navigation bar */
.topnav {
overflow: hidden;
background-color: #333;
width: 1080px;
display: flex;
align-content: center;
}
/* Style the topnav links */
.topnav a {
margin: auto;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
/* Change color on hover */
.topnav a:hover {
background-color: #ddd;
color: black;
}
/* Style the content */
.content {
background-color: #2a2a2a;
padding: 10px;
padding-top: 20px;
padding-left: 60px;
color: #E3DBCC;
width: 1080px;
}
/* Style the footer */
.footer {
background-color: #2a2a2a;
padding: 60px;
color: #E3DBCC;
width: 1080px;
}
</style>
</head>
<body>
<div class="center">
<div class="topnav center">
<a href="/so-auth/loginpage/create-user" target="_blank">Create New User</a>
<a href="/kibana/" target="_blank">Kibana</a>
<a href="/grafana/" target="_blank">Grafana</a>
<a href="/sensoroni/" target="_blank">Sensoroni</a>
<a href="/playbook/" target="_blank">Playbook</a>
<a href="/fleet/" target="_blank">Fleet</a>
<a href="/thehive/" target="_blank">TheHive</a>
<a href="/packages/" target="_blank">Osquery Packages</a>
<a href="https://github.com/Security-Onion-Solutions/securityonion-saltstack/wiki/FAQ" target="_blank">FAQ</a>
<a href="https://www.securityonionsolutions.com" target="_blank">Security Onion Solutions</a>
<a href="https://blog.securityonion.net" target="_blank">Blog</a>
</div>
<div class="content center">
<center><a href="https://securityonion.net"><img STYLE="border: none;" src="alpha_logo.jpg" alt="Security Onion" align="center" target="_blank"></img></a><br></center>
<p><center><h1>Hybrid Hunter Alpha 1.1.4 - Feature Parity Release</h1></center><br>
<h2>Changes:</h2>
<ul>
<li>Added new in-house auth method [Security Onion Auth](https://github.com/Security-Onion-Solutions/securityonion-auth).</li>
<li>Web user creation is done via the browser now instead of so-user-add.</li>
<li>New Logstash pipeline setup. Now uses multiple pipelines.</li>
<li>New Master + Search node type and well as a Heavy Node type in the install.</li>
<li>Change all nodes to point to the docker registry on the Master. This cuts down on the calls to dockerhub.</li>
<li>Zeek 3.0.1</li>
<li>Elastic 6.8.6</li>
<li>New SO Start | Stop | Restart scripts for all components (eg. `so-playbook-restart`).</li>
<li>BPF support for Suricata (NIDS), Steno (PCAP) & Zeek ([Docs](https://github.com/Security-Onion-Solutions/securityonion-saltstack/wiki/BPF)).</li>
<li>Updated Domain Stats & Frequency Server containers to Python3 & created new Salt states for them.</li>
<li>Added so-status script which gives an easy to read look at container status.</li>
<li>Manage threshold.conf for Suricata using the thresholding pillar.</li>
<li>The ISO now includes all the docker containers for faster install speeds.</li>
<li>You now set the password for the onion account during the iso install. This account is temporary and will be removed after so-setup.</li>
<li>Updated Helix parsers for better compatibility.</li>
<li>Updated telegraf docker to include curl and jq.</li>
<li>CVE-2020-0601 Zeek Detection Script.</li>
<li>ISO Install now prompts you to create a password for the onion user during imaging. This account gets disabled during setup.</li>
<li>Check out the <a href="https://github.com/Security-Onion-Solutions/securityonion-saltstack/wiki/Hybrid-Hunter-Quick-Start-Guide" target="_blank">Hybrid Hunter Quick Start Guide</a>.</li>
</ul>
</p>
</div>
<div class="footer center">
<b>Disclaimer of Warranty</b><br>
<small>THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM .AS IS. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</small><br>
<br>
<b>Limitation of Liability</b><br>
<small>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</small><br>
</div>
</div>
</body>
</html>

View File

@@ -1,5 +0,0 @@
#!/bin/bash
INFLUXSIZE=$(du -s -B1 /host/nsm/influxdb | awk {'print $1'}
echo "influxsize bytes=$INFLUXSIZE"

View File

@@ -56,7 +56,7 @@ if [ "$SKIP" -eq 0 ]; then
echo ""
echo "[a] - Analyst - ports 80/tcp and 443/tcp"
echo "[b] - Logstash Beat - port 5044/tcp"
echo "[o] - Osquery endpoint - port 8080/tcp"
echo "[o] - Osquery endpoint - port 8090/tcp"
echo "[w] - Wazuh endpoint - port 1514"
echo ""
echo "Please enter your selection (a - analyst, b - beats, o - osquery, w - wazuh):"

View File

@@ -2,9 +2,7 @@
MASTER=MASTER
VERSION="HH1.1.4"
TRUSTED_CONTAINERS=( \
"so-auth-api:$VERSION" \
"so-auth-ui:$VERSION" \
"so-core:$VERSION" \
"so-nginx:$VERSION" \
"so-thehive-cortex:$VERSION" \
"so-curator:$VERSION" \
"so-domainstats:$VERSION" \

View File

@@ -0,0 +1,54 @@
{% set MASTERIP = salt['pillar.get']('master:mainip', '') %}
#!/bin/bash
# Copyright 2014,2015,2016,2017,2018,2019 Security Onion Solutions, LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
ELASTICSEARCH_HOST="{{ MASTERIP}}"
ELASTICSEARCH_PORT=9200
#ELASTICSEARCH_AUTH=""
# Define a default directory to load pipelines from
ELASTICSEARCH_TEMPLATES="/opt/so/saltstack/salt/logstash/pipelines/templates/so/"
# Wait for ElasticSearch to initialize
echo -n "Waiting for ElasticSearch..."
COUNT=0
ELASTICSEARCH_CONNECTED="no"
while [[ "$COUNT" -le 240 ]]; do
curl --output /dev/null --silent --head --fail http://"$ELASTICSEARCH_HOST":"$ELASTICSEARCH_PORT"
if [ $? -eq 0 ]; then
ELASTICSEARCH_CONNECTED="yes"
echo "connected!"
break
else
((COUNT+=1))
sleep 1
echo -n "."
fi
done
if [ "$ELASTICSEARCH_CONNECTED" == "no" ]; then
echo
echo -e "Connection attempt timed out. Unable to connect to ElasticSearch. \nPlease try: \n -checking log(s) in /var/log/elasticsearch/\n -running 'sudo docker ps' \n -running 'sudo so-elastic-restart'"
echo
fi
cd ${ELASTICSEARCH_TEMPLATES}
echo "Loading templates..."
for i in *; do TEMPLATE=$(echo $i | cut -d '-' -f2); echo "so-$TEMPLATE"; curl ${ELASTICSEARCH_AUTH} -s -XPUT http://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_template/so-$TEMPLATE -H 'Content-Type: application/json' -d@$i 2>/dev/null; echo; done
echo
cd - >/dev/null

View File

@@ -0,0 +1,35 @@
#!/bin/bash
#
# {%- set FLEET_MASTER = salt['pillar.get']('static:fleet_master', False) -%}
# {%- set FLEET_NODE = salt['pillar.get']('static:fleet_node', False) -%}
# {%- set FLEET_IP = salt['pillar.get']('static:fleet_ip', '') %}
# {%- set MASTER = salt['pillar.get']('master:url_base', '') %}
#
# Copyright 2014,2015,2016,2017,2018,2019,2020 Security Onion Solutions, LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
KIBANA_HOST={{ MASTER }}
KSO_PORT=5601
OUTFILE="saved_objects.ndjson"
curl -s -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -XPOST $KIBANA_HOST:$KSO_PORT/api/saved_objects/_export -d '{ "type": [ "index-pattern", "config", "visualization", "dashboard", "search" ], "excludeExportDetails": false }' > $OUTFILE
# Clean up using PLACEHOLDER
sed -i "s/$KIBANA_HOST/PLACEHOLDER/g" $OUTFILE
# Clean up for Fleet, if applicable
# {% if FLEET_NODE or FLEET_MASTER %}
# Fleet IP
sed -i "s/{{ FLEET_IP }}/FLEETPLACEHOLDER/g" $OUTFILE
# {% endif %}

View File

@@ -17,4 +17,4 @@
. /usr/sbin/so-common
/usr/sbin/so-start auth $1
/usr/sbin/so-restart nodered $1

View File

@@ -17,5 +17,5 @@
. /usr/sbin/so-common
/usr/sbin/so-restart auth $1
/usr/sbin/so-start nodered $1

View File

@@ -17,4 +17,4 @@
. /usr/sbin/so-common
/usr/sbin/so-stop auth $1
/usr/sbin/so-stop nodered $1

View File

@@ -17,4 +17,4 @@
. /usr/sbin/so-common
docker exec so-soctopus python3 playbook_play-sync.py
docker exec so-soctopus python3 playbook_play-sync.py >> /opt/so/log/soctopus/so-playbook-sync.log 2>&1

View File

@@ -32,6 +32,5 @@ fi
case $1 in
"cortex") docker stop so-thehive-cortex so-thehive && docker rm so-thehive-cortex so-thehive && salt-call state.apply hive queue=True;;
"steno") docker stop so-steno && docker rm so-steno && salt-call state.apply pcap queue=True;;
"auth") docker stop so-auth-api; docker stop so-auth-ui; salt-call state.apply auth queue=True;;
*) docker stop so-$1 ; docker rm so-$1 ; salt-call state.apply $1 queue=True;;
esac

View File

@@ -32,16 +32,5 @@ fi
case $1 in
"all") salt-call state.highstate queue=True;;
"steno") if docker ps | grep -q so-$1; then printf "\n$1 is already running!\n\n"; else docker rm so-$1 >/dev/null 2>&1 ; salt-call state.apply pcap queue=True; fi ;;
"auth")
if docker ps | grep -q so-auth-api; then
if docker ps | grep -q so-auth-ui; then
printf "\n$1 is already running!\n\n"
else
docker rm so-auth-api >/dev/null 2>&1; docker rm so-auth-ui >/dev/null 2>&1; salt-call state.apply $1 queue=True
fi
else
docker rm so-auth-api >/dev/null 2>&1; docker rm so-auth-ui >/dev/null 2>&1; salt-call state.apply $1 queue=True
fi
;;
*) if docker ps | grep -q so-$1; then printf "\n$1 is already running\n\n"; else docker rm so-$1 >/dev/null 2>&1 ; salt-call state.apply $1 queue=True; fi ;;
esac

View File

@@ -14,33 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
{%- set pillar_suffix = ':containers' -%}
{%- if (salt['grains.get']('role') == 'so-mastersearch') -%}
{%- set pillar_val = 'master_search' -%}
{%- elif (salt['grains.get']('role') == 'so-master') -%}
{%- set pillar_val = 'master' -%}
{%- elif (salt['grains.get']('role') == 'so-heavynode') -%}
{%- set pillar_val = 'heavy_node' -%}
{%- elif (salt['grains.get']('role') == 'so-sensor') -%}
{%- set pillar_val = 'sensor' -%}
{%- elif (salt['grains.get']('role') == 'so-eval') -%}
{%- set pillar_val = 'eval' -%}
{%- elif (salt['grains.get']('role') == 'so-helix') -%}
{%- set pillar_val = 'helix' -%}
{%- elif (salt['grains.get']('role') == 'so-node') -%}
{%- if (salt['pillar.get']('node:node_type') == 'parser') -%}
{%- set pillar_val = 'parser_node' -%}
{%- elif (salt['pillar.get']('node:node_type') == 'hot') -%}
{%- set pillar_val = 'hot_node' -%}
{%- elif (salt['pillar.get']('node:node_type') == 'warm') -%}
{%- set pillar_val = 'warm_node' -%}
{%- elif (salt['pillar.get']('node:node_type') == 'search') -%}
{%- set pillar_val = 'search_node' -%}
{%- endif -%}
{%- endif -%}
{%- set pillar_name = pillar_val ~ pillar_suffix -%}
{%- set container_list = salt['pillar.get'](pillar_name) %}
{%- from 'common/maps/so-status.map.jinja' import docker with context %}
{%- set container_list = docker['containers'] %}
if ! [ "$(id -u)" = 0 ]; then
echo "This command must be run as root"
@@ -105,7 +80,7 @@ populate_container_lists() {
systemctl is-active --quiet docker
if [[ $? = 0 ]]; then
mapfile -t docker_raw_list < <(curl -s --unix-socket /var/run/docker.sock http:/containers/json?all=1 \
mapfile -t docker_raw_list < <(curl -s --unix-socket /var/run/docker.sock http:/v1.40/containers/json?all=1 \
| jq -c '.[] | { Name: .Names[0], State: .State }' \
| tr -d '/{"}')
else

View File

@@ -24,7 +24,6 @@ printf "Stopping $1...\n"
echo $banner
case $1 in
"auth") docker stop so-auth-api; docker rm so-auth-api; docker stop so-auth-ui; docker rm so-auth-ui ;;
*) docker stop so-$1 ; docker rm so-$1 ;;
esac

237
salt/common/tools/sbin/so-user Executable file
View File

@@ -0,0 +1,237 @@
#!/bin/bash
# Copyright 2020 Security Onion Solutions. All rights reserved.
#
# This program is distributed under the terms of version 2 of the
# GNU General Public License. See LICENSE for further details.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
got_root() {
# Make sure you are root
if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run using sudo!"
exit 1
fi
}
# Make sure the user is root
got_root
if [[ $# < 1 || $# > 2 ]]; then
echo "Usage: $0 <list|add|update|delete|validate|valemail|valpass> [email]"
echo ""
echo " list: Lists all user email addresses currently defined in the identity system"
echo " add: Adds a new user to the identity system; requires 'email' parameter"
echo " update: Updates a user's password; requires 'email' parameter"
echo " delete: Deletes an existing user; requires 'email' parameter"
echo " validate: Validates that the given email address and password are acceptable for defining a new user; requires 'email' parameter"
echo " valemail: Validates that the given email address is acceptable for defining a new user; requires 'email' parameter"
echo " valpass: Validates that a password is acceptable for defining a new user"
echo ""
echo " Note that the password can be piped into stdin to avoid prompting for it."
exit 1
fi
operation=$1
email=$2
kratosUrl=${KRATOS_URL:-http://127.0.0.1:4434}
databasePath=${KRATOS_DB_PATH:-/opt/so/conf/kratos/db/db.sqlite}
argon2Iterations=${ARGON2_ITERATIONS:-3}
argon2Memory=${ARGON2_MEMORY:-14}
argon2Parallelism=${ARGON2_PARALLELISM:-2}
argon2HashSize=${ARGON2_HASH_SIZE:-32}
function fail() {
msg=$1
echo "$1"
exit 1
}
function require() {
cmd=$1
which "$1" 2>&1 > /dev/null
[[ $? != 0 ]] && fail "This script requires the following command be installed: ${cmd}"
}
# Verify this environment is capable of running this script
function verifyEnvironment() {
require "argon2"
require "jq"
require "curl"
require "openssl"
require "sqlite3"
[[ ! -f $databasePath ]] && fail "Unable to find database file; specify path via KRATOS_DB_PATH environment variable"
response=$(curl -Ss ${kratosUrl}/)
[[ "$response" != "404 page not found" ]] && fail "Unable to communicate with Kratos; specify URL via KRATOS_URL environment variable"
}
function findIdByEmail() {
email=$1
response=$(curl -Ss ${kratosUrl}/identities)
identityId=$(echo "${response}" | jq ".[] | select(.addresses[0].value == \"$email\") | .id")
echo $identityId
}
function validatePassword() {
password=$1
len=$(expr length "$password")
if [[ $len -lt 6 ]]; then
echo "Password does not meet the minimum requirements"
exit 2
fi
}
function validateEmail() {
email=$1
# (?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])
if [[ ! "$email" =~ ^[[:alnum:]._%+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,}$ ]]; then
echo "Email address is invalid"
exit 3
fi
}
function updatePassword() {
identityId=$1
# Read password from stdin (show prompt only if no stdin was piped in)
test -t 0
if [[ $? == 0 ]]; then
echo "Enter new password:"
fi
read -s password
validatePassword "$password"
if [[ -n $identityId ]]; then
# Generate password hash
salt=$(openssl rand -hex 8)
passwordHash=$(echo "${password}" | argon2 ${salt} -id -t $argon2Iterations -m $argon2Memory -p $argon2Parallelism -l $argon2HashSize -e)
# Update DB with new hash
echo "update identity_credentials set config=CAST('{\"hashed_password\":\"${passwordHash}\"}' as BLOB) where identity_id=${identityId};" | sqlite3 "$databasePath"
[[ $? != 0 ]] && fail "Unable to update password"
fi
}
function listUsers() {
response=$(curl -Ss ${kratosUrl}/identities)
[[ $? != 0 ]] && fail "Unable to communicate with Kratos"
echo "${response}" | jq -r ".[] | .addresses[0].value" | sort
}
function createUser() {
email=$1
now=$(date -u +%FT%TZ)
addUserJson=$(cat <<EOF
{
"addresses": [
{
"expires_at": "2099-01-31T12:00:00Z",
"value": "${email}",
"verified": true,
"verified_at": "${now}",
"via": "so-add-user"
}
],
"traits": {"email":"${email}"},
"traits_schema_id": "default"
}
EOF
)
response=$(curl -Ss ${kratosUrl}/identities -d "$addUserJson")
[[ $? != 0 ]] && fail "Unable to communicate with Kratos"
identityId=$(echo "${response}" | jq ".id")
if [[ ${identityId} == "null" ]]; then
code=$(echo "${response}" | jq ".error.code")
[[ "${code}" == "409" ]] && fail "User already exists"
reason=$(echo "${response}" | jq ".error.message")
[[ $? == 0 ]] && fail "Unable to add user: ${reason}"
fi
updatePassword $identityId
}
function updateUser() {
email=$1
identityId=$(findIdByEmail "$email")
[[ ${identityId} == "" ]] && fail "User not found"
updatePassword $identityId
}
function deleteUser() {
email=$1
identityId=$(findIdByEmail "$email")
[[ ${identityId} == "" ]] && fail "User not found"
response=$(curl -Ss -XDELETE "${kratosUrl}/identities/$identityId")
[[ $? != 0 ]] && fail "Unable to communicate with Kratos"
}
case "${operation}" in
"add")
verifyEnvironment
[[ "$email" == "" ]] && fail "Email address must be provided"
validateEmail "$email"
createUser "$email"
echo "Successfully added new user"
;;
"list")
verifyEnvironment
listUsers
;;
"update")
verifyEnvironment
[[ "$email" == "" ]] && fail "Email address must be provided"
updateUser "$email"
echo "Successfully updated user"
;;
"delete")
verifyEnvironment
[[ "$email" == "" ]] && fail "Email address must be provided"
deleteUser "$email"
echo "Successfully deleted user"
;;
"validate")
validateEmail "$email"
updatePassword
echo "Email and password are acceptable"
;;
"valemail")
validateEmail "$email"
echo "Email is acceptable"
;;
"valpass")
updatePassword
echo "Password is acceptable"
;;
*)
fail "Unsupported operation: $operation"
;;
esac
exit 0

View File

@@ -1,17 +1,2 @@
#!/bin/bash
USERNAME=$1
# Make sure a username is provided
[ $# -eq 0 ] && { echo "Usage: $0 username"; exit 1; }
# If the file is there already lets create it otherwise add the user
if [ ! -f /opt/so/conf/nginx/.htpasswd ]; then
# Create the password file
htpasswd -c /opt/so/conf/nginx/.htpasswd $USERNAME
else
htpasswd /opt/so/conf/nginx/.htpasswd $USERNAME
fi
so-user add $*

View File

@@ -0,0 +1,37 @@
#!/bin/bash
# Copyright 2014,2015,2016,2017,2018,2019,2020 Security Onion Solutions, LLC
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
clone_to_tmp() {
# TODO Need to add a air gap option
# Make a temp location for the files
rm -rf /tmp/soup
mkdir -p /tmp/soup
cd /tmp/soup
#git clone -b dev https://github.com/Security-Onion-Solutions/securityonion-saltstack.git
git clone https://github.com/Security-Onion-Solutions/securityonion-saltstack.git
}
# Prompt the user that this requires internets
clone_to_tmp
cd /tmp/soup/securityonion-saltstack/update
chmod +x soup
./soup

View File

@@ -1,12 +1,8 @@
{% if grains['role'] == 'so-node' %}
{%- set cur_close_days = salt['pillar.get']('node:cur_close_days', '') -%}
{% elif grains['role'] == 'so-eval' %}
{%- set cur_close_days = salt['pillar.get']('master:cur_close_days', '') -%}
{%- endif %}
{%- if grains['role'] in ['so-node', 'so-searchnode', 'so-heavynode'] %}
{%- set cur_close_days = salt['pillar.get']('node:cur_close_days', '') -%}
{%- elif grains['role'] in ['so-eval', 'so-mastersearch', 'so-standalone'] %}
{%- set cur_close_days = salt['pillar.get']('master:cur_close_days', '') -%}
{%- endif -%}
---
# Remember, leave a key empty if there is no value. None will be a string,

View File

@@ -1,11 +1,7 @@
{% if grains['role'] == 'so-node' %}
{%- set log_size_limit = salt['pillar.get']('node:log_size_limit', '') -%}
{% elif grains['role'] == 'so-eval' %}
{%- set log_size_limit = salt['pillar.get']('master:log_size_limit', '') -%}
{%- if grains['role'] in ['so-node', 'so-searchnode', 'so-heavynode'] %}
{%- set log_size_limit = salt['pillar.get']('node:log_size_limit', '') -%}
{%- elif grains['role'] in ['so-eval', 'so-mastersearch', 'so-standalone'] %}
{%- set log_size_limit = salt['pillar.get']('master:log_size_limit', '') -%}
{%- endif %}
---
# Remember, leave a key empty if there is no value. None will be a string,

View File

@@ -34,8 +34,6 @@
#fi
# Avoid starting multiple instances
if pgrep -f "so-curator-closed-delete-delete" >/dev/null; then
echo "Script is already running."
else
if ! pgrep -f "so-curator-closed-delete-delete" >/dev/null; then
/usr/sbin/so-curator-closed-delete-delete
fi

View File

@@ -1,17 +1,13 @@
{% if grains['role'] == 'so-node' %}
{%- set ELASTICSEARCH_HOST = salt['pillar.get']('node:mainip', '') -%}
{%- set ELASTICSEARCH_PORT = salt['pillar.get']('node:es_port', '') -%}
{%- set LOG_SIZE_LIMIT = salt['pillar.get']('node:log_size_limit', '') -%}
{% elif grains['role'] == 'so-eval' %}
{%- set ELASTICSEARCH_HOST = salt['pillar.get']('master:mainip', '') -%}
{%- set ELASTICSEARCH_PORT = salt['pillar.get']('master:es_port', '') -%}
{%- set LOG_SIZE_LIMIT = salt['pillar.get']('master:log_size_limit', '') -%}
{%- endif %}
{%- if grains['role'] in ['so-node', 'so-searchnode', 'so-heavynode'] %}
{%- set ELASTICSEARCH_HOST = salt['pillar.get']('node:mainip', '') -%}
{%- set ELASTICSEARCH_PORT = salt['pillar.get']('node:es_port', '') -%}
{%- set LOG_SIZE_LIMIT = salt['pillar.get']('node:log_size_limit', '') -%}
{%- elif grains['role'] in ['so-eval', 'so-mastersearch', 'so-standalone'] %}
{%- set ELASTICSEARCH_HOST = salt['pillar.get']('master:mainip', '') -%}
{%- set ELASTICSEARCH_PORT = salt['pillar.get']('master:es_port', '') -%}
{%- set LOG_SIZE_LIMIT = salt['pillar.get']('master:log_size_limit', '') -%}
{%- endif -%}
#!/bin/bash
#

View File

@@ -1,11 +1,7 @@
{% if grains['role'] == 'so-node' %}
{%- set elasticsearch = salt['pillar.get']('node:mainip', '') -%}
{% elif grains['role'] == 'so-eval' %}
{%- set elasticsearch = salt['pillar.get']('master:mainip', '') -%}
{% if grains['role'] in ['so-node', 'so-searchnode', 'so-heavynode'] %}
{%- set elasticsearch = salt['pillar.get']('node:mainip', '') -%}
{% elif grains['role'] in ['so-eval', 'so-mastersearch', 'so-standalone'] %}
{%- set elasticsearch = salt['pillar.get']('master:mainip', '') -%}
{%- endif %}
---

View File

@@ -1,6 +1,6 @@
{% set VERSION = salt['pillar.get']('static:soversion', 'HH1.1.4') %}
{% set VERSION = salt['pillar.get']('static:soversion', 'HH1.2.2') %}
{% set MASTER = salt['grains.get']('master') %}
{% if grains['role'] == 'so-node' or grains['role'] == 'so-eval' %}
{% if grains['role'] in ['so-searchnode', 'so-eval', 'so-node', 'so-mastersearch', 'so-heavynode', 'so-standalone'] %}
# Curator
# Create the group
curatorgroup:
@@ -87,8 +87,9 @@ curdel:
- group: 939
- mode: 755
/usr/sbin/so-curator-closed-delete:
so-curatorcloseddeletecron:
cron.present:
- name: /usr/sbin/so-curator-closed-delete
- user: root
- minute: '*'
- hour: '*'
@@ -96,8 +97,9 @@ curdel:
- month: '*'
- dayweek: '*'
/usr/sbin/so-curator-close:
so-curatorclosecron:
cron.present:
- name: /usr/sbin/so-curator-close
- user: root
- minute: '*'
- hour: '*'
@@ -105,8 +107,9 @@ curdel:
- month: '*'
- dayweek: '*'
/usr/sbin/so-curator-delete:
so-curatordeletecron:
cron.present:
- name: /usr/sbin/so-curator-delete
- user: root
- minute: '*'
- hour: '*'

8
salt/docker/init.sls Normal file
View File

@@ -0,0 +1,8 @@
installdocker:
pkg.installed:
- name: docker-ce
# Make sure Docker is running!
docker:
service.running:
- enable: True

View File

@@ -2,7 +2,7 @@
{% set esport = salt['pillar.get']('master:es_port', '') %}
# This is the folder that contains the rule yaml files
# Any .yaml file will be loaded as a rule
rules_folder: /etc/elastalert/rules/
rules_folder: /opt/elastalert/rules/
# Sets whether or not ElastAlert should recursively descend
# the rules directory - true or false

View File

@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
from datetime import date
import requests,json
from elastalert.alerts import Alerter
class PlaybookESAlerter(Alerter):
"""
Use matched data to create alerts in elasticsearch
"""
required_options = set(['play_title','play_url','sigma_level','elasticsearch_host'])
def alert(self, matches):
for match in matches:
headers = {"Content-Type": "application/json"}
payload = {"play_title": self.rule['play_title'],"play_url": self.rule['play_url'],"sigma_level": self.rule['sigma_level'],"data": match}
today = str(date.today())
url = f"http://{self.rule['elasticsearch_host']}/playbook-alerts-{today}/_doc/"
requests.post(url, data=json.dumps(payload), headers=headers, verify=False)
def get_info(self):
return {'type': 'PlaybookESAlerter'}

View File

@@ -1,107 +0,0 @@
# -*- coding: utf-8 -*-
# HiveAlerter modified from original at: https://raw.githubusercontent.com/Nclose-ZA/elastalert_hive_alerter/master/elastalert_hive_alerter/hive_alerter.py
import uuid
from elastalert.alerts import Alerter
from thehive4py.api import TheHiveApi
from thehive4py.models import Alert, AlertArtifact, CustomFieldHelper
class TheHiveAlerter(Alerter):
"""
Use matched data to create alerts containing observables in an instance of TheHive
"""
required_options = set(['hive_connection', 'hive_alert_config'])
def get_aggregation_summary_text(self, matches):
text = super(TheHiveAlerter, self).get_aggregation_summary_text(matches)
if text:
text = '```\n{0}```\n'.format(text)
return text
def create_artifacts(self, match):
artifacts = []
context = {'rule': self.rule, 'match': match}
for mapping in self.rule.get('hive_observable_data_mapping', []):
for observable_type, match_data_key in mapping.items():
try:
artifacts.append(AlertArtifact(dataType=observable_type, data=match_data_key.format(**context)))
except KeyError as e:
print(('format string {} fail cause no key {} in {}'.format(e, match_data_key, context)))
return artifacts
def create_alert_config(self, match):
context = {'rule': self.rule, 'match': match}
alert_config = {
'artifacts': self.create_artifacts(match),
'sourceRef': str(uuid.uuid4())[0:6],
'title': '{rule[name]}'.format(**context)
}
alert_config.update(self.rule.get('hive_alert_config', {}))
for alert_config_field, alert_config_value in alert_config.items():
if alert_config_field == 'customFields':
custom_fields = CustomFieldHelper()
for cf_key, cf_value in alert_config_value.items():
try:
func = getattr(custom_fields, 'add_{}'.format(cf_value['type']))
except AttributeError:
raise Exception('unsupported custom field type {}'.format(cf_value['type']))
value = cf_value['value'].format(**context)
func(cf_key, value)
alert_config[alert_config_field] = custom_fields.build()
elif isinstance(alert_config_value, str):
alert_config[alert_config_field] = alert_config_value.format(**context)
elif isinstance(alert_config_value, (list, tuple)):
formatted_list = []
for element in alert_config_value:
try:
formatted_list.append(element.format(**context))
except (AttributeError, KeyError, IndexError):
formatted_list.append(element)
alert_config[alert_config_field] = formatted_list
return alert_config
def send_to_thehive(self, alert_config):
connection_details = self.rule['hive_connection']
api = TheHiveApi(
connection_details.get('hive_host', ''),
connection_details.get('hive_apikey', ''),
proxies=connection_details.get('hive_proxies', {'http': '', 'https': ''}),
cert=connection_details.get('hive_verify', False))
alert = Alert(**alert_config)
response = api.create_alert(alert)
if response.status_code != 201:
raise Exception('alert not successfully created in TheHive\n{}'.format(response.text))
def alert(self, matches):
if self.rule.get('hive_alert_config_type', 'custom') != 'classic':
for match in matches:
alert_config = self.create_alert_config(match)
self.send_to_thehive(alert_config)
else:
alert_config = self.create_alert_config(matches[0])
artifacts = []
for match in matches:
artifacts += self.create_artifacts(match)
if 'related_events' in match:
for related_event in match['related_events']:
artifacts += self.create_artifacts(related_event)
alert_config['artifacts'] = artifacts
alert_config['title'] = self.create_title(matches)
alert_config['description'] = self.create_alert_body(matches)
self.send_to_thehive(alert_config)
def get_info(self):
return {
'type': 'hivealerter',
'hive_host': self.rule.get('hive_connection', {}).get('hive_host', '')
}

View File

@@ -1,6 +1,8 @@
{% set es = salt['pillar.get']('static:masterip', '') %}
{% set hivehost = salt['pillar.get']('static:masterip', '') %}
{% set hivekey = salt['pillar.get']('static:hivekey', '') %}
{% set MASTER = salt['pillar.get']('master:url_base', '') %}
# hive.yaml
# Elastalert rule to forward IDS alerts from Security Onion to a specified TheHive instance.
#
@@ -8,43 +10,43 @@ es_host: {{es}}
es_port: 9200
name: NIDS-Alert
type: frequency
index: "*:logstash-ids*"
index: "so-ids-*"
num_events: 1
timeframe:
minutes: 10
buffer_time:
minutes: 10
allow_buffer_time_overlap: true
query_key: ["alert", "ips"]
query_key: ["rule.uuid"]
realert:
days: 1
filter:
- query:
query_string:
query: "event_type: ids AND NOT tags: _jsonparsefailure"
query: "event.module: suricata"
alert: modules.so.thehive.TheHiveAlerter
alert: hivealerter
hive_connection:
hive_host: https://{{hivehost}}/thehive/
hive_host: http://{{hivehost}}
hive_port: 9000/thehive
hive_apikey: {{hivekey}}
hive_proxies:
http: ''
https: ''
hive_alert_config:
title: '{match[alert]}'
title: '{match[rule][name]}'
type: 'NIDS'
source: 'SecurityOnion'
description: "`NIDS Dashboard:` \n\n <https://{{es}}/kibana/app/kibana#/dashboard/ed6f7e20-e060-11e9-8f0c-2ddbf5ed9290?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-24h,mode:quick,to:now))&_a=(columns:!(_source),index:'*:logstash-*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'sid:{match[sid]}')),sort:!('@timestamp',desc))> \n\n `IPs: `{match[source_ip]}:{match[source_port]} --> {match[destination_ip]}:{match[destination_port]} \n\n `Signature:` {match[rule_signature]}"
description: "`Hunting Pivot:` \n\n <https://{{MASTER}}/#/hunt?q=event.module%3A%20suricata%20AND%20rule.uuid%3A{match[rule][uuid]}%20%7C%20groupby%20source.ip%20destination.ip%20rule.name> \n\n `Kibana Dashboard:` \n\n <https://{{MASTER}}/kibana/app/kibana#/dashboard/ed6f7e20-e060-11e9-8f0c-2ddbf5ed9290?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-24h,mode:quick,to:now))&_a=(columns:!(_source),index:'*:logstash-*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'sid:')),sort:!('@timestamp',desc))> \n\n `IPs: `{match[source][ip]}:{match[source][port]} --> {match[destination][ip]}:{match[destination][port]} \n\n `Signature:`{match[rule][rule]}"
severity: 2
tags: ['{match[sid]}','{match[source_ip]}','{match[destination_ip]}']
tags: ['{match[rule][uuid]}','{match[source][ip]}','{match[destination][ip]}']
tlp: 3
status: 'New'
follow: True
hive_observable_data_mapping:
- ip: '{match[source_ip]}'
- ip: '{match[destination_ip]}'
- ip: '{match[source][ip]}'
- ip: '{match[destination][ip]}'

View File

@@ -12,26 +12,15 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
{% set VERSION = salt['pillar.get']('static:soversion', 'HH1.1.4') %}
{% set VERSION = salt['pillar.get']('static:soversion', 'HH1.2.2') %}
{% set MASTER = salt['grains.get']('master') %}
{% if grains['role'] == 'so-master' %}
{% set esalert = salt['pillar.get']('master:elastalert', '1') %}
{% set esip = salt['pillar.get']('master:mainip', '') %}
{% set esport = salt['pillar.get']('master:es_port', '') %}
{% elif grains['role'] in ['so-eval','so-mastersearch'] %}
{% set esalert = salt['pillar.get']('master:elastalert', '1') %}
{% set esip = salt['pillar.get']('master:mainip', '') %}
{% set esport = salt['pillar.get']('master:es_port', '') %}
{% if grains['role'] in ['so-eval','so-mastersearch', 'so-master', 'so-standalone'] %}
{% set esalert = salt['pillar.get']('master:elastalert', '1') %}
{% set esip = salt['pillar.get']('master:mainip', '') %}
{% set esport = salt['pillar.get']('master:es_port', '') %}
{% elif grains['role'] == 'so-node' %}
{% set esalert = salt['pillar.get']('node:elastalert', '0') %}
{% set esalert = salt['pillar.get']('node:elastalert', '0') %}
{% endif %}
# Elastalert
@@ -55,35 +44,35 @@ elastalogdir:
file.directory:
- name: /opt/so/log/elastalert
- user: 933
- group: 939
- group: 933
- makedirs: True
elastarules:
file.directory:
- name: /opt/so/rules/elastalert
- user: 933
- group: 939
- group: 933
- makedirs: True
elastaconfdir:
file.directory:
- name: /opt/so/conf/elastalert
- user: 933
- group: 939
- group: 933
- makedirs: True
elastasomodulesdir:
file.directory:
- name: /opt/so/conf/elastalert/modules/so
- user: 933
- group: 939
- group: 933
- makedirs: True
elastacustmodulesdir:
file.directory:
- name: /opt/so/conf/elastalert/modules/custom
- user: 933
- group: 939
- group: 933
- makedirs: True
elastasomodulesync:
@@ -91,7 +80,7 @@ elastasomodulesync:
- name: /opt/so/conf/elastalert/modules/so
- source: salt://elastalert/files/modules/so
- user: 933
- group: 939
- group: 933
- makedirs: True
elastarulesync:
@@ -99,7 +88,7 @@ elastarulesync:
- name: /opt/so/rules/elastalert
- source: salt://elastalert/files/rules/so
- user: 933
- group: 939
- group: 933
- template: jinja
elastaconf:
@@ -107,7 +96,7 @@ elastaconf:
- name: /opt/so/conf/elastalert/elastalert_config.yaml
- source: salt://elastalert/files/elastalert_config.yaml
- user: 933
- group: 939
- group: 933
- template: jinja
so-elastalert:
@@ -118,16 +107,9 @@ so-elastalert:
- user: elastalert
- detach: True
- binds:
- /opt/so/rules/elastalert:/etc/elastalert/rules/:ro
- /opt/so/rules/elastalert:/opt/elastalert/rules/:ro
- /opt/so/log/elastalert:/var/log/elastalert:rw
- /opt/so/conf/elastalert/modules/:/opt/elastalert/modules/:ro
- /opt/so/conf/elastalert/elastalert_config.yaml:/etc/elastalert/conf/elastalert_config.yaml:ro
- environment:
- ELASTICSEARCH_HOST: {{ esip }}
- ELASTICSEARCH_PORT: {{ esport }}
- ELASTALERT_CONFIG: /etc/elastalert/conf/elastalert_config.yaml
- ELASTALERT_SUPERVISOR_CONF: /etc/elastalert/conf/elastalert_supervisord.conf
- RULES_DIRECTORY: /etc/elastalert/rules/
- LOG_DIR: /var/log/elastalert
- /opt/so/conf/elastalert/elastalert_config.yaml:/opt/config/elastalert_config.yaml:ro
{% endif %}

View File

@@ -1,9 +0,0 @@
{
"description" : "bro_common",
"processors" : [
{ "rename": { "field": "@timestamp", "target_field": "timestamp", "ignore_missing": true } },
{ "date": { "field": "message2.ts", "target_field": "@timestamp", "formats": ["ISO8601", "UNIX"], "ignore_failure": true } },
{ "remove": { "field": "message2.ts", "ignore_failure": true } },
{ "pipeline": { "name": "common" } }
]
}

View File

@@ -1,48 +0,0 @@
{
"description" : "bro_conn",
"processors" : [
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.uid", "target_field": "uid", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_h", "target_field": "source_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_p", "target_field": "source_port", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_h", "target_field": "destination_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_p", "target_field": "destination_port", "ignore_missing": true } },
{ "rename": { "field": "message2.proto", "target_field": "protocol", "ignore_missing": true } },
{ "rename": { "field": "message2.service", "target_field": "service", "ignore_missing": true } },
{ "rename": { "field": "message2.duration", "target_field": "duration", "ignore_missing": true } },
{ "rename": { "field": "message2.orig_bytes", "target_field": "original_bytes", "ignore_missing": true } },
{ "rename": { "field": "message2.resp_bytes", "target_field": "respond_bytes", "ignore_missing": true } },
{ "rename": { "field": "message2.conn_state", "target_field": "connection_state", "ignore_missing": true } },
{ "rename": { "field": "message2.local_orig", "target_field": "local_orig", "ignore_missing": true } },
{ "rename": { "field": "message2.local_resp", "target_field": "local_respond", "ignore_missing": true } },
{ "rename": { "field": "message2.missed_bytes", "target_field": "missed_bytes", "ignore_missing": true } },
{ "rename": { "field": "message2.history", "target_field": "history", "ignore_missing": true } },
{ "rename": { "field": "message2.orig_pkts", "target_field": "original_packets", "ignore_missing": true } },
{ "rename": { "field": "message2.orig_ip_bytes", "target_field": "original_ip_bytes", "ignore_missing": true } },
{ "rename": { "field": "message2.resp_pkts", "target_field": "respond_packets", "ignore_missing": true } },
{ "rename": { "field": "message2.resp_ip_bytes", "target_field": "respond_ip_bytes", "ignore_missing": true } },
{ "rename": { "field": "message2.tunnel_parents", "target_field": "tunnel_parents", "ignore_missing": true } },
{ "rename": { "field": "message2.orig_cc", "target_field": "original_country_code","ignore_missing": true } },
{ "rename": { "field": "message2.resp_cc", "target_field": "respond_country_code", "ignore_missing": true } },
{ "rename": { "field": "message2.sensorname", "target_field": "sensor_name", "ignore_missing": true } },
{ "script": { "lang": "painless", "source": "ctx.total_bytes = (ctx.original_bytes + ctx.respond_bytes)", "ignore_failure": true } },
{ "set": { "if": "ctx.connection_state == 'S0'", "field": "connection_state_description", "value": "Connection attempt seen, no reply" } },
{ "set": { "if": "ctx.connection_state == 'S1'", "field": "connection_state_description", "value": "Connection established, not terminated" } },
{ "set": { "if": "ctx.connection_state == 'S2'", "field": "connection_state_description", "value": "Connection established and close attempt by originator seen (but no reply from responder)" } },
{ "set": { "if": "ctx.connection_state == 'S3'", "field": "connection_state_description", "value": "Connection established and close attempt by responder seen (but no reply from originator)" } },
{ "set": { "if": "ctx.connection_state == 'SF'", "field": "connection_state_description", "value": "Normal SYN/FIN completion" } },
{ "set": { "if": "ctx.connection_state == 'REJ'", "field": "connection_state_description", "value": "Connection attempt rejected" } },
{ "set": { "if": "ctx.connection_state == 'RSTO'", "field": "connection_state_description", "value": "Connection established, originator aborted (sent a RST)" } },
{ "set": { "if": "ctx.connection_state == 'RSTR'", "field": "connection_state_description", "value": "Established, responder aborted" } },
{ "set": { "if": "ctx.connection_state == 'RSTOS0'","field": "connection_state_description", "value": "Originator sent a SYN followed by a RST, we never saw a SYN-ACK from the responder" } },
{ "set": { "if": "ctx.connection_state == 'RSTRH'", "field": "connection_state_description", "value": "Responder sent a SYN ACK followed by a RST, we never saw a SYN from the (purported) originator" } },
{ "set": { "if": "ctx.connection_state == 'SH'", "field": "connection_state_description", "value": "Originator sent a SYN followed by a FIN, we never saw a SYN ACK from the responder (hence the connection was 'half' open)" } },
{ "set": { "if": "ctx.connection_state == 'SHR'", "field": "connection_state_description", "value": "Responder sent a SYN ACK followed by a FIN, we never saw a SYN from the originator" } },
{ "set": { "if": "ctx.connection_state == 'OTH'", "field": "connection_state_description", "value": "No SYN seen, just midstream traffic (a 'partial connection' that was not later closed)" } },
{ "pipeline": { "name": "bro_common" } }
]
}

View File

@@ -1,20 +0,0 @@
{
"description" : "bro_dce_rpc",
"processors" : [
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.uid", "target_field": "uid", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_h", "target_field": "source_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_p", "target_field": "source_port", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_h", "target_field": "destination_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_p", "target_field": "destination_port", "ignore_missing": true } },
{ "rename": { "field": "message2.rtt", "target_field": "rtt", "ignore_missing": true } },
{ "rename": { "field": "message2.named_pipe", "target_field": "named_pipe", "ignore_missing": true } },
{ "rename": { "field": "message2.endpoint", "target_field": "endpoint", "ignore_missing": true } },
{ "rename": { "field": "message2.operation", "target_field": "operation", "ignore_missing": true } },
{ "pipeline": { "name": "bro_common" } }
]
}

View File

@@ -1,20 +0,0 @@
{
"description" : "bro_dhcp",
"processors" : [
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.uids", "target_field": "uid", "ignore_missing": true } },
{ "rename": { "field": "message2.mac", "target_field": "mac", "ignore_missing": true } },
{ "rename": { "field": "message2.assigned_ip", "target_field": "assigned_ip", "ignore_missing": true } },
{ "rename": { "field": "message2.lease_time", "target_field": "lease_time", "ignore_missing": true } },
{ "rename": { "field": "message2.trans_id", "target_field": "transaction_id", "ignore_missing": true } },
{ "rename": { "field": "message2.assigned_addr", "target_field": "assigned_ip", "ignore_missing": true } },
{ "rename": { "field": "message2.client_addr", "target_field": "source_ip", "ignore_missing": true } },
{ "rename": { "field": "message2.server_addr", "target_field": "destination_ip", "ignore_missing": true } },
{ "rename": { "field": "message2.requested_addr", "target_field": "requested_ip", "ignore_missing": true } },
{ "rename": { "field": "message2.domain", "target_field": "domain_name", "ignore_missing": true } },
{ "rename": { "field": "message2.host_name", "target_field": "hostname", "ignore_missing": true } },
{ "rename": { "field": "message2.duration", "target_field": "duration", "ignore_missing": true } },
{ "rename": { "field": "message2.msg_types", "target_field": "message_types", "ignore_missing": true } },
{ "pipeline": { "name": "bro_common" } }
]
}

View File

@@ -1,19 +0,0 @@
{
"description" : "bro_dnp3",
"processors" : [
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.uid", "target_field": "uid", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_h", "target_field": "source_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_p", "target_field": "source_port", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_h", "target_field": "destination_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_p", "target_field": "destination_port", "ignore_missing": true } },
{ "rename": { "field": "message2.fc_request", "target_field": "fc_request", "ignore_missing": true } },
{ "rename": { "field": "message2.fc_reply", "target_field": "fc_reply", "ignore_missing": true } },
{ "rename": { "field": "message2.iin", "target_field": "iin", "ignore_missing": true } },
{ "pipeline": { "name": "bro_common" } }
]
}

View File

@@ -1,35 +0,0 @@
{
"description" : "bro_dns",
"processors" : [
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.uid", "target_field": "uid", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_h", "target_field": "source_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_p", "target_field": "source_port", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_h", "target_field": "destination_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_p", "target_field": "destination_port", "ignore_missing": true } },
{ "rename": { "field": "message2.proto", "target_field": "protocol", "ignore_missing": true } },
{ "rename": { "field": "message2.trans_id", "target_field": "transaction_id", "ignore_missing": true } },
{ "rename": { "field": "message2.rtt", "target_field": "rtt", "ignore_missing": true } },
{ "rename": { "field": "message2.query", "target_field": "query", "ignore_missing": true } },
{ "rename": { "field": "message2.qclass", "target_field": "query_class", "ignore_missing": true } },
{ "rename": { "field": "message2.qclass_name", "target_field": "query_class_name", "ignore_missing": true } },
{ "rename": { "field": "message2.qtype", "target_field": "query_type", "ignore_missing": true } },
{ "rename": { "field": "message2.qtype_name", "target_field": "query_type_name", "ignore_missing": true } },
{ "rename": { "field": "message2.rcode", "target_field": "rcode", "ignore_missing": true } },
{ "rename": { "field": "message2.rcode_name", "target_field": "rcode_name", "ignore_missing": true } },
{ "rename": { "field": "message2.AA", "target_field": "aa", "ignore_missing": true } },
{ "rename": { "field": "message2.TC", "target_field": "tc", "ignore_missing": true } },
{ "rename": { "field": "message2.RD", "target_field": "rd", "ignore_missing": true } },
{ "rename": { "field": "message2.RA", "target_field": "ra", "ignore_missing": true } },
{ "rename": { "field": "message2.Z", "target_field": "z", "ignore_missing": true } },
{ "rename": { "field": "message2.answers", "target_field": "answers", "ignore_missing": true } },
{ "rename": { "field": "message2.TTLs", "target_field": "ttls", "ignore_missing": true } },
{ "rename": { "field": "message2.rejected", "target_field": "rejected", "ignore_missing": true } },
{ "script": { "lang": "painless", "source": "ctx.query_length = ctx.query.length()", "ignore_failure": true } },
{ "pipeline": { "name": "bro_common" } }
]
}

View File

@@ -1,32 +0,0 @@
{
"description" : "bro_files",
"processors" : [
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.fuid", "target_field": "fuid", "ignore_missing": true } },
{ "rename": { "field": "message2.tx_hosts", "target_field": "file_ip", "ignore_missing": true } },
{ "rename": { "field": "message2.rx_hosts.0", "target_field": "destination_ip", "ignore_missing": true } },
{ "remove": { "field": "message2.rx_hosts", "ignore_missing": true } },
{ "rename": { "field": "message2.conn_uids", "target_field": "uid", "ignore_missing": true } },
{ "remove": { "field": "source", "ignore_missing": true } },
{ "rename": { "field": "message2.source", "target_field": "source", "ignore_missing": true } },
{ "rename": { "field": "message2.depth", "target_field": "depth", "ignore_missing": true } },
{ "rename": { "field": "message2.analyzers", "target_field": "analyzer", "ignore_missing": true } },
{ "rename": { "field": "message2.mime_type", "target_field": "mimetype", "ignore_missing": true } },
{ "rename": { "field": "message2.filename", "target_field": "file_name", "ignore_missing": true } },
{ "rename": { "field": "message2.duration", "target_field": "duration", "ignore_missing": true } },
{ "rename": { "field": "message2.local_orig", "target_field": "local_orig", "ignore_missing": true } },
{ "rename": { "field": "message2.is_orig", "target_field": "is_orig", "ignore_missing": true } },
{ "rename": { "field": "message2.seen_bytes", "target_field": "seen_bytes", "ignore_missing": true } },
{ "rename": { "field": "message2.total_bytes", "target_field": "total_bytes", "ignore_missing": true } },
{ "rename": { "field": "message2.missing_bytes", "target_field": "missing_bytes", "ignore_missing": true } },
{ "rename": { "field": "message2.overflow_bytes", "target_field": "overflow_bytes", "ignore_missing": true } },
{ "rename": { "field": "message2.timedout", "target_field": "timed_out", "ignore_missing": true } },
{ "rename": { "field": "message2.parent_fuid", "target_field": "parent_fuid", "ignore_missing": true } },
{ "rename": { "field": "message2.md5", "target_field": "md5", "ignore_missing": true } },
{ "rename": { "field": "message2.sha1", "target_field": "sha1", "ignore_missing": true } },
{ "rename": { "field": "message2.extracted", "target_field": "extracted", "ignore_missing": true } },
{ "rename": { "field": "message2.extracted_cutoff", "target_field": "extracted_cutoff", "ignore_missing": true } },
{ "rename": { "field": "message2.extracted_size", "target_field": "extracted_size", "ignore_missing": true } },
{ "pipeline": { "name": "bro_common" } }
]
}

View File

@@ -1,33 +0,0 @@
{
"description" : "bro_http",
"processors" : [
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.uid", "target_field": "uid", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_h", "target_field": "source_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_p", "target_field": "source_port", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_h", "target_field": "destination_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_p", "target_field": "destination_port", "ignore_missing": true } },
{ "rename": { "field": "message2.user", "target_field": "username", "ignore_missing": true } },
{ "rename": { "field": "message2.password", "target_field": "password", "ignore_missing": true } },
{ "rename": { "field": "message2.command", "target_field": "ftp_command", "ignore_missing": true } },
{ "rename": { "field": "message2.arg", "target_field": "ftp_argument", "ignore_missing": true } },
{ "rename": { "field": "message2.mime_type", "target_field": "mimetype", "ignore_missing": true } },
{ "rename": { "field": "message2.file_size", "target_field": "file_size", "ignore_missing": true } },
{ "rename": { "field": "message2.reply_code", "target_field": "reply_code", "ignore_missing": true } },
{ "rename": { "field": "message2.reply_msg", "target_field": "reply_message", "ignore_missing": true } },
{ "dot_expander": { "field": "data_channel.passive", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.data_channel.passive","target_field": "data_channel_passive", "ignore_missing": true } },
{ "dot_expander": { "field": "data_channel.orig_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.data_channel.orig_h","target_field": "data_channel_source_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "data_channel.resp_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.data_channel.resp_h","target_field": "data_channel_destination_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "data_channel.resp_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.data_channel.resp_p","target_field": "data_channel_destination_port", "ignore_missing": true } },
{ "rename": { "field": "message2.fuid", "target_field": "fuid", "ignore_missing": true } },
{ "pipeline": { "name": "bro_common" } }
]
}

View File

@@ -1,42 +0,0 @@
{
"description" : "bro_http",
"processors" : [
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.uid", "target_field": "uid", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_h", "target_field": "source_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_p", "target_field": "source_port", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_h", "target_field": "destination_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_p", "target_field": "destination_port", "ignore_missing": true } },
{ "rename": { "field": "message2.trans_depth", "target_field": "trans_depth", "ignore_missing": true } },
{ "rename": { "field": "message2.method", "target_field": "method", "ignore_missing": true } },
{ "rename": { "field": "message2.host", "target_field": "virtual_host", "ignore_missing": true } },
{ "rename": { "field": "message2.uri", "target_field": "uri", "ignore_missing": true } },
{ "rename": { "field": "message2.referrer", "target_field": "referrer", "ignore_missing": true } },
{ "rename": { "field": "message2.version", "target_field": "version", "ignore_missing": true } },
{ "rename": { "field": "message2.user_agent", "target_field": "useragent", "ignore_missing": true } },
{ "rename": { "field": "message2.request_body_len", "target_field": "request_body_length", "ignore_missing": true } },
{ "rename": { "field": "message2.response_body_len","target_field": "response_body_length", "ignore_missing": true } },
{ "rename": { "field": "message2.status_code", "target_field": "status_code", "ignore_missing": true } },
{ "rename": { "field": "message2.status_msg", "target_field": "status_message", "ignore_missing": true } },
{ "rename": { "field": "message2.info_code", "target_field": "info_code", "ignore_missing": true } },
{ "rename": { "field": "message2.info_msg", "target_field": "info_message", "ignore_missing": true } },
{ "remove": { "field": "message2.tags", "ignore_failure": true } },
{ "rename": { "field": "message2.username", "target_field": "user", "ignore_missing": true } },
{ "rename": { "field": "message2.password", "target_field": "password", "ignore_missing": true } },
{ "rename": { "field": "message2.proxied", "target_field": "proxied", "ignore_missing": true } },
{ "rename": { "field": "message2.orig_fuids", "target_field": "orig_fuids", "ignore_missing": true } },
{ "rename": { "field": "message2.orig_filenames", "target_field": "orig_filenames", "ignore_missing": true } },
{ "rename": { "field": "message2.orig_mime_types", "target_field": "orig_mime_types", "ignore_missing": true } },
{ "rename": { "field": "message2.resp_fuids", "target_field": "resp_fuids", "ignore_missing": true } },
{ "rename": { "field": "message2.resp_filenames", "target_field": "resp_filenames", "ignore_missing": true } },
{ "rename": { "field": "message2.resp_mime_types", "target_field": "resp_mime_types", "ignore_missing": true } },
{ "script": { "lang": "painless", "source": "ctx.uri_length = ctx.uri.length()", "ignore_failure": true } },
{ "script": { "lang": "painless", "source": "ctx.useragent_length = ctx.useragent.length()", "ignore_failure": true } },
{ "script": { "lang": "painless", "source": "ctx.virtual_host_length = ctx.virtual_host.length()", "ignore_failure": true } },
{ "pipeline": { "name": "bro_common" } }
]
}

View File

@@ -1,29 +0,0 @@
{
"description" : "bro_intel",
"processors" : [
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.uid", "target_field": "uid", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_h", "target_field": "source_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_p", "target_field": "source_port", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_h", "target_field": "destination_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_p", "target_field": "destination_port", "ignore_missing": true } },
{ "dot_expander": { "field": "seen.indicator", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.seen.indicator", "target_field": "indicator", "ignore_missing": true } },
{ "dot_expander": { "field": "seen.indicator_type", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.seen.indicator_type", "target_field": "indicator_type", "ignore_missing": true } },
{ "dot_expander": { "field": "seen.where", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.seen.where", "target_field": "seen_where", "ignore_missing": true } },
{ "dot_expander": { "field": "seen.node", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.seen.node", "target_field": "seen_node", "ignore_missing": true } },
{ "rename": { "field": "message2.matched", "target_field": "matched", "ignore_missing": true } },
{ "rename": { "field": "message2.sources", "target_field": "sources", "ignore_missing": true } },
{ "rename": { "field": "message2.fuid", "target_field": "fuid", "ignore_missing": true } },
{ "rename": { "field": "message2.file_mime_type", "target_field": "mimetype", "ignore_missing": true } },
{ "rename": { "field": "message2.file_desc", "target_field": "file_description", "ignore_missing": true } },
{ "pipeline": { "name": "bro_common" } }
]
}

View File

@@ -1,25 +0,0 @@
{
"description" : "bro_irc",
"processors" : [
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.uid", "target_field": "uid", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_h", "target_field": "source_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_p", "target_field": "source_port", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_h", "target_field": "destination_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_p", "target_field": "destination_port", "ignore_missing": true } },
{ "rename": { "field": "message2.nick", "target_field": "nick", "ignore_missing": true } },
{ "rename": { "field": "message2.user", "target_field": "irc_username", "ignore_missing": true } },
{ "rename": { "field": "message2.command", "target_field": "irc_command", "ignore_missing": true } },
{ "rename": { "field": "message2.value", "target_field": "value", "ignore_missing": true } },
{ "rename": { "field": "message2.addl", "target_field": "additional_info", "ignore_missing": true } },
{ "rename": { "field": "message2.dcc_file_name", "target_field": "dcc_file_name", "ignore_missing": true } },
{ "rename": { "field": "message2.dcc_file_size", "target_field": "dcc_file_size", "ignore_missing": true } },
{ "rename": { "field": "message2.dcc_mime_type", "target_field": "dcc_mime_type", "ignore_missing": true } },
{ "rename": { "field": "message2.fuid", "target_field": "fuid", "ignore_missing": true } },
{ "pipeline": { "name": "bro_common" } }
]
}

View File

@@ -1,30 +0,0 @@
{
"description" : "bro_kerberos",
"processors" : [
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.uid", "target_field": "uid", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_h", "target_field": "source_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_p", "target_field": "source_port", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_h", "target_field": "destination_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_p", "target_field": "destination_port", "ignore_missing": true } },
{ "rename": { "field": "message2.request_type", "target_field": "request_type", "ignore_missing": true } },
{ "rename": { "field": "message2.client", "target_field": "client", "ignore_missing": true } },
{ "rename": { "field": "message2.service", "target_field": "service", "ignore_missing": true } },
{ "rename": { "field": "message2.success", "target_field": "kerberos_success", "ignore_missing": true } },
{ "rename": { "field": "message2.error_msg", "target_field": "error_message", "ignore_missing": true } },
{ "rename": { "field": "message2.from", "target_field": "valid_from", "ignore_missing": true } },
{ "rename": { "field": "message2.till", "target_field": "valid_till", "ignore_missing": true } },
{ "rename": { "field": "message2.cipher", "target_field": "cipher", "ignore_missing": true } },
{ "rename": { "field": "message2.forwardable", "target_field": "forwardable", "ignore_missing": true } },
{ "rename": { "field": "message2.renewable", "target_field": "renewable", "ignore_missing": true } },
{ "rename": { "field": "message2.client_cert_subject", "target_field": "client_certificate_subject", "ignore_missing": true } },
{ "rename": { "field": "message2.client_cert_fuid", "target_field": "client_certificate_fuid", "ignore_missing": true } },
{ "rename": { "field": "message2.server_cert_subject", "target_field": "server_certificate_subject", "ignore_missing": true } },
{ "rename": { "field": "message2.server_cert_fuid", "target_field": "server_certificate_fuid", "ignore_missing": true } },
{ "pipeline": { "name": "bro_common" } }
]
}

View File

@@ -1,18 +0,0 @@
{
"description" : "bro_modbus",
"processors" : [
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.uid", "target_field": "uid", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_h", "target_field": "source_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.orig_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.orig_p", "target_field": "source_port", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_h", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_h", "target_field": "destination_ip", "ignore_missing": true } },
{ "dot_expander": { "field": "id.resp_p", "path": "message2", "ignore_failure": true } },
{ "rename": { "field": "message2.id.resp_p", "target_field": "destination_port", "ignore_missing": true } },
{ "rename": { "field": "message2.func", "target_field": "function", "ignore_missing": true } },
{ "rename": { "field": "message2.exception", "target_field": "exception", "ignore_missing": true } },
{ "pipeline": { "name": "bro_common" } }
]
}

Some files were not shown because too many files have changed in this diff Show More