Debian Codegraph @

README.md

raw symbols SCIP
1 # cloud_enum
2
3 ## Future of cloud_enum
4
5 I built this tool in 2019 for a pentest involving Azure, as no other enumeration tools supported it at the time. It grew from there, and I learned a lot while adding features.
6
7 Building tools is fun, but maintaining tools is hard. I haven't actively used this tool myself in a while, but I've done my best to fix bugs and review pull requests.
8
9 Moving forward, it makes sense to consolidate this functionality into a well-maintained project that handles the essentials (web/dns requests, threading, I/O, logging, etc.). [Nuclei](https://github.com/projectdiscovery/nuclei) is really well suited for this. You can see my first PR to migrate cloud_enum functionality to Nuclei [here](https://github.com/projectdiscovery/nuclei-templates/pull/6865).
10
11 I encourage others to contribute templates to Nuclei, allowing us to focus on detecting cloud resources while leaving the groundwork to Nuclei.
12
13 I'll still try to review PRs here to address bugs as time permits, but likely won't have time for major changes.
14
15 Thanks to all the great contributors. Good luck with your recon!
16
17 ## Overview
18
19 Multi-cloud OSINT tool. Enumerate public resources in AWS, Azure, and Google Cloud.
20
21 Currently enumerates the following:
22
23 **Amazon Web Services**:
24 - Open / Protected S3 Buckets
25 - awsapps (WorkMail, WorkDocs, Connect, etc.)
26
27 **Microsoft Azure**:
28 - Storage Accounts
29 - Open Blob Storage Containers
30 - Hosted Databases
31 - Virtual Machines
32 - Web Apps
33
34 **Google Cloud Platform**
35 - Open / Protected GCP Buckets
36 - Open / Protected Firebase Realtime Databases
37 - Google App Engine sites
38 - Cloud Functions (enumerates project/regions with existing functions, then brute forces actual function names)
39 - Open Firebase Apps
40
41 See it in action in [Codingo](https://github.com/codingo)'s video demo [here](https://www.youtube.com/embed/pTUDJhWJ1m0).
42
43 <img src="https://initstring.keybase.pub/host/images/cloud_enum.png" align="center"/>
44
45
46 ## Usage
47
48 ### Setup
49 This project uses [uv](https://github.com/astral-sh/uv) for dependency management. Install uv, then run:
50
51 ```sh
52 uv sync
53 ```
54
55 ### Running
56 The only required argument is at least one keyword. You can use the built-in fuzzing strings, but you will get better results if you supply your own with `-m` and/or `-b`.
57
58 You can provide multiple keywords by specifying the `-k` argument multiple times.
59
60 Keywords are mutated automatically using strings from `enum_tools/fuzz.txt` or a file you provide with the `-m` flag. Services that require a second-level of brute forcing (Azure Containers and GCP Functions) will also use `fuzz.txt` by default or a file you provide with the `-b` flag.
61
62 Let's say you were researching "somecompany" whose website is "somecompany.io" that makes a product called "blockchaindoohickey". You could run the tool like this:
63
64 ```sh
65 uv run cloud_enum -k somecompany -k somecompany.io -k blockchaindoohickey
66 ```
67
68 HTTP scraping and DNS lookups use 5 threads each by default. You can try increasing this, but eventually the cloud providers will rate limit you. Here is an example to increase to 10.
69
70 ```sh
71 uv run cloud_enum -k keyword -t 10
72 ```
73
74 **IMPORTANT**: Some resources (Azure Containers, GCP Functions) are discovered per-region. To save time scanning, there is a "REGIONS" variable defined in `cloudenum/azure_regions.py and cloudenum/gcp_regions.py` that is set by default to use only 1 region. You may want to look at these files and edit them to be relevant to your own work.
75
76 **Complete Usage Details**
77 ```
78 usage: cloud_enum.py [-h] -k KEYWORD [-m MUTATIONS] [-b BRUTE]
79
80 Multi-cloud enumeration utility. All hail OSINT!
81
82 optional arguments:
83 -h, --help show this help message and exit
84 -k KEYWORD, --keyword KEYWORD
85 Keyword. Can use argument multiple times.
86 -kf KEYFILE, --keyfile KEYFILE
87 Input file with a single keyword per line.
88 -m MUTATIONS, --mutations MUTATIONS
89 Mutations. Default: enum_tools/fuzz.txt
90 -b BRUTE, --brute BRUTE
91 List to brute-force Azure container names. Default: enum_tools/fuzz.txt
92 -t THREADS, --threads THREADS
93 Threads for HTTP brute-force. Default = 5
94 -ns NAMESERVER, --nameserver NAMESERVER
95 DNS server to use in brute-force.
96 -l LOGFILE, --logfile LOGFILE
97 Will APPEND found items to specified file.
98 -f FORMAT, --format FORMAT
99 Format for log file (text,json,csv - defaults to text)
100 --disable-aws Disable Amazon checks.
101 --disable-azure Disable Azure checks.
102 --disable-gcp Disable Google checks.
103 -qs, --quickscan Disable all mutations and second-level scans
104 ```
105
106 ## Thanks
107 So far, I have borrowed from:
108 - Some of the permutations from [GCPBucketBrute](https://github.com/RhinoSecurityLabs/GCPBucketBrute/blob/master/permutations.txt)