From 29f55ec6bcbdef443d7e232f7b2b7b6eb5c2f498 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Sun, 1 Feb 2026 05:45:25 +0100 Subject: [PATCH] feat(mitmproxy): Add enhanced threat patterns and README Add modern attack detection patterns: - SSTI (Jinja2, Twig, FreeMarker, ERB, Thymeleaf) - Prototype Pollution (__proto__, constructor[]) - GraphQL abuse (introspection, deep nesting) - JWT attacks (alg:none bypass, exposed tokens) - CVE-2024-21887 (Ivanti Connect Secure) - CVE-2024-1709 (ScreenConnect auth bypass) - CVE-2024-27198 (TeamCity auth bypass) Add comprehensive README documenting: - Threat detection patterns and categories - CrowdSec integration and scenarios - GeoIP database setup - File paths and dependencies Co-Authored-By: Claude Opus 4.5 --- .../secubox/secubox-app-mitmproxy/README.md | 81 +++++++++++++++++++ .../srv/mitmproxy/addons/secubox_analytics.py | 70 ++++++++++++++++ 2 files changed, 151 insertions(+) create mode 100644 package/secubox/secubox-app-mitmproxy/README.md diff --git a/package/secubox/secubox-app-mitmproxy/README.md b/package/secubox/secubox-app-mitmproxy/README.md new file mode 100644 index 00000000..ccb048ba --- /dev/null +++ b/package/secubox/secubox-app-mitmproxy/README.md @@ -0,0 +1,81 @@ +# SecuBox mitmproxy App + +LXC container with mitmproxy for HTTPS traffic inspection and threat detection. + +## Components + +| Component | Description | +|-----------|-------------| +| **LXC Container** | Debian-based container with mitmproxy | +| **secubox_analytics.py** | Threat detection addon for mitmproxy | +| **haproxy_router.py** | HAProxy backend routing addon | +| **CrowdSec Integration** | Threat logging for automatic IP banning | + +## Threat Detection Patterns + +### Attack Types Detected + +| Category | Patterns | +|----------|----------| +| **SQL Injection** | UNION SELECT, OR 1=1, SLEEP(), BENCHMARK() | +| **XSS** | `