Run it on your own hardware
Security LLMs you can run locally
Open-weight models trained for cybersecurity, plus the general models and tools that work well for security, so alerts, logs and code never leave your machine. Each entry says what it's good at, what hardware it needs, its licence, the catch, and how to run it.
0security-tuned models
0general models strong at security
0runners and tools
<1 GBsmallest (Antares on a laptop CPU)
Checked . Models change quickly; check each model card before you rely on it.
Type
Task
Fits on
How to choose
Start from the job, then the hardware
| If you want to… | Start with | Why |
|---|---|---|
| Triage SIEM alerts privately | Qwen3.5 9B, or Foundation-Sec-8B-Instruct | Qwen3.5 9B matched GPT-4.1 in one alert-triage study; Cisco's model was built and piloted for SOC work. |
| Reason about threat intel, CVEs and CWEs | Foundation-Sec-8B-Reasoning | Purpose-built security reasoning model; add current advisories through RAG. |
| Find where a known vulnerability sits in your code | Antares-1B | Tiny, runs on a CPU, built only for vulnerability localisation. |
| Agentic code review or vulnerability research | Qwen3.6 35B-A3B (24 GB) | Strong tool use and reasoning that still fits one consumer GPU. |
| Authorised pentests and red-team prep | WhiteRabbitNeo V3 7B or DeepHat V1 7B | Trained for offensive and defensive work; stay within your written scope. |
| GRC, policies and compliance questions | ZySec-7B, or Llama-Primus-Reasoning | Trained on governance and certification-style material. |
| Build your own security model | Foundation-Sec-8B base, or the RedSage releases | Open base models; RedSage also publishes its training data. |
The strongest open models for security (for example GLM-5.3 and Kimi K3, hundreds of billions of parameters) need a multi-GPU server, so they aren't listed as PC options.
How to read this
Sizes, VRAM and run commands
- File sizes and VRAM assume a 4-bit (Q4) quantised file and a normal context window. Longer contexts need more memory.
- No GPU? Most 7–9B models run from system RAM on a CPU, just slowly. Antares runs comfortably on a laptop.
- Run commands use Ollama for ready-made GGUF files and vLLM for full Hugging Face weights. LM Studio and llama.cpp can load the same GGUF files.
- Gated models (like Antares) need you to request access on Hugging Face and log in with a token before they download.
- Benchmarks on model cards are usually the makers' own. Test any model on your own data before trusting it.
Use them safely
Dual-use tools, real responsibilities
- Only test what you're authorised to test. Offensive models don't change the law: get written scope first.
- Keep the box locked down. Don't expose Ollama, vLLM or Open WebUI to the internet; put them behind authentication.
- Sandbox agents. Models that run shell commands (Antares, agentic Qwen setups) belong in a container with no network and no secrets.
- Verify everything. Models invent CVEs, flags and file paths. Treat output as a lead, not a finding.
- Check dates. Training data has a cut-off; pair models with current advisories for anything recent.
- Why no "abliterated" models here? Those strip a model's safety training wholesale. The security-tuned models above already answer security questions, with clearer provenance and terms.