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

Binding an Eval Harness to Localhost Instead of 0.0.0.0

A results viewer started 'just for the team' on all interfaces is reachable by the whole network the box sits on. The bind address is the decision; make it on purpose.

The short answer: bind eval services to localhost or a specific private interface unless external access is genuinely required. A service declared as bound to 0.0.0.0 — all interfaces — in your files is EvalEgress's open_binding class (MEDIUM, weight 8). On a shared or cloud network, all-interfaces means every neighbour, every other tenant workload and anything that can route to the machine can reach your harness or results viewer. Bind to 127.0.0.1 for local tools, or to the private interface address for team services behind your firewall rules, and confirm with the free scan that no 0.0.0.0 bind remains in the declared set.

What is an open binding?

A binding is the address a listening service attaches to. Binding to 127.0.0.1 accepts connections from the same machine only; binding to a specific interface address accepts them on that network; binding to 0.0.0.0 accepts them on every interface the machine has — private, public and virtual alike. EvalEgress matches the 0.0.0.0 declaration as class open_binding, MEDIUM severity, wherever it appears outside the CIDR form (which the open_ingress class also covers).

Why is the bind address a security decision at all?

Because developers choose it for convenience and it behaves like policy. Framework defaults and quick-start examples bind to all interfaces so the demo 'just works' from another device; in an eval setup, the service being demoed is a harness that can run cases, call tools with the run's credentials, and browse the full results archive. Every interface it listens on is a network on which all of that is reachable — the office LAN, the cloud VPC, the VPN, the public interface if the box has one and the firewall permits it. Whether the firewall currently permits it is a separate setting, on a different screen, owned by a different habit; defence that depends on two screens agreeing forever is not defence in depth, it is a coincidence with a deadline.

Localhost binding is the opposite default: the service is reachable only from the machine itself, which for a single-engineer eval is exactly the audience. Remote access, when needed, comes through a tunnel you open deliberately — an SSH forward, a VPN — so the reach exists when you create it and ends when you close it, instead of existing because a config file said so in March.

When is a wider bind genuinely required?

When a team shares one eval box, or a CI runner drives a harness on another host, localhost cannot serve the audience. Bind then to the specific private interface — the VPC or LAN address — never to the wildcard that means 'everywhere this machine can be reached, including places I have not thought of'. The difference between the interface address and 0.0.0.0 is the difference between a decision and a default: the named interface is reachable on one network, whose own rules you also control.

Pair the bind with the network layer consciously: a private bind plus a restricted ingress rule is the combination the scanner's two network classes are jointly checking for, open_binding and open_ingress. And record the reason in the config as a comment. The next engineer who finds a private bind with a reason attached leaves it alone; the one who finds an unexplained restriction 'fixes' it back to 0.0.0.0 the first time it inconveniences them — the bind-address version of a recurring finding, which the checklist tries to prevent with its re-scan habit.

Which eval services most often ship with an open bind?

Results viewers and dashboards top the list — small web apps spun up to browse outputs, started with framework defaults, left running between evals. Behind them: notebook servers used to inspect failures interactively, debug consoles for the harness itself, and metrics or admin endpoints of the surrounding stack. All share the profile of being 'just tooling', which is precisely why they get the wildcard bind and no authentication review. An attacker, or a steered agent looking for a side service, rates them differently: a viewer with the results archive and no login is not tooling, it is the archive's front door.

The sweep is quick because the pattern is one string. Search the declared files for the bind, rebind or retire each hit, and let the re-scan confirm the class has left the set. Services you retire entirely are the best outcome of all — a viewer that runs only during review, on localhost, started by the reviewer, has no standing surface to defend.

Worked example: Lakeside Robotics, scored end to end

Example. Lakeside Robotics, a fictional warehouse-automation firm, evaluated a picking-instruction model. Its results viewer — started once for a demo and never stopped — was bound to all interfaces, with debug mode enabled in the same settings file and a debug route declared in its config. The scan returned:

FindingClassSeverityWeight
Results viewer bound to 0.0.0.0 in the service configopen_bindingMEDIUM8
Debug mode enabled in the viewer settingsdebug_mode_enabledMEDIUM8
Debug route string declared in the viewer configdebug_routeLOW3

The arithmetic: 8 + 8 + 3 = 19 points of exposure, so the score is 100 − 19 = 81/100, grade B. 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.

The viewer is now started on demand by whoever is reviewing, bound to localhost, reached through an SSH tunnel when the reviewer is remote. Debug mode went off, the debug route came out, and the standing service disappeared from the box entirely. The re-scan reported zero findings. The demo that caused it all still works — it just begins with starting the viewer, which the team decided was a fair price for not publishing the archive to the warehouse network.

Close an open_binding finding: the five actions

Decide the audience, then bind to it:

  1. Name the real audience for each listening eval service. One engineer, the team on one LAN, or a runner on another host — the bind follows the answer, not the framework default.
  2. Bind local tools to 127.0.0.1. Viewers and notebooks used by the person at the machine need no network surface at all; remote eyes arrive by tunnel.
  3. Bind shared services to the specific private interface. The VPC or LAN address, paired with a restricted ingress rule — never the all-interfaces wildcard.
  4. Retire services nobody is actively using. A viewer that runs only during review has no standing exposure; start-on-demand beats always-on for every occasional tool.
  5. Re-scan and comment the decision. Confirm open_binding is absent from the declared files, and leave a comment stating why the bind is what it is, so the next inconvenience does not reopen it.

The bind address is a one-word policy. Set it to the audience you mean, and let the scan keep it honest — the network classes together are the subject of the egress guide.

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, debug mode enabled in an eval configuration, debug routes declared in eval services, how EvalEgress scores eval exposure. EvalEgress is one of the Ingenious AI platforms.

Sources

Frequently asked questions

Our firewall blocks outside access anyway. Does the bind still matter?
Yes — defence in depth. The firewall rule and the bind are set on different screens by different habits; either can change without the other. A localhost or private bind keeps the service unreachable even on the day the firewall rule widens.

Will binding to localhost break the team's shared eval box?
Shared boxes bind to the private interface address instead — that is the intended middle state: reachable on the team network, not on every interface the machine has.

Why is open_binding MEDIUM while open_ingress is HIGH?
The bind exposes the service to networks the machine sits on; the open ingress rule invites the entire internet past the firewall. Both are real; the weights reflect the size of the arriving audience.

How do I let a remote colleague view results safely?
Bind to localhost and forward the port over SSH, or bind to the private interface behind the VPN. Both give your colleague access without giving the network a standing service.

Does 0.0.0.0 in a CIDR rule count here too?
It matches both patterns: an ingress rule of 0.0.0.0/0 earns open_ingress, and the 0.0.0.0 within it earns open_binding. Restricting the CIDR closes both findings with one edit.