← All projects
10 ADVANCED

AI-powered control gap analyzer

Claude API analyzes live AWS infrastructure, identifies NIST gaps, and generates Terraform remediation.

Overview

Advanced AI system that crawls a live AWS environment, maps every resource configuration to the NIST 800-53 control catalog, sends findings to Claude for deep gap analysis, and produces a prioritized report with generated, ready-to-apply Terraform remediation code.

Implementation

Crawls 18+ AWS services via boto3, maps resource configs to applicable NIST controls, identifies gaps between current state and baseline requirements, sends context-rich prompts to Claude API for analysis and fix generation, and outputs a ranked gap report with Terraform HCL files per finding.

Terminal output
ai-powered-control-gap-analyzer.py
Scanning AWS environment... Services: 18 · Resources: 847 Mapping to NIST 800-53 Moderate... ✓ 847 resources mapped Invoking Claude gap analysis... ──────────────────────────────── Gaps identified: 23 ├─ CRITICAL 7 (immediate risk) ├─ HIGH 9 └─ MEDIUM 7 Generating Terraform fixes... ✓ 23 .tf files written ✓ Gap report → gap-report.html
Stack
Claude APIPythonAWS SDKTerraformNIST 800-53
Source code

Full implementation, tests, and documentation available on GitHub.

View on GitHub ↗