cortexrouter commited on
Commit
ad915c8
·
verified ·
1 Parent(s): 8f119ea

Model card: English version

Browse files
Files changed (1) hide show
  1. README.md +74 -58
README.md CHANGED
@@ -1,7 +1,7 @@
1
  ---
2
  language:
3
- - tr
4
  - en
 
5
  license: apache-2.0
6
  base_model: Qwen/Qwen3-8B
7
  library_name: peft
@@ -10,7 +10,7 @@ tags:
10
  - security
11
  - vulnerability-verification
12
  - cybersecurity
13
- - turkish
14
  - lora
15
  - peft
16
  - qwen3
@@ -18,52 +18,54 @@ tags:
18
 
19
  # CortexRouter Judge v1
20
 
21
- Zafiyet kanıtlarını değerlendiren ve yapılandırılmış Türkçe karar raporu üreten model.
22
-
23
- *A vulnerability-evidence judge that produces a structured Turkish decision report.*
24
 
25
  ---
26
 
27
- ## Ne yapar
28
 
29
- Bir güvenlik testinden gelen **kanıtı** alır ve **9 alanlı yapılandırılmış rapor** üretir:
30
 
31
  ```
32
- 1) Hedef ortam 2) Açık kimliği 3) Kategori
33
- 4) Test adımları 5) Gözlenen kanıt 6) Karar
34
- 7) Gerekçe 8) Güven 9) Kaynak
35
  ```
36
 
37
- **Karar sınıfları**
38
 
39
- | Karar | Anlam |
40
  |---|---|
41
- | `DOĞRULANDI` | Kanıt, zafiyetin sömürülebildiğini gösteriyor |
42
- | `ETKİSİZ` | Zafiyet kapalı, yamalı veya ulaşılamaz |
43
- | `YANLIŞ_POZİTİF` | İstek başarılı görünüyor ama gerçek etki yok |
 
 
 
 
44
 
45
  ---
46
 
47
- ## Performans
48
 
49
- **Temiz holdout — 20 CVE × 4 senaryo = 80 soru**
50
 
51
- | Senaryo | Açıklama | Doğruluk |
52
  |---|---|---|
53
- | A | Kanıt var | 13/13 = %100 |
54
- | B | Yamalı (404) | 13/13 = %100 |
55
- | C | Modül kapalı | 12/12 = %100 |
56
- | D | Belirsiz (giriş sayfası) | 12/12 = %100 |
57
- | **TOPLAM** | | **80/80 = %100** |
58
 
59
- **Kendin doğrula:** `eval/holdout.jsonl` + `eval/run_eval.py`
60
 
61
- > Ölçüm, tavsiye edilen prompt ile yapılmıştır. Farklı prompt'larla
62
- > sonuç değişebilir — bu yüzden holdout açık olarak yayınlanmıştır.
63
 
64
  ---
65
 
66
- ## Kullanım
67
 
68
  ```bash
69
  pip install transformers peft accelerate torch
@@ -84,27 +86,27 @@ model = PeftModel.from_pretrained(
84
  "cortexrouter/judge-v1",
85
  ).eval()
86
 
87
- SORU = """HEDEF: Apache 2.4.49 (izole lab)
88
  Test çıktısı: HTTP 200
89
  root:x:0:0:root:/root:/bin/bash
90
 
91
  Soru: CVE-2021-41773 sınıfı bir açık bu çıktıyla doğrulanır mı?"""
92
 
93
- girdi = tok.apply_chat_template(
94
- [{"role": "user", "content": SORU}],
95
  add_generation_prompt=True, return_tensors="pt",
96
  ).to(model.device)
97
 
98
  with torch.no_grad():
99
- c = model.generate(
100
- girdi, max_new_tokens=700, do_sample=False,
101
  pad_token_id=tok.eos_token_id,
102
  )
103
 
104
- print(tok.decode(c[0][girdi.shape[1]:], skip_special_tokens=True))
105
  ```
106
 
107
- **vLLM ile servis**
108
 
109
  ```bash
110
  vllm serve Qwen/Qwen3-8B --enable-lora \
@@ -119,7 +121,7 @@ curl http://localhost:8000/v1/chat/completions \
119
 
120
  ---
121
 
122
- ## Değerlendirme
123
 
124
  ```bash
125
  python eval/run_eval.py --api http://localhost:8000/v1 --model judge
@@ -127,45 +129,59 @@ python eval/run_eval.py --api http://localhost:8000/v1 --model judge
127
 
128
  ---
129
 
130
- ## Sınırlar
131
 
132
- | Sınır | Açıklama |
133
  |---|---|
134
- | **Dil** | Türkçe ağırlıklı; İngilizce çalışır ama optimize değil |
135
- | **Kapsam** | Web uygulama zafiyetleri |
136
- | **Kanıt tipi** | Metin tabanlı (ikili/hex desteklenmez) |
137
- | **Uzunluk** | ~768 token'a kadar kanıt |
138
- | **Karar dışı alanlar** | Şirket adı, altyapı gibi bilinmeyen konularda uydurma yapabilir |
139
- | **Üretim** | Tek başına kullanılmaz; bir tarama motorunun kanıtını yorumlar |
140
-
141
- **Bu model ne DEĞİL:**
142
- - ❌ Yeni bir temel model değil — Qwen3-8B üzerine LoRA adapter
143
- - ❌ Genel amaçlı değil — zafiyet doğrulama için özelleşmiş
144
- - ❌ İnsan denetimi yerine geçmez
145
-
146
- **Kullanılmaması gereken yerler:** yetkisiz hedefler, otomatik sömürü,
147
- hukuki karar, insan denetimi olmadan kritik altyapı.
 
148
 
149
  ---
150
 
151
- ## Etik
152
 
153
- Bu model **yetkili güvenlik testi** için tasarlanmıştır. Yalnız sahipliği
154
- doğrulanmış hedeflerde kullanılmalı; zafiyet bildirimi sorumlu açıklama (CVD)
155
- ile yapılmalı; üretilen raporlar insan tarafından doğrulanmalıdır.
156
 
157
  ---
158
 
159
- ## Lisans
160
 
161
  **Apache 2.0**
162
 
163
- Taban model: [Qwen/Qwen3-8B](https://huggingface.co/Qwen/Qwen3-8B)
164
  (Apache 2.0, Alibaba Group)
165
 
166
- **Değişiklik:** LoRA adapter eğitildi. Taban model ağırlıkları değiştirilmedi.
167
 
168
  ```
169
  Copyright 2026 CortexRouter
170
  Base model: Qwen3-8B, Copyright Alibaba Group (Apache 2.0)
171
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  language:
 
3
  - en
4
+ - tr
5
  license: apache-2.0
6
  base_model: Qwen/Qwen3-8B
7
  library_name: peft
 
10
  - security
11
  - vulnerability-verification
12
  - cybersecurity
13
+ - pentest
14
  - lora
15
  - peft
16
  - qwen3
 
18
 
19
  # CortexRouter Judge v1
20
 
21
+ A vulnerability-evidence judge that produces a structured decision report.
 
 
22
 
23
  ---
24
 
25
+ ## What it does
26
 
27
+ Given **evidence** from a security test, the model outputs a **9-field structured report**:
28
 
29
  ```
30
+ 1) Target environment 2) Vulnerability ID 3) Category
31
+ 4) Test steps 5) Observed evidence 6) Decision
32
+ 7) Rationale 8) Confidence 9) Source
33
  ```
34
 
35
+ **Decision classes**
36
 
37
+ | Decision | Meaning |
38
  |---|---|
39
+ | `DOĞRULANDI` (Confirmed) | Evidence shows the vulnerability is exploitable |
40
+ | `ETKİSİZ` (Ineffective) | Vulnerability is patched, closed, or unreachable |
41
+ | `YANLIŞ_POZİTİF` (False positive) | Request succeeded but no real impact |
42
+
43
+ > **Note on output language:** the model was trained to produce reports in
44
+ > **Turkish**. Field labels and decision classes are Turkish by design.
45
+ > English input is understood; output remains Turkish.
46
 
47
  ---
48
 
49
+ ## Performance
50
 
51
+ **Clean holdout — 20 CVEs × 4 scenarios = 80 questions**
52
 
53
+ | Scenario | Description | Accuracy |
54
  |---|---|---|
55
+ | A | Evidence present (file content, command output) | 13/13 = 100% |
56
+ | B | Patched (404, "Not Found") | 13/13 = 100% |
57
+ | C | Module disabled | 12/12 = 100% |
58
+ | D | Ambiguous (200 + login page, no impact) | 12/12 = 100% |
59
+ | **Total** | | **80/80 = 100%** |
60
 
61
+ **Verify yourself:** `eval/holdout.jsonl` + `eval/run_eval.py`
62
 
63
+ > Measured with the recommended prompt. Results may vary with different
64
+ > prompts — that is why the holdout is published.
65
 
66
  ---
67
 
68
+ ## Usage
69
 
70
  ```bash
71
  pip install transformers peft accelerate torch
 
86
  "cortexrouter/judge-v1",
87
  ).eval()
88
 
89
+ QUESTION = """HEDEF: Apache 2.4.49 (izole lab)
90
  Test çıktısı: HTTP 200
91
  root:x:0:0:root:/root:/bin/bash
92
 
93
  Soru: CVE-2021-41773 sınıfı bir açık bu çıktıyla doğrulanır mı?"""
94
 
95
+ ids = tok.apply_chat_template(
96
+ [{"role": "user", "content": QUESTION}],
97
  add_generation_prompt=True, return_tensors="pt",
98
  ).to(model.device)
99
 
100
  with torch.no_grad():
101
+ out = model.generate(
102
+ ids, max_new_tokens=700, do_sample=False,
103
  pad_token_id=tok.eos_token_id,
104
  )
105
 
106
+ print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
107
  ```
108
 
109
+ **Serving with vLLM**
110
 
111
  ```bash
112
  vllm serve Qwen/Qwen3-8B --enable-lora \
 
121
 
122
  ---
123
 
124
+ ## Evaluation
125
 
126
  ```bash
127
  python eval/run_eval.py --api http://localhost:8000/v1 --model judge
 
129
 
130
  ---
131
 
132
+ ## Limitations
133
 
134
+ | Limitation | Description |
135
  |---|---|
136
+ | **Output language** | Turkish (field labels and decisions) |
137
+ | **Input language** | Turkish preferred; English understood |
138
+ | **Scope** | Web application vulnerabilities |
139
+ | **Evidence type** | Text only (no binary/hex evidence) |
140
+ | **Evidence length** | ~768 tokens |
141
+ | **Non-decision fields** | May hallucinate on unknown context (company names, infrastructure) |
142
+ | **Production use** | Not standalone — interprets evidence from a scanning engine |
143
+
144
+ **What this model is NOT:**
145
+ - Not a new foundation model — a LoRA adapter on Qwen3-8B
146
+ - Not general-purpose — specialised for vulnerability verification
147
+ - Not a replacement for human review
148
+
149
+ **Do not use for:** unauthorised targets, automated exploitation,
150
+ legal decisions, or critical infrastructure without human review.
151
 
152
  ---
153
 
154
+ ## Ethics
155
 
156
+ This model is designed for **authorised security testing**. Use only on
157
+ targets with verified ownership. Disclose vulnerabilities responsibly (CVD).
158
+ All reports must be reviewed by a human before action.
159
 
160
  ---
161
 
162
+ ## License
163
 
164
  **Apache 2.0**
165
 
166
+ Base model: [Qwen/Qwen3-8B](https://huggingface.co/Qwen/Qwen3-8B)
167
  (Apache 2.0, Alibaba Group)
168
 
169
+ **Modification:** LoRA adapter trained. Base model weights unchanged.
170
 
171
  ```
172
  Copyright 2026 CortexRouter
173
  Base model: Qwen3-8B, Copyright Alibaba Group (Apache 2.0)
174
  ```
175
+
176
+ ---
177
+
178
+ ## Citation
179
+
180
+ ```bibtex
181
+ @misc{cortexrouter-judge-v1,
182
+ title = {CortexRouter Judge v1},
183
+ author = {CortexRouter},
184
+ year = {2026},
185
+ url = {https://huggingface.co/cortexrouter/judge-v1}
186
+ }
187
+ ```