메뉴
HN
Hacker News 30일 전

세그렙 벤치마크: GLM 5.2가 클로드 제쳐

IMP
8/10
핵심 요약

Semgrep의 보안 취약점(IDOR) 탐지 테스트 결과, 중국 Z.ai의 오픈웨이트 모델인 GLM 5.2가 단순 프롬프트만으로도 Claude Code보다 뛰어난 성능을 기록했습니다. 이는 복잡한 하네스(정적 분석 스캐폴딩) 없이도 최신 오픈소스 모델이 프롬프트만으로 프론티어(최고 수준) 코딩 에이전트를 앞지를 수 있음을 증명하는 결과입니다. 특히 1M 토큰의 긴 문맥 처리와 MIT 라이선스 기반의 자체 구축 가능성 덕분에 민감한 데이터를 다루는 보안 실무자들에게 중요한 대안으로 떠오르고 있습니다.

번역된 본문

우리는 최고 수준의 코딩 에이전트를 평가할 때 사용했던 것과 동일한 데이터셋과 프롬프트를 사용하여 인기 있는 오픈소스 모델들을 대상으로 IDOR 취약점 탐지 벤치마크를 실행했습니다. 그 결과는 우리를 놀라게 했습니다. 지푸 AI(Z.ai)의 오픈웨이트 모델인 GLM 5.2가 IDOR 탐지에서 39%의 F1 점수를 기록하며 취약점 하나를 찾는 데 약 $0.17의 비용으로 Claude Code(32%)를 추월한 것입니다. 비록 Semgrep의 멀티모달 파이프라인(F1 53–61%)에는 미치지 못했지만, 이 파이프라인은 대부분의 복잡한 작업을 대신 처리해 주는 특별히 제작된 하네스(harness, 실행 환경) 내에서 작동합니다. 오직 프롬프트만 제공된 모델들을 기준으로 보면, 최고의 오픈웨이트 모델은 더 이상 만만한 도전자가 아니었으며 Claude Opus 4.8마저 능가했습니다.

사실 우리는 오픈웨이트 챔피언을 뽑으려던 것이 아니었습니다. 우리가 진짜로 답하고 싶었던 것은 조금 더 좁고 지루한 질문이었습니다. '취약점 탐지 성능 중 얼마나 많은 부분이 모델 자체에서 오는 것이고, 얼마나 많은 부분이 그 주변을 감싸는 하네스에서 오는 것일까?' AI 에이전트를 보안 작업에 적극적으로 도입하는 고객들과 대화하는 Semgrep 입장에서는 이 질문이 매우 중요합니다. 하네스는 모델을 감싸는 뼈대(scaffolding)로서, 저장소를 모델에 제공하고, 모델이 무엇을 볼지 결정하며, 출력을 파싱하고, 작업을 반복(loop)하도록 만듭니다. 우리의 내부 멀티모달 파이프라인은 정적 분석을 위해 특별히 구축된 하네스 안에서 실행됩니다. 우리는 IDOR(Insecure Direct Object References, 안전하지 않은 직접 객체 참조)를 찾는 워크플로우로 이를 한동안 내부적으로 테스트해 왔습니다. 이는 '다른 사용자의 소유물에 접근하는' 것으로 대략적으로 생각할 수 있는 액세스 제어 문제입니다. 우리의 하네스는 애플리케이션의 엔드포인트를 나열하고 중요한 컨텍스트만 선별한 다음, 모델이 그 부분을 직접 바라보도록 유도합니다.

이것은 매우 체계적인 구조입니다. 하지만 우리가 정말로 '최고의 오픈웨이트 모델이 무엇인가'를 답하려는 것이 아니었다고 말씀드렸던 것을 기억하시나요? 이 테스트의 모델들은 그런 혜택을 받지 못했습니다. 이들은 모든 다른 LLM 제공업체 모델에 주는 것과 동일한 IDOR 프롬프트가 적용된 간단한 Pydantic AI 하네스 안에서 실행되었습니다. 엔드포인트 자동 발견 기능도, 안내된 네비게이션도 제공되지 않았습니다. 그저 '코드가 여기 있으니 버그를 찾아라'라는 수준보다는 약간 더 도와줘서, 검색 전략과 IDOR이 어떻게 생겼는지에 대한 약간의 힌트를 제공했을 뿐입니다.

따라서 이것은 프롬프트 대 하네스 실험으로 시작되었지만, 테스트를 진행하는 동안 우리는 진심으로 충격을 받았습니다. 우리의 어떤 뼈대(scaffolding)도 없이 단지 오픈웨이트 모델 중 하나가 최고 수준의 프론티어 코딩 에이전트를 능가했기 때문입니다.

GLM-5.2 소개 GLM-5.2를 처음 들어보셨더라도 걱정하지 마십시오. 우리 역시 소셜 미디어에서 이 모델을 보고 벤치마크에 추가해야겠다고 생각하기 전까지는 몰랐습니다. GLM 5.2는 지푸 AI(Z.ai)의 최신 모델로, 2026년 6월 13일 토요일에 GLM 코딩 플랜 멤버들에게 먼저 공개되었고, 3일 뒤인 6월 16일에 오픈 웨이트와 릴리즈 노트가 뒤따라 게시되었습니다(우리가 이 모델을 알게 된 시점이기도 합니다).

이 모델은 보안 작업과 관련하여 세 가지 흥미로운 점이 있습니다.

첫째, 오픈 웨이트(open weight)라는 점입니다. 이는 모델의 파라미터가 MIT 라이선스로 게시되었음을 의미하며, 따라서 파라미터를 다운로드하여 자체 하드웨어에서 실행하고, 파인튜닝하고, 내부를 검사할 수 있습니다. 민감한 분야에서 일하는 많은 보안 팀에게 이는 중요합니다. 오픈웨이트 모델은 사용자의 환경 내에서 완전히 실행될 수 있기 때문입니다. 하지만 '오픈 웨이트'가 '오픈소스'와 동일하지는 않다는 점을 유의해야 합니다. 훈련된 가중치는 공개되지만 훈련 데이터와 전체 파이프라인은 일반적으로 공개되지 않습니다(Z.ai는 자체 RL 훈련 프레임워크를 게시하긴 했습니다).

둘째, 코딩 분야에서 진정으로 경쟁력이 있습니다. GLM 5.2는 총 약 750억 개의 매개변수를 가진 전문가 혼합(Mixture-of-Experts, MoE) 모델이지만, 토큰당 활성화되는 파라미터는 약 40억 개에 불과하여 모델 크기에 비해 추론 비용을 낮춥니다. 사용 가능한 컨텍스트를 20만 개에서 100만 개 토큰으로 확장했으며, Z.ai의 설명에 따르면 이 컨텍스트는 단순히 더 많은 입력을 받아들이는 것을 넘어, 길고 복잡한 에이전트 궤적(trajectory) 전체에 걸쳐 안정성을 유지합니다. IDOR과 같은 보안 작업은 권한 부여 프레임워크(Authorization framework)를 통해 여러 파일에 걸쳐 추론할 수 있어야 하므로, 보안 작업에 있어서 이 점은 매우 중요합니다.

표준 코딩 벤치마크에서 이 모델은 강력한 성적을...

원문 보기
원문 보기 (영어)
We ran a set of popular open-source models against our IDOR benchmark, the same dataset and the same prompt we&#039;ve used to evaluate frontier coding agents. The result surprised us: GLM 5.2, an open-weight model from Zhipu AI, scored a 39% F1 on IDOR detection, beating Claude Code (32%) at roughly $0.17 per vulnerability found. It still trailed Semgrep&#039;s multimodal pipeline (53–61% F1), but that pipeline runs in a purpose-built harness that does a lot of the heavy lifting. Among models given nothing but a prompt, the best open-weight option was no longer the obvious underdog, beating out Claude Opus 4.8. We weren&#039;t trying to crown an open-weight champion, really. We were trying to answer a narrower, more boring question: how much of vulnerability-detection performance comes from the model, and how much comes from the harness around it? For us at Semgrep this is a very important question as we speak to customers who are leveraging AI agents heavily in their security tasks. A harness is the scaffolding that wraps a model: it feeds it the repository, decides what it sees, parses its output, and loops it through a task. Our internal multimodal pipeline runs inside a harness, which is purpose-built for static analysis. We have been testing this internally for a while with a workflow for finding IDORs or Insecure Direct Object References. These are access control issues which can roughly be thought of as “you’re accessing something belonging to another user”. Our harness enumerates the application&#039;s endpoints, and code trying to sift through only the important context, and then points the model directly at them. That&#039;s a lot of structure, but remember when I said we really didn’t mean to answer the what’s-the-best-open-weight-model? The models in this test don’t get that, they run in a simple Pydantic AI harness with the same IDOR prompt we give every other LLM-provider model, no endpoint discovery, no guided navigation, we did give it a bit of help, just a little more than "here&#039;s the code, find the bugs.", offering a search strategy and some pointers on what IDORs look like. So this started as a prompting-versus-harness experiment, but while we were running it we were genuinely shocked. One of the open-weight models, with none of our scaffolding, surpassed a frontier coding agent. Introducing GLM-5.2 If you’ve not heard of GLM-5.2, don’t worry, neither had we until we saw it on social media and thought to add it to our benchmarks. GLM 5.2 is the latest model from Zhipu AI (Z.ai), rolled out to its GLM Coding Plan members on Saturday, June 13, 2026, with the open weights and release notes following three days later on June 16 (which is when we heard about it). Three things make it interesting for security work. First, it’s open weight . That means the model&#039;s parameters are published under an MIT license, which means you can download them, run them on your own hardware, fine-tune them, and inspect them. For a lot of security teams working in sensitive areas that’s important, an open-weight model can run entirely inside your own environment. But it’s important to note that "open weight" is not the same as "open source", the trained weights are released, but the training data and full pipeline generally are not (though Z.ai does publish its RL training framework). Second, it&#039;s genuinely competitive on coding. GLM 5.2 is a Mixture-of-Experts (MoE) model with roughly 750 billion total parameters but only about 40 billion active per token, which keeps inference cost down relative to its size. It extends the usable context from 200K all the way to 1M tokens, and Z.ai&#039;s pitch is that this context stays reliable across long, messy agent trajectories, not just that it accepts more input. Again for security tasks this is important, as security tasks for things like IDORs must be able to reason across different files, through an authorization framework. On standard coding benchmarks it posts the strongest open-weight numbers going: 81.0 on Terminal-Bench 2.1 (versus 63.5 for GLM 5.1, and within a few points of Claude Opus 4.8&#039;s 85.0) and 62.1 on SWE-bench Pro, edging out closed frontier models and trailing the very top by single-digit percentages. Third, cost. Tokenomics is quickly becoming as important as the LLM capabilities themselves. Reported pricing lands around one-sixth of comparable frontier models and commentators who track open models closely have compared GLM 5.2&#039;s reception to DeepSeek. GLM-5.2 arrived at a charged time not just due to tokenomics but also landing just after frontier-class closed models hit new export restrictions after reported jailbreaks. One detail from the release notes is worth flagging for anyone pointing this model at code: Z.ai reports that GLM 5.2 exhibits more reward-hacking behavior than GLM 5.1, during training it would do things like read protected evaluation files or curl reference solutions to inflate its score, prompting them to build a dedicated anti-hacking guard. It’s an honest disclosure by the team, but if you were building a model for hacking, well… you can’t get more hacker than trying to bypass the tests in the first place. Our Experiment Before we get too much into the details, it’s important to recap what exactly we were trying to do and what our experiments were. A quick refresher on IDOR: Insecure Direct Object Reference is a vulnerability class where an application exposes an internal identifier like a user ID in a request without checking that the caller is actually allowed to access that object. Change the identifier, get someone else&#039;s data. @app.route(&#039;/user/<int:user_id>&#039;) def get_user(user_id): user = User.query.get_or_404(user_id) return jsonify(user.to_dict()) This Flask route fetches and returns a user record straight from the ID in the URL, with no check that the requester owns it. Any logged in user can just change user_id and read someone else&#039;s record. IDOR is somewhere between a business-logic flaw and a misconfiguration, it’s not a taint-flow bug, which is what makes it hard for both static analysis and LLMs: there&#039;s no dangerous function to flag, only a missing check. It&#039;s also one of the most common findings in the wild (currently #4 on the HackerOne top vulnerability types list), which is why we keep coming back to it as a benchmark. So back to our experiment: We held three things constant and varied one, standard experimental conditions. Constant: the IDOR dataset (the same real, open-source applications we&#039;ve used in prior research), the evaluation method (F1 score against a known set of true positives), and the IDOR system prompt itself. Varied: the model and its harness. Specifically: Semgrep Multimodal ran inside our custom harness: the one that enumerates endpoints and directs the model to them. We tested it with two frontier models behind it. But we also just ran Claude Code through the Claude Code SDK, and other provider models through their native SDKs but with the same prompt. The open-weight models which includesGLM 5.2, MiniMax M3, and Kimi K2.7 Code, ran in the simple Pydantic AI harness with the IDOR prompt and nothing else. This is an important detail, so we&#039;ll say it twice: the open-weight models were not given the endpoint-discovery scaffolding that the multimodal pipeline gets. They saw a prompt and a codebase. This is just what they are capable of without any help. We also computed a few different measures of effectiveness: Precision : of everything the detector flagged as an IDOR, what fraction were real? High precision = few false alarms. If it reports 10 bugs and 7 are genuine, precision is 70%. Recall : of all the real IDORs that actually exist in the dataset, what fraction did it find? High recall = it misses a few real bugs. If there are 20 real IDORs and it catches 12, recall is 60%. F1 : the single number that balances precision and recall. It&#039;s their harmonic mean: