-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick Bareiss
committed
Sep 26, 2024
1 parent
5d38462
commit 709796d
Showing
34 changed files
with
109 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]>"] | ||
|
||
[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/" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
2 changes: 1 addition & 1 deletion
2
terraform/ansible/roles/cisco_secure_endpoint_logs/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
2 changes: 1 addition & 1 deletion
2
terraform/ansible/roles/create_domain_controller/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
terraform/ansible/roles/crowdstrike_falcon_logging/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
terraform/ansible/roles/linux_universal_forwarder/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
2 changes: 1 addition & 1 deletion
2
terraform/ansible/roles/update_sysmon_config_linux/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
Oops, something went wrong.