Remediation Overview
Cloudgeni provides AI-powered remediation to help you fix security findings quickly and accurately. From analyzing issues to generating code fixes and creating pull requests, the remediation workflow streamlines your security response.What You'll Get
- AI-powered fix generation for IaC security issues - One-click PR creation with validated code changes - Cloud validation to verify fixes before deploying - Bulk remediation for addressing multiple findings
How Remediation Works
The Remediation Workflow
- Finding Detected - Security scan identifies a misconfiguration
- AI Analysis - Cloudgeni analyzes the finding and plans a fix
- Generate Code - AI generates IaC code to resolve the issue
- Create PR - Code is submitted as a pull request for review
Finding Analysis
When you select a finding for remediation, Cloudgeni:Analyzes the Issue
- Reviews the specific misconfiguration
- Identifies affected resources
- Determines the compliance requirement
- Checks related configurations
Plans the Fix
- Evaluates remediation options
- Considers impact on other resources
- Ensures fix meets policy requirements
- Plans minimal-change approach
Code Generation
Supported Formats
| Format | Support Level |
|---|---|
| Terraform (HCL) | Full |
| Bicep | Full |
| Terragrunt | Partial |
| CloudFormation | Coming soon |
Generated Code Examples
Terraform - Enable S3 Encryption:Code Quality
Generated code follows best practices:- Maintains existing code style
- Uses existing variable references
- Follows resource naming conventions
- Includes necessary dependencies
Cloud Validation
What is Cloud Validation?
Before creating a PR, Cloudgeni can validate the fix against your actual cloud environment:- Syntax Check - Validates IaC syntax
- Plan Generation - Runs
terraform planor equivalent - Impact Analysis - Shows what will change
- Policy Check - Verifies fix passes security policies
Validation Results
| Status | Meaning |
|---|---|
| Passed | Fix is valid and ready to apply |
| Warning | Fix works but has advisories |
| Failed | Fix has errors that need review |
External Validation
For advanced validation, configure external validation webhooks:- CI/CD pipeline validation
- Custom policy checks
- Integration testing
- Manual approval workflows
Pull Request Creation
Automatic PR Generation
When remediation completes:- Cloudgeni creates a new branch
- Commits the generated code
- Opens a pull request
- Adds description with finding details
PR Contents
| Section | Description |
|---|---|
| Title | Clear description of the fix |
| Summary | What finding is being resolved |
| Changes | Files and lines modified |
| Finding Link | Reference to original finding |
| Validation | Results of code validation |
Example PR
Remediation Options
Single Finding
- Navigate to the finding
- Click Remediate
- Review generated fix
- Approve and create PR
Bulk Remediation
Fix multiple related findings at once:- Filter findings by type or policy
- Select multiple findings
- Click Bulk Remediate
- Review consolidated fix
- Create single PR
AI DevOps Agent
For complex fixes or custom requirements:- Open AI DevOps session
- Describe what you want to fix
- Agent generates comprehensive solution
- Review and approve changes
- Create PR
Impact Analysis
Before Applying Fixes
Cloudgeni shows potential impact:- Resources that will be modified
- Services that may be affected
- Estimated deployment time
- Rollback considerations
Risk Assessment
| Risk Level | Description | Recommendation |
|---|---|---|
| Low | No service impact | Safe to apply |
| Medium | Brief interruption possible | Plan maintenance window |
| High | Service may restart | Schedule carefully |
Best Practices
Review Generated Code
Always review before merging:- Verify the fix is appropriate
- Check for unintended changes
- Ensure variables are correct
- Test in non-production first
Test Before Production
- Apply fix to development environment
- Verify resources work correctly
- Run integration tests
- Then merge to production
Track Remediation
- Mark findings as “In Progress” when working on them
- Update status when PR is merged
- Verify fix with new scan
- Document any manual steps needed
Troubleshooting
Common Issues
Common Issues
Code generation failed:
- Finding type may not support auto-remediation
- Use AI DevOps agent for complex cases
- Check resource exists in repository
- Verify repository write access
- Check branch doesn’t already exist
- Review branch protection rules
- Review error message details
- Check for missing dependencies
- Verify cloud credentials are valid