An Intelligent, Multi-Layer Zero-Trust Web Application Firewall
Architecture • Repositories • Features • Roadmap • Contributing
Project NexusWAF is a structured, intelligent Web Application Firewall designed for modern distributed environments.
Built with a strict separation between data plane and control plane, NexusWAF integrates deterministic rule enforcement, formal grammar-based request parsing, and machine learning inference into a cohesive zero-trust security platform.
The system is engineered for:
- High performance
- Structured traffic analysis
- Hot policy reload
- Modular microservice deployment
- Enterprise-grade extensibility
- 🔐 Zero-Trust Request Validation
- 🧠 Deterministic + Intelligent Hybrid Detection
- 🌳 Grammar-Aware Traffic Parsing
- ⚙️ Modular Microservice Architecture
- 🔄 Dynamic Policy Management
- 📊 Observability-First Design
|
|
|
|
┌──────────────────────────────────────────────────────────────┐
│ ADMIN DASHBOARD │
│ (Next.js + TypeScript) │
└───────────────────────────┬──────────────────────────────────┘
│ REST
▼
┌──────────────────────────────────────────────────────────────┐
│ CONTROL PLANE API │
│ (Rust + Axum + PostgreSQL) │
│ │
│ - Rule Management │
│ - Audit Logging │
│ - Configuration Management │
└───────────────────────────┬──────────────────────────────────┘
│ gRPC (Control Channel)
▼
┌──────────────────────────────────────────────────────────────┐
│ DATA PLANE CORE │
│ (Rust Engine) │
│ │
│ - Reverse Proxy │
│ - CFG Parser │
│ - AST Analysis │
│ - Rule Engine │
│ - Rate Limiter │
│ - Load Balancer │
└───────────────────────────┬──────────────────────────────────┘
│ gRPC (Inference)
▼
┌──────────────────────────────────────────────────────────────┐
│ ML INFERENCE SERVICE │
│ (Python + ONNX Runtime) │
└──────────────────────────────────────────────────────────────┘
| Repository | Description | Language |
|---|---|---|
| nexus-core | High-performance Rust proxy and security engine | Rust |
| nexus-ml | ONNX-based ML inference microservice | Python |
| nexus-control-api | Administrative control plane backend | Rust |
| nexus-dashboard | Web-based admin dashboard | TypeScript |
| nexus-iac | Infrastructure and container orchestration | Docker / YAML |
| nexus-docs | Architecture and technical documentation | Markdown |
| Layer | Technology | Purpose |
|---|---|---|
| Language | Rust | Data plane & control plane |
| Runtime | Tokio | Async I/O |
| Protocol | gRPC | Inter-service communication |
| ML Runtime | ONNX | Model inference |
| Database | PostgreSQL | Rules & audit storage |
| Frontend | Next.js | Admin interface |
| Observability | Prometheus | Metrics |
- Strict internal service boundaries
- In-memory rule updates via secure gRPC
- Versioned configuration control
- Structured logging and audit trail
- mTLS-ready internal communication
- Zero direct dashboard-to-core access
- ✅ Core reverse proxy engine
- ✅ CFG-based parsing layer
- 🚧 Semantic rule engine
- 🚧 ML inference integration
- 🚧 Administrative dashboard
- ⏳ Canary rule deployment
- ⏳ Distributed rule synchronization
- Shadow traffic evaluation
- Advanced anomaly scoring models
- Multi-region deployment
- Enterprise SSO integration
- Kubernetes-native deployment tooling
We welcome contributions from developers, researchers, and security engineers.
Ways to contribute:
- Report issues
- Improve documentation
- Suggest new detection strategies
- Optimize parsing performance
- Expand ML classification models
Development setup instructions are available in individual repository READMEs.
Project NexusWAF is released under the MIT License.
Engineered with precision for structured, intelligent application security.
⭐ Star the project if you find it valuable.