By NHI Mgmt Group Editorial TeamBased on Semgrep: “AI & Cybersecurity: Learnings from three months of Semgrep Assistant” (August 20, 2025)

TL;DR: Its private beta data showed Assistant marked 230 findings as likely false positives, with 95% of recorded responses agreeing and true positives 1.5x more likely to be fixed, while false positives were 2.2x more likely to be ignored, according to Semgrep. The real shift is not AI novelty but faster triage, tighter prompts, and better confidence handling for security workflows.


At a glance

What this is: Semgrep’s article argues that AI is most useful in code security triage when it helps separate likely false positives from actionable findings and when it supports safer autofix decisions.

Why it matters: For IAM and security teams, the important lesson is that triage automation changes governance of decision quality, not just analyst productivity, so confidence, routing, and review boundaries need explicit controls.


Context

AI-assisted triage in security tools is not mainly a model problem, it is a governance problem. The hard part is deciding when a finding is noisy enough to ignore, when it deserves a fix suggestion, and when confidence is too weak to trust automation.

This matters to code security programmes because alert volume, prompt design, and reviewer behaviour shape whether automation reduces backlog or simply moves uncertainty into a new interface. For identity and access teams, the same pattern applies whenever AI is asked to judge whether a control exception, entitlement, or finding is safe to dismiss.


Key questions

Q: What should security teams do first when AI scanners produce more findings than analysts can triage?

A: Start by separating validated, exploitable findings from unverified output and route them into distinct queues. That prevents the team from wasting scarce analyst time on low-confidence noise and lets remediation capacity focus on issues that have evidence, ownership, and business impact attached.

Q: Why do AI-assisted security reviews still need human triage?

A: Because the model can misread context, inflate severity, or miss compound weaknesses that only become meaningful when combined. Human triage validates exploitability, checks source code evidence, and separates useful signals from probabilistic noise. Without that layer, teams can end up remediating the loudest findings instead of the most dangerous ones.

Q: What are the signs that AI-assisted autofix is not ready for broad use?

A: Warning signs include fixes that look plausible but fail compile checks, require hidden changes in other files, or produce low-quality code that still needs heavy manual repair. If the confidence gate cannot separate these cases from usable suggestions, keep autofix constrained and use it only as a draft rather than a final recommendation.

Q: How should security teams govern AI agents that triage code vulnerabilities?

A: Security teams should treat code-triaging AI agents as governed production services, not prompts with a UI. That means binding each decision to exact repository state, separating suggestion from approval, and limiting read and write access to the minimum scope needed for the task. Without those controls, the agent can be accurate in appearance while being unreliable in practice.


Technical breakdown

How AI triage classifies likely false positives

AI-assisted triage works by giving a model contextual prompts about a finding, then asking it to judge whether the alert is probably real or probably noise. In Semgrep’s flow, the model can reply in a threaded comment, which makes the output visible in GitHub pull requests and Slack. The mechanism matters because the model is not replacing static analysis; it is adding a judgment layer above rule output. That means the quality of the prompt, the rule metadata, and the surrounding code context all influence whether the assistant helps or distracts.

Practical implication: Treat AI triage as a decision-support layer and measure it against analyst outcomes, not as an automatic disposition engine.

Why prompt specificity changes triage quality

The article shows that prompt specificity improves triage because the model needs practical constraints, not broad instructions. Semgrep found that adding concrete guidance, such as why certain injection patterns are less relevant in test files, improved agreement rates. It also found that using rule-category-specific instructions made triage more focused for security, performance, and code quality findings. In practice, prompt context acts like policy logic: the model is being steered toward different decision criteria depending on the finding type.

Practical implication: Segment prompts by finding category so the assistant applies the right judgment criteria to the right class of alert.

How confidence gating supports safer autofix

Autofix introduces a different risk because the system is no longer only classifying a finding, it is proposing a code change. Semgrep’s article describes a second prompt that tests the proposed fix for likely compile errors, missing changes in related files, and similar failure modes, then combines those signals into a confidence rating. That is a useful pattern because confidence is not a native LLM strength. It has to be inferred from structured checks that approximate whether the recommendation will survive implementation.

Practical implication: Use a separate confidence gate before allowing AI-generated fixes to reach developers or automated workflows.


NHI Mgmt Group analysis

AI triage is now a control plane for review quality, not just a productivity feature. The important governance question is no longer whether AI can summarize findings, but whether it can reliably reduce analyst noise without masking real risk. That shifts attention toward prompt design, category routing, and measurable decision quality. Security teams should treat AI triage outputs as governed recommendations, not unquestioned conclusions.

Prompt specificity is the control, because generic prompts produce generic judgment. The article shows that models respond better when they are given narrow, contextual instructions tied to the finding type. That is a useful reminder for code security, but it also applies to broader identity and access workflows where AI is asked to evaluate exceptions, entitlement requests, or remediation suggestions. Practitioners should expect better results when the model is told what evidence matters and what should be ignored.

Confidence handling is the named gap: AI systems can sound certain without being operationally ready. Semgrep’s multi-step confidence check illustrates the real governance issue, which is not model confidence as a number, but whether the recommended action will work after implementation. This is especially relevant wherever AI-generated changes affect security controls, review chains, or downstream code dependencies. Practitioners should require explicit confidence gating before accepting automated fixes.

Human review still has to remain inside the loop for high-impact security decisions. The article’s own metrics show that user behaviour, response rates, and fixability all matter more than a single model verdict. That means AI should compress review effort and improve prioritisation, not replace accountability for the final security decision. Teams should define where the assistant can assist, where it can recommend, and where a person must decide.

What this signals

AI triage is most valuable when it changes the economics of review, not when it adds another automated opinion to an already crowded queue. The programme-level question is whether the model improves disposition quality enough to reduce backlog pressure without creating hidden trust in weak recommendations.

Confidence gating: code security teams need a separate decision layer for AI-generated fixes, because fluent output is not the same thing as implementable output. When an assistant proposes remediation, the control objective becomes safe acceptance, not just rapid suggestion.


For practitioners

  • Define finding-specific prompt templates Separate instructions for security, performance, and code quality findings so the model uses the right triage criteria for each category.
  • Add context that suppresses known-noise patterns Include narrowly scoped guidance for situations such as test-file findings where the security concern is lower or different from production code.
  • Use a separate confidence gate for autofix Score proposed fixes for compile risk, cross-file dependencies, and likely implementation failure before they reach engineers.
  • Track agreement and fix behaviour over time Compare model verdicts against whether findings are fixed or ignored so you can identify when the assistant is helping or drifting.
  • Limit AI to triage and pre-review assistance Keep a human decision point for high-impact findings so automation speeds the queue without taking ownership of security outcomes.

Key takeaways

  • AI-assisted triage is useful when it reduces security alert noise while preserving a clear human decision point for ambiguous findings.
  • Prompt specificity and finding-category context materially improve the quality of model judgments, which makes triage design a governance issue as much as a technical one.
  • Autofix should be gated separately from triage because a plausible fix is not the same thing as a safe or implementable change.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 addresses the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseAI triage and autofix both hinge on how much authority the model is allowed to exercise.
ASI05 — Unexpected Code ExecutionAutofix turns a recommendation engine into a code-changing workflow with implementation risk.
Recommendation — Constrain agent permissions so AI outputs can suggest fixes without directly changing security-critical code. Validate AI-generated code changes before merge to prevent unsafe or broken execution paths.
NIST AI RMFMANAGE — AI Risk Management and GovernanceThe article is fundamentally about governing when AI triage is trusted and how it is bounded.
Recommendation — Define governance thresholds for AI-assisted triage and require human review for high-impact decisions.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe workflow changes which actions AI can recommend, which is an authorization concern in practice.
Recommendation — Limit AI-assisted actions to the minimum entitlements needed for triage and remediation support.

Key terms

  • AI-Assisted Triage: The use of machine-driven prioritisation to sort, rank or route suspicious cases for human review. It can improve speed and consistency, but only if analysts can understand, challenge and override the recommendation. Without governance, it becomes a hidden decision layer inside the investigation process.
  • False Positive: A false positive is a scanner result that looks like a secret but is not actually sensitive. In secret governance, false positives matter because they consume analyst time, weaken trust in alerts, and can delay response to the findings that truly change exposure and access risk.
  • Autofix confidence: A quality signal used to judge whether a model-generated code change is likely to work safely when applied. In practice, it should be inferred from validation checks such as compilation, dependency impact, and preserved behaviour, not from the model's self-reported certainty.
  • Finding category routing: Finding category routing is the practice of giving different triage instructions depending on whether a finding is about security, performance, or code quality. This keeps the model from applying one generic decision rule to problems that require different evidence and different acceptance thresholds.

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. Explore nhimg.org for resources that connect identity governance to the broader security disciplines your programme depends on.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 2, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org