GLM-5.2 Beat Claude Code on One Security Benchmark—What It Means
GLM-5.2 scored 39% F1 on Semgrep’s IDOR benchmark, ahead of the tested Claude Code configurations—but one benchmark does not prove broad Mythos-level capability.
In this article

What Semgrep actually tested
Semgrep used an IDOR benchmark built from real open-source applications. IDOR flaws occur when an application exposes an object identifier but fails to verify that the requester is authorized to access the corresponding object. The researchers held the dataset, evaluation method, and system prompt constant while varying the model and execution harness.
GLM-5.2, MiniMax M3, and Kimi K2.7 Code ran in a simple Pydantic AI harness with the IDOR prompt. Claude Code ran through the Claude Code SDK. Semgrep’s own multimodal pipeline received additional endpoint-discovery scaffolding. Those are important configuration differences, so the table is not a pure raw-model leaderboard.
The published results
- Semgrep Multimodal with GPT-5.5: 61% F1.
- Semgrep Multimodal with Opus 4.8: 53% F1.
- GLM-5.2 in the prompt-only Pydantic AI harness: 39% F1.
- Claude Code with Opus 4.6: 37% F1.
- Claude Code with Opus 4.8/4.7: 28% F1.
- MiniMax M3: 23% F1; Kimi K2.7 Code: 22% F1; GPT-5.5 through Codex: 20% F1.
Semgrep summarized GLM-5.2 as beating Claude Code by seven points in the comparison it emphasized and estimated a cost of roughly $0.17 per vulnerability found. The strongest result in the table, however, came from Semgrep’s purpose-built multimodal harness—not from a standalone model. That supports the researchers’ central lesson: system design and scaffolding can matter more than the model name.
Why “matched Mythos” was the wrong conclusion
The benchmark table does not report a Claude Mythos 5 run. It reports Claude Code configurations using Opus versions and a Semgrep multimodal configuration using Opus 4.8. Semgrep’s playful “Mythos at Home” headline is not a measurement showing GLM-5.2 equals Mythos across cybersecurity tasks.
The result covers one vulnerability class, one finite dataset, and one run. Semgrep explicitly notes that IDOR detection is nondeterministic and that performance could reverse on another task such as server-side request forgery. Claims about incident response, exploit development, broad cyber capability, or general model quality require separate evaluations.
What is notable about GLM-5.2
GLM-5.2 is an open-weight Z.ai model available for local deployment through common inference frameworks. Its official model card documents deployment options and links to the GLM-5 technical report. The MIT-licensed weights make independent hosting, quantization, and controlled evaluation possible in ways that a hosted frontier API may not.
For security teams, that creates a practical option: run the model inside an isolated evaluation environment, keep sensitive code within infrastructure you control, and compare it against existing scanners and model-assisted workflows. Open weights do not automatically make a deployment secure, compliant, cheap, or operationally simple. Infrastructure, model provenance, patching, access control, logging, and data governance still belong in the decision.
A better evaluation plan for security teams
Evaluation checklist
How this relates to Fable and Mythos access
The June export-control episode is relevant as a reminder that access to frontier models can change, but it does not validate the benchmark headline. Anthropic says the controls on Fable 5 and Mythos 5 were lifted June 30, Fable returned globally July 1, and Mythos access began returning through approved channels.
The operating lesson is model portability, not a claim that one open-weight result makes frontier systems interchangeable. Preserve evaluation fixtures, route tasks through a replaceable model layer, and know which parts of performance come from the model versus the surrounding tools.
The practical takeaway
GLM-5.2 earned a place in serious security evaluations by outperforming the tested Claude Code configurations on Semgrep’s IDOR benchmark with minimal scaffolding. Semgrep’s own pipeline still led by a wide margin, and the researchers cautioned against generalizing from the result.
For buyers, the benchmark is a reason to test more than one model and invest in the harness around it. It is not a reason to replace a production security stack based on a headline. The winning system will be the one that finds real issues reproducibly, controls false positives, protects source code, fits the review process, and can be swapped when better evidence arrives.
Primary sources
Semgrep, “We have Mythos at Home: GLM 5.2 beats Claude in our Cyber Benchmarks” https://semgrep.dev/blog/2026/we-have-mythos-at-home-glm-52-beats-claude-in-our-cyber-benchmarks/
Z.ai, GLM-5.2 official model card https://huggingface.co/zai-org/GLM-5.2
Anthropic, “Redeploying Fable 5” https://www.anthropic.com/news/redeploying-fable-5
Get the Claude playbook in your inbox.
One weekly email for Claude and Claude Code users. Real workflows, no hype. Subscribe and we send you The Claude Power-User Cheatsheet.
— ¶ —

Luke Thompson
Luke Thompson is the founder of The Operations Guide, LLC and editor of The Claude Insider. Based in Jonesborough, Tennessee, he has spent years building AI-augmented business systems and automation workflows for operators and teams. He began working with large language models in production well before the current wave of consumer AI tools, integrating them into client workflows, content pipelines, and operational infrastructure. At The Claude Insider, he writes about Claude with the specificity of someone who uses it daily as a professional tool — not as a reviewer or commentator, but as a builder. His coverage focuses on what actually works: prompt patterns, API integration strategies, agentic workflows, and the real-world tradeoffs that practitioners face. He is not affiliated with Anthropic, PBC.
Articles are researched and drafted with AI assistance, reviewed and edited by Luke Thompson.
Know where AI can pay off in your company.
Take the free two-minute AI Readiness Assessment. See your score, the two gaps holding you back, and the next move worth making.


