How r3ix0/cspm-saas works
Cleave is an Azure-first cloud security posture management product. A user connects a cloud account and starts a scan; the API coordinates collection, preserves raw evidence, normalizes resources, evaluates deterministic rules, scores findings as business risks, and presents attack paths and fixes. Subsequent scans verify whether fixes took effect. The graph also includes compliance, reporting, and notifications documented in the README. Several implementation links are inferred only from product documentation or the tree because their source was not sampled.
Main entry points: pipeline.py Scan pipeline · orchestrator.py Scan orchestrator · App.tsx Web application · router.py HTTP API
Components 20
Product experience
- Web application
apps/web/src/App.tsx - HTTP API
apps/api/app/api/router.py
Collection and scans
- Scan orchestrator
apps/api/app/services/orchestrator.py - Scan worker
apps/api/app/workers/scan_tasks.py - Scan pipeline
apps/api/app/services/scan/pipeline.py - Cloud connectors
apps/api/app/connectors - Raw capture
apps/api/app/services/scan/capture.py - Resource model
apps/api/app/domain/resource.py
Security analysis
- Rule engine
apps/api/app/rules/engine.py - Rule catalog
apps/api/app/rules/registry.py - Risk scoring
apps/api/app/risk/scorer.py - Attack paths
apps/api/app/graph - Compliance mapping
apps/api/app/compliance
Evidence and outcomes
- Fix guidance
apps/api/app/remediation - Fix verification
apps/api/app/services/verification.py - Reports and audit
apps/api/app/reports - Notifications
apps/api/app/services/webhooks.py
Runtime foundation
- PostgreSQL
Other components
- Security user
- Customer cloud
Connections 19
- Security user → Web application: uses
README.md - Web application → HTTP API: requests
- HTTP API → Scan orchestrator: starts scans
- Scan orchestrator → Scan pipeline: runs stages
apps/api/app/services/scan/pipeline.py - Scan pipeline → Cloud connectors: collects from
README.md - Cloud connectors → Customer cloud: reads estate
README.md - Scan pipeline → Raw capture: stores snapshot
README.md - Scan pipeline → Resource model: normalizes data
README.md - Scan pipeline → Rule engine: evaluates
apps/api/app/services/scan/pipeline.py - Rule engine → Rule catalog: loads rules
apps/api/app/rules/engine.py - Scan pipeline → Risk scoring: scores findings
README.md - Scan pipeline → Fix verification: checks fixes
README.md - Security user → Attack paths: explores routes
README.md - Security user → Compliance mapping: reviews coverage
README.md - Security user → Fix guidance: views fixes
README.md - Security user → Reports and audit: requests reports
README.md - Security user → Notifications: receives updates
README.md - Scan pipeline → PostgreSQL: persists scan data
README.md - Scan worker → Scan orchestrator: executes scan work
apps/api/app/workers/scan_tasks.py