Klyrune-2B-Cyber
A compact language model for cybersecurity knowledge, secure coding, and security-focused code analysis.
Klyrune-2B-Cyber is part of the Klyrune 2B model family developed by Polyvor Labs. It extends the coding-focused Klyrune checkpoint toward cybersecurity tasks, including understanding common vulnerabilities, reviewing code for potential risks, and explaining safer implementation approaches.
The idea behind this release is to explore how useful a smaller, specialized language model can be for developers and security researchers. Klyrune-2B-Cyber is an experimental assistant rather than an automated security auditor, its findings should be checked against code behavior, tests, and independent security tools.
Model at a glance
| Model | Klyrune-2B-Cyber |
| Developer | Polyvor Labs |
| Model family | Klyrune 2B |
| Parameters | Approximately 2.52 billion |
| Model type | Decoder-only causal language model |
| Foundation | MiniCPM5-2B-Midtrain |
| Immediate parent | Klyrune-2B-Coder |
| Primary focus | Cybersecurity knowledge, code analysis, and secure coding assistance |
| Release status | Experimental research model |
The Klyrune 2B family
Klyrune-2B-Cyber builds on a series of models with progressively more focused capabilities:
MiniCPM5-2B-Midtrain
└── Klyrune-2B-General
└── Klyrune-2B-Coder
└── Klyrune-2B-Cyber
- Klyrune-2B-General explores general language understanding, reasoning, and problem-solving.
- Klyrune-2B-Coder focuses on programming and code-related tasks.
- Klyrune-2B-Cyber extends that work to defensive software security and vulnerability-related questions.
What you can use it for
Klyrune-2B-Cyber is intended to assist with tasks such as:
- Security knowledge: explain vulnerabilities, CWE categories, common attack surfaces, and defensive concepts.
- Code review: identify possible security concerns in short code snippets and explain why they may matter.
- Secure coding: suggest safer patterns and discuss potential fixes.
- Developer education: turn security concepts into practical, understandable examples.
- Research: evaluate the strengths and limits of compact language models on cybersecurity tasks.
Its responses are suggestions to investigate, not evidence that code is secure or insecure. The model should be used alongside testing, static analysis, and human review.
Evaluation
The following figures come from internal evaluations of the Klyrune 2B series. They are provided to describe the model's observed behavior, not to claim state-of-the-art performance or directly comparable results across different evaluation setups.
CyberMetric-500 — cybersecurity knowledge
| Model | Accuracy | Questions |
|---|---|---|
| Klyrune-2B-Cyber | 84.60% | 500 |
| Qwen2.5-Coder-3B-Instruct | 83.80% | 500 |
| Qwen2.5-Coder-1.5B-Instruct | 75.00% | 500 |
This evaluation measures answers to selected cybersecurity questions. It is a knowledge test, not a measure of how reliably a model can discover vulnerabilities in real-world code.
SecLLMHolmes — vulnerability classification
We also evaluated Klyrune-2B-Cyber using a 294-case internal adaptation of SecLLMHolmes. Of those cases, 267 produced a parseable classification result. The accuracy figures below use the valid predictions as their denominator.
| Metric | Result |
|---|---|
| Overall accuracy (valid predictions) | 53.18% (142/267) |
| Balanced accuracy | 54.88% |
| Hand-crafted cases | 56.25% (27/48) |
| Trivial augmentation | 61.90% (52/84) |
| Non-trivial augmentation | 46.97% (62/132) |
| Vulnerability recall | 20.00% |
| Safe-code specificity | 89.76% |
| Prediction coverage | 90.82% (267/294) |
How to read these results: The model was substantially better at recognizing examples labeled safe than at recovering examples labeled vulnerable in this evaluation. That low vulnerability recall is an important limitation for practical code review. Counting the 27 unscored cases as incorrect would result in 48.30% accuracy (142/294).
The original SecLLMHolmes publication uses different prompt configurations and case groupings. Results reported for other models in that study should therefore be treated as research context, not a controlled head-to-head comparison with our internal run.
Limitations and responsible use
As a compact research model, Klyrune-2B-Cyber has meaningful limitations:
- It can miss genuine vulnerabilities or flag safe code as vulnerable.
- It may produce incorrect CWE labels, security explanations, or remediation suggestions.
- Its conclusions may change when prompts are reformatted or more context is provided.
- Results on short examples do not establish reliability on full repositories, multi-file programs, or production environments.
- CyberMetric scores reflect cybersecurity knowledge and should not be interpreted as vulnerability-detection accuracy.
- Performance outside the evaluated tasks and languages has not been systematically established.
Use the model to support defensive analysis and education. Do not rely on it as the sole basis for security sign-off, compliance decisions, incident response, or claims that an application is free of vulnerabilities.
Looking ahead
Klyrune-2B-Cyber is part of our broader work on smaller, task-focused language models. We plan to keep exploring how knowledge of security concepts translates into practical code understanding, with a particular interest in vulnerable-versus-patched comparisons, more dependable classifications, and secure code repair.
We welcome reproducible evaluations and carefully documented feedback from developers and researchers.
References and acknowledgments
- MiniCPM5-2B-Midtrain — OpenBMB
- Klyrune-2B-General
- Klyrune-2B-Coder
- CyberMetric
- SecLLMHolmes — Ullah et al., IEEE Symposium on Security and Privacy (2024)
We appreciate the open model and research communities whose work makes independent experimentation possible.
Developed by Polyvor Labs.