Text Generation
PEFT
Safetensors
Turkish
English
security
vulnerability-verification
cybersecurity
appsec
triage
cvd
lora
qwen3
cortexrouter
conversational
Instructions to use cortexrouter/judge-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use cortexrouter/judge-v1 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B") model = PeftModel.from_pretrained(base_model, "cortexrouter/judge-v1") - Notebooks
- Google Colab
- Kaggle
Model card: English version
Browse files
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 |
-
-
|
| 14 |
- lora
|
| 15 |
- peft
|
| 16 |
- qwen3
|
|
@@ -18,52 +18,54 @@ tags:
|
|
| 18 |
|
| 19 |
# CortexRouter Judge v1
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
*A vulnerability-evidence judge that produces a structured Turkish decision report.*
|
| 24 |
|
| 25 |
---
|
| 26 |
|
| 27 |
-
##
|
| 28 |
|
| 29 |
-
|
| 30 |
|
| 31 |
```
|
| 32 |
-
1)
|
| 33 |
-
4) Test
|
| 34 |
-
7)
|
| 35 |
```
|
| 36 |
|
| 37 |
-
**
|
| 38 |
|
| 39 |
-
|
|
| 40 |
|---|---|
|
| 41 |
-
| `DOĞRULANDI` |
|
| 42 |
-
| `ETKİSİZ` |
|
| 43 |
-
| `YANLIŞ_POZİTİF`
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
---
|
| 46 |
|
| 47 |
-
##
|
| 48 |
|
| 49 |
-
**
|
| 50 |
|
| 51 |
-
|
|
| 52 |
|---|---|---|
|
| 53 |
-
| A |
|
| 54 |
-
| B |
|
| 55 |
-
| C |
|
| 56 |
-
| D |
|
| 57 |
-
| **
|
| 58 |
|
| 59 |
-
**
|
| 60 |
|
| 61 |
-
>
|
| 62 |
-
>
|
| 63 |
|
| 64 |
---
|
| 65 |
|
| 66 |
-
##
|
| 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 |
-
|
| 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 |
-
|
| 94 |
-
[{"role": "user", "content":
|
| 95 |
add_generation_prompt=True, return_tensors="pt",
|
| 96 |
).to(model.device)
|
| 97 |
|
| 98 |
with torch.no_grad():
|
| 99 |
-
|
| 100 |
-
|
| 101 |
pad_token_id=tok.eos_token_id,
|
| 102 |
)
|
| 103 |
|
| 104 |
-
print(tok.decode(
|
| 105 |
```
|
| 106 |
|
| 107 |
-
**
|
| 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 |
-
##
|
| 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 |
-
##
|
| 131 |
|
| 132 |
-
|
|
| 133 |
|---|---|
|
| 134 |
-
| **
|
| 135 |
-
| **
|
| 136 |
-
| **
|
| 137 |
-
| **
|
| 138 |
-
| **
|
| 139 |
-
| **
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
-
|
| 144 |
-
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
|
|
|
| 148 |
|
| 149 |
---
|
| 150 |
|
| 151 |
-
##
|
| 152 |
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
|
| 157 |
---
|
| 158 |
|
| 159 |
-
##
|
| 160 |
|
| 161 |
**Apache 2.0**
|
| 162 |
|
| 163 |
-
|
| 164 |
(Apache 2.0, Alibaba Group)
|
| 165 |
|
| 166 |
-
**
|
| 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 |
+
```
|