Skip to content

Enterprise-grade, open-source Cloud Security Posture Management with true multi-cloud support, real-time drift detection, and AI-powered security intelligence.

Notifications You must be signed in to change notification settings

prompt-general/PathGuard

Repository files navigation

πŸ›‘οΈ PathGuard CSPM

Enterprise-grade, open-source Cloud Security Posture Management with multi-cloud support, real-time drift detection, and comprehensive compliance mapping.

✨ Key Differentiators

  • 🌐 True Multi-Cloud: Native support for AWS, Azure, GCP, OCI, and GitHub - not just AWS wrappers
  • πŸ” Real-Time Drift Detection: Instantly detect configuration changes with detailed diff analysis
  • πŸ“Š Unified Compliance: Cross-cloud compliance with industry-standard frameworks (CIS, SOC 2, PCI-DSS, NIST)
  • 🎯 Zero-Trust Architecture: Read-only cloud access with encrypted credential storage
  • πŸ”§ Extensible Design: Plugin-based rule engine with TypeScript-first development
  • πŸ“± Modern UI: Beautiful, responsive React dashboard with real-time updates

πŸš€ Features

🌐 Multi-Cloud Support

  • AWS: S3, IAM, EC2, RDS, CloudTrail, Config, CloudWatch
  • Azure: Storage Accounts, Virtual Machines, Key Vault, Monitor, Security Center
  • GCP: Cloud Storage, Compute Engine, IAM, Cloud Logging, Resource Manager
  • OCI: Block Storage, Compute, Identity, Audit, Logging
  • GitHub: Repositories, Organizations, Actions, Security Advisories

🧠 AI-Powered Security Intelligence

  • ML Risk Prioritization: Predictive breach probability with weighted risk factors
  • Attack Path Simulation: Graph-based lateral movement analysis with Neo4j
  • Threat Intelligence Integration: Real-time CISA KEV, VulnDB, and NVD feeds
  • MITRE ATT&CK Mapping: Comprehensive threat framework correlation
  • Context-Aware Alerts: Industry-specific threat detection (healthcare, finance)

πŸ” Advanced Drift Detection

  • Baseline Management: Set known-good configurations
  • Real-Time Monitoring: Continuous configuration tracking
  • Change Analysis: Detailed JSON diffs with categorization
  • Alert Integration: Automated notifications for critical changes
  • Historical Tracking: Complete audit trail of all modifications

πŸ€– Automated Remediation

  • Safe Auto-Remediation: Terraform/CloudFormation code generation
  • Approval Workflows: Multi-stage approval process for changes
  • Rollback Capabilities: Automated rollback with validation
  • IaC Integration: Seamless DevOps pipeline integration

🌍 Multi-Cloud Resource Mapping

  • Cross-Cloud Connections: Discover relationships across providers
  • Dependency Analysis: Resource dependency graph visualization
  • Topology Export: Multiple formats (JSON, GraphML, D3.js)
  • Attack Surface Mapping: Unified security posture analysis

πŸ’° Cost-Security Optimization

  • Security Waste Analysis: Identify overspending on security tools
  • ROI Calculations: Quantify security investment returns
  • Resource Optimization: Right-size security configurations
  • Implementation Roadmaps: Prioritized cost-saving recommendations

πŸ‘¨β€πŸ’» Developer-First Security

  • GitHub Actions: Automated security scanning workflows
  • VS Code Extension: Real-time security feedback in IDE
  • Slack Bot Integration: Security notifications and approvals
  • Pre-Commit Hooks: Security validation before code commits
  • Security Policies: Custom policy-as-code frameworks

πŸ“¦ Container & Serverless Security

  • Container Image Scanning: Vulnerability detection with CVE databases
  • Kubernetes Security: Pod security policies and network rules
  • Serverless Analysis: Lambda/Functions security assessment
  • Runtime Protection: Container and function runtime monitoring
  • Secret Detection: Identify hardcoded secrets in images and code

πŸ“‹ Compliance-as-Code

  • Multi-Framework Support: CIS, SOC 2, PCI-DSS, NIST, ISO27001
  • Terraform Modules: Automated compliance deployment
  • Evidence Collection: Automated evidence gathering for audits
  • Audit Reports: Export in multiple formats (JSON, YAML, CloudFormation)
  • Continuous Monitoring: Real-time compliance scoring

⚑ Rule Engine

  • Plugin Architecture: Extensible rule system with TypeScript interfaces
  • Multi-Provider Rules: Provider-specific security checks
  • Severity Classification: Critical, High, Medium, Low prioritization
  • Evidence Collection: Automated evidence gathering for audit trails
  • Custom Rules: Easy addition of organization-specific security policies

πŸ—οΈ Architecture

graph TB
    subgraph "User Interface"
        UI[React] --> API
        CLI[oclif] --> API
    end
    
    subgraph "Application Layer"
        API[NestJS] --> CoreEngine
        API --> ComplianceEngine
        API --> DriftEngine
        API --> MLEngine
        API --> ThreatIntel
    end
    
    subgraph "Core Engine"
        CoreEngine --> RuleEngine
        CoreEngine --> BaselineManager
        CoreEngine --> EnhancedDriftEngine
        CoreEngine --> AttackPathSim
        CoreEngine --> AutoRemediation
        CoreEngine --> CostOptimizer
        CoreEngine --> DevSecurity
        CoreEngine --> ComplianceAsCode
        CoreEngine --> ContainerEngine
    end
    
    subgraph "Provider Layer"
        RuleEngine --> AWS[AWS SDK]
        RuleEngine --> Azure[Azure SDK]
        RuleEngine --> GCP[GCP SDK]
        RuleEngine --> OCI[OCI SDK]
        RuleEngine --> GitHub[GitHub API]
    end
    
    subgraph "Data & Intelligence Layer"
        CoreEngine --> PostgreSQL[(PostgreSQL)]
        CoreEngine --> ObjectStorage[(MinIO/S3)]
        MLEngine --> Neo4j[(Neo4j)]
        ThreatIntel --> ThreatFeeds[(Threat Intel APIs)]
    end
Loading

πŸš€ Quick Start

πŸ“‹ Prerequisites

  • Node.js 18+ and pnpm
  • Docker and Docker Compose
  • Cloud credentials (AWS, Azure, GCP, etc.)

1. Clone the repository

git clone https://github.com/prompt-general/PathGuard.git cd PathGuard

2. Install dependancies

pnpm install

After step 2 the other steps are not working

3. Start infrastructure

pnpm docker:up

4. Start services (in separate terminals)

pnpm dev:api # Backend API pnpm dev:ui # Frontend UI

5. Configure cloud providers

Add your AWS, Azure, GCP credentials

6. Run your first multi-cloud scan

cd apps/cli npm run build ./bin/run scan:run --provider aws ./bin/run scan:run --provider azure ./bin/run scan:run --provider gcp

4. Configure cloud providers

Add your AWS, Azure, GCP credentials

5. Run your first multi-cloud scan

cd apps/cli npm run build ./bin/run scan:run --provider aws ./bin/run scan:run --provider azure ./bin/run scan:run --provider gcp


## πŸ› οΈ Development

### πŸ—οΈ **Monorepo Structure**

cloudsploit-like/ β”œβ”€β”€ πŸ“ apps/ # User-facing applications β”‚ β”œβ”€β”€ api/ # NestJS REST API β”‚ β”œβ”€β”€ cli/ # oclif CLI tool β”‚ └── ui/ # React web dashboard β”œβ”€β”€ πŸ“¦ packages/ # Shared libraries β”‚ β”œβ”€β”€ core-engine/ # Core CSPM logic with advanced features β”‚ β”‚ β”œβ”€β”€ src/engine/ # Advanced security engines β”‚ β”‚ β”‚ β”œβ”€β”€ ml-risk-prioritizer.ts β”‚ β”‚ β”‚ β”œβ”€β”€ attack-path-simulator.ts β”‚ β”‚ β”‚ β”œβ”€β”€ auto-remediation.ts β”‚ β”‚ β”‚ β”œβ”€β”€ multi-cloud-mapper.ts β”‚ β”‚ β”‚ β”œβ”€β”€ realtime-drift-detector.ts β”‚ β”‚ β”‚ β”œβ”€β”€ cost-security-optimizer.ts β”‚ β”‚ β”‚ β”œβ”€β”€ developer-security.ts β”‚ β”‚ β”‚ β”œβ”€β”€ compliance-as-code.ts β”‚ β”‚ β”‚ β”œβ”€β”€ container-serverless-context.ts β”‚ β”‚ β”‚ └── threat-intelligence.ts β”‚ β”‚ └── src/schemas/ # Data schemas β”‚ β”œβ”€β”€ providers/ # Cloud adapters β”‚ β”‚ β”œβ”€β”€ aws/ # AWS provider β”‚ β”‚ β”œβ”€β”€ azure/ # Azure provider
β”‚ β”‚ β”œβ”€β”€ gcp/ # GCP provider β”‚ β”‚ β”œβ”€β”€ oci/ # OCI provider β”‚ β”‚ └── github/ # GitHub provider β”‚ β”œβ”€β”€ rules/ # Security rules β”‚ └── compliance/ # Framework definitions └── 🐳 infra/ # Infrastructure as code β”œβ”€β”€ docker-compose.yml β”œβ”€β”€ postgresql/ └── scripts/


### πŸ”§ **Technology Stack**

- **Language**: TypeScript (type-safe, modern)
- **Backend**: NestJS, PostgreSQL, Prisma ORM
- **Frontend**: React 18, Vite, TailwindCSS, React Query
- **CLI**: oclif, Commander.js
- **Infrastructure**: Docker, Docker Compose
- **Cloud SDKs**: AWS SDK v3, Azure SDK, GCP Cloud SDKs
- **Advanced Features**: Neo4j (graph DB), ML models, Threat Intel APIs

## πŸ“Š Multi-Cloud Dashboard

### 🎯 **Unified Visibility**
- **Provider Overview**: At-a-glance status across all clouds
- **Compliance Scores**: Real-time scoring with trend analysis
- **Security Findings**: Unified view of all security issues
- **Drift Events**: Timeline of configuration changes
- **Asset Inventory**: Cross-cloud resource management
- **Risk Assessment**: Prioritized security recommendations

## πŸ” Security Features

### πŸ›‘οΈ **Zero-Trust Architecture**
- **Read-Only Access**: No destructive operations, only monitoring
- **Encrypted Storage**: All credentials encrypted at rest
- **Secure Communication**: TLS/HTTPS for all API calls
- **Audit Logging**: Complete audit trail of all actions
- **Role-Based Access**: Principle of least privilege enforcement
- **Network Isolation**: Private endpoints and VPC segmentation

## πŸ“ˆ Compliance Coverage

### 🎯 **Industry Standards**

| Framework | Provider Coverage | Controls | Rules |
|-----------|------------------|----------|-------|
| CIS AWS   | βœ…               | 20+      | 15+   |
| SOC 2     | βœ…               | 80+      | 60+   |
| PCI-DSS   | βœ…               | 12+      | 25+   |
| ISO 27001 | βœ…               | 114+     | 90+   |
| NIST      | βœ…               | 200+     | 150+  |
| Cloud Security Baseline | βœ… | 5        | 39+   |

### πŸ”„ **Continuous Compliance**
- **Automated Assessments**: Schedule regular compliance scans
- **Trend Analysis**: Track compliance over time
- **Gap Remediation**: Prioritized security improvement recommendations
- **Executive Reporting**: C-level compliance summaries
- **Multi-Framework Support**: Assess against multiple standards simultaneously

## πŸš€ Advanced Features

### 🎯 **Enterprise-Ready**
- **Multi-Tenant**: Support for multiple organizations
- **Role-Based Access**: Granular permissions by team/function
- **API Rate Limiting**: Respect cloud provider limits
- **Caching**: Intelligent caching for performance
- **Scalability**: Handle enterprise-scale deployments
- **Monitoring**: Health checks and metrics collection

### πŸ”Œ **Customization**
- **Custom Rules**: Write organization-specific security policies
- **Custom Frameworks**: Define internal compliance standards
- **Plugin Development**: Easy extension points for new capabilities
- **Webhook Integration**: Real-time notifications to external systems
- **White-Labeling**: Flexible deployment options

## πŸ“š Documentation & Support

### πŸ“– **Comprehensive Docs**
- **API Documentation**: Complete OpenAPI/Swagger specs
- **CLI Reference**: Detailed command documentation
- **Architecture Guides**: Deployment and configuration guides
- **Security Hardening**: Production deployment checklists
- **Troubleshooting**: Common issues and solutions

### 🀝 **Community & Enterprise**
- **MIT License**: Free for commercial use
- **Active Development**: Regular updates and feature releases
- **Community Support**: Discord, GitHub Discussions
- **Enterprise Support**: Commercial support and SLA options
- **Contributing Guide**: Clear development contribution process

## πŸŽ–οΈ Why Choose CloudSploit-like?

### πŸ† **Unlike Other Tools**
- **❌ Other CSPMs**: Often AWS-only or single-cloud focused
- **❌ Legacy Tools**: Monolithic architectures, poor extensibility
- **❌ Complex Setup**: Require extensive configuration and expertise
- **❌ Limited Compliance**: Support for few frameworks, outdated standards

### βœ… **CloudSploit-like Advantages**
- **🌐 True Multi-Cloud**: Native support for all major providers from day one
- **πŸ”§ Modern Architecture**: Type-safe, extensible, maintainable codebase
- **πŸ“Š Unified Dashboard**: Single pane of glass for all cloud security
- **πŸš€ Performance Optimized**: Efficient resource usage and fast scanning
- **🎯 Enterprise Features**: Built for scale, security, and compliance needs
- **πŸ”„ Future-Proof**: Extensible design ready for emerging cloud technologies

---

## πŸš€ **Get Started Now**

```bash
# Clone and start in minutes
git clone https://github.com/your-org/cloudsploit-like.git
cd cloudsploit-like
./setup.sh && pnpm dev:api & pnpm dev:ui

🌟 Your Multi-Cloud Security Journey Starts Here!


Built with ❀️ for the cloud security community
Enterprise-grade security, open-source for everyone

About

Enterprise-grade, open-source Cloud Security Posture Management with true multi-cloud support, real-time drift detection, and AI-powered security intelligence.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages