{
  "markdown": "<p align=\"center\">\n  <img src=\"assets/logo-nobg.png\" alt=\"cloud-audit logo\" width=\"200\">\n</p>\n\n<!-- mcp-name: io.github.gebalamariusz/cloud-audit -->\n<h1 align=\"center\">cloud-audit</h1>\n\n<p align=\"center\">\n  <a href=\"README.md\">English</a> | <a href=\"README_zh-CN.md\">简体中文</a>\n</p>\n\n<p align=\"center\">\n  <strong>Find AWS attack paths, IAM escalation routes, and the fixes that matter most.</strong>\n</p>\n\n<p align=\"center\">\n  Open-source, read-only AWS security scanner. It correlates findings into attack chains,\n  ranks fixes by how many chains they break, and ships an <strong>AWS CLI + Terraform fix with\n  every finding</strong>. No agent, no infrastructure, nothing written to your account.\n</p>\n\n<p align=\"center\">\n  <a href=\"https://pypi.org/project/cloud-audit/\"><img src=\"https://img.shields.io/pypi/v/cloud-audit?style=flat\" alt=\"PyPI version\"></a>\n  <a href=\"https://pypi.org/project/cloud-audit/\"><img src=\"https://img.shields.io/pypi/pyversions/cloud-audit?style=flat\" alt=\"Python versions\"></a>\n  <a href=\"https://github.com/gebalamariusz/cloud-audit/actions/workflows/ci.yml\"><img src=\"https://github.com/gebalamariusz/cloud-audit/actions/workflows/ci.yml/badge.svg\" alt=\"CI\"></a>\n  <a href=\"https://opensource.org/licenses/MIT\"><img src=\"https://img.shields.io/badge/License-MIT-yellow?style=flat\" alt=\"License: MIT\"></a>\n  <a href=\"https://ghcr.io/gebalamariusz/cloud-audit\"><img src=\"https://img.shields.io/badge/Docker-GHCR-blue?style=flat&logo=docker\" alt=\"Docker\"></a>\n  <a href=\"https://haitmg.pl/cloud-audit/\"><img src=\"https://img.shields.io/badge/Docs-haitmg.pl-blue?style=flat\" alt=\"Documentation\"></a>\n</p>\n\n<p align=\"center\">\n  <a href=\"#quick-start\">Quick Start</a> -\n  <a href=\"#what-you-get\">What You Get</a> -\n  <a href=\"#installation\">Installation</a> -\n  <a href=\"#whats-checked\">What's Checked</a> -\n  <a href=\"https://haitmg.pl/cloud-audit/\">Documentation</a>\n</p>\n\n## Quick Start\n\n```bash\npip install cloud-audit\ncloud-audit scan          # uses your default AWS credentials and region\n```\n\nNo AWS account handy? Run a full sample report offline:\n\n```bash\ncloud-audit demo\n```\n\ncloud-audit is **read-only**. It never modifies your infrastructure; `SecurityAudit` is enough ([permissions](#aws-permissions)).\n\n## Example Output\n\n```\n+---- Attack Chains (5 detected) -----------------------------------+\n|  CRITICAL  Internet-Exposed Admin Instance                        |\n|            i-0abc123 - public SG + admin IAM role + IMDSv1        |\n|  CRITICAL  IAM Privilege Escalation via iam:PassRole              |\n|            ci-deploy-role - 3-step path to admin                  |\n|  CRITICAL  CI/CD to Admin Takeover                                |\n|            github-deploy - OIDC without sub + admin policy        |\n+-------------------------------------------------------------------+\n\n+---- Remediation Plan ---------------------------------------------+\n|  Fix 4 root causes, break 22 attack chains                        |\n|  Quick wins (effort LOW, 14 chains):                              |\n|    1. Restrict SG ingress on sg-0abc123   -> breaks 8 chains      |\n|    2. Add OIDC sub condition              -> breaks 6 chains      |\n+-------------------------------------------------------------------+\n```\n\nPreview a fix before you touch anything:\n\n```bash\ncloud-audit simulate --fix aws-vpc-002\n# Score 34 -> 58 (+24)  |  Chains broken 8 of 22  |  Findings resolved 11\n```\n\n## What You Get\n\n- **Attack chains** // 31 rules correlate individual findings into exploitable paths (MITRE ATT&CK + pathfinding.cloud). [docs](https://haitmg.pl/cloud-audit/features/attack-chains/)\n- **Root-cause fixes** // groups findings by shared cause and ranks them: \"fix 4 things, break 22 chains,\" with a what-if `simulate` to preview impact. [docs](https://haitmg.pl/cloud-audit/features/simulate/)\n- **IAM privilege escalation** // 64 methods across 9 categories, including lateral movement through the AssumeRole graph. [docs](https://haitmg.pl/cloud-audit/features/iam-escalation/)\n- **Blast radius** // walk outward from any resource to see what an attacker reaches; export JSON to the live [visualizer](https://blast-audit.haitmg.pl/). [docs](https://haitmg.pl/cloud-audit/features/blast-radius/)\n- **Proof Mode** // `scan --verify` checks each escalation path against the IAM policy simulator (read-only) and flags the ones the principal can actually perform. [docs](https://haitmg.pl/cloud-audit/features/proof-mode/)\n- **Data perimeter** // resource-policy checks for confused-deputy and cross-org exposure, evaluating condition *values* (not just their presence). [docs](https://haitmg.pl/cloud-audit/features/data-perimeter/)\n- **AgentCore security** // checks for Amazon Bedrock AgentCore AI agents: network mode, MMDSv2, memory encryption, gateway authorizer. [docs](https://haitmg.pl/cloud-audit/features/agentcore/)\n- **Threat Feed** // 10 detectors for active-abuse patterns from 2025-2026 incidents, each with a primary-source citation. [docs](https://haitmg.pl/cloud-audit/features/threat-feed/)\n- **Remediation on every finding** // copy-paste AWS CLI + reviewable Terraform you apply yourself; security findings also carry a USD breach-cost estimate with sources.\n- **Trend & drift** // `cloud-audit diff` catches ClickOps drift between scans; `cloud-audit trend` tracks posture over time.\n\n<p align=\"center\">\n  <a href=\"https://blast-audit.haitmg.pl/\">\n    <img src=\"assets/blast-audit-boardroom.png\" alt=\"blast-audit visualizer - executive briefing view\" width=\"760\">\n  </a>\n  <br>\n  <sub>Drop a <code>cloud-audit blast-radius --format json</code> export into the open visualizer at\n  <a href=\"https://blast-audit.haitmg.pl/\">blast-audit.haitmg.pl</a> - everything runs in your browser.</sub>\n</p>\n\n## Reports\n\n```bash\ncloud-audit scan --format html  -o report.html    # client-ready\ncloud-audit scan --format sarif -o results.sarif  # GitHub Code Scanning\ncloud-audit scan --format json  -o report.json    # machine-readable\ncloud-audit scan --format markdown -o report.md   # PR comments\n```\n\n## CI/CD\n\n```yaml\n- run: pip install cloud-audit\n- run: cloud-audit scan --format sarif --output results.sarif\n- uses: github/codeql-action/upload-sarif@v3\n  with:\n    sarif_file: results.sarif\n```\n\n`--quiet` exits with a code only: `0` clean, `1` findings, `2` error. Gate on severity with `--min-severity high`. Ready-made workflows: [basic scan](examples/github-actions.yml), [daily diff](examples/daily-scan-with-diff.yml), [post-deploy](examples/post-deploy-scan.yml).\n\n## Installation\n\n```bash\npip install cloud-audit                              # pip (recommended)\npipx install cloud-audit                             # isolated\ndocker run ghcr.io/gebalamariusz/cloud-audit scan   # Docker\n```\n\nDocker with credentials:\n\n```bash\ndocker run -v ~/.aws:/home/cloudaudit/.aws:ro ghcr.io/gebalamariusz/cloud-audit scan\n```\n\n## AWS Permissions\n\nRead-only. Attach the AWS-managed `SecurityAudit` policy (covers every check, including IAM escalation analysis):\n\n```bash\naws iam attach-role-policy --role-name auditor \\\n  --policy-arn arn:aws:iam::aws:policy/SecurityAudit\n```\n\ncloud-audit never modifies your infrastructure. `simulate` runs locally against scan data and makes no AWS calls.\n\n## What's Checked\n\n**110 checks across 25 AWS services** - IAM, S3, EC2, VPC, RDS, KMS, CloudTrail, GuardDuty, Lambda, Secrets Manager, Bedrock, SageMaker, Bedrock AgentCore, DynamoDB, and more. Run `cloud-audit list-checks`, or see the [full check reference](https://haitmg.pl/cloud-audit/checks/).\n\n**6 compliance frameworks** via `scan --compliance <id>`: CIS AWS v3.0 and SOC 2 Type II (stable), plus ISO 27001:2022, HIPAA, NIS2, and BSI C5:2020 (beta). [docs](https://haitmg.pl/cloud-audit/compliance/overview/)\n\n**MCP server** for AI agents - 6 read-only tools (`scan_aws`, `get_findings`, `get_attack_chains`, `get_remediation`, `get_health_score`, `list_checks`):\n\n```bash\nclaude mcp add cloud-audit -- uvx --from cloud-audit cloud-audit-mcp\n```\n\n<details>\n<summary>Common flags and configuration</summary>\n\n```bash\ncloud-audit scan -R                                      # show remediation inline\ncloud-audit scan --profile prod --regions eu-central-1   # profile / region\ncloud-audit scan --regions all                           # all enabled regions\ncloud-audit scan --role-arn arn:aws:iam::...:role/audit  # cross-account\ncloud-audit scan --export-fixes fixes.sh                 # export all fixes\n```\n\nConfigure defaults in `.cloud-audit.yml` (regions, `min_severity`, `exclude_checks`, time-boxed `suppressions`). Environment variables (`CLOUD_AUDIT_REGIONS`, `CLOUD_AUDIT_MIN_SEVERITY`, ...) override the file; CLI flags override everything. See the [configuration guide](https://haitmg.pl/cloud-audit/configuration/config-file/).\n\n</details>\n\n## Documentation\n\nFull documentation at **[haitmg.pl/cloud-audit](https://haitmg.pl/cloud-audit/)**: [getting started](https://haitmg.pl/cloud-audit/getting-started/installation/), [attack chains](https://haitmg.pl/cloud-audit/features/attack-chains/), [IAM escalation](https://haitmg.pl/cloud-audit/features/iam-escalation/), [blast radius](https://haitmg.pl/cloud-audit/features/blast-radius/), [Proof Mode](https://haitmg.pl/cloud-audit/features/proof-mode/), [data perimeter](https://haitmg.pl/cloud-audit/features/data-perimeter/), [AgentCore](https://haitmg.pl/cloud-audit/features/agentcore/), [compliance](https://haitmg.pl/cloud-audit/compliance/overview/), and the [full check reference](https://haitmg.pl/cloud-audit/checks/).\n\n## Commercial Support\n\ncloud-audit is free and stays free. If you want a human on the findings, the author offers professional services:\n\n- **Scanner output review (free)** - send your cloud-audit / Prowler / Security Hub output, get a short written review of what actually matters and what to fix first\n- **AWS security audit** - full account audit with a prioritized report and ready-to-apply fixes\n- **Remediation support** - Terraform and IAM changes, verified against your workloads\n- **Palo Alto VM-Series on AWS** - architecture and security review (GWLB/TGW, HA, routing)\n\nDetails: [haitmg.pl/cloud-audit-support](https://haitmg.pl/cloud-audit-support/?utm_source=github&utm_medium=readme) or email [kontakt@haitmg.pl](mailto:kontakt@haitmg.pl).\n\n## Development\n\n```bash\ngit clone https://github.com/gebalamariusz/cloud-audit.git\ncd cloud-audit\npip install -e \".[dev]\"\npytest -q && ruff check src/ tests/ && mypy src/\n```\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) to add a check. Past releases in [CHANGELOG.md](CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE) - Mariusz Gebala / [HAIT](https://haitmg.pl)\n",
  "bytes": 10647,
  "sha": "b1eaa971d56f684623f315d5c29229ab3d253d833481384161e690038042e628",
  "repo_slug": "gebalamariusz/cloud-audit",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_gebalamariusz_cloud_audit_c9f9a243/readme"
}