Account ID Enumeration
Last updated
Last updated
{
"Version": "2012-10-17",
"Statement": {
"Effect": "Allow",
"Action": "sts:AssumeRole",
"Resource": "arn:aws:iam::'<account-id>':role/pentest"
}
}{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::'<account-id>':user/mick3y"
},
"Action": "sts:AssumeRole"
}
]
}{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets",
"s3:ListBucket",
"s3:GetBucketLocation",
"s3:GetObject"
],
"Resource": "*"
}
]
}# s3-account-search 설치 및 환경변수 등록
python3 -m pipx install s3-account-search
pipx ensurepath
# 대상 Account ID 열거
s3-account-search '<role-arn>' '<target-s3-name>' --profile '<aws-profile>'