AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Cloud Pivot Finder

skill-orizon-eu-claude-code-pentest-cloud-pivot-finder · by Orizon-eu

Maps cloud infrastructure from domains and identifies pivot paths from external to cloud internals. Detects cloud providers, enumerates S3/GCS/Azure storage, finds subdomain takeover opportunities, discovers serverless functions, CI/CD exposure, and IaC leaks. Use when user asks for "cloud security", "S3 enumeration", "subdomain takeover", "cloud recon", "bucket enumeration", "cloud pivot", or pr…

No reviews yet
0 installs
41 views
0.0% view→install

Install

$ agentstack add skill-orizon-eu-claude-code-pentest-cloud-pivot-finder

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-orizon-eu-claude-code-pentest-cloud-pivot-finder)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Cloud Pivot Finder? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Cloud Pivot Finder

From external domains to cloud infrastructure compromise paths.

Important

CRITICAL: Only test cloud infrastructure you have explicit authorization to test. Unauthorized access to cloud resources is a criminal offense.

Instructions

Step 1: Cloud Provider Detection

python scripts/cloud_detector.py --domain {target_domain}

Identify cloud hosting:

  1. IP range analysis: Match IPs against AWS, GCP, Azure published IP ranges
  2. DNS analysis: CNAME patterns (.amazonaws.com, .googleusercontent.com, *.azurewebsites.net)
  3. Header analysis: Server headers, X-Amz-, X-GUploader-, x-ms-* headers
  4. Certificate analysis: Issuer and SAN entries pointing to cloud services
  5. CDN detection: CloudFront, Cloud CDN, Azure CDN distributions

Output: Map of domain -> cloud provider -> service type.

Step 2: Storage Bucket Enumeration

python scripts/bucket_enum.py --domain {target_domain} --provider {aws|gcp|azure|all}

Naming pattern brute-force:

  • {domain}, {domain}-backup, {domain}-dev, {domain}-staging
  • {company}-assets, {company}-uploads, {company}-data
  • {project}-{env} combinations

Per-provider testing:

  • S3: Check for public ListBucket, GetObject, PutObject
  • GCS: Check for allUsers/allAuthenticatedUsers permissions
  • Azure Blob: Check for public container access

For each accessible bucket:

  1. List contents (if ListBucket allowed)
  2. Check for sensitive files (.env, credentials, backups, database dumps)
  3. Test write access (attempt to upload test file, delete immediately)
  4. Check bucket policy for overly permissive configurations

Step 3: Subdomain Takeover Detection

python scripts/takeover_scanner.py --subdomains {subdomain_list}

Check every subdomain's CNAME for dangling references:

  • AWS: S3, CloudFront, Elastic Beanstalk, ELB
  • Azure: Azure Websites, Traffic Manager, CDN, Blob
  • GCP: Cloud Storage, App Engine, Firebase
  • Other: Heroku, GitHub Pages, Fastly, Shopify, Zendesk, Unbounce, Surge.sh

For each dangling CNAME:

  1. Verify the target is actually unclaimed
  2. Determine the takeover method
  3. Assess impact (cookie scope, same-origin policy implications)
  4. Generate takeover PoC instructions

Step 4: Serverless and Container Discovery

python scripts/serverless_finder.py --domain {target_domain}

Discover:

  • Lambda Function URLs: {function-id}.lambda-url.{region}.on.aws
  • API Gateway: {api-id}.execute-api.{region}.amazonaws.com
  • Cloud Functions: {region}-{project}.cloudfunctions.net
  • Cloud Run: *.run.app
  • Azure Functions: {app}.azurewebsites.net/api/
  • Container registries: ECR, GCR, ACR public images

Test each for:

  • Unauthenticated access
  • Error messages revealing internal details
  • Excessive function output (debug mode)

Step 5: CI/CD and IaC Exposure

python scripts/cicd_finder.py --domain {target_domain}

Search for:

  • Exposed CI/CD: Jenkins, GitLab CI, GitHub Actions artifacts
  • Terraform state files: .tfstate files on S3/GCS/HTTP
  • CloudFormation templates: Exposed template files
  • Docker/K8s configs: docker-compose.yml, kubernetes manifests
  • Helm charts: values.yaml with secrets
  • Environment files: .env files with cloud credentials

Step 6: Cloud Metadata Pivot Paths

python scripts/metadata_paths.py --recon-data {recon_json}

For each web application on cloud infrastructure:

  1. Identify potential SSRF vectors (URL parameters, PDF generators, webhooks)
  2. Map the SSRF -> metadata -> credential chain
  3. Assess what the IAM role/service account can access
  4. Document the complete pivot path

Step 7: Report Generation

python scripts/cloud_report.py --project {name}

Output:

  1. Cloud infrastructure map
  2. Accessible storage buckets with content inventory
  3. Subdomain takeover opportunities
  4. Serverless/container exposure
  5. CI/CD and IaC exposure
  6. Pivot paths from web to cloud
  7. Prioritized remediation plan

Error Handling

Rate Limiting on Cloud APIs

  1. S3 listing: Built-in exponential backoff
  2. DNS resolution: Use multiple resolvers
  3. If blocked: Reduce concurrency with --threads 5

No Cloud Infrastructure Detected

If domain appears to be on-premise:

  1. Still check for cloud storage buckets (may use S3 for backups)
  2. Check for CI/CD exposure (GitHub Actions, etc.)
  3. Inform user and suggest alternative approaches

Examples

Example 1: Full Cloud Assessment

User says: "Map the cloud infrastructure for example.com"

Actions:

  1. Detect cloud providers
  2. Enumerate storage buckets
  3. Check for subdomain takeover
  4. Find serverless endpoints
  5. Check CI/CD exposure
  6. Map pivot paths
  7. Generate comprehensive report

Example 2: S3 Bucket Hunt

User says: "Find S3 buckets for example.com"

Actions:

  1. Generate naming patterns from domain/company name
  2. Test each pattern for existence
  3. Check permissions on found buckets
  4. List accessible contents
  5. Report findings

Example 3: Subdomain Takeover Scan

User says: "Check for subdomain takeover on these 50 subdomains"

Actions:

  1. Resolve CNAME for each subdomain
  2. Check each CNAME against takeover fingerprints
  3. Verify dangling references
  4. Generate takeover PoC for confirmable targets

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.