Analyze GitHub organization security against SOC 2 compliance controls and generate professional gap analysis reports.
- Evaluates 13 SOC 2 controls across Access Control, Change Management, Security Monitoring, and Vulnerability Management
- Analyzes GitHub org settings including 2FA, branch protection, code scanning, and third-party apps
- Generates professional reports with compliance status, violations, and action items
- Uses AI-powered analysis via Opper for intelligent assessment
-
Install dependencies:
pip install opperai pydantic
-
Set your Opper API key:
export OPPER_API_KEY="your-api-key-here"
Get your key at platform.opper.ai
-
Run the analysis:
python main.py
The tool includes 3 example scenarios:
- High-security org (default) - Shows best practices
- Mixed compliance - Realistic mid-sized company
- Poor security startup - Multiple violations
# SOC 2 Gap Analysis Report
## Executive Summary
Organization shows strong security posture with comprehensive controls...
## Action Items
- [ ] Enable organization-wide 2FA enforcement
- [ ] Review third-party app permissions
## Detailed Findings
### Access Control
**CC6.1 - Enforce Organization-wide 2FA**
- Status: Compliant
- Violations: NoneSwitch between example scenarios in main.py:
# High security (default)
GITHUB_STATUS_DATA = GITHUB_STATUS_DATA_SECURE_TECH
# Mixed compliance
GITHUB_STATUS_DATA = GITHUB_STATUS_DATA_ACME
# Poor security
GITHUB_STATUS_DATA = GITHUB_STATUS_DATA_STARTUPOr replace with your own GitHub organization data following the same structure.
3-stage AI pipeline:
- Individual Control Analysis - Evaluate each SOC 2 control separately
- Summary Generation - Consolidate findings into executive summary
- Report Generation - Create formatted Markdown report
Built with Opper for reliable, structured AI outputs.