Manuscript Offprint

arXiv:2610.03470

CorrectGuard: Eyes-Off Correctness Estimation for Black-Box Security Guardrails

Adam Faulkner, Nil-Jana Akpinar, Matthew Dressman

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Adam Faulkner ∗^{*}

Microsoft

New York, USA

adamfaulkner@microsoft.com

Nil-Jana Akpinar ∗^{*}

Microsoft

Redmond, USA

nakpinar@microsoft.com

Matthew Dressman

Microsoft

Redmond, USA

Matthew.Dressman@microsoft.com

Abstract—AI services increasingly rely on black-box security guardrails, yet privacy-preserving model auditing regimes often cannot measure how well these systems perform in both a human eyes-off production setting, which disallows human inspection of user input, and a machine eyes-off setting, which disallows model inspection of such input. We introduce CorrectGuard, an eyes-off correctness estimation framework for both settings, which involves an independent model-based evaluator predicting whether guardrail decisions on human- and machine-inaccessible inputs are correct using only labeled eyes-on data and without access to the guardrail's internals. We evaluate in-context learning, embedding, and finetuning-based correctness models under leave-one-dataset-out evaluation across 13 safety and security datasets spanning harmful content, jailbreaks, prompt injection, and extraction, and across open-weight guardrails treated uniformly as black boxes. Across both human and machine eyes-off settings (the latter implemented using privacy-preserving fingerprinting of inputs), in-context-learning-based correctness classifiers substantially improve error identification across guardrails, achieving up to a 25 percentage-point increase in macro accuracy, as do finetuning-based approaches which provide a nearly 15-point boost, although performance varies sharply across guardrails and held-out datasets. Correctness scores also support guardrail decision ranking and abstention: across 3 guardrails, the best correctness rankings reduce AURC from unranked baselines of 0.33–0.44 to 0.17–0.22, while the best operating points retain 37.5–52.0% of guardrail decisions at 15% observed risk. These results show that external correctness models can expose systematic failures and support guardrail decision abstention without privileged access to the guardrail.

Index Terms—AI safety, security guardrails, correctness estimation, distribution shift, decision abstention

I. INTRODUCTION

AI services increasingly rely on black-box safety and security guardrails to detect harmful content, jailbreaks, prompt injections, and other undesirable interactions [1–3]. These systems are typically evaluated on labeled benchmarks, yet their performance can vary substantially across datasets, attack strategies, and application contexts [4–9]. As a result, pre-production benchmark performance may provide a poor estimate of how a guardrail performs on the distribution encountered in production.

Direct evaluation on production traffic, however, may be infeasible. Privacy policies, contractual constraints, and data-handling guarantees can prevent human inspection of production inputs. Major AI platforms, for example, support production configurations with zero data retention, zero operator access, or restricted human review [10–12]. In such settings, inputs may remain available to automated systems at inference time while being inaccessible to human or even model-based evaluators. At the same time, commercial guardrails are often proprietary services that expose only discrete decisions rather than model internals or calibrated confidence scores. Together, these constraints create an observability gap: operators can observe what a guardrail decides, but cannot directly determine whether those decisions are correct. Existing approaches to post-production auditing can track the behavior of live black-box systems using researcher-constructed probes [13–15], but such evaluations characterize performance on controlled probe distributions rather than on the potentially shifted distribution encountered in production.

Importantly, restricting human access does not necessarily make production inputs unavailable to all forms of assessment. In the more common scenario, humans are restricted in their access while models do not have this restriction. Increasingly, however, privacy-preserving model auditing, particularly agentic approaches, involves a machine eyes-off restriction [16], which disallows natural language input or input representations (such as dense embeddings) that can be inverted to recover such input [17]. We exploit this asymmetric-access setting to introduce eyes-off correctness estimation for black-box guardrail evaluation. Given an input x and a guardrail decision y^=g(x)\hat{y} = g(x), an independent model-based evaluator estimates cθ(x,y^)=P(y=y^∣x,y^)c_{\theta}(x, \hat{y}) = P(y = \hat{y} \mid x, \hat{y}), while requiring neither human/machine inspection of x nor privileged access to the guardrail itself. The Correctness Model (CM) is trained entirely on labeled, eyes-on data from other distributions and can then be applied to human- or machine-inaccessible production inputs. In this way, correctness estimates can provide an external signal about guardrail failures even when conventional labeling is unavailable.

We evaluate eyes-off correctness estimation under Leave-One-Dataset-Out evaluation (LODO) across 13 safety and security datasets spanning harmful content, jailbreaks, prompt injection, extraction, and benign or mixed inputs. We evaluate in-context learning-based (ICL) approaches, finetuned language models, and more traditional classification architectures as external correctness estimators across open-weight guardrails.

∗^{*}Equal contribution.

© 2026 Microsoft Corporation. All rights reserved.

that we treat as proxies for black-box guardrails. These experiments address four main research questions:

• RQ1: Robust against distribution shift. Can external CMs identify guardrail errors on an entirely unseen distribution?

• RQ2: Discrimination under distribution shift. How well do correctness scores retain discrimination and calibration under such shifts?

• RQ3: Ranking usefulness. Do correctness-model scores reliably rank guardrail decisions by their likelihood of being correct?

• RQ4: Decision abstention. Can these scores support guardrail decision abstention by identifying lower-risk subsets of guardrail decisions?

We find that external correctness estimation can substantially improve error identification without access to guardrail internals, but this effectiveness depends strongly on the guardrail, correctness-model training regime, and held-out distribution. ICL-based approaches improve correctness accuracy across the evaluated guardrails, with gains of up to 25 percentage points, whereas fine-tuned evaluators do not consistently transfer across guardrails and datasets. Raw correctness probabilities can retain useful discrimination even when their calibration degrades under shift, and this ranking signal supports abstention: the best correctness rankings substantially reduce risk among retained guardrail decisions. Initial experiments for the machine eyes-off setting, using only binary fingerprints as input features to a traditional classifier, are mixed, providing modest accuracy lifts across all guardrails as well as modest ranking utility. At the same time, failures shared across CMs and strong variation across held-out datasets show that external correctness estimation is not a universally reliable monitor.

Together, these results establish the feasibility of eyes-off error monitoring while identifying distribution shift, transferable calibration, and the limitations posed by privacy-preserving feature transformations of input as central challenges for broader production performance estimation.

References (65)