Microsoft MAI-Cyber-1-Flash: 5B Model Hits 95.95% CyberGym
Microsoft dropped its first purpose-built cybersecurity AI model this week, and the numbers are worth paying attention to. MAI-Cyber-1-Flash is a 137B-parameter Mixture-of-Experts model with 5B active parameters. It scored 95.95% on CyberGym, a benchmark for evaluating how AI systems find real vulnerabilities in large codebases. It beat Anthropic’s Mythos, OpenAI’s GPT-5.6 Sol, and Google’s Gemini on the same test — all while running at roughly half the cost of Microsoft’s previous multi-model setup.
The model runs inside MDASH, Microsoft’s multi-agent vulnerability scanning harness that coordinates over 100 AI agents for finding and fixing security bugs. MAI-Cyber-1-Flash handles about 90% of the work. The remaining 10% — the hardest cases — get escalated to larger models. This routing architecture is what makes the cost savings possible. Instead of running expensive frontier models on every scan, MDASH defaults to the small specialized model and only calls in the heavy artillery when it gets stuck.
The architecture: a fine-tune of MAI-Code-1-Flash
MAI-Cyber-1-Flash is not a model built from scratch. It is a cybersecurity-specialized fine-tune of MAI-Code-1-Flash, which itself comes from the MAI-Pondering-1 lineage. MAI-Code-1-Flash is already embedded in GitHub Copilot and VS Code as a lightweight coding model. Microsoft took that code-understanding foundation and fine-tuned it on security-specific data — vulnerability databases, exploit writeups, secure coding guidelines, and real-world attack patterns observed across Microsoft’s security estate.
The result is a model that understands code the way a security engineer does. It does not just look for pattern matches against known CVEs. It traces data flows, identifies trust boundaries, and reasons about how an attacker could chain multiple low-severity issues into a working exploit. The 256k context window matters here — it lets the model hold entire codebases in context while tracing attack paths across multiple files, services, and deployment boundaries.
The MoE architecture means only 5B of the 137B total parameters are active for any given input. This is how Microsoft gets the cost down. A dense 137B model would be too expensive to run at scale across millions of codebases. With sparse activation, the effective compute per query stays in the 5B range, while the model still benefits from the breadth of knowledge stored across all 137B parameters.
CyberGym: the benchmark that matters
CyberGym is not a standard NLP benchmark. It evaluates a model’s ability to reason over large, real-world codebases and find actual vulnerabilities — the kind that get CVEs assigned. The test presents the model with code repositories containing deliberately planted bugs and measures how many it finds, how few false positives it flags, and how well it can explain the exploit chain.
A 95.95% score means MAI-Cyber-1-Flash finds nearly every planted vulnerability while keeping false positives low. For context, most general-purpose models score in the 70-85% range on CyberGym. Mythos, Anthropic’s frontier model, was the previous leader until this release.
The practical implication: Microsoft now has an automated system that can scan its product codebase — Windows, Azure, Office, Xbox, everything — with near-human security review quality, at a fraction of the cost of manual review, continuously. That changes the economics of security at scale.
MDASH: the harness that makes it work
MAI-Cyber-1-Flash does not operate in isolation. MDASH (Multi-agent Detection and Security Harness) is the orchestration layer that coordinates the model with a fleet of specialized agents:
- Static analysis agents parse code for known vulnerability patterns
- Dynamic analysis agents spin up sandboxed environments and test exploitability
- Context-gathering agents pull in documentation, commit history, and related CVEs
- Remediation agents generate patches and explain the fix
- Triage agents prioritize findings by severity and exploitability
MAI-Cyber-1-Flash acts as the central reasoning engine. Agents feed it context. It reasons about the full picture and decides what to investigate next. When it hits a case it cannot resolve with confidence, it escalates to a larger model like MAI-Pondering-1 or GPT-5.6 Sol through a fallback routing layer.
Microsoft says this architecture handles about 90% of security tasks with the small model alone. The 10% that get escalated are the genuinely hard problems — novel attack patterns, subtle race conditions, vulnerabilities that span multiple trust domains. The routing logic is itself an ML model trained on whether the small model’s confidence scores predict actual exploitability.
How it compares to the competition
The CyberGym leaderboard tells a clear story, but the cost comparison is equally important:
- MAI-Cyber-1-Flash: 95.95% CyberGym, ~50% lower cost than Microsoft’s previous setup
- Mythos (Anthropic): mid-80s range on CyberGym, full frontier model pricing
- GPT-5.6 Sol (OpenAI): mid-80s range, comparable pricing to Mythos
- Gemini (Google): high-70s to low-80s range, competitive pricing but lower accuracy
The cost advantage comes from two sources. First, the 5B active parameter count means each inference is cheaper than running a dense frontier model. Second, the routing architecture means the expensive models only get called 10% of the time. Combined, Microsoft claims roughly half the operating cost of their previous approach, which used a mix of general-purpose models without the routing optimization.
The catch is availability. MAI-Cyber-1-Flash is not a public API. It is available through a private Azure AI Foundry preview. Microsoft has not announced pricing or general availability. If you are not an enterprise Azure customer, you cannot use it yet. This is a product launch aimed at Microsoft’s existing security customer base, not the general developer community.
Fine-tuning specialized models vs. using general-purpose ones
Microsoft’s approach here reflects a broader trend: fine-tuning small models for narrow tasks and routing to larger models for edge cases. It is more cost-effective than running GPT-5-class models on everything, and often more accurate because the small model is optimized for the specific domain.
For cybersecurity, this makes particular sense. Vulnerability detection is a domain where precision matters more than creative generation. You do not need a model that can write poetry or explain quantum physics. You need one that understands buffer overflows, SQL injection, authentication bypass, and privilege escalation — deeply and reliably. A specialized 5B model trained on millions of security examples is going to outperform a general-purpose 1T model on those specific tasks, because the general-purpose model’s capacity is diluted across everything it knows.
The downside is that specialized models have a shelf life. New vulnerability classes emerge. Attack patterns evolve. The model needs continuous retraining on fresh data, and the training data itself needs to stay current. General-purpose models benefit from the fact that their training pipelines are maintained by well-funded labs. A specialized model requires an ongoing investment in data curation and fine-tuning. Microsoft has the resources for that. Smaller organizations adopting the same approach would need to budget for it.
What this means for security engineering teams
If you work on a security team, this release puts a few trends into focus:
First, automated vulnerability detection is crossing the threshold from “useful for finding low-hanging fruit” to “competitive with human review.” A 95.95% CyberGym score is not proof that AI replaces security engineers — the benchmark tests for known vulnerability classes, not novel attack patterns. But it means the tool catches almost everything a human would catch in a structured code review, cheaper and faster.
Second, the multi-agent architecture matters. MDASH’s 100+ agents are not just window dressing. Each one handles a sub-task that would otherwise be a separate tool or manual step. The orchestration layer — knowing when to escalate, when to trust the model’s confidence score, when to pull in additional context — is as important as the model itself. Teams building internal security tools should think about agent orchestration before they think about model selection.
Third, the cost math changes. If running a security scan across your entire codebase costs half what it did last week, you can afford to run it more often. Daily scans instead of weekly. Every pull request instead of every release. The shift from reactive to continuous security scanning is a budget question as much as a technical one, and budget just got friendlier.
Who should care and who can wait
If you are an Azure enterprise customer with a security team, pay attention when the preview expands. The combination of 95.95% accuracy and 50% cost reduction makes this the best automated option on the platform. The integration with Microsoft’s existing security tooling (Defender, Sentinel, GitHub Advanced Security) means it fits into workflows that teams are already using.
If you are building internal security tooling, study the architecture more than the model. The small-model-plus-routing pattern is replicable. You probably cannot fine-tune MAI-Cyber-1-Flash itself, but you can apply the same design to open-weight coding models. Claude Code’s agent architecture, OpenAI’s Codex CLI, and various llama.cpp-based tools all support similar orchestration patterns.
If you are a general developer who scans code with Snyk or SonarQube and wants better results, wait for the public release. Microsoft’s track record on making research models broadly available is mixed. Do not plan your toolchain around a model you cannot access yet.
Microsoft built a cybersecurity model that genuinely pushes the state of the art on a hard benchmark. The architecture — fine-tuned MoE plus agent routing — is the interesting part, because it generalizes beyond security. The same pattern works for code review, compliance checking, infrastructure-as-code validation, and any other domain where you need deep accuracy on a narrow problem class. The model is the headline, but the architecture is the playbook.
The evaluation methodology behind CyberGym
CyberGym is worth understanding because it represents a shift in how we evaluate code-understanding models. Standard coding benchmarks — HumanEval, MBPP, SWE-bench — measure whether a model can write correct code from a prompt. They do not measure whether it can read someone else’s code and find the bugs.
CyberGym works differently. It presents the model with real, compilable codebases — not isolated functions — and injects vulnerabilities drawn from actual CVEs. The model gets the full repository, including documentation, test files, and dependency manifests. It then has to identify the vulnerability, explain it, and in some test variants, propose a fix.
The scoring weights several factors: detection rate (did you find the bug), false positive rate (did you flag safe code as vulnerable), explanation quality (can you articulate the exploit chain), and remediation accuracy (does your fix actually close the hole without introducing new ones). MAI-Cyber-1-Flash scored 95.95% across all dimensions.
This kind of benchmark matters more than HumanEval scores for security applications. A model that writes syntactically perfect code but misses security holes is worse than useless — it creates a false sense of safety. CyberGym tests the skill that security teams actually need: adversarial code reading.
The open-weight cybersecurity model landscape
MAI-Cyber-1-Flash enters a field that already has some open-weight competitors worth knowing about. Meta released CyberSecEval, a benchmark and evaluation framework for security models. Several research labs have fine-tuned CodeLlama and DeepSeek-Coder variants on vulnerability datasets. None of them have hit 95% on CyberGym, but a few are in the 80-85% range.
The gap between open-weight options and Microsoft’s closed model is real on this benchmark, but it is narrowing. If the trend continues — and the MAI-Pondering-1 lineage keeps producing strong base models that get fine-tuned for security — we could see an open-weight model cross 90% on CyberGym within 12 months. Whether that model comes from Meta, Mistral, or a community fine-tune of an existing model depends on who invests in the training data. Good vulnerability datasets are harder to assemble than good code datasets, and they age faster.