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 table

AWS

Shodan.io query to enumerate AWS Instance Metadata Service Access

/latest/meta-data/iam/security-credentials

Google 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

  1. Get user information:

  1. Test admin authentication:

  1. List user groups:

  1. Attempt sign up

  1. Modify attributes

AWS Trivy Scanning

  1. Install the Trivy AWS plugin: trivy plugin install github.com/aquasecurity/trivy-aws

  2. Scan a full AWS account (all supported services):

  1. Scan a specific service:

  1. 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