{"id":48790750,"url":"https://github.com/divyamohan1993/enterprise-sso-system","last_synced_at":"2026-04-13T19:43:56.693Z","repository":{"id":346058169,"uuid":"1122867800","full_name":"divyamohan1993/enterprise-sso-system","owner":"divyamohan1993","description":"Military-grade SSO system with FROST threshold signing, OPAQUE password auth, ML-KEM-768 post-quantum KEM, OIDC/OAuth2, FIDO2/WebAuthn, forward-secret ratcheting, BFT audit. Live demo: sso-system-demo.dmj.one","archived":false,"fork":false,"pushed_at":"2026-04-13T04:30:23.000Z","size":7415,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-13T19:43:55.022Z","etag":null,"topics":["authentication","fido2","frost","milnet","oauth2","oidc","opaque","post-quantum","rust","security","sso","threshold-cryptography","webauthn","zero-trust"],"latest_commit_sha":null,"homepage":"https://sso-system.dmj.one","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/divyamohan1993.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audit/Cargo.toml","citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-25T17:36:47.000Z","updated_at":"2026-04-13T04:30:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/divyamohan1993/enterprise-sso-system","commit_stats":null,"previous_names":["divyamohan1993/enterprise-sso-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/divyamohan1993/enterprise-sso-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyamohan1993%2Fenterprise-sso-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyamohan1993%2Fenterprise-sso-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyamohan1993%2Fenterprise-sso-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyamohan1993%2Fenterprise-sso-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divyamohan1993","download_url":"https://codeload.github.com/divyamohan1993/enterprise-sso-system/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyamohan1993%2Fenterprise-sso-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","fido2","frost","milnet","oauth2","oidc","opaque","post-quantum","rust","security","sso","threshold-cryptography","webauthn","zero-trust"],"created_at":"2026-04-13T19:43:55.863Z","updated_at":"2026-04-13T19:43:56.665Z","avatar_url":"https://github.com/divyamohan1993.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MILNET SSO\n\nEnterprise Single Sign-On system built to survive total infrastructure compromise. Combines threshold cryptography, post-quantum key exchange, forward-secret sessions, and defense-in-depth process isolation across 21 hyper-distributed isolated VMs.\n\n## What This Is\n\nAn SSO authentication system where:\n\n- **Passwords are never seen by the server** — OPAQUE (RFC 9497) server-blind authentication\n- **No single VM can sign a token** — FROST 3-of-5 threshold signatures across 5 isolated VMs\n- **No single VM can authenticate a user** — OPAQUE 2-of-3 Shamir threshold across 3 VMs\n- **Quantum computers cannot break it** — X-Wing hybrid KEM (X25519 + ML-KEM-1024) + ML-DSA-87\n- **Past sessions stay safe even if compromised today** — HKDF-SHA512 ratchet with 30-second key erasure\n- **Audit logs cannot be tampered with** — 7-node Byzantine Fault Tolerant hash-chained audit\n- **Every key, port, and certificate auto-mutates** — Moving Target Defense resets attack surface continuously\n\n## Architecture\n\n21 VMs across 8 isolated security zones. No Docker. Native systemd on Shielded VMs with vTPM, Confidential Computing (AMD SEV-SNP), and Cloud HSM.\n\nSee [docs/DISTRIBUTED_VM_ARCHITECTURE.md](docs/DISTRIBUTED_VM_ARCHITECTURE.md) for the complete architecture.\n\n```\nInternet → Cloud Armor WAF → Gateway (C2 Spot MIG, autoscale 1→50, ZERO secrets)\n  → Orchestrator (HA pair, ZERO secrets)\n    → OPAQUE 2-of-3 (Confidential VMs, Shamir shares)\n    → TSS FROST 3-of-5 (5 Confidential VMs, 3 AZs)\n    → Verifier + Ratchet (HA pairs, forward-secret)\n    → Audit BFT 7-node (3 AZs, quorum 5)\n    → PostgreSQL 3-node (CMEK + envelope + SEV-SNP)\n    → Risk + Key Transparency + Witness\n```\n\n## Crates\n\n| Crate | Purpose |\n|-------|---------|\n| `gateway` | Bastion — hash puzzle DDoS filter, X-Wing KEM tunnel |\n| `orchestrator` | Ceremony state machine (PendingOpaque → PendingTss → Complete) |\n| `opaque` | Server-blind password auth (RFC 9497, Argon2id/PBKDF2-SHA512) |\n| `tss` | FROST 3-of-5 threshold token signing + ML-DSA-87 PQ wrapper |\n| `verifier` | O(1) token verification with DPoP replay cache |\n| `ratchet` | Forward-secret HKDF-SHA512 session ratcheting |\n| `audit` | BFT hash-chained audit log with ML-DSA-87 signed entries |\n| `admin` | REST API — user/device/portal management, OAuth/OIDC endpoints |\n| `crypto` | X-Wing, FROST, ML-DSA-87, SLH-DSA, envelope encryption, HSM, entropy |\n| `common` | Shared types, domain separation, compliance, platform integrity |\n| `shard` | SHARD IPC — mTLS + HMAC-SHA512 + X-Wing quantum-safe transport |\n| `sso-protocol` | OAuth 2.0/2.1, OIDC, PKCE, authorization code flow |\n| `fido` | FIDO2/WebAuthn — YubiKey, Windows Hello, platform authenticators |\n| `kt` | SHA3-256 Merkle tree for Key Transparency |\n| `risk` | Risk scoring (6 signals, 4 levels) + device tier enforcement |\n| `e2e` | Integration tests — ceremony flows, attack simulations, chaos |\n\n## Cryptographic Stack\n\n| Layer | Algorithm | Standard | Quantum Safe |\n|-------|-----------|----------|:------------:|\n| Key exchange | X-Wing (X25519 + ML-KEM-1024) | FIPS 203 | Yes |\n| Token signing | FROST 3-of-5 Ed25519 + ML-DSA-87 | FIPS 204 | Yes |\n| Password auth | OPAQUE (Ristretto255, Argon2id) | RFC 9497 | Yes* |\n| Session keys | HKDF-SHA512 ratchet | RFC 5869 | Yes |\n| Symmetric | AEGIS-256 / AES-256-GCM (FIPS) | RFC 9312 | Yes |\n| Hash-based sigs | SLH-DSA (backup) | FIPS 205 | Yes |\n| Audit signing | ML-DSA-87 | FIPS 204 | Yes |\n| DPoP proofs | ML-DSA-87 | RFC 9449 | Yes |\n| Entropy | Multi-source CSPRNG | SP 800-90B | N/A |\n\n*\\*OPAQUE's OPRF is computationally secure, but passwords are never exposed to the server.*\n\n## Build\n\n```\nrustup install 1.88\ncargo build --release\n```\n\n## Test\n\n```\ncargo test --workspace\n```\n\n190+ tests covering cryptographic correctness, end-to-end ceremony flows, attack simulations, chaos injection, and compliance validation.\n\n## Intellectual Property\n\nThis system contains original cryptographic architecture, protocol designs, and security innovations created by [Divya Mohan](https://dmj.one). Key original contributions include:\n\n- **Threshold-wrapped post-quantum SSO** — FROST 3-of-5 + ML-DSA-87 combined signing (no known prior implementation in SSO)\n- **Server-blind threshold authentication** — OPAQUE 2-of-3 Shamir with post-quantum ceremony receipts\n- **30-second forward-secret ratcheting** — HKDF-SHA512 epoch-based key erasure with memory-locked canary protection\n- **Honey encryption with duress detection** — 5 plausible-distribution decoy outputs + silent lockdown PIN\n- **7-node BFT audit with ML-DSA-87 signatures** — Byzantine fault tolerant tamper-evident logging\n- **Moving Target Defense integration** — auto-mutating keys, ports, and certificates across 21 isolated VMs\n\nThese designs represent trade secrets and proprietary innovations. The specific combination, architecture, and implementation are original work.\n\n## License\n\nApache License 2.0 — see [LICENSE](LICENSE) and [NOTICE](NOTICE).\n\nThis license includes a **patent retaliation clause** (Section 3): if you use this software and then file a patent lawsuit claiming it infringes your patents, your license to use this software is automatically terminated.\n\nCreated by [Divya Mohan](https://dmj.one). AI architecture partner: Claude (Anthropic).\n\n## Disclaimer\n\nThis software is provided for evaluation and research purposes. The cryptographic implementations use pre-release libraries (ml-dsa 0.1.0-rc.7, ml-kem 0.2) and have not undergone FIPS 140-3 CMVP validation. Do not deploy in production without independent security audit and certification.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivyamohan1993%2Fenterprise-sso-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivyamohan1993%2Fenterprise-sso-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivyamohan1993%2Fenterprise-sso-system/lists"}