🚨
AI Tool Alert — June 29, 2026GLM-5.2 — MIT-Licensed 744B Coding Model Beats Claude Code on Security Vuln Detection
Z.ai (Zhipu AI) released
GLM-5.2: 744B parameters,
MIT license, 1M-token context. Semgrep's independent benchmark (June 28) shows it outperforming Claude Code on IDOR detection.
The benchmarks:- GLM-5.2: 39% F1 on IDOR detection (vs. Claude Code at 32%)
- Terminal-Bench 2.1: 81.0 (top open-weight, vs. GLM-5.1 at 63.5)
- SWE-bench Pro: 62.1
- Cost: ~$0.17/vulnerability via OpenRouter (vs. $5-15+ for closed-model agents)
Why devs should care:- MIT = no strings attached — full commercial use, self-host, fine-tune freely
- Cheaper security at scale — run AI security reviews on every PR, not quarterly audits
- Self-hostable — compliance teams (HIPAA, SOC2, GDPR) can keep data on-prem
- 1M-token context — feed it entire repos, not individual files
Quick start — PR security scanner:from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1")
response = client.chat.completions.create(
model="glm-5.2",
messages=[
{"role": "system", "content": "Analyze this code diff for IDOR, injection, and auth bypass vulnerabilities. Return JSON findings."},
{"role": "user", "content": diff_text}
],
temperature=0.1
)
Pricing: $1.20/M input, $4.10/M output on OpenRouter
🔗
GLM-5.2 Blog |
HF Weights |
Semgrep Benchmark