Skip to content

Commit

Permalink
Merge pull request #947 from splunk/dependency_update
Browse files Browse the repository at this point in the history
bump versions
  • Loading branch information
P4T12ICK committed Sep 26, 2024
2 parents 5d38462 + 709796d commit 2e18038
Show file tree
Hide file tree
Showing 34 changed files with 109 additions and 107 deletions.
36 changes: 17 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,34 +1,32 @@
[tool.poetry]
name = "attack-range"
version = "3.1.0"
version = "3.1.2"
description = ""
authors = ["P4T12ICK <pbareiss@splunk.com>"]

[tool.poetry.dependencies]
python = "^3.8"
ansible = "^5.6.0"
python = "^3.10"
ansible = "^10.3.0"
pywinrm = "^0.4.2"
PyYAML = "^6.0"
PyYAML = "^6.0.2"
colorama = "^0.4.4"
python-terraform = "^0.10.1"
tabulate = "^0.8.9"
boto3 = "^1.22.6"
atomic-operator = "^0.8.5"
ansible-runner = "^2.2.0"
azure-mgmt-resource = "^21.1.0"
azure-mgmt-network = "^19.3.0"
azure-mgmt-compute = "^26.1.0"
azure-identity = "^1.10.0"
splunk-sdk = "^1.6.19"
urllib3 = "^1.26.9"
pycryptodome = "^3.14.1"
questionary = "^1.10.0"
Jinja2 = "^3.1.2"
boto3 = "^1.35.10"
atomic-operator = "^0.9.0"
ansible-runner = "^2.4.0"
azure-mgmt-resource = "^23.1.1"
azure-mgmt-network = "^26.0.0"
azure-mgmt-compute = "^33.0.0"
azure-identity = "^1.17.1"
splunk-sdk = "^2.0.2"
urllib3 = "^2.2.2"
pycryptodome = "^3.20.0"
questionary = "^2.0.1"
Jinja2 = "^3.1.4"
python-vagrant = "^1.0.0"

# Fix issue with docutils ".post1" release
# https://github.com/python-poetry/poetry/issues/9293#issuecomment-2048205226
gitpython = "^3.1.43"

[[tool.poetry.source]]
name = "pypi-public"
url = "https://pypi.org/simple/"
Expand Down
4 changes: 4 additions & 0 deletions scripts/helpers/attack_range_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
"name": "Snort 3 JSON Alerts",
"url": "https://splunkbase.splunk.com/app/4633",
},
{
"name": "VMware Carbon Black Cloud",
"url": "https://splunkbase.splunk.com/app/5332",
},
]

ATTACK_RANGE_LOCAL_APPS = [
Expand Down
2 changes: 1 addition & 1 deletion terraform/ansible/roles/azure_logging/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

- include: azure_logging.yml
- include_tasks: azure_logging.yml
when: general.cloud_provider == "azure"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

- include: config.yml
- include_tasks: config.yml
when: general.carbon_black_cloud == "1"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

- include: config.yml
- include_tasks: config.yml
when: general.cisco_secure_endpoint == "1"
2 changes: 1 addition & 1 deletion terraform/ansible/roles/cloudtrail_logs/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

- include: configure_inputs.yml
- include_tasks: configure_inputs.yml
when: general.cloud_provider == "aws"
4 changes: 2 additions & 2 deletions terraform/ansible/roles/contentctl/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

- include: docker.yml
- include_tasks: docker.yml
when: general.install_contentctl == "1"

- include: contentctl.yml
- include_tasks: contentctl.yml
when: general.install_contentctl == "1"
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

- include: windows-create-domain.yml
- include_tasks: windows-create-domain.yml
when: windows_servers.create_domain == "1"
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
win_feature:
name: DNS
state: present
include_management_tools: yes
include_sub_features: yes
include_tasks_management_tools: yes
include_tasks_sub_features: yes
register: _windows_dns_server

- name: reboot | Rebooting Server
Expand All @@ -29,8 +29,8 @@
- name: features | Installing AD Domain Services
win_feature:
name: AD-Domain-Services
include_management_tools: yes
include_sub_features: yes
include_tasks_management_tools: yes
include_tasks_sub_features: yes
state: present

- name: Creating a windows domain
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

- include: config.yml
- include_tasks: config.yml
when: general.crowdstrike_falcon == "1"

- name: restart splunk
Expand Down
10 changes: 5 additions & 5 deletions terraform/ansible/roles/guacamole/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

- include: install_packages.yml
- include: setup_tomcat.yml
- include: guacamole_server.yml
- include: guacamole_client.yml
- include: guacamole_server_post.yml
- include_tasks: install_packages.yml
- include_tasks: setup_tomcat.yml
- include_tasks: guacamole_server.yml
- include_tasks: guacamole_client.yml
- include_tasks: guacamole_server_post.yml
6 changes: 3 additions & 3 deletions terraform/ansible/roles/join_domain/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

- include: create.yml
- include_tasks: create.yml
when: windows_servers.join_domain == "1" and general.cloud_provider != "local"

- include: create_local.yml
- include_tasks: create_local.yml
when: windows_servers.join_domain == "1" and general.cloud_provider == "local"

- include: windows-disable-firewall.yml
- include_tasks: windows-disable-firewall.yml
when: windows_servers.join_domain == "1"
10 changes: 5 additions & 5 deletions terraform/ansible/roles/linux_common/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
#- include: set-hostname.yml
#- include: update_packages.yml
- include: disable-dnssec.yml
- include: disable-autoupgrade.yml
- include: update_sshd_config.yml
#- include_tasks: set-hostname.yml
#- include_tasks: update_packages.yml
- include_tasks: disable-dnssec.yml
- include_tasks: disable-autoupgrade.yml
- include_tasks: update_sshd_config.yml
4 changes: 2 additions & 2 deletions terraform/ansible/roles/linux_install_auditd/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

- include: install_auditd.yml
- include: configure_inputs_splunk.yml
- include_tasks: install_auditd.yml
- include_tasks: configure_inputs_splunk.yml
4 changes: 2 additions & 2 deletions terraform/ansible/roles/linux_osquery/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

- include: install_osquery_linux.yml
- include: collect_osquery_logs.yml
- include_tasks: install_osquery_linux.yml
- include_tasks: collect_osquery_logs.yml

- name: Restart splunk uf
become: true
Expand Down
2 changes: 1 addition & 1 deletion terraform/ansible/roles/linux_server_post/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---

- include: change_splunk_password.yml
- include_tasks: change_splunk_password.yml
4 changes: 2 additions & 2 deletions terraform/ansible/roles/linux_sysmon/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

- include: install_sysmon_linux.yml
- include: configure_inputs.yml
- include_tasks: install_sysmon_linux.yml
- include_tasks: configure_inputs.yml

- name: Restart splunk uf
become: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---

- include: install_universal_forwarder.yml
- include_tasks: install_universal_forwarder.yml
4 changes: 2 additions & 2 deletions terraform/ansible/roles/nginx_web_proxy/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

- include: nginx_web_proxy.yml
- include: configure_inputs.yml
- include_tasks: nginx_web_proxy.yml
- include_tasks: configure_inputs.yml

- name: Restart splunk uf
become: true
Expand Down
10 changes: 5 additions & 5 deletions terraform/ansible/roles/phantom/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
# This playbook contains common tasks in this role

- include: install_phantom_aws.yml
- include_tasks: install_phantom_aws.yml
when: general.cloud_provider == "aws"

- include: install_phantom_azure.yml
- include_tasks: install_phantom_azure.yml
when: general.cloud_provider == "azure"

- include: install_phantom_local.yml
- include_tasks: install_phantom_local.yml
when: general.cloud_provider == "local"

- include: configure_phantom.yml
- include_tasks: configure_phantom.yml
when: phantom_server.phantom_app | regex_search("splunk_soar-unpriv-6")

- include: configure_phantom_old.yml
- include_tasks: configure_phantom_old.yml
when: phantom_server.phantom_app | regex_search("splunk_soar-unpriv-5")
2 changes: 1 addition & 1 deletion terraform/ansible/roles/phantom_byo_splunk/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

- include: config.yml
- include_tasks: config.yml
when: phantom_server.phantom_byo == "1"
8 changes: 4 additions & 4 deletions terraform/ansible/roles/snort/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

- include: install_snort.yml
- include: configure_network_interface.yml
- include: configure_snort.yml
- include: configure_splunk_input.yml
- include_tasks: install_snort.yml
- include_tasks: configure_network_interface.yml
- include_tasks: configure_snort.yml
- include_tasks: configure_splunk_input.yml
2 changes: 1 addition & 1 deletion terraform/ansible/roles/splunk_byo_linux/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

- include: config.yml
- include_tasks: config.yml
when: splunk_server.byo_splunk == "1"
2 changes: 1 addition & 1 deletion terraform/ansible/roles/splunk_byo_windows/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

- include: config.yml
- include_tasks: config.yml
when: splunk_server.byo_splunk == "1"
26 changes: 13 additions & 13 deletions terraform/ansible/roles/splunk_server/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
---
# This playbook contains common tasks in this role

- include: splunk.yml
- include: configure_inputs.yml
- include: configure_indexes.yml
- include: configure_limits.yml
- include: configure_web_conf.yml
- include: configure_server_conf.yml
- include: create_serverclass.yml
- include_tasks: splunk.yml
- include_tasks: configure_inputs.yml
- include_tasks: configure_indexes.yml
- include_tasks: configure_limits.yml
- include_tasks: configure_web_conf.yml
- include_tasks: configure_server_conf.yml
- include_tasks: create_serverclass.yml

- name: Convert splunk_apps string to list
set_fact:
splunk_apps_list: "{{ splunk_server.splunk_apps.split(',') }}"

- include: install_app_from_s3.yml
- include_tasks: install_app_from_s3.yml
with_items: "{{ splunk_apps_list }}"

- include: configure_attack_range_dashboard.yml
- include: configure_escu.yml
- include: configure_props.yml
- include: configure_cim.yml
- include: configure_phantom.yml
- include_tasks: configure_attack_range_dashboard.yml
- include_tasks: configure_escu.yml
- include_tasks: configure_props.yml
- include_tasks: configure_cim.yml
- include_tasks: configure_phantom.yml
12 changes: 6 additions & 6 deletions terraform/ansible/roles/splunk_server_post/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
hostname:
name: "{{ hostname }}"

- include: change_splunk_password.yml
- include_tasks: change_splunk_password.yml

- include: phantom_server_configure.yml
- include_tasks: phantom_server_configure.yml
when: phantom_server.phantom_server == "1" and not general.cloud_provider == "local"

- include: phantom_server_configure_local.yml
- include_tasks: phantom_server_configure_local.yml
when: phantom_server.phantom_server == "1" and general.cloud_provider == "local"

- include: install_enterprise_security.yml
- include_tasks: install_enterprise_security.yml
when: splunk_server.install_es == "1"

- include: install_botsv3_dataset.yml
- include_tasks: install_botsv3_dataset.yml
when: splunk_server.ingest_bots3_data == "1"

- include: install_dltk.yml
- include_tasks: install_dltk.yml
when: splunk_server.install_dltk == "1"
4 changes: 2 additions & 2 deletions terraform/ansible/roles/sysmon/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
- 'c:\Program Files\ansible'
- 'c:\ProgramData\ansible\log'

- include: windows-sysmon.yml
- include: windows-logging-registry.yml
- include_tasks: windows-sysmon.yml
- include_tasks: windows-logging-registry.yml

- name: 'Reboot server'
win_reboot:
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

- include: windows-sysmon.yml
- include_tasks: windows-sysmon.yml
when: windows_servers.win_sysmon_config != "SwiftOnSecurity.xml"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

- include: update_sysmon_config.yml
- include_tasks: update_sysmon_config.yml
when: linux_servers.sysmon_config != "SysMonLinux-CatchAll.xml"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---

- include: install_aurora_agent.yml
- include_tasks: install_aurora_agent.yml
when: windows_servers.aurora_agent == "1"

Loading

0 comments on commit 2e18038

Please sign in to comment.