Cloud TTPs
Azure
Enumerate for Priv Esc:
# Login
$ az login -u <user> -p <password>
# Set Account Subscription
$ az account set --subscription "Pay-As-You-Go"
# Enumeration for Priv Esc
$ az ad user list -o table
$ az role assignment list -o tableAWS
Shodan.io query to enumerate AWS Instance Metadata Service Access
/latest/meta-data/iam/security-credentialsGoogle Dorking for AWS Access Keys
inurl:pastebin "AWS_ACCESS_KEY"Recursively searching for AWS Access Keys on *Nix containers
S3 Log Google Dorking
Public Redshift Cluster Enumeration
Python code to check if AWS key has permissions to read s3 buckets:
Find S3 Buckets Using Subfinder and HTTPX Tool
Cognito
[!NOTE] Before proceeding, capture the session's JWT during login and save to a file (ex:
access_token.txt) This can be accomplished using your browser developer tools or another method
Get user information:
Test admin authentication:
List user groups:
Attempt sign up
Modify attributes
AWS Trivy Scanning
Install the Trivy AWS plugin:
trivy plugin install github.com/aquasecurity/trivy-awsScan a full AWS account (all supported services):
Scan a specific service:
Show results for a specific AWS resource:
SSM
Script to quickly enumerate and select AWS SSM-managed EC2 instances via fzf, then start an SSM session without needing SSH or public access.
Parameter Store:
Lists the parameters in the AWS account or the parameters shared with the authenticated user (secrets can be stored here):
API Gateway
AWS API Gateway is a service offered by Amazon Web Services (AWS) designed for developers to create, publish, and oversee APIs on a large scale. It functions as an entry point to an application, permitting developers to establish a framework of rules and procedures. This framework governs the access external users have to certain data or functionalities within the application.
Enumeration:
GCP
Enumerate IP addresses:
SSRF URL:
Cloud Subdomain Takeover
Kubernetes Secrets Harvesting
Kubernetes Service Enumeration
You can find everything exposed to the public with:
Kubernetes Ninja Commands
Password Hunting Regex
Go Environment Variable Enumeration
A sample script that enumerates environment variables. This script pairs well with the regex list provided above:
Jira
Privileges
In Jira, privileges can be checked by any user, authenticated or not, through the endpoints /rest/api/2/mypermissions or /rest/api/3/mypermissions. These endpoints reveal the user's current privileges.
Pentesting Kafka
Use Nmap to detect Kafka brokers and check for open ports:
List brokers via kafkacat:
Enumerating brokers script:
Save messages for offline analysis;
Last updated