agentleFS
kaandgnshkaandgnsh/Claude-Blue/skills/cloud-security/cloud-exposure-review/SKILL.md

cloud-exposure-review

Skill0 starsChanged 12 days agoMITView on GitHub

Identify internet exposure across cloud estates — public IPs and load balancers, open security groups/NSGs/firewall rules, public storage and snapshots, exposed databases and managed services, serverless URLs, public container registries — and validate what is actually reachable. Use when mapping the cloud attack surface, after a misconfiguration incident, or before a pen test.

The file

Files
SKILL.md

Cloud Exposure Review

Inventory queries

AWS:

aws ec2 describe-instances --query 'Reservations[].Instances[?PublicIpAddress].[InstanceId,PublicIpAddress,MetadataOptions.HttpTokens]' --output text
aws elbv2 describe-load-balancers --query 'LoadBalancers[?Scheme==`internet-facing`].[LoadBalancerName,DNSName]'
aws rds describe-db-instances --query 'DBInstances[?PubliclyAccessible].[DBInstanceIdentifier,Endpoint.Address]'
aws ec2 describe-snapshots --owner-ids self --query 'Snapshots[].SnapshotId' --output text | xargs -n1 -I{} aws ec2 describe-snapshot-attribute --snapshot-id {} --attribute createVolumePermission --query 'CreateVolumePermissions'
aws lambda list-function-url-configs --function-name F    # per function; AuthType NONE = public

Azure (Resource Graph):

az graph query -q "Resources | where type =~ 'microsoft.network/publicipaddresses' | project name, properties.ipAddress, properties.ipConfiguration.id"
az graph query -q "Resources | where type =~ 'microsoft.storage/storageaccounts' | where properties.allowBlobPublicAccess == true | project name, resourceGroup"

GCP (Cloud Asset Inventory):

gcloud asset search-all-resources --scope=organizations/ORG --asset-types=compute.googleapis.com/Address --query="addressType:EXTERNAL"
gcloud asset search-all-iam-policies --scope=organizations/ORG --query="policy:allUsers OR policy:allAuthenticatedUsers"

Validate reachability

Rules can be shadowed by other layers (NACLs, WAF, private endpoints). Confirm with an external scan of your own IPs (authorized, external-attack-surface-review) or provider reachability analyzers (AWS Network Access Analyzer / Reachability Analyzer, Azure Network Watcher, GCP Connectivity Tests).

Prioritize

Data stores and admin interfaces reachable from the internet first; then compute with privileged identities; then everything else. For each exposed resource record: owner, purpose, data, auth, intended (y/n).

Related skills

cloud-posture-assessment, s3-exposure-review, firewall-rule-review, external-attack-surface-review, cloud-firewall-build

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.