update
May 8, 2026
By Teun
CyberSecQwen-4B aims to bring defensive cyber AI on-prem
CyberSecQwen-4B is a 4-billion-parameter cybersecurity model built for local use, according to its creator. The project says it was fine-tuned for tasks like CWE classification and CTI Q&A, and it was benchmarked against Cisco’s Foundation-Sec-Instruct-8B under the CTI-Bench protocol.
CyberSecQwen-4B is a new 4B cybersecurity model designed to run locally for defensive work, according to its creator. The project targets tasks such as CWE classification, CVE-to-CWE mapping, structured CTI Q&A, and defensive triage, with a focus on keeping sensitive security data inside the organization.
The model was presented as an answer to several problems with large hosted models. The author said frontier models are strong at many tasks, but they are expensive to call, send prompts to a third-party datacenter, and are trained to refuse some of the messy edge cases defenders handle every day. Those edge cases include incident write-ups, attacker-style payloads pulled from internal logs, and vulnerability disclosure drafts.
⚡ New to this?
This news is about a smaller AI model built specifically for defensive cybersecurity work, rather than general chat or code generation. The main idea is that a model can be useful if it runs locally, keeps sensitive logs and incident data on your own systems, and is tuned for tasks like mapping vulnerabilities to CWE categories.
CWE stands for Common Weakness Enumeration, a standard way to label software flaws. CTI means cyber threat intelligence, which is structured security information used by analysts and tools.
🦞 OpenClaw angle
If you build security automation, treat local deployment as a first-class requirement, not an afterthought. For workflows involving logs, leaked credentials, CVEs, or incident notes, prefer self-hosted models that can run on your own GPU or even a single on-prem box.
If you are choosing between a general model and a specialist one, benchmark both on the exact task you need, such as CVE-to-CWE mapping or alert triage. Also separate “assistant” tasks from automation: keep a human in the loop for anything that could trigger a security action, and avoid sending sensitive evidence to hosted APIs when a local model can handle the classification step.
The post argues that defensive cybersecurity has different constraints from general-purpose AI. Sensitive evidence may itself be the breach, the author said, so a SOC analyst should not paste leaked credentials or malware analysis into a hosted API. A SOC, or Security Operations Center, is the team that monitors and investigates security alerts.
Cost and deployment limits were also part of the case for local models. The author said a mid-size SOC can process thousands of low-confidence alerts a day, which makes per-call API pricing a real budget issue. The post also said air-gapped and partially connected environments are common in critical infrastructure, healthcare, and government, where tools need to run on a laptop or a single on-prem GPU.
To test the idea, the author fine-tuned CyberSecQwen-4B from Qwen3-4B-Instruct-2507, which the post describes as an Apache-2.0 instruction-tuned 4B base model. The training data came from two sources: deduplicated 2021 CVE-to-CWE mappings from MITRE and NVD public records, and synthetic defensive-analyst Q&A generated from those CVE descriptions. The author said all overlap with CTI-Bench evaluation items was removed before training.
The model was evaluated against Cisco’s Foundation-Sec-Instruct-8B using CTI-Bench. On CTI-MCQ, CyberSecQwen-4B scored 0.5868, compared with 0.4996 for the Cisco model. On CTI-RCM, which maps CVEs to CWE categories, CyberSecQwen-4B scored 0.6664 versus 0.6850 for the 8B baseline.
The post says that means CyberSecQwen-4B retained 97.3% of Foundation-Sec-Instruct-8B’s CTI-RCM accuracy while beating it on CTI-MCQ. It also says the 4B model fits on a 12 GB consumer GPU, which is part of the deployment case for local use.
Training and evaluation ran on a single AMD Instinct MI300X 192 GB instance through AMD Developer Cloud, according to the post. The author said the setup used ROCm 7, vLLM, PyTorch 2.6.0 on ROCm, FlashAttention-2, and bf16 precision, without needing quantization tricks or model sharding across devices.
The post also says the same training recipe was used on a second base model, Gemma-4-E2B-it, producing a sister model called Gemma4Defense-2B. Under the same benchmarks, the two models landed within 0.9 points on CTI-RCM, which the author says suggests the recipe transfers across model families.
The author said CyberSecQwen-4B is Apache 2.0 and meant for narrow defensive use, not exploit generation, automated security decisions without human review, or general chat outside cybersecurity. A live demo and model download were also made available through Hugging Face.