FlowSH detects 70% of SQLi attacks missed by ModSecurity
FlowSH can detect 70% of SQL injection attacks that ModSecurity fails to catch
Security & privacy arXiv 18 Nov 2026 Defense Prototype evidence
Published as “FlowSH: Detecting Web Attacks by Correlating Anomalous Network Flows and Endpoint Logs”
Why it matters
FLOWSH can augment existing WAFs by providing attack detection for encrypted web traffic without needing TLS interception, potentially reducing blind spots in enterprise networks.
Summary
FLOWSH detects 70% of SQLi attacks missed by ModSecurity and correctly recognises 77 of 109 malicious inputs that ModSecurity failed to detect, showing higher recall than a leading WAF. The system works on encrypted (HTTPS) and unencrypted traffic without decryption by correlating NetFlow metadata with server logs and using unsupervised clustering plus LSH similarity search. Evaluation on a testbed with four web scanners shows recall up to 93% in some settings but precision can be as low as 50% for certain thresholds, indicating trade-offs.
What they found 2
- FLOWSH detects 70% of SQLi attacks missed by ModSecurity.
“detecting 70% of SQLi attacks missed by ModSecurity, a leading web application firewall.”
- When ModSecurity missed 109 malicious inputs, FLOWSH recovered 77 of them at a 0.6 similarity threshold.
“At a threshold of 0.6, FLOWSH correctly recognised 77 out of 109 malicious inputs, demonstrating it can detect unseen web attacks and outperforms ModSecurity.”
Caveats 4
- Precision can be low: "precision was only 50.57% at 0.6 threshold."
- The LSH database struggles with inputs from scanners not represented in its training set: "the LSH database struggled to recognise inputs other than those originating from its original scanner set, which posed certain limitations."
- We opted only to test one web application, since we only manage the values that come in the payloads and the scanners always inject the same inputs, regardless of the target application.
- These results, albeit low in precision, are derived from extreme case scenarios where samples have prior knowledge of the tokens used to construct the LSH.
What’s new here 4
- Detects web attacks over HTTPS without decrypting traffic by using server-side logs.
- Combines unsupervised clustering of NetFlows with LSH-based similarity search for DPI.
- Continuously updates an LSH token database with newly observed attacks.
- Demonstrates higher recall than ModSecurity on the same attack set.