Independent analysis by NHI Mgmt GroupSource article: Dam Secure, “Prompts in the Pipeline: Is Your AI Reviewer Cheating?” (November 19, 2026)

TL;DR: AI security reviewers can miss more than a third of real bugs depending on the model, prompt, tools and context they are given, according to Dam Secure’s analysis, so teams must treat the reviewer setup as a governed system and measure recall, noise, cost and speed after every change. Security value comes from validation discipline, not from assuming the first good catch means the pipeline is working.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on Dam Secure's blog post: AI code reviewers vary sharply in recall, noise, cost and speed, and their security value depends on how the harness is tested and governed.

Why it matters: IAM, NHI and engineering security teams should treat AI reviewers as production controls that need evaluation, change control and ownership, not as set-and-forget prompt automation.

By the numbers:

  • Recall ranged from 32.5% to 77.5% across the 16 models tested.
  • Noise ranged from about 5 to 14 findings for every real bug.
  • Cost per PR ranged from $0.07 to $11.08 in the test set.
  • Review time ranged from under 90 seconds to over 18 minutes.

Context

AI code review only works if the surrounding workflow is controlled, measurable and stable. The model matters, but so do the prompt, tool access, context window, retrieval scope and agent loop. When those components change, the output changes too, which means security review has to be treated like any other governed control in the software delivery chain.

That matters because automated review increasingly sits close to code, secrets and release permissions. If a reviewer can see too much, call too many tools or run with an unstable prompt, it can create false confidence rather than better assurance. The governance problem is not whether an AI reviewer exists, but whether its operating model is validated enough to trust in production.


Key questions

Q: How should teams balance AI code review with human judgment?

A: Use AI to widen coverage and surface patterns quickly, but keep a human reviewer as the acceptance layer. AI tools are useful for speed and breadth, yet they do not reliably understand business context, architectural intent, or the impact of a change on access and data flow.

Q: Why do public vulnerable apps give misleading results?

A: Public vulnerable apps often give misleading results because their exposed defects are fixed, patched, or heavily tuned for demonstration, so findings do not reflect current attackability. A meaningful test needs a stable target, repeatable inputs, and a known baseline, otherwise the same scanner or exploit path can report false positives, false negatives, or non-comparable results.

Q: How does benchmark replay improve security testing?

A: Benchmark replay improves security testing by rerunning the same prompts, payloads, or exploit steps against a system after changes, so you can compare results against a real fixed vulnerability and separate regression from noise. It helps detect whether a patch, model update, or control change altered exploitability, filtering, or enforcement.

Q: When should prompt changes trigger re-evaluation?

A: Prompt changes should trigger re-evaluation whenever they alter intent, constraints, examples, tool calls, or output format, because those changes can shift model behaviour and risk. Re-test the affected use cases, safety filters, and failure modes, then compare against the prior baseline before approving the new prompt for production use.


Technical breakdown

Why the harness changes the security signal

An AI reviewer is not just a model run against a diff. It is a harness made up of the system prompt, available tools, context scope, sub-agents and loop control, all of which shape what the model can inspect and how it reasons. In security review, those pieces define the effective detection boundary. A broader context window may improve recall on some defects but can also raise noise or cost. A narrower one may make the review cheaper but blind it to call sites, flows or supporting files outside the diff.

Practical implication: Treat every reviewer configuration change as a control change and revalidate its detection performance before promoting it.

Why public benchmarks distort recall

Public vulnerable apps are poor evaluation material because many are designed for pattern matching, heavily annotated and widely circulated in training data. That creates an answer key the model can memorise rather than analyse. Once a benchmark leaks into training corpora or is widely discussed in write-ups and solutions, it stops testing generalised detection and starts testing memory. A credible benchmark needs hidden ground truth, realistic code paths and bugs that are not trivially signposted by comments, repo history or public exploit narratives.

Practical implication: Use private replayed vulnerabilities and planted defects to measure genuine detection rather than benchmark recall.

How replayed vulnerabilities produce a harder test

Replay benchmarks reintroduce a fixed bug from a real fixed commit into new code so the reviewer must understand the weakness, not recognise the name of the CVE. That method keeps the application real, preserves exploitability and allows false positives to be counted on the corrected version. It is more useful than a toy sample because it tests the reviewer against ordinary code structure, not against an obviously vulnerable lab environment. The most reliable set also includes some unsolved bugs so the benchmark can still separate strong models from weak ones.

Practical implication: Build evaluation sets from real fixes, keep the answer key private and preserve a mix of easy and hard bugs.


  • reviewdog Action compromise 2025: A stolen maintainer token poisoned reviewdog/action-setup, leaking CI secrets including the tj-actions bot token used in the next attack.
  • Ultralytics PyPI compromise 2024: A GitHub Actions injection and a leftover PyPI token let attackers publish four Ultralytics releases that installed a cryptominer.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

AI security review becomes a governance problem as soon as it is embedded in pull request flow. The control is no longer a model demo, it is a production decision point that can influence what reaches code review, merge approval and release. That means ownership, evaluation frequency and change control matter as much as raw model capability. Organisations that treat the reviewer as a static add-on will misread its assurance value and overtrust uneven results.

Harness drift is the real failure mode: the prompt, tools, context and agent loop behave like a moving attack surface. If those dials are not versioned and re-tested, the reviewer can change behaviour without any visible operational signal. In practice this is a trust boundary issue, because the system is making security judgments on code it can only partially observe.

Benchmark debt accumulates quickly in AI-assisted review. Once a test set becomes public, overused or easy to memorise, it stops measuring security detection and starts measuring exposure to the benchmark itself. That is why replayed vulnerabilities and hidden planted bugs matter: they keep evaluation aligned to actual failure modes rather than canned answers. The named concept here is review harness drift, the gradual loss of evaluation validity as the surrounding configuration changes faster than the benchmark.

Recall is the governing metric, not headline catch rate. A reviewer that occasionally finds obvious issues can still miss the bugs that matter most in production. Security teams need to care about consistency across bug classes, because the hard failures are the ones that create a false sense of safety when the pipeline looks healthy on easy cases. The practical conclusion is to judge the reviewer as a control, not as a feature.

From our research library:

What this signals

Review harness drift: security teams should expect AI reviewers to change behaviour whenever the model, prompt or tool set changes, which makes configuration governance part of the control itself. If the harness is not versioned and retested, the organisation is trusting an unmeasured control path rather than a stable reviewer.

Benchmark design will matter more, not less, as AI review matures. Public test sets will keep losing value once models absorb them, so private replay benchmarks and hidden planted bugs will become the only credible way to compare tools and tune thresholds.

For code-review pipelines, the operational question is no longer whether an AI finds some defects. The question is whether the reviewer can stay consistent enough to justify merge decisions when speed, cost and noise all compete with recall.


For practitioners

  • Version the full reviewer harness Track prompt text, tool permissions, context scope, agent loop settings and model version as a single reviewed configuration, then rerun evaluations after any change.
  • Build private replay benchmarks Use real fixed vulnerabilities and planted bugs in runnable code, keep the answer key private, and preserve a few unsolved cases so the test still differentiates models.
  • Measure more than recall Track noise, cost per pull request, review latency and consistency alongside recall, because a reviewer that is too slow or noisy will be bypassed by developers.
  • Retest after every prompt or model change Treat prompt edits, tool additions and model swaps like code changes and require a fresh evaluation pass before the reviewer is allowed back into the merge path.

Key takeaways

  • AI code reviewers are only as reliable as the harness around them, including prompt, tools, context and loop settings.
  • Public vulnerable apps are weak evaluation material because models may already know the code or the answers.
  • Private replay benchmarks with hidden ground truth are the most credible way to measure recall, noise, cost and latency over time.

Related NHI Mgmt Group resources: AI Coding Agents Security Guide · CI/CD Pipeline Identity Security Guide · GitHub and GitHub Actions Security Guide · AI Coding Tools Hub


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 reviewers with tools and context can overreach if their permissions are not governed.
ASI02 — Tool MisuseThe article centers on the tools, context and loops that shape what the reviewer can do.
Recommendation — Constrain reviewer tool use and context access so the agent cannot inspect or act beyond its intended scope. Restrict and test the reviewer’s tools so security review cannot be distorted by unnecessary capabilities.
NIST AI RMFMEASURE — Measurement and EvaluationThe core issue is whether AI review performance is measured, compared and governed over time.
Recommendation — Measure AI reviewer performance continuously and require revalidation after any meaningful configuration change.
NIST CSF 2.0GV.OV-01 — Oversight of the Cybersecurity Risk Management StrategyAI reviewers used in release pipelines need oversight as governed security controls.
PR.AA-05 — Access Permissions, Entitlements and AuthorizationsTooling and context scope in the reviewer must be limited to approved permissions.
Recommendation — Place AI review pipelines under formal oversight with defined metrics, ownership and change control. Limit the reviewer’s permissions, tool entitlements and data access to the minimum needed for review.

Key terms

  • Recall: Recall has two established meanings. In vulnerability scanning, it is the share of real weaknesses that a scanner successfully identifies; chasing it through over-reporting can overwhelm teams. In the EU AI Act (Article 3(16)), a recall is any measure aiming to return an AI system already made available to deployers to the provider, take it out of service or disable its use.
  • Review Harness: A review harness is a testing framework used to evaluate AI outputs, prompts, or workflows against defined criteria. It runs the same cases repeatedly so reviewers can score quality, safety, policy adherence, or regression behaviour in a consistent way.
  • Benchmark Replay: Benchmark replay is the rerunning of a recorded test case, prompt, or attack sequence against a system to compare outcomes over time. Security teams use it to see whether a change has fixed a weakness, introduced a regression, or altered detection and control behaviour.
  • AI Code Reviewer: An automated reviewer that scans generated code for syntax issues, simple vulnerability patterns, and common mistakes. It is useful for triage, but it does not reliably reason about business logic abuse, platform-specific security behaviour, or exploitability in high-risk identity 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. Explore the course if your programme needs a structured way to govern machine identities, secrets and AI-driven access decisions.
NHIMG Editorial Note
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org