Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update T1580.yaml AWS - EC2 Security Group Enumeration #2659

Merged
merged 27 commits into from
Mar 13, 2024
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b80b06a
Update T1580.yaml AWS - EC2 Security Group Enumeration
prashanthpulisetti Jan 18, 2024
8ec468e
Update T1580.yaml
prashanthpulisetti Jan 18, 2024
1ba98b5
Update T1580.yaml
prashanthpulisetti Jan 18, 2024
6796db1
Update T1580.yaml
prashanthpulisetti Jan 18, 2024
73b75c2
Update T1580.yaml
prashanthpulisetti Jan 18, 2024
13da08b
Update T1580.yaml
prashanthpulisetti Jan 18, 2024
5348c67
Update T1580.yaml
prashanthpulisetti Jan 18, 2024
d626e7e
Update T1580.yaml
prashanthpulisetti Jan 18, 2024
dd92424
Merge branch 'master' into patch-7
prashanthpulisetti Jan 19, 2024
312df03
Merge branch 'master' into patch-7
cyberbuff Jan 20, 2024
4381e0b
Merge branch 'master' into patch-7
cyberbuff Jan 20, 2024
8a1987a
updating atomics count in README.md [ci skip]
Jan 20, 2024
fa66c9c
Merge branch 'master' into patch-7
cyberbuff Jan 20, 2024
d50ce76
Update T1580.yaml
prashanthpulisetti Jan 21, 2024
474cbdf
Update T1580.yaml
prashanthpulisetti Jan 21, 2024
444fc52
Merge branch 'master' into patch-7
prashanthpulisetti Jan 21, 2024
4841583
Update T1580.yaml
prashanthpulisetti Jan 22, 2024
ad4029b
Update T1580.yaml
prashanthpulisetti Jan 22, 2024
9497101
Merge branch 'master' into patch-7
prashanthpulisetti Jan 29, 2024
0b6af7c
Merge branch 'master' into patch-7
prashanthpulisetti Feb 5, 2024
d234ade
Merge branch 'master' into patch-7
prashanthpulisetti Feb 22, 2024
9d4056f
Merge branch 'master' into patch-7
patel-bhavin Mar 7, 2024
64c84ca
Merge branch 'master' into patch-7
cyberbuff Mar 8, 2024
82ecf27
Merge branch 'master' into patch-7
prashanthpulisetti Mar 13, 2024
e12ad94
Merge branch 'master' into patch-7
patel-bhavin Mar 13, 2024
0d12184
Merge branch 'master' into patch-7
patel-bhavin Mar 13, 2024
5a3850c
Merge branch 'master' into patch-7
patel-bhavin Mar 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions atomics/T1580/T1580.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,39 @@ atomic_tests:
rm -rf stratus*
name: sh
elevation_required: false

- name: AWS - EC2 Security Group Enumeration
description: "Simulate an attacker's action to enumerate EC2 Security Groups in a compromised AWS environment."
supported_platforms:
- iaas:aws
input_arguments:
aws_profile:
description: AWS CLI profile name
type: string
default: default
output_format:
description: Desired output format (text, table, json)
type: string
default: json

executor:
name: command_prompt
command: |
aws ec2 describe-security-groups --profile #{aws_profile} --output #{output_format}

dependencies:
- description: AWS CLI installed and configured with the necessary access rights.
prereq_command: type aws || aws --version
get_prereq_command: |
if [ "$(uname)" = "Darwin" ] || [ "$(expr substr $(uname) 1 5)" = "Linux" ]; then
curl "https://aws.amazon.com/cli/" -o "Install-AWSCLI.sh" && sh Install-AWSCLI.sh
elif [ "$(expr substr $(uname) 1 5)" = "MINGW" ]; then
Invoke-WebRequest -Uri "https://aws.amazon.com/cli/" -OutFile "Install-AWSCLI.ps1"; .\Install-AWSCLI.ps1
fi
- description: Check if AWS CLI is installed and configured.
prereq_command: |
aws sts get-caller-identity --profile #{aws_profile}
get_prereq_command: |
if ! aws sts get-caller-identity --profile #{aws_profile}; then
echo "AWS CLI not properly configured. Please configure AWS CLI."
fi