CloFix WAF · Default Protection

No-IP Device Behavioral Protection

Advanced device fingerprinting that tracks malicious actors across IP changes, VPNs, proxies, and Tor. Uses behavioral biometrics (keystrokes, mouse movements, scrolling patterns), canvas/webGL fingerprints, TLS JA3 hashing, and velocity analysis to identify and block automated threats even when they rotate IP addresses. Baseline defenses that separate real browsers from automated abuse.

Default Protection #12 38 details Published

Overview

💡 How it works: The No-IP Behavioral Protection system generates a persistent device ID using browser fingerprints that survive IP changes. When a request arrives, the system extracts device identity from User-Agent, OS, browser engine, and hardware signals. Canvas/WebGL/Audio fingerprints create a hardware-level signature. The client-side JavaScript collects behavioral biometrics (keystroke timing, mouse movement curves, click patterns, scroll velocity) and sends them via sendBeacon API. The server tracks velocity in rolling windows (1m/5m/1h), detects IP hopping via history analysis, and calculates geographic speed using GeoIP (if available). Each violation adds weighted risk points - reaching 0.70 triggers a 15-minute IP-agnostic block based on device ID. The threat memory persists across block expiry, so repeat offenders face stricter scrutiny. All fingerprint data stays in memory with automatic TTL-based cleanup (30 days idle). No external dependencies required - the entire system runs in-process with sub-50µs overhead.

📊 Detection Metrics:

🔒 Detected Threat Types:

Feature details

IP-Agnostic Fingerprinting

Generates persistent device IDs using browser fingerprints, canvas/WebGL hashes, audio context, fonts, screen resolution, hardware concurrency, and OS detection - tracks devices even when they change IP addresses via VPN, proxy, or Tor

Browser & OS Detection

Identifies browser (Chrome, Firefox, Safari, Edge, Opera, Brave), browser engine (Blink, WebKit, Gecko), OS (Windows, macOS, iOS, Android, Linux), OS version, and architecture (x86_64, ARM64) - detects spoofing attempts

Canvas Fingerprinting

Generates unique canvas hashes from rendered text, shapes, and colors - persistent across sessions and IP changes. Detects canvas hash changes within consistency window as indication of emulation or spoofing

WebGL Fingerprinting

Extracts WebGL renderer and vendor information (Mali, Adreno, Apple GPU, NVIDIA, Intel) via WEBGL_debug_renderer_info extension - detects emulated GPU environments

Audio Context Fingerprinting

Analyzes oscillator waveform rendering differences across browsers and devices - each device produces unique audio hashes based on hardware

Font Fingerprinting

Detects installed system fonts via flash of invisible text (FOIT) measurement - 100+ font families tested for device uniqueness

Hardware Fingerprinting

Collects screen resolution, color depth, pixel ratio, hardware concurrency (CPU cores), device memory, and max touch points - creates comprehensive device signature

Headless Browser Detection

Scores headless probability (0.0-1.0) based on User-Agent patterns (HeadlessChrome, PhantomJS, Puppeteer, Playwright) and behavioral anomalies - blocks scores above 0.5 with 0.9 confidence

Automation Detection

Identifies automation tools (Selenium, Puppeteer, Playwright, Python-Requests, curl, wget, Go-http, Postman, Insomnia) with weighted scoring - blocks with 0.7+ score

Behavioral Biometrics - Keystroke Dynamics

Tracks key press timing (inter-key latency) and key hold duration - calculates average typing speed, rhythm hash, and standard deviation. Standard deviation <2ms indicates robotic typing (+20% risk)

Behavioral Biometrics - Mouse Movements

Records mouse coordinates, calculates speed, acceleration, and curvature. Sustained near-zero curvature indicates robotic movement +15% risk. Generates mouse movement hash from last 20 points

Behavioral Biometrics - Click Patterns

Tracks click coordinates and target elements, calculates average click position, detects exact click repetition (>80% same pixel = robotic +15% risk)

Behavioral Biometrics - Scroll Patterns

Records scroll position, speed, and direction - calculates average scroll speed and dominant direction (up/down/both)

Request Velocity Tracking

Rolling windows (1-minute, 5-minute, 1-hour) track request density - thresholds: 300 req/min, 1400 req/5min, 30 req/sec burst detection triggers +35% risk score

IP Hopping Detection

Tracks unique IPs per device in 1-hour window. 3+ unique IPs flags IP hopping +30% risk - blocks VPN/proxy rotation attacks

Geo-Impossible Travel Detection

Calculates speed between geographic locations (requires GeoIP). Speed >900 km/h triggers geo-impossible travel +35% risk - detects VPN hopping across continents

Canvas Consistency Monitoring

Tracks canvas hash changes within 15-minute window on same User-Agent. Hash changes indicate emulation/anti-fingerprinting +25% risk

TLS JA3 Fingerprinting

Cross-references JA3 hash from CloudFlare or proxy headers - tracks TLS stack even when IP changes. Self-signed certificates bypass JA3 checks to avoid false positives

Login Brute Force Detection

5-minute rolling window tracks failed login attempts - 5+ failures in 5m = +30% risk, 15+ in 1h = +25% risk. Persistent threat memory stores total failed logins across sessions

Sensitive Path Probing

Detects enumeration of /wp-admin, /admin, /phpmyadmin, /.env, /.git, /backup, /config - +15% risk per probe

Path Scanning Detection

50+ unique paths per device flags directory brute-forcing +20% risk

Rapid Request Detection

Inter-request intervals <50ms flag automation +10% risk

Header Completeness Analysis

Detects missing Accept, Accept-Language, Accept-Encoding headers - common in tools (+15% risk each). Chrome missing Connection header is normal (HTTP/2)

User-Agent Structure Validation

Validates Mozilla signature, parentheses structure, version numbers. Empty UA +40pts, missing Mozilla +20pts, no parentheses +10pts

Accept Header Analysis

*/* without quality values flags generic accept +15% risk for non-browser clients

Cookie Handling Detection

Missing cookies +10% risk for authenticated paths (tools often don't handle cookies)

Referer Validation

Missing referer on non-root paths +10% risk

Persistent Threat Memory

Tracks total blocks, failed logins, attack types, and suspicion score across sessions - survives block expiry, increases risk weighting by 30% for repeat offenders

Risk Score Calculation

Weighted aggregation (IP hopping 0.30, geo travel 0.35, burst 0.35, velocity 0.15-0.20, brute force 0.25-0.30, headless 0.35, automation 0.25, robotic typing 0.20, canvas inconsistency 0.25). Threshold 0.70 = malicious, 0.40-0.70 triggers challenge

Confidence Scoring

Based on data points (requests, keystrokes, mouse moves) - max 1.0 at 500+ points, prevents false positives on limited data

Auto-Blocking

Risk ≥0.70 triggers 15-minute block (configurable), threat memory records each block and elevates suspicion score

Challenge System

Risk 0.40-0.70 issues proof-of-work CAPTCHA challenges. Successful challenges reduce risk by -0.20, failed challenges +0.10 risk

Automatic Session Cleanup

1-hour background sweeper removes fingerprints idle >30 days, auto-unblocks devices after BlockDuration

Memory Efficient

Ring buffers for request history (last 200 requests), keystroke/mouse data (last 1000 points), IP history (last 100 entries) - prevents unbounded memory growth

API Endpoints

/api/behavioral/device (fingerprint), /api/behavioral/keystroke (typing patterns), /api/behavioral/mouse (mouse movements), /api/behavioral/click (click patterns), /api/behavioral/scroll (scroll behavior), /api/behavioral/challenge (CAPTCHA), /debug/noip-stats (statistics)

Client-Side Collector

8KB JavaScript automatically injects into HTML pages - collects canvas hash, WebGL, audio fingerprint, keystrokes, mouse movements, clicks, scrolls. sendBeacon API ensures delivery without blocking navigation

Zero External Dependencies

No Redis, No database - all fingerprint data stored in memory with automatic cleanup. 10,000 fingerprints consume ~200MB RAM

Performance Impact

<50µs per request for fingerprint lookup, <500KB memory per active fingerprint, FIFO eviction prevents leaks

How CloFix WAF uses it

💡 How it works: The No-IP Behavioral Protection system generates a persistent device ID using browser fingerprints that survive IP changes. When a request arrives, the system extracts device identity from User-Agent, OS, browser engine, and hardware signals. Canvas/WebGL/Audio fingerprints create a hardware-level signature. The client-side JavaScript collects behavioral biometrics (keystroke timing, mouse movement curves, click patterns, scroll velocity) and sends them via sendBeacon API. The server tracks velocity in rolling windows (1m/5m/1h), detects IP hopping via history analysis, and calculates geographic speed using GeoIP (if available). Each violation adds weighted risk points - reaching 0.70 triggers a 15-minute IP-agnostic block based on device ID. The threat memory persists across block expiry, so repeat offenders face stricter scrutiny. All fingerprint data stays in memory with automatic TTL-based cleanup (30 days idle). No external dependencies required - the entire system runs in-process with sub-50µs overhead.

Canonical URL: https://clofix.com/features/clofix-waf/noip-behavioral-protection/