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

'We Just Copied the Staging Config': The Root Cause Behind Most Eval Findings

Read enough eval scan reports and a pattern emerges: the findings were not authored, they were inherited — in a single copy operation nobody remembers as a security decision.

The short answer: the copy is the incident. When a team assembles an eval by duplicating the application's staging folder — for realism, for speed — everything the staging setup declares comes along: its credentials, its permissive policies, its open network rules, its debug settings, its tokens. EvalEgress findings cluster in copied folders for exactly this reason; scan reports read like inventories of a staging environment because they are. The durable fix is not editing the copy line by line but rebuilding the eval folder from an allow-list: the harness, the dataset, and a hand-written minimal config that declares only what the eval needs — then verifying the rebuild with the free scan.

What is a copied-config eval folder?

A copied-config eval folder is an eval workspace assembled by duplicating an existing environment's files (usually staging) and adapting them, rather than by composing the eval's own minimal declarations. Its defining property is inheritance: every declaration the source environment carried — including the ones nobody knew about — becomes part of the eval's attack surface at the moment of copying.

Why does everyone copy the staging config?

Because it works, immediately, and the alternative looks like a research project at the worst moment — the eval is due, the model is ready, the folder is the last obstacle. Staging is the natural source: production-shaped enough for the eval to be meaningful, nominally not production, so the copy feels safe. Both properties mislead. Staging is production-shaped in its permissions and credentials precisely because it rehearses production; and its not-quite-production status is exactly why its hygiene lagged — the debug left on, the wildcard granted 'temporarily', the password from 2024. The copy imports the shape and the lag together, into a folder whose distribution (shared, zipped, archived, committed) is far wider than staging's own.

No individual decides this. The copy is a keystroke, not a decision — which is why exhortation fails against it and structure succeeds: a scaffolded eval template that is easier to use than the copy is the only intervention with a track record. Give the next eval a folder that already contains a minimal config with references instead of values, a scoped role template, private network defaults, and the copy loses its only advantage: being fastest.

What exactly rides along in a typical copy?

The scan reports answer empirically — the same cast recurs. Credentials: the staging database password (generic_secret_assignment), the cloud key pair it authenticates with, the provider key it bills to. Permissions: the deployment role's policy file, admin reference and wildcards intact, because staging needed them once. Network: ingress opened for a contractor's demo, binds at all-interfaces from the framework default, the results bucket cloned from a public assets bucket with its ACL. Debug: the settings file with debug still on from an investigation, the admin panel routes from the stack's tooling. A copied folder is a staging environment's biography, and the scan reads it cover to cover — the findings feel numerous because the inheritance was total.

Note what does not ride along: staging's compensating context. The staging box sat behind a VPN the eval box is not behind; the staging credentials were watched by an owner the eval folder does not have; the staging network was enumerated in an inventory the eval never joined. Copies inherit declarations, not the circumstances that made them tolerable.

How does an allow-list rebuild work?

Compose the folder from named parts. The harness code, taken as code. The dataset, taken as data (and reviewed as data, since datasets carry their own instruction risks). The config, written fresh at eval scale: the model endpoint, the dataset location, references to the eval's own secrets in the manager, the eval role's name — a page, not a directory. The policies, generated from the scoped templates: named actions on eval resources. The network declarations, from the private defaults. Anything the eval genuinely needs from the staging setup is re-expressed at eval scope rather than copied at staging scope — the database becomes a read-only eval replica or an exported sample; the API access becomes the eval's own key with a cap.

Then scan the rebuilt folder and file the pair — the copied folder's report and the rebuild's — as the programme's founding exhibit. And scaffold it: the rebuilt folder becomes the template the next eval starts from, so the allow-list is inherited the way the staging folder used to be. Inheritance is not the enemy; it is the mechanism. The work is choosing what gets inherited.

Worked example: Fox Hollow Media, scored end to end

Example. Fox Hollow Media, a fictional streaming service, assembled its recommendation eval by copying the staging folder on a Friday afternoon. Monday's scan — the team's first — itemised the inheritance:

FindingClassSeverityWeight
Private key block header in the copied deployment bundleprivate_key_blockCRITICAL25
AWS secret access key assignment in the copied configaws_secret_access_keyHIGH15
Service API key (sk-) in the copied model configgeneric_api_keyHIGH15
Ingress open to 0.0.0.0/0 in the copied network configopen_ingressHIGH15
Debug mode enabled in the copied staging settingsdebug_mode_enabledMEDIUM8

The arithmetic: 25 + 15 + 15 + 15 + 8 = 78 points of exposure, so the score is 100 − 78 = 22/100, grade F. 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.

Rather than patch five findings in a folder nobody fully understood, the team rebuilt: harness and dataset carried over as themselves; config rewritten to one page of eval-scale declarations with manager references; role scoped from a single logged run; network from the private template. The staging originals were then fixed at the source too (the key revoked, debug off), because the scan had incidentally audited staging. The rebuild's scan reported zero findings, and the rebuilt folder — not the staging directory — is now the organisation's eval template. The Friday copy remains in the programme's onboarding deck, anonymised, as the cheapest security lesson the company ever got.

Replace the copy with a build: the five actions

Inherit deliberately, or not at all:

  1. Scan the copied folder before you patch anything. Let the report inventory the inheritance in full — the list usually ends the argument about whether a rebuild is worth it.
  2. Carry over code and data as themselves; rewrite configuration fresh. Config is where exposure lives. A one-page eval-scale config with references replaces the copied directory of staging declarations.
  3. Scope identity and network from eval templates. The eval's own role from observed calls; private binds and restricted ingress by default — never the source environment's grants.
  4. Fix the source environment's real findings too. A copied folder's report is also an audit of staging; the revoked key and the disabled debug belong to staging's own record.
  5. Promote the rebuilt folder to the standing template. The next eval inherits the allow-list the way this one inherited staging — make the mechanism work for you.

Every programme has a founding copy; the mature ones make it the last. The rebuild pattern generalises into the isolation blueprint.

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, prompt-injection cases in eval datasets, evaluating models with production data safely, keeping eval results private. EvalEgress is one of the Ingenious AI platforms.

Sources

Frequently asked questions

Is copying staging ever acceptable?
As a starting inventory, yes — in a quarantined workspace, scanned immediately, never run against anything real until rebuilt. As the running configuration, no: the inheritance is total and the compensating context does not copy.

Why not just fix the findings in the copied folder?
Sometimes the folder is small enough that fixing and rebuilding converge. The rebuild wins when the folder's provenance is murky — you cannot patch what you cannot enumerate, and the scan enumerates findings, not the folder's whole history of intentions.

Our staging is very clean. Does the copy still matter?
Then the scan of the copy will say so, cheaply — and the rebuild still matters for distribution: the eval folder travels to audiences staging never had, carrying whatever staging holds. Clean and copied is better than dirty and copied; composed is better than both.

What goes in the eval template, concretely?
A minimal config skeleton with manager references, a scoped-role template, private network defaults, a dataset placeholder with its review note, and the pre-run scan step written into its README. Small, opinionated, faster than copying.

How do we stop the next team from copying anyway?
Make the template the path of least resistance and the scan the gate: a copied folder announces itself in findings at the first CI diff. Process plus mechanism beats policy prose.