Best Models for Cyber Security

    Models for code audits, log triage, threat modelling, CTFs, and sandboxed malware analysis — compared by price, context window, and whether they finish the task

    Compare
    Use Case
    Lounge Plan
    Capabilities
    Provider
    Status
    Input Price ($/M tokens)
    Output Price ($/M tokens)
    Context Size (tokens)
    22/345
    Models
    34/50
    Providers
    18
    Vision Models (filtered)
    22
    Tool-enabled (filtered)
    0
    Free Models (filtered)
    193 provider offers · page 1 of 4
    Features
    Alibaba Cloud
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Alibaba Cloud(ap-tokyo)
    kimi-k3.1-pro
    $1.84$9.61$0.18
    Alibaba Cloud(cn-beijing)
    kimi-k3.1-pro
    $1.84$9.61$0.18
    Alibaba Cloud(eu-frankfurt)
    kimi-k3.1-pro
    $1.84$9.61$0.18
    Alibaba Cloud(singapore)
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Alibaba Cloud(us-virginia)
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Fireworks AI
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Inference.net
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Moonshot AI
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Runpod
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Together AI
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Alibaba Cloud
    deepseek-v4.1-flash-1017
    $0.30$0.18
    -40% off
    $1.20$0.72
    -40% off
    $0.01$0.00
    -40% off
    Alibaba Cloud(ap-tokyo)
    deepseek-v4.1-flash-1017
    $0.28$0.17
    -40% off
    $1.13$0.68
    -40% off
    $0.01$0.00
    -40% off
    Alibaba Cloud(cn-beijing)
    deepseek-v4.1-flash-1017
    $0.28$0.17
    -40% off
    $1.13$0.68
    -40% off
    $0.01$0.00
    -40% off
    Alibaba Cloud(eu-frankfurt)
    deepseek-v4.1-flash-1017
    $0.28$0.17
    -40% off
    $1.13$0.68
    -40% off
    $0.01$0.00
    -40% off
    Alibaba Cloud(singapore)
    deepseek-v4.1-flash-1017
    $0.30$0.18
    -40% off
    $1.20$0.72
    -40% off
    $0.01$0.00
    -40% off
    Alibaba Cloud(us-virginia)
    deepseek-v4.1-flash-1017
    $0.28$0.17
    -40% off
    $1.13$0.68
    -40% off
    $0.01$0.00
    -40% off
    Baidu
    deepseek-v4.1-flash-1017
    $0.28$1.13$0.01
    ByteDance
    deepseek-v4.1-flash-1017
    $0.15$0.60$0.00
    Cloudflare
    deepseek-v4.1-flash-1017
    $0.30$1.20$0.01
    DeepInfra
    deepseek-v4.1-flash-1017
    $0.20$0.60$0.01
    DeepSeek
    deepseek-v4.1-flash-1017
    $0.15$0.60$0.00
    Fireworks AI
    deepseek-v4.1-flash-1017
    $0.30$1.20$0.01
    Inference.net
    deepseek-v4.1-flash-1017
    $0.30$1.00$0.01
    Mistral AI
    deepseek-v4.1-flash-1017
    $0.30$1.20$0.01
    NovitaAI
    deepseek-v4.1-flash-1017
    $0.30$0.17
    -45% off
    $1.20$0.66
    -45% off
    $0.01$0.00
    -45% off
    NovitaAI(cn-shenzhen)
    deepseek-v4.1-flash-1017
    $0.30$0.17
    -45% off
    $1.20$0.66
    -45% off
    $0.01$0.00
    -45% off
    NovitaAI(us-west)
    deepseek-v4.1-flash-1017
    $0.30$0.17
    -45% off
    $1.20$0.66
    -45% off
    $0.01$0.00
    -45% off
    Tencent Cloud
    deepseek-v4.1-flash-1017
    $0.15$0.60$0.00
    Together AI
    deepseek-v4.1-flash-1017
    $0.30$1.20$0.01
    Vertex AI (OpenAI-compatible)
    deepseek-v4.1-flash-1017
    $0.30$1.20$0.01
    Vertex AI (OpenAI-compatible)(global)
    deepseek-v4.1-flash-1017
    $0.30$1.20$0.01
    Anthropic
    claude-haiku-5-5
    $0.10$0.50$0.01
    AWS Bedrock
    claude-haiku-5-5
    $0.10$0.50$0.01
    AWS Bedrock(eu)
    claude-haiku-5-5
    $0.11$0.55$0.01
    AWS Bedrock(global)
    claude-haiku-5-5
    $0.10$0.50$0.01
    AWS Bedrock(us)
    claude-haiku-5-5
    $0.11$0.55$0.01
    Vertex AI (Anthropic)
    claude-haiku-5-5
    $0.10$0.50$0.01
    Anthropic
    claude-sonnet-5-5
    $2.00$10.00$0.10
    AWS Bedrock
    claude-sonnet-5-5
    $2.00$10.00$0.10
    AWS Bedrock(eu)
    claude-sonnet-5-5
    $2.20$11.00$0.11
    AWS Bedrock(global)
    claude-sonnet-5-5
    $2.00$10.00$0.10
    AWS Bedrock(us)
    claude-sonnet-5-5
    $2.20$11.00$0.11
    Azure Anthropic
    claude-sonnet-5-5
    $2.00$10.00$0.10
    DeepKey
    claude-sonnet-5-5
    $2.00$0.50
    -75% off
    $10.00$2.50
    -75% off
    $0.10$0.02
    -75% off
    GPUGeek
    claude-sonnet-5-5
    $2.00$10.00$0.20
    NeoRouter
    claude-sonnet-5-5
    $2.00$1.50
    -25% off
    $10.00$7.50
    -25% off
    $0.10$0.07
    -25% off
    NovitaAI
    claude-sonnet-5-5
    $2.00$1.64
    -18% off
    $10.00$8.20
    -18% off
    $0.10$0.08
    -18% off
    NovitaAI(us-west)
    claude-sonnet-5-5
    $2.00$1.64
    -18% off
    $10.00$8.20
    -18% off
    $0.10$0.08
    -18% off
    OpenLux
    claude-sonnet-5-5
    $2.00$0.50
    -75% off
    $10.00$2.50
    -75% off
    $0.10$0.02
    -75% off
    Page 1 of 4

    Best Models for Cyber Security, ranked by real usage

    The most-used models in this category by tokens routed through LLM Gateway over the last 30 days. Usage shows what developers run in production; it is not a quality benchmark.

    1. 1DeepSeek V4.1 Flash 101712.6M tokens
    2. 2Claude Sonnet 5.5642 tokens

    Usage data as of November 27, 2026

    Security work puts two different demands on a language model. Defensive tasks — auditing a pull request for injection bugs, triaging a day of logs, writing a threat model or a pentest report — reward raw reasoning and a long context window, and every frontier model handles them. Offensive-adjacent tasks — explaining a malware sample in a sandbox, solving a CTF, triaging a crash into an exploitability verdict — also need a model that keeps going. Since September 2026, Anthropic's Claude Opus 5.5 ships with cyber safeguards that can stop a response mid-answer, and Anthropic's own launch benchmarks note that cyber tasks the safeguards interrupted were completed by Claude Opus 4.8 instead. OpenAI and Google apply similar classifiers to GPT-5.5 and Gemini.

    This page lists both kinds of model. Frontier options like Claude Opus 4.8, GPT-5.5, and Gemini 3.1 Pro for defensive review where quality matters most, and models from Chinese labs — DeepSeek, Moonshot (Kimi), Z.ai (GLM), Alibaba (Qwen), MiniMax, and Xiaomi — that are served with no cyber-specific refusal layer and cost a fraction of the price. Every one of them is reachable through the same OpenAI-compatible endpoint with one API key, so an agent can run the first pass on DeepSeek V4.1 Flash and escalate to a frontier model for the final report. For binary and firmware analysis specifically, see the reverse engineering models page.

    Frequently asked questions

    What is the best AI model for cyber security?

    For defensive work — code review, log analysis, threat modelling, report writing — Claude Opus 4.8, GPT-5.5, and Gemini 3.1 Pro produce the most thorough results. For hands-on analysis of malware samples, CTF challenges, or crash triage, Chinese-lab models such as DeepSeek V4 Pro, Kimi K3.1 Pro, GLM-5.2, and Qwen3.7 Max are the reliable choice because they are not wrapped in a cyber-specific refusal layer and will finish the task.

    Why do Claude and GPT models refuse security tasks?

    Frontier labs run safety classifiers on cyber-adjacent prompts. Anthropic's Claude Opus 5.5 launch post states the model deploys with safeguards covering cybersecurity, and that when those safeguards intervened during benchmark testing the tasks were completed by Claude Opus 4.8. Since October 21, 2026, users on r/Claude have reported Opus 5.5 halting reverse-engineering requests mid-answer; Anthropic has not confirmed a change. Anthropic also runs a Cyber Verification Program that grants verified security practitioners wider access.

    Which models will not refuse malware analysis or CTF work?

    Models from Chinese labs served through API providers — DeepSeek V4 Pro and V4.1 Flash, Kimi K3.1 Pro and K2.7 Code, GLM-5.2, Qwen3.7 Max and Qwen3.7 Plus, MiniMax M3, and MiMo V2.6 Pro — carry no cyber-specific classifier and complete sandboxed malware analysis, CTF challenges, and exploit triage. All of them support tool calling, so they work inside agents that drive Ghidra, Hopper, or a sandbox through MCP. Stay within the law: analyse systems you own or are authorised to test.

    How much does an AI security review cost?

    A 2,000-line pull request is roughly 25,000 input tokens. Reviewing it on DeepSeek V4.1 Flash costs well under a cent; on Claude Opus 4.8 at $5 per million input tokens it is about 13 cents before output. For a daily log triage pipeline, route the bulk pass to a budget model and escalate only flagged findings to a frontier model — one API key covers both and every request is logged with its exact cost.

    • Models
    • Docs
    • Pricing
    • Enterprise
    • Enterprise
    • Pricing
    • Docs
    • Models
      • AI Gateway
      • DevPass
      • Lounge
      • Observability
      • Image Generation
      • Blog
      • Changelog
      • Integrations
      • Reliability
      • Features
      • Guardrails
      • Providers
      • Partners
      • Rankings
      • Apps
      • Models
      • Model Timeline
      • Compare
      • Token Cost Calculator
      • Savings Audit
      • State of LLM Usage
      • Referral Program
      • MCP Server
      • CLI
      • Agents
      • AI SDK Provider
      • Agent Skills
      • Templates
      • Guides
    Log InBook a demoGet Started
    1.8k