Guides · ← All guides · Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team · 7 min read
Declared-Surface Scanning: Why EvalEgress Only Reads What You Paste
The scanner's input is a paste box. That constraint — no agents on your machines, no calls to your cloud — is not a limitation of the product. It is the product's trust model.
The short answer: you declare the surface: paste a repo file listing or config text, or upload files, and the scanner reads exactly that — nothing else. It installs nothing, authenticates nowhere, calls no cloud APIs and runs no subprocesses; scanned content is processed in memory and discarded, and logged-in users keep only the redacted findings as history. The trade is explicit: the scanner cannot see your private infrastructure, and in exchange it can never become a threat to it — a scanning tool that holds no credentials and makes no calls cannot leak what it never touched. See the model work on your own files with the free scan.
What is a declared surface?
A declared surface is the set of files and config text a user explicitly hands to the scanner: pasted content or uploads representing the eval's configuration, policies and listings. 'Declared' is the load-bearing word — the boundary of the audit is the boundary of what was handed over, stated on every report, rather than whatever a crawler could reach.
What does the scanner actually do with pasted content?
Deterministic pattern work, and nothing else: the content is matched line by line against the 16 classes' patterns, findings are assembled with file, line, severity and remediation, secret values are scrubbed to [REDACTED] in every snippet, and a score is computed from the published weights. The implementation is scan-only by construction — the test suite verifies by AST inspection that the scanner module contains no subprocess, no operating-system calls, no eval or exec. Content over the limits is truncated by rule (caps on file count, content size and line length, covered in the limits guide), processed in memory, and discarded when the scan completes.
What persists is the report, for logged-in users as scan history: the findings with redacted snippets. The raw paste — including any secret that was in it — is not stored, which is what makes the tool safe to use on exactly the files you are most worried about. The workflow inverts the usual scanner dilemma: the files that most need auditing are the ones you would least hand to an agent with network access and a credential store. Here the handover is a paste into a process that keeps nothing it read.
Why not crawl the repo or connect to the cloud for completeness?
Because completeness bought with access is a bad trade at eval scale. A connected scanner needs credentials — which then need securing, scoping and auditing, and which become, in the eval context, one more high-value secret adjacent to the eval. The declared model needs none: its coverage is the declared set, its honesty about that coverage is printed on the report, and its blind spots are the operator's to manage by declaring completely. In practice the declared set is where the exposures live: the eval's own configs, policies and listings are the boundary's paperwork, and paperwork is what gets copied, drifted and forgotten.
The model also makes scans reproducible across organisations. A customer, an auditor and the team can paste the same declared set and receive the identical report — determinism again — with no access negotiations, no network allow-listing, no 'your scanner touched production' incident review. For an assurance artefact, that portability is worth more than the marginal findings a crawler might add.
How do you declare completely?
Declare the environment the eval runs in, not the eval's logo files: harness configs and environment files; IAM and resource policies, as files; infrastructure declarations (network rules, storage ACLs, service bindings); the side services' configs (metrics, logging, viewers); CI configuration that supplies the run's credentials; and any bundle, export or listing pasted together for the workspace. The classes tell you what the scanner can use: anything textual that declares credentials, permissions, network posture or debug surface. Fifty files per run on the batch plans is sized for exactly this sweep, and the checklist walks the categories in order.
Keep the declared set definition under version control beside the harness, so 'what we scan' is a reviewed artefact and the CI gate scans the same set a human does. When the set grows — a new side service, a new policy file — adding it to the definition is a one-line change with an outsized return: the next scan sees the whole boundary again.
Worked example: Tidewater Logistics Group, scored end to end
Example. Tidewater, a fictional logistics group, first scanned only its harness config — three files, one finding — and nearly filed the exercise as complete. A reviewer asked what else the eval ran with. The full declared set, 31 files including policies, infrastructure and the logging stack, told the real story:
| Finding | Class | Severity | Weight |
|---|---|---|---|
| AdministratorAccess referenced in the eval role policy file | admin_managed_policy | CRITICAL | 25 |
| Public-read ACL declared on the results bucket | public_bucket_acl | HIGH | 15 |
| Generic secret assignment (telemetry credential) in the stack config | generic_secret_assignment | HIGH | 15 |
| Service bound to 0.0.0.0 in the viewer config | open_binding | MEDIUM | 8 |
The arithmetic: 25 + 15 + 15 + 8 = 63 points of exposure, so the score is 100 − 63 = 37/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.
Nothing about the scanner changed between the two runs; the declaration did. Tidewater fixed the four findings (scoped policy, private bucket, rotated telemetry credential, private bind), codified the 31-file set as the standing definition, and wired the CI diff against it. The lesson the team wrote into its runbook was the model's own lesson: a declared-surface scanner shows you exactly the boundary you show it — declare the whole boundary.
Declare completely: the five actions
The audit's boundary is your declaration's boundary:
- Declare the environment, not the headline files. Harness, policies, infrastructure, side services, CI config — every textual declaration of credentials, permissions, network or debug posture.
- Codify the set beside the harness. A version-controlled list of what gets scanned, reviewed when it changes, used identically by humans and by the CI gate.
- Use batch runs for the full sweep. The 50-file batch exists so completeness is never rationed by the tool; single-file scans are for spot checks, not for gates.
- Grow the set when the stack grows. A new service or policy joins the declared set in the same change that creates it — the set definition is part of 'done'.
- Quote coverage honestly. Reports name the declared set they cover; 'we scanned the eval' means these files, and the runbook says which.
Declared-surface scanning trades omniscience for trustworthiness — and says so on the label. The property that makes its reports comparable across time and teams 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, why eval reports redact secret values, deterministic eval scanning explained, eval scan limits: files, size and lines. EvalEgress is one of the Ingenious AI platforms.
Sources
- EvalEgress scoring documentation — the 16 finding classes, severity weights and declared-surface scope every judgement in this guide applies, published 2026.
- What Is Eval-to-Production Exposure? — the companion guide this page builds on, published November 7, 2026.
- The free EvalEgress scan — the declared-file scan this guide's checks are performed with.
Frequently asked questions
Is my pasted content stored?
The content is processed in memory and discarded. Logged-in users keep scan history consisting of the redacted findings — never the pasted text, and never an unredacted secret value.
Can the scanner reach our internal systems through a pasted URL or config?
No. It makes no network calls and authenticates nowhere; a URL in pasted content is text to be matched, never a target to be fetched. Anything needing a live check is reported as a finding, never probed.
Why is scan-only enforced by tests, not just promised?
The suite checks the scanner module's AST for the absence of subprocess, OS and eval/exec constructs — the promise is verified mechanically on every run of the test suite, which is the standard a trust claim should meet.
What file types can be declared?
Text: configs, policies, listings, infrastructure files, environment files, CI definitions. The scanner reads text lines against its patterns; binaries and archives should be declared as their listings or extracted text.
Does a bigger declared set change the score unfairly?
It changes coverage, which is the point: more declared surface, more chances to find what is actually declared. Scores are comparable for the same set over time — trend per set, as the scoring guide advises.