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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
---
license: apache-2.0
language:
- en
tags:
- cybersecurity
- offensive-security
- penetration-testing
- red-team
- mitre-attack
- cve
- security
- ctf
- vulnerability-assessment
- exploit-development
- owasp
- nist
base_model: Qwen/Qwen3.6-35B-A3B
pipeline_tag: text-generation
library_name: transformers
model-index:
- name: CyberStrike-OffSec-35B
  results:
  - task:
      type: text-generation
      name: Cybersecurity Knowledge
    dataset:
      name: SecEval
      type: XuanwuAI/SecEval
    metrics:
    - name: Overall Accuracy
      type: accuracy
      value: 81.39
  - task:
      type: text-generation
      name: Cybersecurity Knowledge
    dataset:
      name: CyberMetric-10000
      type: khangmacon/cybermetric-10000
    metrics:
    - name: Overall Accuracy
      type: accuracy
      value: 86.61
  - task:
      type: text-generation
      name: MITRE ATT&CK Extraction
    dataset:
      name: SECURE-MAET
      type: custom
    metrics:
    - name: MAET Accuracy
      type: accuracy
      value: 93.94
  - task:
      type: text-generation
      name: CWE Extraction
    dataset:
      name: SECURE-CWET
      type: custom
    metrics:
    - name: CWET Accuracy
      type: accuracy
      value: 93.05
  - task:
      type: text-generation
      name: General Knowledge
    dataset:
      name: MMLU
      type: cais/mmlu
    metrics:
    - name: Overall Accuracy
      type: accuracy
      value: 76.94
---

<div align="center">

# CyberStrike-OffSec-35B


![hf_20260626_003513_bed87a06-b6d3-4270-9ecd-edf23c1e31d6](https://cdn-uploads.huggingface.co/production/uploads/6650ee29a7ba732bfbc0d40e/xF_PiBoJoovMU3Grusrqx.png)


### The #1 Ranked Open-Source Model for Cybersecurity & Offensive Security

<br>

![Model Size](https://img.shields.io/badge/Parameters-35B_MoE_(3B_active)-blue?style=for-the-badge)
![Precision](https://img.shields.io/badge/Precision-BF16-purple?style=for-the-badge)
![License](https://img.shields.io/badge/License-Apache_2.0-green?style=for-the-badge)
![Architecture](https://img.shields.io/badge/Architecture-Mixture_of_Experts-orange?style=for-the-badge)

<br>

![SecEval](https://img.shields.io/badge/SecEval-_%231_|_81.39%25-brightgreen?style=flat-square&logo=shield&logoColor=white)
![SECURE MAET](https://img.shields.io/badge/MITRE_ATT%26CK-_%231_|_93.94%25-brightgreen?style=flat-square&logo=shield&logoColor=white)
![SECURE CWET](https://img.shields.io/badge/CWE_Knowledge-_%231_|_93.05%25-brightgreen?style=flat-square&logo=shield&logoColor=white)
![CyberMetric](https://img.shields.io/badge/CyberMetric-_%234_|_86.61%25-blue?style=flat-square&logo=shield&logoColor=white)
![MMLU CompSec](https://img.shields.io/badge/MMLU_Computer_Security-86%25-blue?style=flat-square)

<br>

**Outperforms GPT-4-turbo on SecEval | Outperforms GPT-4 on MITRE ATT&CK & CWE benchmarks**

<br>

<p>
<a href="#available-versions">Quantized</a> &nbsp;&bull;&nbsp;
<a href="#benchmark-results">Benchmarks</a> &nbsp;&bull;&nbsp;
<a href="#quick-start">Quick Start</a> &nbsp;&bull;&nbsp;
<a href="#model-details">Model Details</a> &nbsp;&bull;&nbsp;
<a href="#training-pipeline">Training</a> &nbsp;&bull;&nbsp;
<a href="#architecture">Architecture</a> &nbsp;&bull;&nbsp;
<a href="#use-cases">Use Cases</a> &nbsp;&bull;&nbsp;
<a href="#citation">Citation</a>
</p>

</div>

---

## What is CyberStrike?

CyberStrike-OffSec-35B is a **domain-specialized large language model** built for offensive security professionals, penetration testers, and security researchers. Fine-tuned on Qwen3.6-35B-A3B using a two-stage pipeline (SFT + DPO), it delivers expert-level knowledge across the entire offensive security lifecycle:

- **Vulnerability Discovery** &mdash; SQL injection, XSS, SSRF, deserialization, business logic flaws
- **MITRE ATT&CK Operations** &mdash; Technique identification, kill chain analysis, threat mapping
- **Exploit Development** &mdash; PoC creation, payload crafting, evasion techniques
- **Cloud & Infrastructure** &mdash; AWS/Azure/GCP misconfigurations, container escapes, IAM abuse
- **Red Team Operations** &mdash; C2 setup, lateral movement, persistence, EDR evasion
- **Compliance & Standards** &mdash; NIST, OWASP ASVS, CIS benchmarks, CVSS scoring

> **Model Format:** This is the full-precision **BF16** model (67 GB, 26 safetensors shards). For quantized versions, see below.

### Available Versions

| Repo | Format | Size | Use Case |
|------|--------|------|----------|
| [oyildirim/CyberStrike-OffSec-35B](https://huggingface.co/oyildirim/CyberStrike-OffSec-35B) | BF16 (full precision) | 67 GB | Transformers, vLLM, fine-tuning |
| [oyildirim/CyberStrike-OffSec-35B-GGUF](https://huggingface.co/oyildirim/CyberStrike-OffSec-35B-GGUF) | GGUF Q8_0 | 36 GB | llama.cpp, Ollama, LM Studio |
| [oyildirim/CyberStrike-OffSec-35B-GGUF](https://huggingface.co/oyildirim/CyberStrike-OffSec-35B-GGUF) | GGUF Q6_K | 27 GB | llama.cpp, Ollama, LM Studio |
| [oyildirim/CyberStrike-OffSec-35B-GGUF](https://huggingface.co/oyildirim/CyberStrike-OffSec-35B-GGUF) | GGUF Q5_K_M | 24 GB | llama.cpp, Ollama, LM Studio |
| [oyildirim/CyberStrike-OffSec-35B-GGUF](https://huggingface.co/oyildirim/CyberStrike-OffSec-35B-GGUF) | GGUF Q4_K_M | 21 GB | llama.cpp, Ollama, LM Studio |

---

## Benchmark Results

CyberStrike achieves **state-of-the-art results** on multiple cybersecurity benchmarks, outperforming GPT-4-turbo, GPT-4, and all other evaluated models on domain-specific evaluations.

### SecEval &mdash; #1 on Leaderboard

> Outperforms GPT-4-turbo by **+2.32 points** across 9 cybersecurity domains, 2,189 questions.

| Rank | Model | Overall | Network Sec | Web Sec | PenTest | Cryptography |
|:----:|-------|:-------:|:-----------:|:-------:|:-------:|:------------:|
| **#1** | **CyberStrike-OffSec-35B** | **81.39%** | **85.09%** | **85.34%** | **82.26%** | **75.00%** |
| #2 | GPT-4-turbo | 79.07% | 75.65% | 82.15% | 80.00% | 64.29% |
| #3 | GPT-3.5-turbo | 62.09% | 60.87% | 63.00% | 72.00% | 35.71% |
| #4 | Yi-6B | 53.57% | 56.52% | 54.98% | 69.26% | 35.71% |

<details>
<summary><b>Full SecEval Domain Breakdown (9 domains)</b></summary>

| Domain | CyberStrike | GPT-4-turbo | Delta |
|--------|:-----------:|:-----------:|:-----:|
| Network Security | **85.09%** | 75.65% | +9.44 |
| Web Security | **85.34%** | 82.15% | +3.19 |
| Vulnerability | **83.33%** | 76.05% | +7.28 |
| Application Security | **82.29%** | 75.25% | +7.04 |
| PenTest | **82.26%** | 80.00% | +2.26 |
| Software Security | **79.75%** | 73.28% | +6.47 |
| System Security | **77.82%** | 73.61% | +4.21 |
| Cryptography | **75.00%** | 64.29% | +10.71 |
| Memory Safety | **71.43%** | 70.83% | +0.60 |

CyberStrike leads in **all 9 domains**. Largest improvement: **Cryptography (+10.71)** and **Network Security (+9.44)**.

</details>

### SECURE &mdash; #1 on MITRE ATT&CK & CWE Tasks

> Outperforms GPT-4 by **+5.34 points** on MITRE ATT&CK extraction. Evaluated on ICS cybersecurity scenarios.

| Task | CyberStrike | GPT-4 | Llama3-70B | Gemini-Pro |
|------|:-----------:|:-----:|:----------:|:----------:|
| **MAET** (MITRE ATT&CK) | **93.94%** | 88.6% | 86.3% | 86.2% |
| **CWET** (CWE Knowledge) | **93.05%** | 89.6% | 90.4% | 87.8% |

### CyberMetric-10000 &mdash; #4 out of 25 Models

> 9,189 expert-validated cybersecurity MCQ questions across NIST, RFC, and industry standards.

| Rank | Model | Score |
|:----:|-------|:-----:|
| #1 | GPT-4o | 88.89% |
| #2 | GPT-4-turbo | 88.50% |
| #3 | GEMINI-pro 1.0 | 87.50% |
| **#4** | **CyberStrike-OffSec-35B** | **86.61%** |
| #5 | Mixtral-8x7B-Instruct | 87.00% |
| #6 | Falcon-180B-Chat | 87.00% |
| #7 | GPT-3.5-turbo | 80.30% |

<details>
<summary><b>General Benchmarks (lm-evaluation-harness, 0-shot)</b></summary>

| Benchmark | Score |
|-----------|:-----:|
| MMLU (overall) | 76.94% |
| MMLU &mdash; Social Sciences | 86.81% |
| MMLU &mdash; Computer Security | 86.00% |
| MMLU &mdash; Other | 81.43% |
| MMLU &mdash; Security Studies | 80.00% |
| MMLU &mdash; STEM | 73.87% |
| MMLU &mdash; Humanities | 69.59% |
| HellaSwag (acc_norm) | 79.61% |
| ARC Easy | 81.86% |
| ARC Challenge (acc_norm) | 59.13% |
| WinoGrande | 72.22% |
| TruthfulQA MC2 | 49.64% |

*Note: General benchmarks run at 0-shot. Few-shot performance expected to be higher.*

</details>

---

## Quick Start

### Ollama (Easiest)

```bash
# Download and run the Q4_K_M quantized version
ollama run hf.co/oyildirim/CyberStrike-OffSec-35B-GGUF:Q4_K_M
```

### llama.cpp

```bash
# Download the GGUF file from https://huggingface.co/oyildirim/CyberStrike-OffSec-35B-GGUF
./llama-cli -m CyberStrike-OffSec-35B-Q4_K_M.gguf \
  -p "Explain SSRF exploitation in cloud environments" \
  -n 512 --temp 0.7
```

### Transformers

```python
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model = AutoModelForCausalLM.from_pretrained(
    "oyildirim/CyberStrike-OffSec-35B",
    torch_dtype=torch.bfloat16,
    device_map="auto",
    trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(
    "oyildirim/CyberStrike-OffSec-35B",
    trust_remote_code=True,
)

messages = [
    {"role": "user", "content": "Explain SSRF exploitation in cloud environments with AWS metadata service abuse."}
]

text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=2048, do_sample=True, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```

### vLLM (Recommended for Production)

```bash
pip install vllm

vllm serve oyildirim/CyberStrike-OffSec-35B \
  --dtype bfloat16 \
  --max-model-len 4096 \
  --trust-remote-code \
  --served-model-name CyberStrike-OffSec-35B
```

Then use the OpenAI-compatible API:

```python
from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="not-needed")
response = client.chat.completions.create(
    model="CyberStrike-OffSec-35B",
    messages=[{"role": "user", "content": "How to exploit deserialization vulnerabilities in Java applications?"}],
    max_tokens=2048,
)
print(response.choices[0].message.content)
```

---

## Model Details

| Property | Value |
|----------|-------|
| **Base Model** | [Qwen3.6-35B-A3B](https://huggingface.co/Qwen/Qwen3.6-35B-A3B) |
| **Type** | Mixture-of-Experts (MoE) |
| **Total Parameters** | 35 Billion |
| **Active Parameters** | ~3 Billion per token |
| **Precision** | BF16 (Brain Float 16) |
| **Model Size** | 67 GB (26 safetensors shards) |
| **Context Length** | 4,096 tokens (training) / 262,144 max (architecture) |
| **Training Method** | SFT + DPO (QLoRA) |
| **Training Hardware** | NVIDIA H200 140GB SXM |
| **License** | Apache 2.0 |

---

## Training Pipeline

CyberStrike was trained using a two-stage alignment pipeline:

### Stage 1: Supervised Fine-Tuning (SFT)

The base Qwen3.6-35B-A3B model was fine-tuned on a curated dataset of offensive security scenarios covering 10 categories:

`web_app` `cloud` `post_exploitation` `edr_evasion` `malware_dev` `network` `social_engineering` `full_kill_chain` `lateral_movement` `persistence`

- **Method:** QLoRA (4-bit NF4 quantization)
- **LoRA Config:** r=64, alpha=128, dropout=0
- **Target Modules:** q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj

### Stage 2: Direct Preference Optimization (DPO)

The SFT model was further aligned using **115,250 preference pairs** across 12 carefully designed axes, teaching the model to produce expert-level responses over superficial ones:

| Axis | Description | Examples |
|------|------------|---------|
| MITRE ATT&CK Depth | Deep technique analysis over surface-level summaries | T1059 sub-technique breakdowns |
| CVE Analysis | Detailed vulnerability analysis with CVSS scoring | CVE-2024-* exploit chains |
| OWASP Methodology | Structured testing methodology | ASVS compliance checks |
| Cloud Security | Provider-specific attack paths | AWS IAM, Azure AD, GCP abuse |
| Tool Usage | Proper tool invocation patterns | Nmap, Burp, sqlmap workflows |
| ReAct Reasoning | Step-by-step analytical thinking | Multi-stage attack planning |
| Multi-turn Engagement | Sustained deep conversation | Progressive pentest engagement |
| Code-first Approach | Working exploit code over theory | PoC development, payload crafting |
| Techstack Analysis | Technology-specific vulnerabilities | Framework-specific attacks |
| Sub-agent Coordination | Orchestrated multi-tool operations | Combined recon + exploit chains |
| Business Logic | Domain-aware vulnerability assessment | Sector-specific attack scenarios |
| NIST Compliance | Standards-aligned security assessment | SP 800-53 control mapping |

- **Method:** QLoRA, LoRA r=32, alpha=64
- **DPO Beta:** 0.1
- **Learning Rate:** 5e-6 with cosine schedule
- **Effective Batch Size:** 8
- **Training Steps:** 9,142

---

## Architecture

```
Qwen3.6-35B-A3B (Mixture-of-Experts)
β”œβ”€β”€ 35B total parameters
β”œβ”€β”€ ~3B active parameters per token
β”œβ”€β”€ 256 experts, top-k routing
β”œβ”€β”€ Grouped Query Attention (GQA)
β”œβ”€β”€ RoPE positional encoding (theta=10M)
β”œβ”€β”€ Max position embeddings: 262,144
└── BF16 precision (67 GB on disk)
```

The MoE architecture provides a unique advantage: **expert-level knowledge at inference costs comparable to a 3B model**, while having the knowledge capacity of a 35B model.

---

## Use Cases

CyberStrike is designed for professionals conducting **authorized security assessments**:

- **Penetration Testing** &mdash; Web app, network, cloud, and API security testing
- **Red Team Operations** &mdash; Full kill chain simulation, C2 operations, evasion
- **Vulnerability Research** &mdash; CVE analysis, exploit development, PoC creation
- **CTF Competitions** &mdash; Challenge solving, reverse engineering, cryptography
- **Security Education** &mdash; Training material generation, exam preparation
- **Threat Intelligence** &mdash; MITRE ATT&CK mapping, threat actor TTPs
- **Compliance Assessment** &mdash; NIST, OWASP, CIS benchmark evaluation

---

## Ethical Use & Disclaimer

This model is intended **exclusively for authorized security testing, education, and research purposes**. Users must:

- Obtain proper written authorization before testing any systems
- Comply with all applicable laws and regulations
- Follow responsible disclosure practices
- Never use this model for unauthorized access or malicious activities

The authors are not responsible for any misuse of this model.

---

## Citation

```bibtex
@misc{cyberstrike2025,
  title={CyberStrike-OffSec-35B: A Domain-Specialized LLM for Offensive Security},
  author={Orhan Yildirim},
  year={2025},
  url={https://huggingface.co/oyildirim/CyberStrike-OffSec-35B}
}
```

---

<div align="center">

**Built with purpose. Benchmarked with rigor. Designed for professionals.**

<br>

![Made with Love](https://img.shields.io/badge/Made_with-Passion-red?style=flat-square)
![HuggingFace](https://img.shields.io/badge/HuggingFace-Model-yellow?style=flat-square&logo=huggingface)
![Qwen](https://img.shields.io/badge/Base-Qwen3.6--35B--A3B-blue?style=flat-square)

</div>