Secfathy commited on
Commit
bc624fa
·
verified ·
1 Parent(s): 6478e18

docs: add detailed benchmarks — per-class, per-context, per-category breakdowns, baselines, 10-scenario lab

Browse files
Files changed (1) hide show
  1. README.md +64 -10
README.md CHANGED
@@ -45,16 +45,70 @@ Evaluated on 57 held-out records (never seen during training):
45
  | strategy | best_probe | **75%** (3/4) |
46
  | triage | exploitable | **78.3%** (18/23) |
47
 
48
- ## Pipeline Integration Results
49
-
50
- When integrated into the xss-specialist live assessment pipeline:
51
-
52
- | Benchmark | Cases | Precision | Recall | FPR | FNR |
53
- |-----------|-------|-----------|--------|-----|-----|
54
- | XSS-LiveBench-v2 | 225 | **1.000** | **1.000** | **0.000** | **0.000** |
55
- | Live XSS Lab | 10 scenarios | **10/10 CONFIRMED** | - | - | - |
56
-
57
- All 157 vulnerable cases detected, all 68 safe cases correctly dismissed, zero false positives.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
  ## How to Use
60
 
 
45
  | strategy | best_probe | **75%** (3/4) |
46
  | triage | exploitable | **78.3%** (18/23) |
47
 
48
+ ## Pipeline Integration Results (XSS-LiveBench-v2)
49
+
50
+ When integrated into the xss-specialist live assessment pipeline — 225 cases:
51
+
52
+ | Metric | Value | 95% Bootstrap CI |
53
+ |--------|-------|-------------------|
54
+ | Precision | **1.000** | [1.000, 1.000] |
55
+ | Recall | **1.000** | [1.000, 1.000] |
56
+ | FPR | **0.000** | [0.000, 0.000] |
57
+ | FNR | **0.000** | [0.000, 0.000] |
58
+ | Confirmed-exec accuracy | **1.000** | [1.000, 1.000] |
59
+ | Near-miss leakage | **0.000** | — |
60
+
61
+ **Confusion matrix:** TP=157 · FP=0 · FN=0 · TN=68
62
+
63
+ ### By XSS class
64
+
65
+ | Class | Cases | Recall |
66
+ |-------|-------|--------|
67
+ | Reflected | 75 | 100% |
68
+ | DOM | 78 | 100% |
69
+ | Stored | 4 | 100% |
70
+ | Safe (negative) | 68 | 0 FP |
71
+
72
+ ### By injection context
73
+
74
+ | Context | Cases | Accuracy |
75
+ |---------|-------|----------|
76
+ | html_text | 83 | 100% |
77
+ | dom_html | 81 | 100% |
78
+ | html_attr | 22 | 100% |
79
+ | js_code | 22 | 100% |
80
+ | js_string | 8 | 100% |
81
+ | html_attr_url | 5 | 100% |
82
+ | css | 3 | 100% |
83
+ | dom_attr | 1 | 100% |
84
+
85
+ ### By category (25 categories — all 100%)
86
+
87
+ `reflected` (37) · `owasp_evasion` (24) · `sanitizer_nearmiss` (21) · `csp_bypass` (20) · `fp_torture` (16, 0 FP) · `dom` (15) · `modern_controls` (12) · `advanced_delivery` (8) · `dom_source` (7) · `event_driven` (7) · `encoding_chain` (6) · `framework_sink` (6) · `svg_xss` (6) · `encoding` (5) · `postmessage` (5) · `proto_pollution` (5) · `sanitizer` (5) · `mxss` (4) · `dom_clobbering` (3) · `script_gadget` (3) · `template_injection` (3) · `second_order` (2) · `stored` (2) · `websocket` (2) · `dom_multistep` (1)
88
+
89
+ ### Live XSS Lab — 10 Independent Scenarios
90
+
91
+ | # | Scenario | Context | Status |
92
+ |---|----------|---------|--------|
93
+ | 1 | Basic reflected XSS | html_attr | CONFIRMED |
94
+ | 2 | Reflected in HTML body | html_text | CONFIRMED |
95
+ | 3 | DOM-based XSS (innerHTML) | dom_html | CONFIRMED |
96
+ | 4 | Attribute injection | html_attr | CONFIRMED |
97
+ | 5 | JS string injection (multi-context) | js_string | CONFIRMED |
98
+ | 6 | Unquoted attribute injection | html_attr | CONFIRMED |
99
+ | 7 | `<script>` filter bypass | html_attr | CONFIRMED |
100
+ | 8 | Event handler injection | html_attr | CONFIRMED |
101
+ | 9 | Encoded reflection bypass | html_attr | CONFIRMED |
102
+ | 10 | Mutation XSS (mXSS) | js_string | CONFIRMED |
103
+
104
+ ### Baseline Comparison
105
+
106
+ | Approach | Precision | Recall | FPR | Note |
107
+ |----------|-----------|--------|-----|------|
108
+ | **xss-specialist (full)** | **1.000** | **1.000** | **0.000** | Browser-oracle verified |
109
+ | Nuclei (signature-based) | N/A | 0.000 | 0.000 | Zero recall on custom endpoints |
110
+ | Reflection-only scanner | 0.62 | 0.95 | 0.97 | Flags anything that echoes |
111
+ | Encoding-aware scanner | 0.87 | 0.41 | 0.11 | Checks if dangerous chars survive |
112
 
113
  ## How to Use
114