CADRE Behavioral Analysis
Two-layer behavioral detection with FastBlocker (instant) and BehaviorEngine (5-min sliding window) - 20+ signals including JA3 TLS fingerprinting, Sec-Fetch headers, machine timing, path entropy, and sequential enumeration. Context-aware dynamic rules that score and stop multi-vector attacks in memory.
Overview
💡 How it works: Every request passes through two independent scoring layers. FastBlocker evaluates structural signals immediately - Sec-Fetch headers, Accept quality, header count, UA shape, path anomalies, and IP rate. BehaviorEngine builds a per-fingerprint profile and scores velocity, timing regularity, path entropy, error rates, static asset ratio, burst patterns, and more over a sliding 5-minute window. A fingerprint reaching score ≥70 is sticky-blocked for 15 minutes. JA3 hash from the TLS ClientHello is the primary profile key - IP rotation, VPN hops, and proxy chains don't reset the profile if the TLS fingerprint is consistent. The entire system runs in-process with no external dependencies.
Feature details
Missing Sec-Fetch Headers
Injected by all browsers since Chrome 76 - absent in all HTTP libraries. Missing all three = +35pts instantly
Bare Accept Header
*/* without quality values = +20pts for non-browser clients
Low Header Count
<8 total headers = +10pts (minimal HTTP clients)
UA Structure Analysis
Validates Mozilla token, platform grouping, AppleWebKit/Gecko presence
Path Traversal Scoring
Double-dot sequences, null bytes, CRLF injection = +50pts on first occurrence
Query String Injection
union+select, <script, onerror=, exec(, base64_decode( = +55pts
IP Rate Limiter
Sliding window 30 req/10s per IP = instant 5-minute block
JA3 TLS Fingerprinting
Computed from Go's tls.ClientHelloInfo - CipherSuites, SupportedVersions, Curves, SignatureSchemes, ALPN, SNI
Known Browser Database
Chrome, Firefox, Safari, Edge, Opera, Brave, Tor Browser JA3 hashes pre-loaded = instant allow
Tiered Velocity Scoring
Warn (+20), High (+35), Extreme (+50) - per JA3 fingerprint over 5 minutes
Machine Timing Detection
Coefficient of variation <0.05 AND mean <2s = machine precision timing (+45pts)
Uniform Response Time
CV <0.1 across 6+ requests = automated polling (+20pts)
Shannon Path Entropy
Entropy <0.6 = scanner repeating endpoints (+20pts). Entropy <0.3 with 10+ requests = very low entropy (+35pts)
Sequential Enumeration
>30% consecutive numeric paths = /item/1,/item/2,/item/3 pattern (+35pts)
High Path Density
>90% unique paths in <8 requests = scanner walking endpoints (+25pts)
Zero Static Assets
0% static asset ratio after 10+ requests = tools never load CSS/JS/images (+30pts)
Method Probing
4+ distinct HTTP methods against same path = method enumeration attack (+30pts)
Error Rate Analysis
>25% 4xx = +12pts, >50% 4xx/5xx = +25pts, >50% 404 = +35pts
Parameter Fuzzing
Same endpoint with 10+ unique parameter names across 20+ requests = automated discovery (+30pts)
UA Rotation
>30% unique User-Agents across 10+ requests = evasion attempt (+25pts)
Burst Pattern
Zero requests in prior 9-minute window followed by 20+ in last minute = attack burst (+30pts)
Score ≥70
15-minute hard block written to profile
Block Auto-Expiry
Block TTL auto-expires after 15 minutes - profile demoted to challenge state
Session Trust Bonus
Established sessions older than 10 minutes with score <20 receive −15pts reduction
New Profile Penalty
Profile younger than 10 seconds with 15+ requests scores +20pts
Domain Isolation
Profile store per-domain - prevents cross-tenant data leakage
Health Check Bypass
Silent monitoring probes whitelisted - never accumulate false-positive scores
Learning Mode
Monitor-only mode records detections without blocking - safe for baseline establishment
Profile Ring Buffer
Last 100 requests stored per profile - O(1) eviction, fixed memory footprint
Background Sweeper
Idle profiles evicted every 5 minutes after 30-minute TTL
How CloFix WAF uses it
💡 How it works: Every request passes through two independent scoring layers. FastBlocker evaluates structural signals immediately - Sec-Fetch headers, Accept quality, header count, UA shape, path anomalies, and IP rate. BehaviorEngine builds a per-fingerprint profile and scores velocity, timing regularity, path entropy, error rates, static asset ratio, burst patterns, and more over a sliding 5-minute window. A fingerprint reaching score ≥70 is sticky-blocked for 15 minutes. JA3 hash from the TLS ClientHello is the primary profile key - IP rotation, VPN hops, and proxy chains don't reset the profile if the TLS fingerprint is consistent. The entire system runs in-process with no external dependencies.
Canonical URL: https://clofix.com/features/clofix-waf/cadre-behavioral-analysis/