Cloud Pen-testing Part -3
## Microsoft Azure & O365 CLI Tool Cheatsheet (Part-3)
### Other Azure & O365 Tools
#### Look for open storage blobs
```powershell
Invoke-EnumerateAzureBlobs -Base $BaseNameExport SSL/TLS certs
Get-AzPasswords -ExportCerts YAzure Container Registry dump
Get-AzPasswords
Get-AzACRPowerZure
Azure security assessment tool
https://github.com/hausec/PowerZure
ROADTools
Framework to interact with Azure AD
https://github.com/dirkjanm/ROADtools
Stormspotter
Red team tool for graphing Azure and Azure AD objects
https://github.com/Azure/Stormspotter
MSOLSpray
Tool to password spray Azure/O365
Amazon Web Services (AWS) CLI Tool Cheatsheet
Authentication
Open S3 bucket enumeration
List the contents of an S3 bucket
Download contents of a bucket
Account Information
Get basic account info
List IAM users
List IAM roles
List S3 buckets accessible to an account
Virtual Machines
List EC2 instances
WebApps & SQL
List WebApps
Serverless
List Lambda Functions
Look at environment variables set for secrets and analyze code
Networking
List EC2 subnets
List EC2 network interfaces
List DirectConnect (VPN) connections
Backdoors
List access keys for a user
Backdoor account with a second set of access keys
Instance Metadata Service URL
Additional IAM credentials possibly available here
Can potentially hit it externally if a proxy service (like Nginx) is being hosted in AWS and misconfigured
IMDS Version 2 has some protections, but these commands can be used to access it
Last updated
Was this helpful?