cloud-recon
它能做什么
本知识库介绍安全团队如何识别托管在云上的资产、存储桶和暴露的云服务。适用于梳理组织云攻击面的云团队和经授权的测试人员。
适用场景
- ✓当云团队需要整理其公共存储桶和服务的清单时。
- ✓当经授权的测试需要确定公司网站由哪家云服务商托管时。
- ✓当安全团队想检查云存储配置错误时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/cloud-recon/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“能否列出属于我们公司的公共云存储和服务,以便我们检查它们的设置?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查 DNS 记录和响应头以识别云服务商,查找公司的存储命名规律,并报告哪些资产需要检查设置。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Cloud Infrastructure Reconnaissance Knowledge Base
Cloud reconnaissance identifies cloud-hosted assets, misconfigured storage, exposed services, and cloud-specific attack surfaces. Modern organizations run hybrid infrastructure — cloud recon is essential for complete attack surface mapping.
1. Cloud Provider Detection
Fingerprinting via DNS/Headers
See references/cloud-ip-ranges.md for the full CNAME → provider mapping table and response header fingerprinting. See references/cloud-naming-patterns.md for bucket/resource naming dictionaries.
# Check CNAME records for cloud indicators
dig <target> CNAME +short
# Common cloud CNAME patterns:
# AWS: *.amazonaws.com, *.cloudfront.net, *.elasticbeanstalk.com
# Azure: *.azurewebsites.net, *.blob.core.windows.net, *.azure-api.net
# GCP: *.googleapis.com, *.appspot.com, *.run.app, *.cloudfunctions.net
# Cloudflare: *.cdn.cloudflare.net
# Check IP ranges (AWS)
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | python3 -c "
import sys, json, ipaddress
data = json.load(sys.stdin)
target = ipaddress.ip_address('<TARGET_IP>')
for prefix in data['prefixes']:
if target in ipaddress.ip_network(prefix['ip_prefix']):
print(f\"AWS Region: {prefix['region']}, Service: {prefix['service']}\")
"
Cloud Service Indicators
| Indicator | Provider | Service |
|---|---|---|
s3.amazonaws.com CNAME |
AWS | S3 Storage |
X-Amz-* headers |
AWS | Various |
X-Ms-* headers |
Azure | Various |
X-Cloud-Trace-Context header |
GCP | Cloud Run/Functions |
*.elasticbeanstalk.com CNAME |
AWS | Elastic Beanstalk |
*.azurewebsites.net CNAME |
Azure | App Service |
*.appspot.com CNAME |
GCP | App Engine |
2. AWS Enumeration
S3 Bucket Discovery
# Common naming patterns
for prefix in <target> <target>-backup <target>-dev <target>-staging \
<target>-prod <target>-assets <target>-uploads <target>-logs \
<target>-data <target>-media www.<target> cdn.<target>; do
# Check if bucket exists
code=$(curl -s -o /dev/null -w "%{http_code}" "https://$prefix.s3.amazonaws.com/")
echo "$code $prefix.s3.amazonaws.com"
done
# Check bucket ACL (if accessible)
curl -s "https://<bucket>.s3.amazonaws.com/?acl"
# List bucket contents (if public)
curl -s "https://<bucket>.s3.amazonaws.com/?list-type=2&max-keys=20"
S3 Bucket Takeover Detection
# If a subdomain CNAMEs to S3 but bucket doesn't exist:
# Response: "NoSuchBucket" → Takeover candidate
curl -s "https://assets.example.com/" | grep -i "NoSuchBucket"
AWS Service Enumeration
# Check for exposed EC2 metadata (SSRF target)
# Internal: http://169.254.169.254/latest/meta-data/
# IMDSv2 requires token — check if v1 is still enabled
# Elastic Beanstalk environment discovery
dig <target>.elasticbeanstalk.com +short
# CloudFront origin detection
curl -sI "https://<target>" | grep -i "x-amz\|x-cache\|via.*cloudfront"
# API Gateway detection
curl -s "https://<api-id>.execute-api.<region>.amazonaws.com/prod/"
3. Azure Enumeration
Azure Blob Storage
# Common storage account patterns
for name in <target> <target>storage <target>data <target>backup \
<target>dev <target>prod; do
code=$(curl -s -o /dev/null -w "%{http_code}" "https://$name.blob.core.windows.net/")
echo "$code $name.blob.core.windows.net"
done
# Enumerate containers (if listing enabled)
curl -s "https://<account>.blob.core.windows.net/<container>?restype=container&comp=list"
# Check for anonymous access
curl -s "https://<account>.blob.core.windows.net/\$web/index.html"
Azure Service Discovery
# Azure App Service
dig <target>.azurewebsites.net +short
# Azure Functions
curl -s "https://<target>.azurewebsites.net/api/<function>"
# Azure API Management
dig <target>.azure-api.net +short
# Azure DevOps (public projects)
curl -s "https://dev.azure.com/<org>/_apis/projects?api-version=7.0"
Azure Subdomain Patterns
*.azurewebsites.net → App Service
*.blob.core.windows.net → Blob Storage
*.table.core.windows.net → Table Storage
*.queue.core.windows.net → Queue Storage
*.file.core.windows.net → File Storage
*.database.windows.net → SQL Database
*.redis.cache.windows.net → Redis Cache
*.vault.azure.net → Key Vault
*.azure-api.net → API Management
*.azureedge.net → CDN
4. GCP Enumeration
GCP Storage Buckets
# Common GCP buck
常见问题
如何识别服务商?
通过 DNS 名称规律、响应头以及公布的服务商地址范围。
什么是配置错误的存储桶?
指允许公开访问、但本不应允许公开访问的存储桶。
谁应该运行这个?
检查自身资产的云团队和安全团队,或经授权的测试人员。
详情
作者的原始描述
Cloud infrastructure enumeration — AWS S3 buckets, Azure blob storage, GCP buckets, cloud metadata endpoints, IAM misconfigurations, CDN origin detection.
热度
- GitHub 星标
- 6.5k
- 排名
- #14142
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …