Update T1562.001.yaml

This commit is contained in:
RedinDisguise
2023-07-26 15:11:34 -04:00
committed by GitHub
parent bfd59b94b9
commit ef1d5049ba
+28 -1
View File
@@ -890,4 +890,31 @@ atomic_tests:
cleanup_command: |
REG DELETE HKCU\Software\Classes\CLSID\{fdb00e52-a214-4aa1-8fba-4357bb0072ec}\InProcServer32 /f
name: command_prompt
elevation_required: true
elevation_required: true
- name: AWS - GuardDuty Suspension or Deletion
description: |
Enables GuardDuty in AWS, upon successful creation this test will suspend and then delete the GuardDuty configuration.
supported_platforms:
- iaas:aws
input_arguments:
region:
description: Name of the specified region
type: string
default: us-east-1
dependency_executor_name: bash
dependencies:
- description: |
Check if ~/.aws/credentials file has a default stanza is configured
prereq_command: |
cat ~/.aws/credentials | grep "default"
get_prereq_command: |
echo "Please install the aws-cli and configure your AWS default profile using: aws configure"
executor:
command: |
detectorId=$(aws guardduty create-detector --enable --region "#{region}" | grep -oP '(?<="DetectorId": ")[^"]*')
aws guardduty update-detector --no-enable --detector-id $detectorId
aws guardduty delete-detector --detector-id $detectorId
cleanup_command: |
echo "If test successfully ran, no cleanup required."
name: bash
elevation_required: false