SecJev: Bringing Security Expertise to System One Decision Models
Organizations: University of Electronic Science and Technology of China · National Key Laboratory of Security Communication
Abstract
Security workflows need models that turn complex observations and explicit policies into decisions. System One models introduced by Jev return typed predictions and probabilities; security specialization supplies the domain expertise behind those predictions. We introduce SecJev, to our knowledge the first family of Jev-style decision models specialized for security, spanning 0.8B to 9B parameters. Built on Kev's single-pass candidate scorer, SecJev learns Boolean, choice, and ordered decisions from text, telemetry, and observation histories. We develop SecJev-Corpus to unify source-label prediction and explicit-policy evaluation across 14 tasks and eight sources. It covers tool outputs, traffic, federated updates, consensus, authentication, and vehicle messages. Scene-weighted training adapts the models across these domains while preserving a shared typed decision interface. Security specialization improves every model in the family; SecJev-0.8B outperforms general Kev-9B by 20.51 percentage points in task-macro accuracy. At 0.8B and 4B, SecJev achieves accuracy and latency close to answer-only generative fine-tuning with lower peak allocated GPU memory. SecJev-4B improves on Kev-4B and security-trained generation in prompt-injection and traffic transfer tests. We release adapters, decision heads, SecJev-Corpus, and training and inference code.
Figures & tables
| Source | Decision task | Type | Questions |
|---|---|---|---|
| CICIoT2023 | Attack-capture label | Boolean | 48,000 |
| ToN-IoT | Connection attack label | Boolean | 40,000 |
| Twins / Streamlet | Observed candidate-voter conflict | Boolean | 7,397 |
| Candidate quorum | Boolean | 7,397 | |
| Certificate policy action | Choice | 7,397 | |
| Evidence level | Ordered | 7,397 |
| Split | Scenes | Questions |
|---|---|---|
| Training | 81,410 | 118,818 |
| Calibration | 9,333 | 14,821 |
| Development | 9,911 | 14,912 |
| Test | 14,670 | 21,634 |
| Total | 115,324 | 170,185 |
| 0.8B | 2B | 4B | 9B | |||||||
| Task | Maj. | Init. | SecJev | Init. | SecJev | Init. | SecJev | Init. | SecJev | |
| AgentDojo: boundary | 426 | 77.46 | 51.88 | 80.28 | 40.85 | 92.96 | 54.23 | 99.53 | 61.97 | 98.83 |
| AgentDojo: injection | 426 | 77.46 | 32.86 | 79.81 | 29.81 | 92.72 | 73.00 | 98.36 | 64.55 | 98.83 |
| ByzFL: client update | 800 | 80.00 | 79.62 | 92.62 | 80.00 | 97.50 | 79.88 | 95.88 | 80.25 | 93.88 |
| CICIoT2023: attack | 6,000 | 75.00 | 25.00 | 91.80 | 25.00 | 92.13 | 26.28 | 91.72 | 37.93 | 90.27 |
| InjecAgent: operation | 124 | 56.45 | 44.35 | 100.00 | 51.61 | 98.39 | 62.90 | 100.00 | 57.26 | 100.00 |
| Size | Method | Macro acc. | Short ms | Long ms | P95 ms | Q/s | GiB |
|---|---|---|---|---|---|---|---|
| 0.8B | SecJev | 90.46 | 79.2 | 164.1 | 256.0 | 7.32 | 2.56 |
| 0.8B | SecGen | 90.01 | 80.4 | 167.4 | 260.1 | 7.22 | 3.52 |
| 0.8B | Direct-Qwen pointer | 88.12 | 80.4 | 164.6 | 256.7 | 7.27 | 2.56 |
| 4B | SecJev | 94.48 | 109.1 | 578.8 | 890.5 | 2.54 | 10.18 |
| 4B | SecGen | 94.34 | 116.9 | 599.9 | 910.6 | 2.47 | 12.58 |
| 9B | Kev | 69.79 | 169.1 | 861.0 | 1278.5 | 1.73 | 17.11 |
| Dataset | Model | Accuracy | Precision | Recall | FPR | |
|---|---|---|---|---|---|---|
| BIPIA | Kev-4B | 1000 | 71.30 | 64.14 | 96.60 | 54.00 |
| BIPIA | SecJev-4B | 1000 | 83.60 | 75.38 | 99.80 | 32.60 |
| BIPIA | SecGen-4B | 1000 | 79.60 | 71.39 | 98.80 | 39.60 |
| IoT-23 | Kev-4B | 1000 | 73.00 | 65.54 | 97.00 | 51.00 |
| IoT-23 | SecJev-4B | 1000 | 90.20 | 86.95 | 94.60 | 14.20 |
| IoT-23 | SecGen-4B | 1000 | 84.30 | 76.34 | 99.40 | 30.80 |
| Change | SecJev size | Pairs | Original acc. | Changed acc. | Consistency | Both correct |
|---|---|---|---|---|---|---|
| Paraphrase | 0.8B | 1400 | 88.64 | 87.79 | 95.36 | 85.93 |
| 2B | 1400 | 90.79 | 89.86 | 96.57 | 88.79 | |
| 4B | 1400 | 91.64 | 91.14 | 98.36 | 90.57 | |
| 9B | 1400 | 90.71 | 90.64 | 96.43 | 88.93 | |
| Choice permutation | 0.8B | 500 | 83.00 | 82.60 | 98.80 | 82.20 |
| 2B | 500 | 84.80 | 84.00 | 97.40 | 83.40 |
| 0.8B initialization | Dev. bal. | Test macro | Test bal. |
|---|---|---|---|
| Kev | 90.36 | 90.34 | 88.00 |
| Qwen3.5 directly | 84.85 | 88.17 | 83.75 |
| General decision | General transfer | |||
|---|---|---|---|---|
| Size | Init. | SecJev | Init. | SecJev |
| 0.8B | 83.50 | 83.08 | 68.45 | 66.01 |
| 2B | 84.00 | 84.50 | 75.91 | 75.91 |
| 4B | 87.08 | 86.58 | 83.69 | 83.84 |
| 9B | 87.50 | 87.42 | 85.06 | 84.60 |
| Size | Probabilities | NLL | Brier | ECE (%) |
|---|---|---|---|---|
| 0.8B | Raw | 0.435 | 0.211 | 2.18 |
| 0.8B | Scaled | 0.412 | 0.213 | 3.34 |
| 2B | Raw | 0.399 | 0.191 | 1.80 |
| 2B | Scaled | 0.385 | 0.194 | 3.28 |
| 4B | Raw | 0.358 | 0.173 | 1.84 |
| 4B | Scaled | 0.344 | 0.177 | 3.56 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Check | Scope | Result |
|---|---|---|
| Schema and label validity | 170,185 questions | No violations found |
| Scene duplication and split isolation | 115,324 scenes and source groups | No violations found under the recorded grouping rules |
| Independent policy recomputation | 37,490 LANL/Twins questions | 0 inconsistent answers |
| Semantic-class distribution | Every task and split | Maximum class share 80%. Maximum cross-split gap 8.58 pp |
| Source-record recheck | 50 original records; 20 retained ByzFL records | No mismatches in the checked fields or label mappings |
| Independent human review | 280 questions; 20 per task | 261 answer agreements (93.21%); 180/180 tool-text and policy answers match labels |
| Matches corpus label | Evidence sufficient | |||||
| Task | Questions | A–C agree | A | C | A | C |
| AgentDojo: boundary action | 20 | 20 | 20 | 20 | 20 | 19 |
| AgentDojo: injection | 20 | 20 | 20 | 20 | 20 | 20 |
| CICIoT: attack | 20 | 20 | 14 | 14 | 6 | 3 |
| ByzFL: update attack | 20 | 17 | 17 | 18 | 4 | 0 |
| InjecAgent: operation | 20 | 20 | 20 | 20 | 20 | 20 |
| Task | 0.8B | 2B | 4B | 9B |
|---|---|---|---|---|
| AgentDojo: boundary action | 78 / 81 / 79 | 91 / 90 / 88 | 99 / 99 / 99 | 97 / 97 / 98 |
| AgentDojo: injection | 85 / 86 / – | 88 / 91 / – | 95 / 95 / – | 98 / 98 / – |
| CICIoT: attack | 93 / 94 / – | 94 / 93 / – | 93 / 94 / – | 88 / 95 / – |
| ByzFL: update attack | 91 / 85 / – | 95 / 94 / – | 88 / 84 / – | 83 / 85 / – |
| InjecAgent: operation | 100 / 98 / 100 | 98 / 94 / 98 | 100 / 100 / 100 | 100 / 99 / 100 |
| LANL: logon action | 100 / 100 / 100 | 100 / 100 / 100 | 100 / 100 / 100 | 99 / 100 / 99 |
| Task | Questions | Kev initialization | Direct-Qwen initialization |
|---|---|---|---|
| AgentDojo: boundary action | 426 | 80.28 | 82.86 |
| AgentDojo: injection | 426 | 79.81 | 71.60 |
| ByzFL: update attack | 800 | 92.62 | 95.38 |
| CICIoT: attack | 6000 | 91.80 | 91.47 |
| InjecAgent: operation | 124 | 100.00 | 96.77 |
| LANL: logon action | 540 | 98.89 | 97.78 |
| Size | Security task-macro | General decision micro | General transfer micro |
|---|---|---|---|
| 0.8B | |||
| 2B | |||
| 4B | |||
| 9B |
| Raw ( ) | Stored temperature | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Suite | Size | Model | NLL | Brier | ECE | NLL | Brier | ECE | |
| General decision | 0.8B | Init. | 2.406 | 0.652 | 0.268 | 9.94 | 0.449 | 0.240 | 2.69 |
| General decision | 0.8B | SecJev | 1.353 | 0.946 | 0.293 | 12.86 | 0.734 | 0.281 | 11.26 |
| General decision | 2B | Init. | 1.000 | 0.574 | 0.241 | 9.22 | 0.574 | 0.241 | 9.22 |
| General decision | 2B | SecJev | 1.292 | 0.749 | 0.249 | 9.88 | 0.616 | 0.241 | 8.48 |
| General decision | 4B | Init. | 2.144 | 0.468 | 0.207 | 7.32 | 0.360 | 0.189 | 2.60 |
| Model | Epoch | Micro | Macro | Bal. macro |
|---|---|---|---|---|
| SecGen-0.8B | 3 | 89.40 | 91.90 | 89.46 |
| Cls-0.8B | 3 | 89.09 | 90.76 | 88.39 |
| SecGen-4B | 3 | 91.15 | 94.11 | 92.35 |
| Size | Method | Test micro | Test macro | Test balanced macro |
|---|---|---|---|---|
| 0.8B | SecJev (Kev initialization) | 85.03 | 90.34 | 88.00 |
| 0.8B | Direct-Qwen pointer | 81.96 | 88.17 | 83.75 |
| 0.8B | SecGen | 84.75 | 90.02 | 87.79 |
| 0.8B | Candidate-sequence classification | 84.39 | 89.85 | 86.84 |
| 4B | SecJev (Kev initialization) | 88.01 | 94.51 | 92.42 |
| 4B | SecGen | 87.95 | 94.35 | 92.30 |
| SecGen-0.8B | Cls-0.8B | SecGen-4B | |||||
|---|---|---|---|---|---|---|---|
| Task | Questions | Acc. | Bal. | Acc. | Bal. | Acc. | Bal. |
| AgentDojo: boundary action | 426 | 76.29 | 80.63 | 84.27 | 80.62 | 96.71 | 94.92 |
| AgentDojo: injection | 426 | 79.11 | 80.24 | 75.35 | 74.49 | 97.89 | 96.42 |
| ByzFL: update attack | 800 | 95.62 | 93.05 | 94.00 | 88.28 | 97.25 | 96.17 |
| CICIoT: attack | 6000 | 91.30 | 86.44 | 92.07 | 89.33 | 91.70 | 87.29 |
| InjecAgent: operation | 124 | 99.19 | 99.07 | 100.00 | 100.00 | 100.00 | 100.00 |
| Size | Method | Micro | Macro | Semantic balanced macro |
|---|---|---|---|---|
| 0.8B | SecJev | 85.14 | 90.46 | 88.04 |
| 0.8B | SecGen | 84.70 | 90.01 | 87.76 |
| 0.8B | Direct-Qwen pointer | 81.85 | 88.12 | 83.72 |
| 4B | SecJev | 87.94 | 94.48 | 92.38 |
| 4B | SecGen | 87.95 | 94.34 | 92.26 |
| 9B | Kev | 50.87 | 69.79 | 70.32 |
| Size | Method | Short median range (ms) | Long median range (ms) | Batch-one Q/s |
|---|---|---|---|---|
| 0.8B | SecJev | 79.0–79.7 | 163.5–164.4 | |
| 0.8B | SecGen | 80.2–80.7 | 166.8–167.6 | |
| 0.8B | Direct-Qwen pointer | 80.3–80.7 | 164.5–164.7 | |
| 4B | SecJev | 107.4–110.3 | 577.6–579.2 | |
| 4B | SecGen | 112.9–135.2 | 597.5–600.3 | |
| 9B | Kev | 168.8–169.4 | 859.3–862.0 |
LLMs for Cybersecurity
Large language models for cybersecurity support threat analysis, vulnerability research, security operations, and cyber defense.
See all 254 papers