--- language: - tr - en license: apache-2.0 base_model: Qwen/Qwen3-8B library_name: peft pipeline_tag: text-generation datasets: - cortexrouter/judge-v1-holdout tags: - security - vulnerability-verification - cybersecurity - appsec - triage - cvd - lora - peft - qwen3 - cortexrouter ---
--- ## Executive Overview **CortexRouter Judge v1** (`cortexrouter/judge-v1`) is a domain-specialized **PEFT / LoRA** adapter built on **[`Qwen/Qwen3-8B`](https://huggingface.co/Qwen/Qwen3-8B)** for **automated vulnerability-evidence verification and false-positive elimination** in authorized security testing and Coordinated Vulnerability Disclosure (CVD) workflows. Traditional web scanners flag HTTP `200 OK` responses, generic login pages, or custom `404`/`500` error templates as critical CVE findings. **CortexRouter Judge v1** runs **100% offline on local air-gapped GPUs** (zero source code or sensitive crash trace leakage to external cloud APIs), inspects the raw HTTP/CLI test evidence alongside target metadata, and emits a deterministic **9-field structured triage report**. --- ## Architecture & Triage Pipeline ```text ┌──────────────────────────────┐ ┌───────────────────────────────────┐ ┌─────────────────────────────────┐ │ ISOLATED LAB / SCANNER │ │ CORTEXROUTER JUDGE v1 │ │ 9-FIELD STRUCTURED REPORT │ │ • Target & Version Metadata │ ───▶ │ • Base: Qwen/Qwen3-8B (bfloat16) │ ───▶ │ • DOĞRULANDI (Confirmed) │ │ • Raw HTTP / CLI Evidence │ │ • Adapter: LoRA (Apache-2.0) │ │ • ETKİSİZ (Patched / Closed) │ │ • Candidate CVE Class │ │ • 100% Local / Air-Gapped vLLM │ │ • YANLIŞ_POZİTİF (False Pos.) │ └──────────────────────────────┘ └───────────────────────────────────┘ └─────────────────────────────────┘ ``` ### Structured 9-Field Output Schema Given raw security test evidence, the model outputs a strict **9-field structured decision report**: 1. **Hedef ortam** (*Target environment*) 2. **Zafiyet kimliği** (*Vulnerability / CVE ID*) 3. **Kategori** (*Vulnerability category / CWE class*) 4. **Test adımları** (*Verification steps*) 5. **Gözlemlenen kanıt** (*Observed technical evidence*) 6. **Karar** (*Final triage decision*: `DOĞRULANDI` | `ETKİSİZ` | `YANLIŞ_POZİTİF`) 7. **Gerekçe** (*Evidence-backed technical rationale*) 8. **Güven düzeyi** (*Confidence assessment*) 9. **Kaynak** (*Reference / advisory context*) | Decision Class | Meaning | Operational Action | |---|---|---| | **`DOĞRULANDI`** *(Confirmed)* | Concrete exploitability / impact artifact is present in the observed output (e.g., `/etc/passwd` leak, SQL syntax trace, command execution proof). | Escalate to human researcher & initiate 90-day Coordinated Vulnerability Disclosure. | | **`ETKİSİZ`** *(Ineffective / Patched)* | Vendor patch applied (`HTTP 404`), vulnerable component disabled (`HTTP 500`), or endpoint unreachable. | Close as mitigated / non-reproducible in target configuration. | | **`YANLIŞ_POZİTİF`** *(False Positive)* | Request returned `HTTP 200` (e.g., redirect to standard login page or static HTML) with zero security impact. | Suppress scanner noise automatically. | > **Language Design Note:** Output field labels and decision classes are intentionally standardized in **Turkish** (`DOĞRULANDI`, `ETKİSİZ`, `YANLIŞ_POZİTİF`) for deterministic downstream parsing (`eval/run_eval.py`). Both **Turkish and English** evidence prompts are understood. --- ## Verified Holdout Benchmark (`80/80 = 100%`) Evaluated on **[`cortexrouter/judge-v1-holdout`](https://huggingface.co/datasets/cortexrouter/judge-v1-holdout)** — a clean, unseen holdout benchmark spanning **20 distinct CVEs × 4 adversarial triage scenarios = 80 test cases**: | Scenario | Test Condition | Expected Decision | Accuracy | |---|---|---|---| | **Scenario A** | Concrete exploit evidence present in output | `DOĞRULANDI` | **20/20 (100%)** | | **Scenario B** | Vendor-patched target (`HTTP 404` / error page, no impact) | `ETKİSİZ` | **20/20 (100%)** | | **Scenario C** | Vulnerable version but required module/component disabled | `ETKİSİZ` | **20/20 (100%)** | | **Scenario D** | Ambiguous `HTTP 200` login/landing page flagged by scanner | `YANLIŞ_POZİTİF` | **20/20 (100%)** | | **Total** | **20 Unseen CVEs × 4 Scenarios** | **All 3 Classes** | **80/80 (100.0%)** | ### Reproduce the Benchmark Yourself ```bash # Clone model or GitHub evaluation suite git clone https://github.com/CortexRouter/cortexrouter.git cd cortexrouter # Option 1: Evaluate directly with Transformers + PEFT python eval/run_eval.py --model cortexrouter/judge-v1 # Option 2: Evaluate against a local vLLM LoRA server python eval/run_eval.py --api http://localhost:8000/v1 --model judge ``` --- ## Quickstart ### 1. Python (`transformers` + `peft`) ```bash pip install transformers peft accelerate torch ``` ```python import torch from transformers import AutoModelForCausalLM, AutoTokenizer from peft import PeftModel BASE_MODEL = "Qwen/Qwen3-8B" ADAPTER_ID = "cortexrouter/judge-v1" SYSTEM_PROMPT = ( "Sen kıdemli bir uygulama güvenliği analistisin. " "Yalnızca verilen kanıta dayanarak karar verirsin. " "Kanıt yoksa uydurmasın. 9 alanlı yapıda Türkçe cevap ver." ) QUESTION = """HEDEF: Apache 2.4.49 (izole lab) Test çıktısı: HTTP 200 root:x:0:0:root:/root:/bin/bash Soru: CVE-2021-41773 sınıfı bir açık bu çıktıyla doğrulanır mı?""" tok = AutoTokenizer.from_pretrained(BASE_MODEL) base = AutoModelForCausalLM.from_pretrained( BASE_MODEL, torch_dtype=torch.bfloat16, device_map="auto", ) model = PeftModel.from_pretrained(base, ADAPTER_ID).eval() messages = [ {"role": "system", "content": SYSTEM_PROMPT}, {"role": "user", "content": QUESTION}, ] ids = tok.apply_chat_template( messages, add_generation_prompt=True, return_tensors="pt", ).to(model.device) with torch.no_grad(): out = model.generate( ids, max_new_tokens=700, do_sample=False, pad_token_id=tok.eos_token_id, ) print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True)) ``` ### 2. Production Air-Gapped Serving (`vLLM` + LoRA) ```bash vllm serve Qwen/Qwen3-8B \ --enable-lora \ --lora-modules judge=cortexrouter/judge-v1 \ --port 8000 ``` ```bash curl http://localhost:8000/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{ "model": "judge", "temperature": 0, "messages": [ {"role": "system", "content": "Sen kıdemli bir uygulama güvenliği analistisin. Yalnızca verilen kanıta dayanarak karar verirsin. Kanıt yoksa uydurmasın. 9 alanlı yapıda Türkçe cevap ver."}, {"role": "user", "content": "Hedef ortam: RevokeBB 1.0 (izole lab)\nTest çıktısı: HTTP 200 — gövde uygulamanın giriş sayfası; beklenen etki yok.\nSoru: tarayıcı bu uç noktayı açık işaretledi; karar ne olmalı?"} ] }' ``` --- ## Scope, Limitations & Responsible Use | Dimension | Specification | |---|---| | **Base Architecture** | `Qwen/Qwen3-8B` (LoRA adapter; base weights unmodified) | | **Domain Scope** | Web & application security test evidence verification | | **Input Modality** | Textual HTTP responses, headers, error traces, CLI outputs (~768 tokens) | | **Role in Pipeline** | Downstream evidence judge — always keep human-in-the-loop before vendor reporting | ### Ethical & Coordinated Disclosure Commitment - Designed strictly for **authorized defensive security testing** on systems you own or have explicit written permission to assess. - Never use for unauthorized scanning or automated exploitation. - All independent zero-day discoveries by CortexRouter are reported **100% free of charge** to open-source maintainers under our [90-Day Coordinated Vulnerability Disclosure Policy](https://cortexrouter.ai/disclosure/). --- ## Official Ecosystem & Community Links - **Flagship Website & Advisories:** [https://cortexrouter.ai](https://cortexrouter.ai) - **Interactive Benchmark Explorer (HF Space):** [cortexrouter/judge-v1-explorer](https://huggingface.co/spaces/cortexrouter/judge-v1-explorer) - **80-Case Holdout Dataset:** [cortexrouter/judge-v1-holdout](https://huggingface.co/datasets/cortexrouter/judge-v1-holdout) - **GitHub Source & Eval Suite:** [github.com/CortexRouter/cortexrouter](https://github.com/CortexRouter/cortexrouter) - **Support Local Hardware Lab:** [Open Collective](https://opencollective.com/cortexrouter) · [GitHub Sponsors](https://github.com/sponsors/CortexRouter) - **Security Contact:** `vahap@cortexrouter.ai` ([OpenPGP Key](https://cortexrouter.ai/pgp.asc)) --- ## License & Citation Released under the **Apache-2.0 License**. Base model [`Qwen/Qwen3-8B`](https://huggingface.co/Qwen/Qwen3-8B) is licensed under Apache-2.0 by Alibaba Group. ```bibtex @misc{cortexrouter-judge-v1, title = {CortexRouter Judge v1: Open-Weights Vulnerability-Evidence Verification Model}, author = {Eren, Vahap and {CortexRouter}}, year = {2026}, url = {https://huggingface.co/cortexrouter/judge-v1} } ```