TL;DR: Aggregate scores can hide a material precision gap and a steep drop on large enterprise-style repositories, where Kimi K3 averaged roughly 6% F1 on the biggest codebase tested, according to Semgrep. The result is a reminder that model choice changes triage load, grounded reasoning, and operational risk more than headline benchmarks suggest.
At a glance
What this is: Semgrep's analysis says open weight models can look strong on aggregate scores while underperforming on large, interconnected enterprise codebases.
Why it matters: IAM, security, and platform teams evaluating AI for code and security review need to test on their own repository scale and triage capacity, not on headline benchmarks alone.
Context
Open weight models change where the security control boundary sits because the model can run inside the organisation's own environment, but that does not remove the need to verify output quality, grounding, and operational fit. For security review work, the real governance problem is whether the model can sustain useful reasoning as repository size and system complexity grow.
This matters to identity and access programmes because AI-assisted review tools increasingly touch code, secrets, and privilege paths. When a model is used to help assess vulnerable access flows, the control question is no longer only where the model runs, but whether its findings are reliable enough to support security decisions at enterprise scale.
Key questions
A: Start by benchmarking it on repositories that resemble your own in size, structure, and review complexity. Aggregate scores can hide poor performance on interconnected code, so the first decision is whether the model can stay grounded when the codebase gets larger and the triage burden becomes real.
A: Self-hosting improves data control, but it does not guarantee accurate findings. If the model produces weak or noisy output, the organisation still pays in analyst time, delayed remediation, and missed issues, so deployment location and review quality must be evaluated separately.
Q: What are the signs that an AI security review model is not grounded enough for enterprise use?
A: Look for falling precision on larger repositories, excessive false positives, and inconsistent results when the same task is repeated across similar codebases. Those signals mean the model may be pattern matching in a shallow way rather than maintaining reliable reasoning across the system.
A: For most enterprise review programmes, triage capacity comes first. A model that finds more issues but floods analysts with false positives can slow the programme down, so the better choice is usually the model that balances useful findings with a workload the team can sustain.
Technical breakdown
Why aggregate benchmark scores can hide security-review failure modes
Aggregate benchmark figures compress different repository sizes, harnesses, and prompt conditions into a single score, which can mask operational weakness. In security review tasks, precision and recall can move in opposite directions, so a model that looks acceptable overall may still create too many false positives or miss harder vulnerabilities in larger codebases. That is especially important when the output feeds a human review queue rather than a fully automated fix pipeline.
Practical implication: Evaluate models on the same repository scale and review workflow they will actually face.
Why large codebases expose grounded-reasoning limits
A model that performs well on smaller or more self-contained repositories can lose context as code paths, dependencies, and privilege relationships multiply. In security work, grounded reasoning means connecting evidence across files and flows without drifting into speculation. When the repository becomes more interconnected, the model has to preserve local accuracy while maintaining a coherent view of the whole system, which is a harder task than simple pattern matching.
Practical implication: Treat repository size and complexity as a control variable, not a background detail.
How self-hosted open weight models shift the control problem
Running an open weight model on your own infrastructure improves data residency and may improve auditability, but it does not automatically make the model suitable for enterprise security review. The governance burden moves from cloud exposure to model selection, harness design, and validation discipline. If the model is loosely grounded, the organisation inherits more triage work even when inference is cheaper and the data never leaves the environment.
Practical implication: Pair self-hosting with model validation controls rather than assuming local execution solves the governance issue.
NHI Mgmt Group analysis
Benchmark selection is becoming a governance control, not a data-science preference. Security teams are increasingly using models to evaluate code, secrets, and access paths, which means the model's failure modes now affect operational risk. If benchmark design does not reflect enterprise-scale repositories, the organisation can make the wrong procurement and deployment decision. The practical conclusion is to govern model choice like any other security control.
Open weight models create a distinct trust trade-off: better data control, weaker performance guarantees. Keeping source code on-premises or in a private environment addresses one concern, but the organisation still needs evidence that the model can reason consistently over large, interconnected systems. That is a governance problem, not just an infrastructure problem. The practical conclusion is to test for grounded output before trusting the model in review workflows.
Precision, not just F1, should shape security-review adoption. A model that produces a large number of false positives shifts cost into human triage and can slow remediation more than it helps detection. That makes the triage burden a material part of the control assessment, especially for teams with limited review capacity. The practical conclusion is to measure false-positive cost alongside headline benchmark scores.
Open weight model security review is now part of the identity and privilege assurance surface. These models are being used to assess code and access logic that govern who and what can reach sensitive systems. If the model misses privilege paths, secrets exposure, or authorization flaws, downstream IAM and NHI decisions inherit that blind spot. The practical conclusion is to align AI-assisted review with identity governance thresholds, not treat it as a standalone productivity tool.
From our research library:
- Companies are dedicating an average of 32.4% of their security budgets to secrets management and code security, with US organisations leading at 40.8%, according to the State of Secrets in AppSec.
- Read next: Secrets Management Buyer's Guide
What this signals
Enterprise-scale validation is the missing control. The central lesson is not that open weight models are unusable, but that model selection has to be tied to the scale and topology of the codebase being reviewed. Security leaders should treat benchmark realism as part of the control design, not as an afterthought.
Triage burden is the hidden operating cost. When a model's precision drops, analysts absorb the difference in dismissal work, queue depth, and slower remediation cycles. That makes reviewer capacity part of the adoption decision, especially where AI output feeds vulnerability triage or policy review.
Model choice now intersects with identity governance. If AI is used to assess privilege paths, secrets, or authorization logic, then the reliability of the review model becomes part of the assurance chain for IAM and NHI controls. Teams should require evidence that the model can reason over complex repositories before trusting it in identity-sensitive workflows.
For practitioners
- Test models on representative enterprise repositories Use codebases that match your own scale, dependency depth, and security-review patterns instead of relying on aggregate benchmark results from smaller or cleaner repos.
- Measure false-positive burden before adoption Compare precision against the number of analyst hours required to dismiss low-quality findings, because cheaper inference can still raise total operating cost.
- Validate grounded reasoning on connected code paths Run the model on repositories with cross-file privilege flows, authorization logic, and secret handling so you can see whether it preserves context.
- Treat self-hosting as a control choice, not a guarantee Review whether local deployment improves data residency and auditability, then separately verify that the model's output quality is fit for security review.
Key takeaways
- Open weight models can satisfy data residency concerns while still failing on the operational question that matters most: whether they stay grounded on enterprise-scale review work.
- Benchmark averages are not enough to judge security-review usefulness when precision falls and false positives push cost into human triage.
- Security teams should validate models against repositories that match their own complexity before making adoption decisions.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST AI RMF and NIST CSF 2.0 set the technical controls, while ISO/IEC 42001:2023 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI RMF | MEASURE — Measure | The article is about validating AI performance against security-review tasks. |
| MANAGE — Manage | The article highlights governance choices around deployment, fit, and operational risk. | |
| Recommendation — Measure model performance on representative security-review workloads before adoption. Manage AI deployment risk by tying model selection to control objectives and review capacity. | ||
| NIST CSF 2.0 | GV.RM-01 — Risk management strategy | Model choice is a risk-management decision because it changes security-review quality and cost. |
| PR.DS-01 — Data-at-rest is protected | Self-hosted models are partly justified by keeping source code and sensitive data in-house. | |
| Recommendation — Include AI review models in your risk management strategy and validate them against production-like work. Verify that self-hosted AI keeps sensitive code protected in the environments where it runs. | ||
| ISO/IEC 42001:2023 | AI management system — AI management system | The article is fundamentally about governance of model selection, testing, and deployment. |
| Recommendation — Use an AI management system to govern benchmarking, deployment criteria, and ongoing validation. | ||
Key terms
- Open-Weight Model: A model whose parameters can be downloaded and run locally by the operator. In practice, that means safety behaviour can be altered outside the provider’s environment, so governance has to focus on the runtime, the operator, and the abuse path, not only the model brand.
- Grounded Reasoning: The ability of a model to keep its outputs anchored to the real code, data, or context it is analysing rather than drifting into plausible but incorrect conclusions. In security work, grounding is what separates useful assistance from noisy or misleading findings.
- Triage Burden: The operational cost of deciding which security findings are real, urgent, and exploitable. When alert volume rises, triage burden becomes a control problem because time spent sorting noise directly reduces the capacity to remediate genuine risk.
- Enterprise-Scale Repository: A codebase large enough to include many interconnected files, dependencies, and privilege flows rather than a small self-contained project. These repositories are more likely to expose whether a model can maintain context and reason accurately across complex security paths.
Deepen your knowledge
NHI Mgmt Group covers identity security, NHI governance, and agentic AI through independent research, practitioner guides, and the NHI Foundation Level course. It helps security, IAM, and governance teams build a common control language for identities that human processes do not directly manage.
Published by the NHIMG editorial team on August 2, 2026.
Updated on October 13, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org