William Wernert
679faddd52
Update so-rule-update to pass all args to docker exec
...
Instead of passing $1, build a string from all args and add that to the command string for the docker exec statement
2021-09-10 13:44:37 -04:00
William Wernert
0b42b19763
Update so-rule-update to source so-common
2021-09-10 13:41:58 -04:00
William Wernert
943bd3e902
Merge pull request #5468 from Security-Onion-Solutions/fix/idstools-rule-clear
...
Add `--force` flag to idstools-rulecat under so-rule-update
2021-09-10 13:17:16 -04:00
William Wernert
9c310de459
Add --force flag to idstools-rulecat under so-rule-update
...
This forces idstools to pull from the url each time, which prevents it from clearing all.rules if idstools-rulecat is run twice within 15 minutes by any method (either restarting the container or running so-rule-update)
2021-09-10 13:15:09 -04:00
William Wernert
a14854d56d
Merge pull request #5383 from Security-Onion-Solutions/feature/soup-y
...
Add logic to check unattended flag when checking OS updates
2021-09-02 11:50:45 -04:00
William Wernert
56894b9581
Add logic to check unattended flag when checking if updates are available
2021-09-02 11:15:32 -04:00
William Wernert
d785dafe2f
Merge pull request #5374 from Security-Onion-Solutions/feature/soup-y
...
Add unattended soup flag, and iso location argument for air gap
2021-09-01 16:48:55 -04:00
William Wernert
446821e9fd
Use exit code 0 when printing error message before exiting soup
2021-09-01 15:11:18 -04:00
William Wernert
576c893eb3
Exit on missing file argument
2021-09-01 15:08:53 -04:00
William Wernert
bfd632e20a
Add wazuh to exclude arg when running yum update
2021-08-30 14:21:13 -04:00
William Wernert
72859adb13
Fix typo in so-checkin
2021-08-27 15:23:01 -04:00
William Wernert
ca5339341f
Fix batch size regex to disallow 0
2021-08-27 11:34:28 -04:00
William Wernert
c5d120293d
Initial work to add unattended option to soup
2021-08-27 11:33:51 -04:00
William Wernert
fb4c2c35e3
Remove so-logscan from so-image-common arrays
2021-08-13 13:58:08 -04:00
William Wernert
da53b39c15
Merge pull request #5142 from Security-Onion-Solutions/foxtrot
...
Add image pull script to allow so-learn to pull missing images, update wording on several whiptail prompts
2021-08-12 16:09:55 -04:00
William Wernert
86569b0599
Make sbin script permissions consistent
2021-08-12 16:05:54 -04:00
William Wernert
45aa2f72cb
Merge branch 'dev' into foxtrot
2021-08-12 15:45:12 -04:00
William Wernert
bf40a1038e
Whiptail changes
...
* Update wording of ip mask prompt + so-allow question for clarity
* Remove old ip+mask prompts
2021-08-12 10:32:27 -04:00
William Wernert
3312a66e75
Fix indent
2021-08-11 16:37:22 -04:00
William Wernert
4a31d6b3bc
Specify images are also verified
2021-08-11 16:35:33 -04:00
William Wernert
64dfc6e191
Fix pull logic and properly hide output
2021-08-11 16:33:45 -04:00
William Wernert
95bd7f9861
Merge branch 'dev' into foxtrot
2021-08-11 13:47:38 -04:00
William Wernert
983549711c
Pull image if missing when enabling module in so-learn
2021-08-11 13:47:31 -04:00
William Wernert
b12e2eded5
Merge pull request #5086 from Security-Onion-Solutions/foxtrot
...
Add conditional check for logscan log + add log folder to logrotate config
2021-08-06 11:32:23 -04:00
William Wernert
26030d83eb
Merge branch 'dev' into foxtrot
2021-08-06 09:44:10 -04:00
William Wernert
3b01f6431e
Add logscan to logrotate config
2021-08-06 09:43:58 -04:00
William Wernert
dd1769fbef
Only check for logscan on manager-type and import
2021-08-05 11:02:09 -04:00
William Wernert
54a3b754e0
Merge pull request #5050 from Security-Onion-Solutions/foxtrot
...
Add logscan state, related pipeline config, and initial so-learn script
2021-08-03 16:30:07 -04:00
William Wernert
2bc88e7750
Remove learn from allowed states for helixsensor
2021-08-03 15:29:37 -04:00
William Wernert
ef59cb47dd
Use print_err function
2021-08-03 15:26:57 -04:00
William Wernert
9e5d3aa286
Fix removed root check in so-rule
2021-08-03 15:25:53 -04:00
William Wernert
25bf25eae6
Allowed states remove typo'd logscan
2021-08-03 15:24:32 -04:00
William Wernert
24f5fa66f3
Merge branch 'dev' into foxtrot
2021-08-03 13:02:29 -04:00
William Wernert
d3b170c6df
Add logscan automation file + fix enable command in setup
2021-08-02 12:37:37 -04:00
William Wernert
757091beeb
Add log_level to logscan.conf
2021-08-02 10:35:39 -04:00
William Wernert
8a49039b85
Only append source.ip to logscan.source.ips if it's been created
2021-08-02 09:50:49 -04:00
William Wernert
4f39cd1d7f
Add logscan dynamic object to so-common template mappings
2021-07-30 16:02:02 -04:00
William Wernert
2a6277c0c3
Fix field names in logscan pipeline
2021-07-30 15:46:39 -04:00
William Wernert
33bd6aed20
Fix logscan pipeline on eval
...
* Rename logscan pipeline to logscan.alert
* Add module to indices array in filebeat.yml
2021-07-30 14:41:15 -04:00
William Wernert
b9980c9d30
Fix pipeline name
2021-07-30 13:09:09 -04:00
William Wernert
01bb94514c
Correct mod_so_status to only act on single string
2021-07-30 11:05:48 -04:00
William Wernert
d71967ea1d
Fix incorrect writing of so-status.conf
2021-07-30 10:28:39 -04:00
William Wernert
0b06d0bfdb
Merge branch 'dev' into foxtrot
2021-07-29 15:15:25 -04:00
William Wernert
b2a83018ba
Remove or run logscan based on enabled bool
2021-07-29 15:14:54 -04:00
William Wernert
ba265d94f4
Change default value in learn init to a dict where approriate
2021-07-29 15:14:28 -04:00
William Wernert
b30f771fa2
Set write_needed flag correctly, include newline in so-status.conf string
2021-07-29 14:59:26 -04:00
William Wernert
e38219aa2e
Fix learn init.sls typo
2021-07-29 14:35:02 -04:00
William Wernert
9e92f6da3d
Add container to so-status when enabling/disabling ml module
2021-07-29 14:25:20 -04:00
William Wernert
44551ea9ee
Fix so-learn list
2021-07-29 13:31:48 -04:00
William Wernert
c53da9b1ff
Fix wrong variables in learn init.sls
2021-07-29 12:04:40 -04:00
William Wernert
e1785dbd9a
Fix typo
2021-07-29 12:00:53 -04:00
William Wernert
2560a9b78c
[wip] Change learn:modules to dictionary
2021-07-29 11:58:58 -04:00
William Wernert
d53e989c55
Add ability to set cpu_period per module
2021-07-29 11:52:10 -04:00
William Wernert
211a841cdb
Fix file path in bind mount for logscan
2021-07-29 11:40:19 -04:00
William Wernert
5894b85bd1
Remove broken yaml dump arg, rename metavars
2021-07-29 10:57:53 -04:00
William Wernert
811b32735e
Merge branch 'dev' into foxtrot
2021-07-29 09:52:29 -04:00
William Wernert
dd0e407935
Use correct container name
2021-07-28 15:06:38 -04:00
William Wernert
7ef5b39b04
[wip] Fix 'Nonetype' object is not callable error
2021-07-28 14:28:00 -04:00
William Wernert
cf9121dfc2
Actually download so-learn container
2021-07-28 14:13:16 -04:00
William Wernert
91accb0bc6
[wip] Fixing so-learn script
2021-07-28 10:12:32 -04:00
William Wernert
e2abe8840f
Fix directory in logscan state
2021-07-28 10:12:19 -04:00
William Wernert
455719936b
Uncomment required lines in so-learn
2021-07-28 09:53:35 -04:00
William Wernert
8d56fc71fa
Fix jinja length calculation
2021-07-28 09:53:24 -04:00
William Wernert
833d154bf4
Merge branch 'dev' into foxtrot
2021-07-28 09:50:11 -04:00
William Wernert
f31dc5abc7
Add learn to allowed states
2021-07-28 09:49:59 -04:00
William Wernert
f4fae7938e
Merge branch 'dev' into foxtrot
2021-07-27 16:01:44 -04:00
William Wernert
64945cec16
[wip] Initial work to enable/disable "learn" modules
2021-07-26 14:24:10 -04:00
William Wernert
2f118781ea
Merge branch 'dev' into foxtrot
2021-07-23 08:54:08 -04:00
William Wernert
b8e3a45a7e
[wip] Add logscan state
...
Do not add state to top file or setup yet, script will be written to enable the feature shortly
2021-07-23 08:53:45 -04:00
William Wernert
df6d1d72e2
Merge branch 'dev' into feature/logscan
2021-07-19 15:19:59 -04:00
William Wernert
c2fc2df54c
Merge pull request #4835 from Security-Onion-Solutions/feature/uppercase-warning
...
Show warning to user when trying to use uppercase characters in hostname or domain name
2021-07-16 15:44:47 -04:00
William Wernert
0deb77468f
Change uppercase regex
...
Check for any uppercase characters rather than revalidating input sans uppercase
2021-07-16 15:39:09 -04:00
William Wernert
9bf1d3e0c6
Misc fixes
2021-07-16 14:59:44 -04:00
William Wernert
3a12d28d20
Merge branch 'dev' into feature/logscan
2021-07-16 14:13:19 -04:00
William Wernert
e8ba4bdc6c
Add quotes to string
2021-07-16 14:07:23 -04:00
William Wernert
b552973e00
Add logic to show uppercase warning message when appropriate
2021-07-15 16:36:46 -04:00
William Wernert
ac98e1fd0f
Remove testing default values, change wording, set default option to no
2021-07-15 16:36:24 -04:00
William Wernert
33f396bdae
Add uppercase warning function
2021-07-15 13:53:57 -04:00
William Wernert
ff25cecd54
Remove unused function
2021-07-15 13:53:31 -04:00
William Wernert
818f912a90
[fix] Remove indent
2021-07-14 10:13:14 -04:00
William Wernert
e41811fbd0
[fix] Typo
2021-07-13 15:14:13 -04:00
William Wernert
e7a6172d7e
[fix] Add single quotes to strings
2021-07-13 14:07:27 -04:00
William Wernert
115e0a6fee
[fix] Add missing comma
2021-07-13 12:04:10 -04:00
William Wernert
e059c25ebc
[fix][wip] Fix pipeline parsing errors
2021-07-13 11:05:05 -04:00
William Wernert
9ff95f66dd
Merge branch 'dev' into feature/logscan
2021-07-13 10:02:58 -04:00
William Wernert
c1523c4936
Merge pull request #4782 from Security-Onion-Solutions/feature/check-local-mods
...
Add jinja raw tag
2021-07-13 08:58:25 -04:00
William Wernert
ca2b24f735
Add jinja raw tag
2021-07-13 08:46:57 -04:00
William Wernert
2b0bca8e55
Merge branch 'dev' into feature/logscan
2021-07-12 14:58:30 -04:00
William Wernert
222d79bf53
Merge pull request #4774 from Security-Onion-Solutions/feature/check-local-mods
...
Compare local files to their defaults to check for potentially breaking changes
2021-07-12 12:00:18 -04:00
William Wernert
f3ecdf21bf
Revert "Add newline to local modifications warning"
...
This reverts commit ff656365d2 .
2021-07-12 09:28:24 -04:00
William Wernert
ff656365d2
Add newline to local modifications warning
2021-07-12 09:22:22 -04:00
William Wernert
ea7c09bb00
Merge branch 'dev' into feature/check-local-mods
2021-07-12 09:20:10 -04:00
William Wernert
90970f97e8
Add function to check if files copied to local have been changed in default
2021-07-09 15:44:27 -04:00
William Wernert
bac7ef71d8
Add logscan.source.ips field
2021-07-09 10:55:11 -04:00
William Wernert
80525ee736
[wip] Add logscan pipeline
2021-07-08 12:29:50 -04:00
William Wernert
4dbb869952
Fix typo
2021-06-30 16:21:09 -04:00
William Wernert
4109cdec53
Refactor so-docker-prune to prevent exceptions when removing images
...
* Prune containers at beginning of script so stopped containers using old images are removed
* Add force=True arg to remove() call to ensure an image is still deleted on the off chance a container is still using that image
* Add exception handling to continue removing containers instead of exiting if the script fails to remove a container
2021-06-30 15:35:01 -04:00
William Wernert
022f9ea76e
Add Elasticsearch and Kibana to list of services that use webuser creds
2021-06-24 10:45:12 -04:00
William Wernert
5e11efb0b9
Merge pull request #4548 from Security-Onion-Solutions/fix/soup-merge-fix
...
Fix merge issue in soup
2021-06-16 14:36:24 -04:00
William Wernert
703988b376
Fix merge issue in soup
2021-06-16 14:28:20 -04:00