CSPM
PremiumCloud Security Posture Management scans your cloud infrastructure for security misconfigurations. CodePhreak uses Prowler under the hood to provide comprehensive multi-cloud scanning.
Quick Start
# Basic AWS scan
$ codephreak cspm --provider aws
# With specific profile and regions
$ codephreak cspm --provider aws --profile production --regions us-east-1,us-west-2
# CIS compliance check
$ codephreak cspm --provider aws --compliance cis
# Output to SARIF format
$ codephreak cspm --provider aws --output report.sarif --format sarifSupported Providers
AWS
Amazon Web Services
codephreak cspm --provider awsAzure
Microsoft Azure
codephreak cspm --provider azureGCP
Google Cloud Platform
codephreak cspm --provider gcpCommand Options
| Option | Description | Default |
|---|---|---|
| --provider | Cloud provider (aws, azure, gcp) | aws |
| --profile | AWS profile or Azure subscription ID | default |
| --regions | Comma-separated regions to scan | all |
| --compliance | Compliance framework (cis, soc2, pci, hipaa) | - |
| --output | Output file path | - |
| --format | Output format (json, sarif, csv) | json |
Compliance Frameworks
CIS Benchmarks
Center for Internet Security best practices
--compliance cisSOC 2
Service Organization Control 2
--compliance soc2PCI DSS
Payment Card Industry Data Security Standard
--compliance pciHIPAA
Health Insurance Portability and Accountability Act
--compliance hipaaExample Output
$ codephreak cspm --provider aws
๐ Starting CSPM scan: AWS with prowler
Profile: default
Regions: all
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CSPM Scan Results (AWS) โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Checks : 245 โ
โ Passed : 198 (80.8%) โ
โ Failed : 42 โ
โ Manual Review : 5 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Critical : 3 High : 12 โ
โ Medium : 18 Low : 9 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ด Critical Findings:
โข S3 bucket 'logs-bucket' has public access
โข IAM user 'admin' has no MFA enabled
โข RDS instance 'prod-db' is publicly accessible
๐ Results synced to dashboard
View at: https://codephreak.ai/dashboardPrerequisites
AWS
- โข AWS CLI installed and configured (
aws configure) - โข IAM permissions: SecurityAudit policy or equivalent read-only access
- โข Prowler installed (
pip install prowler)
Azure
- โข Azure CLI installed and logged in (
az login) - โข Reader role on target subscription
GCP
- โข gcloud CLI installed and authenticated
- โข Viewer role on target project
Dashboard Visualization
CSPM results are automatically synced to the web dashboard where you can:
- View severity breakdown charts
- Filter by service and region
- Export findings to various formats
- Track remediation progress over time