Merge pull request #2076 from cyberbuff/T1619

T1619 Cloud Storage Object Discovery
This commit is contained in:
Bhavin Patel
2022-08-15 15:57:30 -07:00
committed by GitHub
+21
View File
@@ -0,0 +1,21 @@
---
attack_technique: T1619
display_name: Cloud Storage Object Discovery
atomic_tests:
- name: AWS S3 Enumeration
description: |
This test will enumerate all the S3 buckets in the user account and lists all the files in each bucket.
supported_platforms:
- iaas:azure
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: |
for bucket in "$(aws s3 ls | cut -d " " -f3)"; do aws s3api list-objects-v2 --bucket $bucket --output text; done
name: sh
elevation_required: false