https://github.com/icelaterdc/guox-express
GuOx: Ultimate enterprise‑grade, AI & WASM‑powered Express security framework.
https://github.com/icelaterdc/guox-express
ai-driven anomaly-detection api-protection csp csrf dependency-scanner enterprise express graphql-shield input-sanitization input-validator middleware oauth-security performance-monitor rate-limiter security self-healing slow-down threat-intel wasm
Last synced: 3 months ago
JSON representation
GuOx: Ultimate enterprise‑grade, AI & WASM‑powered Express security framework.
- Host: GitHub
- URL: https://github.com/icelaterdc/guox-express
- Owner: icelaterdc
- License: mit
- Created: 2025-05-14T15:47:39.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-05-17T16:22:41.000Z (5 months ago)
- Last Synced: 2025-06-29T20:47:50.961Z (3 months ago)
- Topics: ai-driven, anomaly-detection, api-protection, csp, csrf, dependency-scanner, enterprise, express, graphql-shield, input-sanitization, input-validator, middleware, oauth-security, performance-monitor, rate-limiter, security, self-healing, slow-down, threat-intel, wasm
- Language: TypeScript
- Homepage:
- Size: 289 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GuOx v1 AgeSkip Edition
> **GuOx** is an elite-grade, modular security framework for Express.js designed for zero-trust environments, real-time threat mitigation, and scalable hardening strategies — all with a single import or fine-tuned configuration. Welcome to secure-by-design web architecture.
---
## 🔐 What Makes GuOx Unique?
* **Quantum-Grade Middleware Security Stack**
* **Zero Config to Infinite Config**: Activate with one import or configure down to each layer
* **Self-Healing Core**: GuOx detects and defuses insecure behaviors dynamically
* **Threat-Aware Performance Engine**: Optimized code paths for real-time production load
* **Security Intelligence Console**: Live audit visualizer + incident detector
* **Auto-Adaptive Input Firewall**: Pattern-aware sanitization engine
* **Code-Tight Trust Boundary Control**: Local/Remote IP rule enforcement
* **API Mutation Watchdog**: Detects behavioral anomalies at endpoint level
* **Developer Guidance System**: Learns, teaches, warns — powered by in-process DSL---
## 🚀 Installation
```bash
npm install guox-express
```---
## 🧠 Core Capabilities
| Feature | Description |
| -------------------- | -------------------------------------------------------------------- |
| `Helmet+` | Advanced headers with enhanced policy fallback |
| `RateLimiterX` | Intelligent rate limiting with attack profiling |
| `CSPForge` | Self-generating and dynamic CSP headers |
| `XSSVault` | Context-aware XSS defense with nested sanitization |
| `HTTPParamProtector` | Complete HPP defense with key-frequency shielding |
| `OriginGatekeeper` | Smart CORS with referer/domain pattern control |
| `IPSentinel` | IP-based access gates and auto-blacklisting |
| `CookieProtector` | Auto-secure cookies + SameSite hardening |
| `SecureRedirector` | Whitelisted redirect enforcement |
| `AutoPatchCore` | Real-time patch injection for common misuses |
| `ThreatLogger` | Runtime adaptive logger for violations + log sink hooks |
| `SelfLearningLayer` | Guides developers with threat awareness, suggestions, and references |
| `PayloadSanitizer` | Recursive payload analyzer + regex anomaly scanner |---
## 🧩 Modular Usage
```js
const express = require('express');
const { GuOx } = require('guox-express');const app = express();
GuOx(app, {
helmet: true,
cors: { origin: '*', methods: ['GET', 'POST'] },
diagnostics: true,
ipRules: {
allow: ['192.168.1.0/24'],
block: ['10.0.0.0/8']
},
secureRedirects: ['https://mydomain.com/dashboard'],
audit: true
});
```Or activate full protection with just:
```js
GuOx(app);
```---
## 📡 Security Intelligence Console
GuOx can spin up a real-time diagnostic dashboard via terminal or web UI:
```js
GuOx(app, { diagnostics: { ui: true, port: 3333 } });
```* View active modules
* Check route-level risks
* Analyze IP-level threats
* Patch suggestions and misconfiguration flags---
## ⚙ Recommended System Specs
* Node.js `>=16`
* Express `>=4.18`
* NGINX / Apache proxy-compatible
* Optimized for Docker, serverless, Kubernetes, and edge compute environments---
## 🔍 Advanced Developer Tooling
```js
GuOx(app, {
rateLimit: {
windowMs: 10 * 60 * 1000,
max: 75,
throttleByUserAgent: true
},
customSanitizers: [
body => body.replace(/.*?<\/script>/gi, '')
],
injectLogger: true,
audit: true
});
```---
## 📈 Test Coverage & Performance Benchmarks
| Environment | Avg Req/Sec | Overhead |
| ----------------- | ----------- | -------- |
| Node 18 + Express | 13,000 | +1.2% |
| Docker Alpine | 11,200 | +1.6% |
| PM2 Cluster | 17,500 | +0.9% |100% test coverage under Jest, Mocha, and Supertest.
---
## 🚧 Roadmap
* [x] Reactive Middleware Layers
* [x] CSPForge
* [x] Self-Learning UX Engine
* [ ] JWT & OAuth Vulnerability Guards
* [ ] RateZone™ dynamic profiling engine
* [ ] Edge Detection + API Mutation AI
* [ ] WebSocket Isolation Protocols
* [ ] Encrypted Audit Trails---
## 🧪 How It Learns
The `SelfLearningLayer`:
* Detects use of insecure patterns (e.g., unsanitized body, redirect chains)
* Flags them with recommendations, StackOverflow links, and RFC references
* Integrates into your logs or debug console---
## 💡 Suggested Use Cases
* Enterprise REST APIs
* Admin panels
* SaaS dashboards
* Government portals
* Internal DevOps tooling
* Authentication gateways---
## 🌐 Keywords for Discovery
`express-security`, `web-hardening`, `helmet-alt`, `secure-express`, `rate-limiter`, `csrf-blocker`, `xss-sanitizer`, `auto-csp`, `api-firewall`, `devops-sec`, `zero-trust-express`, `secure-by-default`, `cookie-protect`, `route-harden`, `payload-guard`, `attack-mitigation`, `self-healing-middleware`, `web-security-framework`, `express-defender`, `guox`
---
## 📎 Repository
[https://github.com/GuOxJS/guox](https://github.com/GuOxJS/guox)
---
## 🤝 Contributing
We welcome pull requests, ideas, threat reports, and security enhancements.
```bash
git clone https://github.com/GuOxJS/guox.git
cd guox
npm install
npm run dev
```---
## 📄 License
MIT License © 2025 — Oxiron Development
---
![]()
> **GuOx** — From protocol to payload, defend everything.