🛡️ CloudDetectX
Find it. Prove it. Seal it. Find exposed cloud storage and risky account settings, prove what's reachable and what's inside, see who got in, and fix it, with a report at the end.
CloudDetectX checks AWS, Azure and Google Cloud for misconfigurations using your existing cloud logins. It runs as a local web dashboard, an interactive terminal UI, or scriptable commands.
Screenshots use a simulated AWS account with fake data.
What it does
- Storage exposure: public ACLs, policies, containers and access points; missing Block Public Access / Public Access Prevention; buckets shared with other accounts; CloudFront without origin access control.
- Account-wide checks: audit logging (CloudTrail, Activity Log, Data Access logs), root MFA and keys, password policy, firewalls open to the internet, public databases and snapshots, Kubernetes endpoints, KMS rotation, EBS default encryption.
- IAM: AWS users/roles/groups, Azure RBAC and GCP IAM. Finds admins, full-storage access, who can make buckets public, missing MFA and old keys, and who can access each bucket.
- Proof and content: anonymous requests prove what's reachable; data discovery finds secrets and personal data in text, PDF, Word/Excel/PowerPoint, zip/tar/gzip and Parquet files. Every match is redacted.
- Investigation: who downloaded what and from where, and who made it public, tagged with MITRE ATT&CK.
- Scores and compliance: risk per resource, a graded security score, and pass rates for NIST 800-53, CIS Controls v8, ISO 27001 and the CIS cloud benchmarks.
- Fix and undo: removes public access only, keeps other permissions, and can roll back from the saved configuration.
- Accept risks: mark intended exposure (e.g. a website bucket) with a reason and expiry date. It stops counting until it expires.
- Scale: parallel scanning and all accounts at once (AWS Organizations, every Azure subscription, every GCP project).
- Reports and monitoring: incident and compliance reports (Markdown, JSON, PDF), SARIF / OCSF / CSV exports, scan history and drift, webhook alerts, and scheduled scans (Task Scheduler / cron).
Quick start
git clone https://github.com/dipanshwave/CloudDetectX-exposure-detector
cd CloudDetectX-exposure-detector
python -m venv .venv
.venv\Scripts\activate # Linux/macOS: source .venv/bin/activate
pip install -r requirements.txt # or: pip install . (adds a `clouddetectx` command)
python main.py web # dashboard; the first visit opens the setup wizard
Everything is configured in the app: the setup wizard, Settings (web or terminal), or python main.py config. Settings go to .env (git-ignored). Secrets such as the webhook URL go to your OS keychain when one is available. When installed with pip, settings live in %APPDATA%\clouddetectx (Windows) or ~/.config/clouddetectx.
Usage
python main.py web # web dashboard at http://127.0.0.1:8765
python main.py # interactive terminal menus
python main.py -p aws,azure,gcp scan # scan + account checks + drift + alerts
python main.py -p aws scan --all-accounts # every Organizations account / subscription / project
python main.py -p aws account # IAM and account-wide findings
python main.py -p aws verify my-bucket # test from the internet, no credentials
python main.py -p aws discover my-bucket # find secrets / personal data (redacted)
python main.py -p aws investigate my-bucket --days 90
python main.py -p aws remediate my-bucket --dry-run
python main.py rollback INC-20261118-054001-aws-my-bucket
python main.py -p aws waivers add my-website --check '*' --reason "public website" --expires 2027-06-30
python main.py -p aws compliance --report --pdf
python main.py -p aws export --format sarif -o findings.sarif # also: ocsf, csv, all
python main.py -p aws schedule install --every 1440 # daily scan via Task Scheduler / cron
Exit codes: 0 nothing exposed, 2 exposure found, 1 error. Run python main.py <command> --help for options.
Screenshots
| Account & IAM | Access & encryption |
|---|---|
| Accepted risk | Rollback |
| Data discovery | Compliance |
More are in docs/screenshots: setup wizard, investigation, exposure test, remediation, history, settings and CLI output.
Safety
- Read-only by default. Only remediation and rollback change anything. Both show the plan first and need you to type the resource name (or
-yin scripts). - Minimal, reversible changes. Only public access is removed (plus optional
--harden). The previous configuration is saved in the report, androllbackrestores it. - Secrets stay redacted in reports, history, exports and the dashboard. Credentials go to the OS keychain.
- The dashboard is local only: it listens on
127.0.0.1and is opened with a one-time link.
Permissions
| Read-only (scan, account, investigate) | Discovery | Remediation and rollback | |
|---|---|---|---|
| AWS | SecurityAudit + s3:GetObject on log buckets |
s3:ListBucket, s3:GetObject |
s3:PutBucketPublicAccessBlock, PutBucketAcl, PutBucketPolicy, DeleteBucketPolicy, PutObjectAcl |
| Azure | Reader, Monitoring Reader, Log Analytics Reader |
Storage Blob Data Reader |
Storage Account Contributor |
| GCP | roles/iam.securityReviewer, roles/logging.privateLogViewer, roles/cloudsql.viewer, roles/compute.viewer, roles/container.viewer |
roles/storage.objectViewer |
storage.buckets.update, storage.buckets.setIamPolicy, storage.objects.setIamPolicy |
All accounts: AWS needs organizations:ListAccounts in the management (or delegated admin) account, plus a read-only role in each member account (set its name under Settings > AWS). Azure and GCP use every subscription/project your login can read.
First real run: start with python main.py whoami, then a read-only scan. If a check lacks permission it is skipped and listed, never fatal. Limit account checks to the regions you use under Settings > AWS > Regions for account checks for faster scans.
Limits
- Not a full CSPM: storage, IAM and the account-wide checks above are covered. Compute instance settings, serverless code, container images and IaC aren't.
- IAM analysis reads policies directly. It doesn't evaluate SCPs, permission boundaries or condition values (marked "conditional"). Azure principals are shown by object ID.
- Compliance mapping is audit evidence, not a certification.
- Discovery can't read images, 7z/rar archives or encrypted PDFs. Reading objects can incur request/egress charges.
Development
pip install -r requirements.txt -r requirements-dev.txt
python -m pytest # 45 tests; AWS is simulated with moto, nothing touches real clouds
CI runs the suite on Linux and Windows (.github/workflows/tests.yml).
clouddetectx/
├── providers/ aws.py, azure.py, gcp.py (storage checks, remediation, rollback)
├── checks/ account-wide checks and Azure/GCP IAM
├── web/ local dashboard (FastAPI + plain JS)
├── cli.py commands interactive.py terminal UI
├── engine.py scan workflow waivers.py accepted risks
├── iam.py AWS IAM analysis sensitive.py data discovery
├── compliance.py control maps reporting.py reports
├── export.py SARIF/OCSF/CSV/PDF schedule.py scheduled scans
└── ... state, history, risk, alerts, probe, analysis
MIT licensed. For authorised use only: scan only accounts you own or have permission to assess.
Metadata
Release files for clouddetectx 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clouddetectx-3.0.0.tar.gz | 191.8 kB | With provenance | Details for clouddetectx-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clouddetectx-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for clouddetectx-3.0.0-py3-none-any.whl |
Total release size: 384.4 kB
Release files / clouddetectx-3.0.0.tar.gz
| Download URL | clouddetectx-3.0.0.tar.gz |
|---|---|
| Size | 191.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31e46a8b2bb14d7f0e3b2c65a96b0426a863295cbe70d24702a0126857fbc4c6
|
|
BLAKE2b-256 checksum How to use checksums |
0f32185c0f6fc1e2c697d446243f57f34eaad22c019848d8bb7d38398da92ec9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / clouddetectx-3.0.0-py3-none-any.whl
| Download URL | clouddetectx-3.0.0-py3-none-any.whl |
|---|---|
| Size | 192.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd002ab153a42bfd46f83bd1e2a104eee9988a159d3e818619ffa01950a2e7d3
|
|
BLAKE2b-256 checksum How to use checksums |
f316c45111f3b0e1f35081ec59ef2f495e0610c586fb25dbeab2471162d8e94c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for clouddetectx 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for clouddetectx-3.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.