cloud-audit
Quick Start
pip install cloud-audit
cloud-audit scanUses your default AWS credentials and region. Try without an AWS account:
cloud-audit demoRelated MCP server: agent-bom
Why It's Different
Most scanners give you findings. cloud-audit helps you decide what to fix first.
+---- Attack Chains (5 detected) -----------------------------------+
| CRITICAL Internet-Exposed Admin Instance |
| i-0abc123 - public SG + admin IAM role + IMDSv1 |
| |
| CRITICAL IAM Privilege Escalation via iam:PassRole |
| ci-deploy-role - 3-step path to admin |
| |
| CRITICAL CI/CD to Admin Takeover |
| github-deploy - OIDC no sub + admin policy |
+--------------------------------------------------------------------+
+---- Remediation Plan -------------------------------------------+
| Fix 4 root causes, break 22 attack chains |
| |
| Quick Wins (effort: LOW, chains broken: 14): |
| 1. Restrict SG ingress on sg-0abc123 -> breaks 8 chains |
| 2. Add OIDC sub condition -> breaks 6 chains |
+--------------------------------------------------------------------+Other tools give you 200 findings sorted by severity. cloud-audit groups them by root cause, shows which single fixes collapse the most attack paths, and lets you simulate the impact before you touch anything:
cloud-audit simulate --fix aws-vpc-002
# Score: 34 -> 58 (+24) | Chains broken: 8 of 22 | Findings resolved: 1194 checks across 23 AWS services. Every finding includes copy-paste AWS CLI + Terraform remediation.
What's New in 2.0
Feature | What it does |
IAM Privilege Escalation | 61 escalation methods across 9 categories, including lateral movement detection via AssumeRole graph traversal. PMapper has been dead since 2022 -- this is its open-source replacement, and it covers paths PMapper never did. |
What-If Simulator |
|
Root Cause Grouping | "Fix 4 things, break 22 chains." Groups findings by shared root cause and ranks by impact. |
Security Posture Trend |
|
AI-SPM | First open-source Bedrock + SageMaker scanner. 5 checks, 3 attack chains (model theft, LLMjacking, data poisoning). |
Features
Attack Chain Detection
31 rules correlate individual findings into exploitable attack paths.
Internet --> Public SG --> EC2 (IMDSv1) --> Admin IAM Creds --> Account Takeover
aws-vpc-002 aws-ec2-004 Detected: AC-01, AC-02Chain | What it catches |
IAM Privilege Escalation | iam:PassRole + lambda:Create + iam:Attach = 3-step path to admin |
Internet-Exposed Admin | Public SG + admin IAM role + IMDSv1 = account takeover |
CI/CD to Admin Takeover | OIDC without sub condition + admin policy = pipeline hijack |
LLMjacking | Bedrock no logging + no guardrails = undetected model abuse |
Based on MITRE ATT&CK Cloud and pathfinding.cloud. See all 31 rules.
Remediation + Simulator
Every finding includes AWS CLI, Terraform HCL, and docs links. Export all fixes:
cloud-audit scan --export-fixes fixes.shSimulate before applying:
cloud-audit simulate --fix aws-vpc-002
# Score: 34 -> 58 (+24) | Chains broken: 8 of 22 | Findings resolved: 11
cloud-audit simulate --fix aws-vpc-002,aws-ct-001,aws-iam-007
# Score: 34 -> 82 (+48) | Chains broken: 19 of 22Trend Tracking
cloud-audit diff yesterday.json today.json # Catches ClickOps drift
cloud-audit trend # Posture over time6 Compliance Frameworks
CIS AWS v3.0 - 62 controls, 55 automated (89%)
SOC 2 Type II - 43 criteria, 24 automated (56%)
BSI C5:2020
Beta- 134 criteria, 57 automated/partialISO 27001:2022
Beta- 93 controls, 47 automated/partialHIPAA Security Rule
Beta- 47 specs, 29 automated/partialNIS2 Directive
Beta- 43 measures, 33 automated/partial
Breach Cost Estimation
Every finding and chain includes a dollar-range risk estimate based on IBM/Verizon breach data, with source links.
MCP Server for AI Agents
claude mcp add cloud-audit -- uvx --from cloud-audit cloud-audit-mcp6 tools: scan_aws, get_findings, get_attack_chains, get_remediation, get_health_score, list_checks. Free and standalone.
How It Compares
Prowler is the AWS security standard: 572 checks across 83 services, 41 compliance frameworks (CIS, PCI-DSS, HIPAA, SOC2, NIST 800, ISO 27001, GDPR, FedRAMP, NIS2, MITRE ATT&CK and more), 55 auto-remediation fixers, and graph-based attack path analysis in the Prowler App (Cartography + Neo4j). It also covers Azure, GCP, Kubernetes, M365, and 10+ other providers.
cloud-audit is AWS-only and intentionally narrower (94 curated checks). It goes deep where Prowler goes wide: attack chain correlation and IAM escalation detection run in the free CLI with zero infrastructure, every finding ships with reviewable Terraform + AWS CLI remediation, and scan diff / drift tracking is built into the CLI.
Feature | Prowler | cloud-audit |
AWS checks | 572 across 83 services | 94 across 23 services |
Compliance frameworks (AWS) | 41 (CIS, PCI-DSS, HIPAA, SOC2, NIST, ISO 27001, GDPR, FedRAMP, NIS2, ...) | 6 (CIS v3.0, SOC 2, BSI C5, ISO 27001, HIPAA, NIS2) |
Auto-remediation | 55 fixers across 17 AWS services (direct API calls) | 94/94 findings with CLI + Terraform output (reviewable, you apply) |
Attack path / graph analysis | Prowler App (Cartography + graph queries) | CLI-native (31 rules, no infra) |
IAM privilege escalation graph | Prowler App | CLI-native (61 methods + AssumeRole graph) |
What-If remediation simulator | No | Yes |
AI/ML security checks (Bedrock + SageMaker) | ~20 checks | 5 checks + 3 attack chain rules |
Scan diff / drift tracking | Prowler App | Built-in CLI ( |
Breach cost estimates (USD) | No | Per-finding + per-chain |
MCP Server | Free | Free |
Multi-cloud | AWS + 13 others | AWS only |
License | Apache 2.0 | MIT |
Use Prowler for compliance breadth, multi-cloud coverage, and graph-based attack path analysis. Use cloud-audit for fast CLI-native attack chain detection, reviewable Terraform remediation, and CI/CD drift tracking. They are complementary, not competitors - a common setup is Prowler for quarterly compliance evidence plus cloud-audit daily in CI/CD.
Prowler stats verified from github.com/prowler-cloud/prowler (April 2026). cloud-audit snapshot as of v2.0.1.
Reports
cloud-audit scan --format html -o report.html # Client-ready HTML
cloud-audit scan --format json -o report.json # Machine-readable
cloud-audit scan --format sarif -o results.sarif # GitHub Code Scanning
cloud-audit scan --format markdown -o report.md # PR commentsInstallation
pip install cloud-audit # pip (recommended)
pipx install cloud-audit # pipx (isolated)
docker run ghcr.io/gebalamariusz/cloud-audit scan # DockerDocker with credentials:
docker run -v ~/.aws:/home/cloudaudit/.aws:ro ghcr.io/gebalamariusz/cloud-audit scanUsage
cloud-audit scan -R # Show remediation
cloud-audit scan --profile prod --regions eu-central-1 # Specific profile/region
cloud-audit scan --regions all # All enabled regions
cloud-audit scan --min-severity high # Filter by severity
cloud-audit scan --role-arn arn:aws:iam::...:role/audit # Cross-account
cloud-audit scan --quiet # Exit code only (CI/CD)
cloud-audit simulate --fix aws-vpc-002 # What-If simulator
cloud-audit trend # Posture over time
cloud-audit list-checks # List all checksExit code | Meaning |
0 | No findings |
1 | Findings detected |
2 | Scan error |
Create .cloud-audit.yml in your project root:
provider: aws
regions:
- eu-central-1
- eu-west-1
min_severity: medium
exclude_checks:
- aws-eip-001
suppressions:
- check_id: aws-vpc-001
resource_id: vpc-abc123
reason: "Legacy VPC, migration planned for Q3"
accepted_by: "jane@example.com"
expires: "2026-09-30"
- check_id: "aws-cw-*"
reason: "CloudWatch alarms managed by separate team"
accepted_by: "ops@example.com"Variable | Example |
|
|
|
|
|
|
|
|
Precedence: CLI flags > env vars > config file > defaults.
CI/CD
- run: pip install cloud-audit
- run: cloud-audit scan --format sarif --output results.sarif
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarifReady-to-use workflows: basic scan, daily diff, post-deploy.
AWS Permissions
cloud-audit requires read-only access. Attach SecurityAudit (covers all checks including IAM escalation analysis):
aws iam attach-role-policy --role-name auditor --policy-arn arn:aws:iam::aws:policy/SecurityAuditcloud-audit never modifies your infrastructure. The simulate command runs locally against scan data -- it does not call AWS APIs.
What It Checks
94 checks across IAM, S3, EC2, VPC, RDS, EIP, EFS, CloudTrail, GuardDuty, KMS, CloudWatch, Lambda, ECS, SSM, Secrets Manager, AWS Config, Security Hub, Account, AWS Backup, Amazon Inspector, AWS WAF, Amazon Bedrock, and Amazon SageMaker.
See all 94 checks by service or run cloud-audit list-checks locally.
Documentation
Full docs at haitmg.pl/cloud-audit:
Getting Started - installation, quick start, demo mode
Attack Chains - all 31 rules with MITRE ATT&CK references
IAM Escalation - 61 methods, 9 categories (action-based + lateral AssumeRole graph)
What-If Simulator - simulate remediation impact
Compliance - 6 frameworks: CIS, SOC 2, BSI C5, ISO 27001, HIPAA, NIS2
All 94 Checks - full check reference by service
What's Next
Multi-account scanning (AWS Organizations)
SCP + permission boundary evaluation in IAM escalation
Terraform drift detection
Past releases: CHANGELOG.md
Development
git clone https://github.com/gebalamariusz/cloud-audit.git
cd cloud-audit
pip install -e ".[dev]"
pytest -v # 496 tests
ruff check src/ tests/ # lint
mypy src/ # type checkSee CONTRIBUTING.md for how to add a new check.
License
Available Tools
7 toolsget_agent_blastA
What can a hijacked AI agent reach in this AWS account?
For every Bedrock Agent, AgentCore runtime, gateway or sandbox found by the
last scan (or the one matching agent by name, id or ARN substring),
returns a Markdown report under two threat models: identity takeover (the
attacker holds the agent role's credentials) and behaviour takeover (prompt
injection steering the agent's tools, bounded by the tools' execution
roles), with data, secret, lateral and code-execution reach and OWASP
Agentic / MITRE ATLAS tags. Computed from the saved scan, no AWS calls.
Inputs: agent. Returns: result
get_attack_chainsA
Get all detected attack chains from the last scan.
Attack chains are correlated findings that form exploitable attack paths. Each chain includes a narrative, priority fix, and breach cost estimate.
Inputs: no named parameters. Returns: result
get_findingsA
Get findings from the last scan, optionally filtered.
Each finding includes check ID, severity, resource, description, and estimated breach cost.
Args: severity: Filter by severity (critical, high, medium, low) service: Filter by AWS service prefix (e.g. "iam", "s3", "ec2", "vpc") limit: Maximum number of findings to return (default: 20)
Inputs: limit, service, severity. Returns: result
get_health_scoreA
Get the current health score and risk exposure summary.
Returns the 0-100 health score, finding counts by severity, attack chain count, and total estimated risk exposure in USD.
Inputs: no named parameters. Returns: result
get_remediationA
Get remediation details (CLI command + Terraform code) for a specific check.
Returns copy-paste ready AWS CLI command and Terraform HCL snippet to fix the finding.
Args: check_id: The check ID (e.g. "aws-iam-001", "aws-s3-001", "aws-vpc-002")
Inputs: check_id (required). Returns: result
list_checksA
List all available security checks (no AWS credentials needed).
Returns check IDs with their categories and services.
Inputs: no named parameters. Returns: result
scan_awsA
Run an AWS security scan and return a summary.
Scans your AWS account for security misconfigurations, detects attack chains, and estimates breach cost risk.
Args: profile: AWS CLI profile name (default: "default") regions: Comma-separated AWS regions to scan (default: profile region) min_severity: Minimum finding severity: critical, high, medium, low
Inputs: profile, regions, min_severity. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clear, distinct role: scanning, listing checks, retrieving findings, health scores, attack chains, remediation, and agent blast radius. No two tools overlap in purpose; even get_health_score and get_findings differ (summary vs. detailed list).
All tools follow a consistent verb_noun pattern: scan_aws, list_checks, get_findings, get_health_score, get_attack_chains, get_remediation, get_agent_blast. The verbs (scan, list, get) are used predictably, and the nouns clearly indicate the resource.
Seven tools is ideal for the domain of AWS security scanning: they cover the entire workflow from initiating a scan to viewing results, details, and remediation. Each tool is necessary and there is no bloat.
The tool set covers the full lifecycle: scan, list checks, get findings, get health score, get attack chains, get remediation, and even a specialized agent blast tool. The only minor gap is that there is no direct tool to initiate a specific check or re-scan a particular resource, but the existing tools allow agents to achieve the core goals.
Maintenance
Related MCP Connectors
AWS cloud security scanners for AI agents — S3, IAM, EC2, EKS, RDS, CloudTrail, CloudWatch Logs
CloudOracle - 14-tool multi-cloud compliance MCP: AWS, Azure, GCP posture, IAM, configs.
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
IaC, CI and dependency security review for coding agents: local scan CLI plus hosted OAuth MCP.
Related MCP Servers
- AlicenseAqualityCmaintenanceA local-first AWS security tool that uses graph theory to discover attack paths (e.g., Internet → Role → DB) and prioritize remediations. It allows agents to perform read-only security audits and generate Terraform fixes without data exfiltration.154Apache 2.0
- AlicenseAqualityAmaintenanceagent-bom is an open security scanner and self-hosted control plane for AI, MCP, and cloud infrastructure. The default scan profile in MCP server mode exposes 8 MCP tools. Additional profiles provide inventory, findings, compliance, graph, and runtime workflows. See the published Glama release for its packaged version.8959 PyPI39Apache 2.0
- AlicenseBqualityBmaintenanceMCP server for automated AWS security scanning — 19 modules, risk scoring, zero write operations.3980 npm1MIT
- FlicenseNot gradedqualityDmaintenanceA read-only MCP server for inspecting AWS resources, detecting misconfigurations, and estimating costs across EC2, S3, and IAM, enabling agents to safely query and analyze cloud infrastructure.-