Guides · ← All guides · Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team · 6 min read

Why Eval Scan Reports Redact Secret Values ([REDACTED] Explained)

A report that prints the secret is a second leak with a ticket number. Redaction is what lets a finding travel to everyone who must act on it — and no one else.

The short answer: because a report goes places the file never would. EvalEgress findings for secret-like patterns report presence, file, line and pattern class, with the matched value replaced by [REDACTED] in every output — the report, the history, the JSON export, the evidence pack. The report can therefore be attached to tickets, shown to reviewers, exported to customers and archived for years without becoming a credential store in its own right. You identify the exact secret by opening the file at the reported line yourself. The rule has no exceptions for convenience; scan your files with the free scan and every credential finding will demonstrate it.

What is redaction (in scan reports)?

Redaction is the replacement of a sensitive value with a fixed marker — here, [REDACTED] — while preserving the finding's actionable content: that a value exists, where it sits, and what pattern class it matches. Structural configuration (a wildcard, an open CIDR) is not secret and is shown as written; secret values are, and are not shown anywhere.

What breaks if a report prints the value?

The report becomes the most dangerous copy of the secret in the building. Files live in repos with access controls; reports live in ticket systems, chat threads, exported PDFs, diligence data rooms and email. Each is indexed, backed up and searchable by people and systems far outside the repo's audience. A printed AWS secret in a scan report would outrank the original finding in severity — the remediation tool would have manufactured the widest distribution the credential ever achieved. Redaction caps the report's sensitivity at 'metadata about secrets', which is shareable, while the value's sensitivity stays confined to the file where it already (regrettably) lives.

Redaction also protects the future. Reports are kept — as scan history, as before/after evidence, inside hash-chained packs meant to be shown to regulators years later. A chain that sealed real credential values into immutable evidence would be a liability with a verification script. Operator free text entering a pack passes through the same secret scrubber for the same reason: nothing that enters the evidence record may carry a value, however it arrived.

Is presence-plus-location really enough to act on?

It is precisely what the fixer needs, no more: which class (so which remediation and which issuer), which file and line (so the value can be identified and removed in place), and the severity (so it is triaged correctly). The value itself contributes nothing to any of those actions — rotation does not require displaying the old secret, and displaying it to a room adds witnesses, not speed. Where identification is genuinely ambiguous — several keys, one file — the line number resolves it for the person with file access, in the file, which is the only place the resolution should happen.

Reviewers, notably, do not need values either. A diligence reviewer verifying that a CRITICAL was real and is closed needs the class, the location and the re-scan's absence — evidence that a redacted first report plus a clean second report supplies completely. Asking to see the value would be asking to extend the exposure; mature reviewers ask for the pair of reports instead, and the redaction design is what makes that exchange clean.

How is the scrubbing itself assured?

By tests that treat leakage as a release-blocking failure: the suite feeds the scanner fixtures containing known secret strings and asserts those strings appear in no output string the scanner produces — not the findings, not the snippets, not any report rendering. Credential-shaped assignments get a dedicated scrubbing pass, so a line carrying both a structural match and a credential value shows the structure with the value scrubbed. The guarantee is thus mechanical and regression-tested, in keeping with the scanner's other trust properties — the same suite that verifies scan-only behaviour verifies no-value behaviour.

Hold your own tooling to the same bar when reports travel: exports and packs are already scrubbed, but the screenshot a helpful engineer takes of the original file is not. The runbook line that pairs with redaction is humane and simple — findings are shared as reports, values are viewed in files, and the two channels never swap.

Worked example: Sable & Co Insurance, scored end to end

Example. Sable & Co, a fictional insurer, ran its first scan before a regulator meeting and attached the full report — findings and all — to the meeting pack without a confidentiality review. That was safe precisely because of redaction. The findings it circulated were:

FindingClassSeverityWeight
AWS secret access key assignment in the harness configaws_secret_access_keyHIGH15
GitHub token in the CI configuration for the eval jobgithub_tokenHIGH15
Generic secret assignment in the stack configgeneric_secret_assignmentHIGH15
JWT token pasted into the eval environment filejwt_tokenMEDIUM8

The arithmetic: 15 + 15 + 15 + 8 = 53 points of exposure, so the score is 100 − 53 = 47/100, grade D. Scoring uses EvalEgress's published weights — CRITICAL 25, HIGH 15, MEDIUM 8, LOW 3 — with grades at A ≥ 90, B ≥ 75, C ≥ 50 and D ≥ 25.

Every value in the circulated pack read [REDACTED]; the regulator's team saw classes, locations, severities and remediations — the whole substance — and no credential material. The remediation evidence submitted afterwards was the re-scan (zero findings) plus the issuers' rotation confirmations, again with no values. The episode became the firm's template for sharing findings: the report is the shareable artefact, by construction, and the file is the only place a value is ever viewed.

Handle findings without spreading values: the five actions

Reports travel, values stay:

  1. Share the report, never the file, when circulating a finding. Tickets, reviews and diligence packs get the redacted report — class, file, line, severity, remediation — which is everything an audience needs.
  2. Identify values in the file, at the reported line, with file access. Resolution happens where the secret already lives; it is never transcribed into a ticket, a chat or a slide to save a colleague a lookup.
  3. Treat screenshots of source files as secret-bearing. The scrubber protects the scanner's outputs, not your clipboard. If an image shows a value, it is handled as a credential copy — because it is one.
  4. Keep exports and packs as the long-term record. They are scrubbed by construction and safe to archive; the raw declared content is discarded after scanning and should be discarded by you too.
  5. Rotate on the report's word, not on seeing the value. Presence, class and location justify rotation completely; nobody in the chain needs to eyeball the secret to act.

Redaction is what makes a findings report a safe artefact to build a programme around. Its sibling guarantee — that the same input always yields the same report — is determinism.

Keep checking the boundary

Run the free exposure scan on the files your next eval will run with. Compare plans, read the scoring documentation, and keep reading: what is eval-to-production exposure?, what is egress in AI evaluation?, pre-deployment eval safety checklist, how to stop an AI evaluation from reaching production secrets, deterministic eval scanning explained, eval scan limits: files, size and lines, using a secrets manager for eval credentials. EvalEgress is one of the Ingenious AI platforms.

Sources

Frequently asked questions

How do I know which key to rotate if the report hides it?
Open the file at the reported line — the finding gives file and line precisely so the owner of the file can identify the value in place. The rotation then happens at the issuer, where the key is identified by its own metadata.

Are structural findings redacted too?
No — a wildcard, an open CIDR or a debug flag is configuration, not a secret, and is shown as written. Showing it is what makes those findings directly actionable.

What about a line that has both a structure and a secret?
A dedicated scrubbing pass handles credential-shaped assignments on the line, so the structure displays and the value is replaced. The test suite covers mixed lines specifically.

Is redaction verified or just intended?
Verified mechanically: fixtures with known secret strings run through the scanner, and the suite asserts those strings appear in no output. A regression that printed a value would fail the build.

Does scan history store my pasted secrets?
No. History keeps the redacted findings. The pasted content is processed in memory and discarded, and values are never stored at any point — that is the property that makes the scan safe to run on your worst files.