diff --git a/.circleci/config.yml b/.circleci/config.yml index 1fd87e2dfe..64b96bce66 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,7 @@ # ############# # Automatically generated by ci-generator.py in splunk/security-content -# On Date: 2020-07-28T13:43:38 UTC +# On Date: 2020-07-29T08:05:36 UTC # Author: Splunk Security Research # Contact: research@splunk.com ############# @@ -178,6 +178,24 @@ jobs: terraform init cd .. python attack_range.py --mode terraform --action test --test_file ../security-content/tests/T1574_009.yml + - run: + name: detection tests > T1047.yml + command: | + cd attack_range + source venv/bin/activate + # change attack_range default ssh keys + sed -i "s/key_name = .*$/key_name = attack-range-ci-job-security-content/g" attack_range.conf + sed -i "s/automated_testing = .*$/automated_testing = 1/g" attack_range.conf + sed -i "s/github_token =.*$/github_token = ${GITHUB_TOKEN}/g" attack_range.conf + sed -i "s/region = us-west-2/region = us-east-2/g" attack_range.conf + sed -i "s/private_key_path =.*$/private_key_path = ~\/.ssh\/id_rsa_3968782b01d635eb784228581d9cbe90/g" attack_range.conf + sed -i "s/windows_domain_controller = .*$/windows_domain_controller = 1/g" attack_range.conf + sed -i "s/capture_attack_data = .*$/capture_attack_data = 1/g" attack_range.conf + sed -i "s/art_branch = .*$/art_branch = local-master/g" attack_range.conf + cd terraform/ + terraform init + cd .. + python attack_range.py --mode terraform --action test --test_file ../security-content/tests/T1047.yml - run: name: detection tests > T1021_001.yml command: | diff --git a/tests/T1047.yml b/tests/T1047.yml new file mode 100644 index 0000000000..f039d41669 --- /dev/null +++ b/tests/T1047.yml @@ -0,0 +1,7 @@ +name: Process Execution via WMI +detections: + - name: Process execution via wmi + pass_condition: '| stats count | where count = 1' +description: Test the WMI local process execution attack behavior +target: attack-range-windows-domain-controller +simulation_technique: 'T1047'