Skip to content

notgautham/Aegis

Repository files navigation

Aegis Logo

Aegis

Autonomous Quantum Cryptographic Intelligence Platform for Banking Infrastructure

Python 3.11 FastAPI React OQS OpenSSL PostgreSQL Apache AGE Qdrant


🚀 Want to run Aegis locally?
Everything is fully containerized. Please navigate to SETUP.md for the quick, 2-step installation guide. No API keys or local SDKs are required for the default local deterministic mode.


🌊 Overview

Aegis is a scan-centric platform engineered to defend internet-facing cryptographic assets against the Harvest Now, Decrypt Later (HNDL) threat. By merging low-level Post-Quantum Cryptography (PQC) handshake inspection with deterministic scoring and deterministic remediation, Aegis provides a clear bridge to a quantum-safe future.


⚙️ How It Works

Aegis continuously discovers assets, evaluates their cryptographic posture, and builds actionable technical roadmaps based on NIST FIPS standards.

  1. Asset Discovery: Identifies domains, IPs, and open ports (TLS, VPN, API).
  2. OQS Handshake Probing: Performs deep byte-level inspection using an Open-Quantum-Safe (OQS) patched OpenSSL engine to detect hybrid PQC key exchanges (e.g., X25519MLKEM768).
  3. Graph Mapping: Stores network topologies and relationships in an Apache AGE graph database for real-time interactive visualization.
  4. Deterministic Scoring: Calculates a precise quantum vulnerability risk score and compliance tier.
  5. Artifact Generation: Produces industry-standard CycloneDX 1.6 Cryptographic Bills of Materials (CBOMs) and technical remediation patches.

🚦 Scan Variations

Aegis supports scan profiles that trade off speed vs depth.

  1. Quick: Fast validation. Bounded port scan, skips subdomain enumeration.
  2. Deep: Comprehensive discovery. Full port scan (1-65535) and full subdomain enumeration.

For very large domains, Deep scans can still be expensive. Aegis uses adaptive hostname/TLS prioritization, progressive deepening, and TLS-stage budgets to avoid indefinite probing while preserving high-value coverage first.

Detailed run examples and tuning flags are available in SETUP.md.


🧮 Deterministic Scoring Model

Aegis relies on a strict, deterministic, and weighted formula to evaluate quantum risk, fully independent of probabilistic inference.

Risk Formula:

Risk = 100 × (0.45 × VKEX + 0.35 × VSIG + 0.10 × VSYM + 0.10 × VTLS) + Pcert

Where:

  • VKEX (45%): Key Exchange Vulnerability (Highly vulnerable to Shor's Algorithm).
  • VSIG (35%): Signature Vulnerability (Authentication risks).
  • VSYM (10%): Symmetric Cipher Vulnerability (Grover's Algorithm impact).
  • VTLS (10%): Protocol Version Vulnerability (Legacy TLS configurations).

Certificate Penalty (Pcert):

  • +10 points if the certificate is expired (Days remaining ≤ 0).
  • +5 points if the certificate expires within 30 days. (Note: Final Risk Score is strictly capped at 100)

Score Semantics:

  • Risk Score (Backend): 0-100 scale. Higher is more vulnerable.
  • Q-Score (Frontend UI): 0-100 scale. Higher is more secure. (Q-Score = 100 - Risk Score)

🏗️ Repository Structure

Aegis is built as a modular monolith.

Aegis/
├── backend/             # FastAPI engine & Core PQC Scanning Logic
│   ├── analysis/        # Risk scoring & handshake metadata resolution
│   ├── discovery/       # Multi-protocol probing (TLS, VPN, API)
│   ├── intelligence/    # RAG Orchestrator & NIST roadmap generators
│   └── pipeline/        # Deterministic scan orchestration
├── frontend/            # React + Vite UI with Tailwind CSS
│   └── src/components/  # Interactive D3/Force-Graph visualizations
├── docker/              # Infrastructure-as-Code (OQS builds, Graph DB init)
├── corpus/                # Intelligence corpus (NIST Standards, FIPS PDFs)
├── docs/      # Extended architectural & API references
├── migrations/          # Alembic relational database migrations
├── scripts/             # Data ingestion & validation utilities
├── simulation/          # Standalone terminal-based scan testing utilities
└── tests/               # Unit and Integration test suites

📚 Documentation Index

For detailed technical guides and references, please see the specific documentation files mapped below:

Documentation Purpose
🛠️ SETUP.md Universal installation, environment configuration, and startup guide for running Aegis.
📡 docs/API.md Comprehensive backend REST endpoint documentation and cURL integration examples.
💾 docs/DATABASE.md Detailed schema mapping for PostgreSQL, Apache AGE (Graph), and Qdrant.
🧠 docs/CONTEXT.md Technical context, core principles, and developer rules for the codebase.
🎯 docs/SOLUTION.md Strategic product framing, threat models, and business problem statement.

Built for the future of cryptographic security.

About

Post-Quantum Cryptography Intelligence & Remediation Platform for Banking Infrastructure

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors