Enumeration
Enumeration
By giving the name of the company or organization it provides results related to that organization with AWS, Azure, and Google Cloud checks.
./cloud_enum.py -k <company> -k <company web site> -k <company product names>IAM Enumeration
(Should be authenticated)
List of IAM Users :
aws iam list-users List the IAM groups that the specified IAM user belongs to :
aws iam list-groups-for-user --user-name user-nameList all manages policies that are attached to the specified IAM user :
aws iam list-attached-user-policies --user-name user-nameLists the names of the inline policies embedded in the specified IAM user :
aws iam list-user-policies --user-name user-nameGroups:
List of IAM Groups:
aws iam list-groups Lists all managed policies that are attached to the specified IAM Group :
aws iam list-attached-group-policies --group-name group-nameList the names of the inline policies embedded in the specified IAM Group:
aws iam list-group-policies --group-name group-nameRoles:
List of IAM Roles :
aws iam list-roles Lists all managed policies that are attached to the specified IAM role :
aws iam list-attached-role-policies --role-name role-nameList the names of the inline policies embedded in the specified IAM role :
aws iam list-role-policies --role-name role-namePolicies:
List of IAM Policies :
aws iam list-policies Retrieves information about the specified managed policy :
aws iam get-policy --policy-arn policy-arnLists information about the versions of the specified manages policy :
aws iam list-policy-versions --policy-arn policy-arnRetrieved information about the specified version of the specified managed policy :
aws iam get-policy-version --policy-arn policy-arn --version-id version-idRetrieves the specified inline policy document that is embedded on the specified IAM user / group / role :
aws iam get-user-policy --user-name user-name--policy-name policy-nameaws iam get-group-policy --group-name group-name--policy-name policy-nameaws iam get-role-policy --role-name role-name--policy-name policy-nameVPC Enumeration
Describe about VPCs :
aws ec2 describe-vpcsDescribe about Subnets :
aws ec2 describe-subnetsDescribe about Route Table :
aws ec2 describe-route-tablesDescribe about Network ACLs :
aws ec2 describe-network-aclsEC2 Enumeration
Describes the Information about all Instances
aws ec2 describe-instances Describes the Information about Specified Instance
aws ec2 describe-instances --instance-ids instance-idDescribes the Information about UserData Attribute of the specified Instance
aws ec2 describe-instance-attribute –attribute userData --instance-id instance-idDescribes the Information about IAM instance profile associations
aws ec2 describe-iam-instance-profile-associationsEBS Enumeration
Describes the Information about EBS volumes
aws ec2 describe-volumes Describes about all the available EBS snapshots
aws ec2 describe-snapshots --owner-ids selfLambda Enumeration
During enumeration, we should do regions one by one because lambda functions region based. So if we enumerate without specifying the region it will look for the default region.
Lambda Function :
List of all the lambda functions
aws lambda list-functionsRetrieves the Information about the specified lambda function
aws lambda get-function --function-name function-nameRetrieves the policy Information about the specified lambda function
aws lambda get-policy --function-name function-nameRetrieves the event source mapping Information about the specified lambda function
aws lambda list-event-source-mappings --function-name function-nameAPI Gateway:
List of all the Rest APIs
aws apigateway get-rest-apisGet the information about specified API
aws apigateway get-rest-api --rest-api-id ApiIdLists information about a collection of resources
aws apigateway get-resources --rest-api-id ApiIdGet information about the specified resource
aws apigateway get-resource --rest-api-id ApiId --resource-id ResourceIDGet the method information for the specified resource
aws apigateway get-method --rest-api-id ApiID--resource-id ResourceID--http-method MethodList of all stages for a REST API
aws apigateway get-stages --rest-api-id ApiIdGet the information about the specified API's stage
aws apigateway get-stage --rest-api-id ApiId--stage-name StageNameList of all the API keys
aws apigateway get-api-keys --include-valuesGet the information about a specified API key
aws apigateway get-api-key --api-key ApiKeyContainers Enumeration
Describe about all the repositories in the container registry
aws ecr describe-repositoriesGet the information about repository policy
aws ecr get-repository-policy --repository-name RepositoryNameLists of all images in the specified repository
aws ecr list-images --repository-name RepositoryNameDescribe the information about a container image
aws ecr describe-images --repository-name RepositoryName--image-ids imageTag=ImageTagLists all ECS Clusters
aws ecs list-clustersDescribe information about specified cluster
aws ecs describe-clusters --cluster ClusterNameLists all services in the specified cluster
aws ecs list-services --cluster ClusterNameDescribe the information about a specified service
aws ecs describe-services--cluster ClusterName--servicesServiceNameLists all tasks in the specified cluster
aws ecs list-tasks --cluster ClusterNameDescribe the information about a specified task
aws ecs describe-tasks --cluster ClusterName--tasks TaskArnLists all containers in the specified cluster
aws ecs list-container-instances --cluster Cluster-NameLists all EKS Clusters
aws eks list-clustersDescribe the information about a specified cluster
aws eks describe-cluster --name Cluster-NameList of all node groups in a specified cluster
aws eks list-nodegroups--cluster-name Cluster-NameDescribe the information about a specific node group in a cluster
aws eks describe-nodegroup--cluster-name Cluster-Name--nodegroup-name Node-GroupList of all fargate in a specified cluster
aws eks list-fargate-profiles --cluster-name Cluster-NameDescribe the information about a specific fargate profile in a cluster
aws eks describe-fargate-profile --cluster-name Cluster-Name--fargate-profile-name Profile-NameS3 Enumeration
List of all the buckets in the aws account
aws s3api list-bucketsGet the information about specified bucket acls
aws s3api get-bucket-acl --bucket bucket-nameGet the information about specified bucket policy
aws s3api get-bucket-policy --bucket bucket-nameRetrieves the Public Access Block configuration for an Amazon S3 bucket
aws s3api get-public-access-block --bucket bucket-nameList of all the objects in specified bucket
aws s3api list-objects --bucket bucket-nameGet the aclsinformation about specified object
aws s3api get-object-acl--bucket bucket-name--key object-nameSearching s3 buckets online for any organization. :
https://buckets.grayhatwarfare.com/
AWS RDS Enumeration
Describes the Information about the clusters in RDS
aws rds describe-db-clusters Describes the Information about the database instances in RDS
aws rds describe-db-instances Describes the Information about the subnet groups in RDS
aws rds describe-db-subnet-groups Describes the Information about the database security groups in RDS
aws rds describe-db-security-groups Describes the Information about the database proxies in RDS
aws rds describe-db-proxies EBS Enumeration
Describes the Information about EBS volumes
aws ec2 describe-volumes Describes about all the available EBS snapshots
aws ec2 describe-snapshots --owner-ids selfAWS Secret Manager Enumeration
Secret Manager
Lists of the all secrets that are stored by Secrets Manager
aws secretsmanager list-secrets Describes about specified secret
aws secretsmanager describe-secret --secret-id SecretNameGet the resource-based policy that is attached to the specified Secret
aws secretsmanager get-resource-policy --secret-id SecretIDKey Management Server
Lists of the all keys available in key management server (KMS)
aws kms list-keysDescribes about specified key
aws kms describe-key--key-id KeyIDLists of policies attached to specified key
aws kms list-key-policies --key-id KeyIDGet full information about a policy
aws kms get-key-policy --policy-name policy-name--key-id key-idPacu
am__enum_users_roles_policies_groupsAfter that you can type
datain order to see the results.
For enumeration in databases
run dynamodb__enumHere is the list of all Pacu modules in order to do enumeration
[Category: ENUM]
inspector__get_reports
dynamodb__enum
apigateway__enum
iam__bruteforce_permissions
rds__enum_snapshots
cloudformation__download_data
iam__detect_honeytokens
iam__get_credential_report
systemsmanager__download_parameters
lambda__enum
iam__enum_permissions
rds__enum
route53__enum
acm__enum
enum__secrets
codebuild__enum
ec2__download_userdata
ecr__enum
aws__enum_account
ecs__enum_task_def
iam__enum_users_roles_policies_groups
aws__enum_spend
ebs__enum_volumes_snapshots
ec2__enum
glue__enum
eks__enum
guardduty__list_accounts
ecs__enum
ec2__check_termination_protection
transfer_family__enum
lightsail__enum
guardduty__list_findingsLast updated