Guides · ← All guides · Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team · 6 min read
Debug and Admin Routes Declared in Eval Services (/debug, /console)
Three points is the smallest deduction in the scanner. What the route gives away is not access — it is the address of the interesting doors, in writing.
The short answer: remove debug tooling from production-shaped configs, or gate it behind authentication. A declared route string for /debug, /console, adminer or phpmyadmin in your files is EvalEgress's debug_route class (LOW, weight 3) — the lightest finding the scanner emits. Its weight prices the direct risk honestly: a route name alone grants nothing. Its value to an attacker is as a map, and its value to you is as a checklist prompt: confirm the tooling behind the route is not exposed in the eval's production-shaped configuration, and confirm with the free scan that no debug route remains in the declared set.
What is a debug route?
A debug route is a URL path at which diagnostic or administrative tooling answers: framework debug consoles, database administration panels such as Adminer or phpMyAdmin, and hand-rolled /debug or /console endpoints. EvalEgress matches those route strings in declared files as class debug_route, LOW severity — the only LOW class in the scanner's 16.
Why does a scanner bother with a three-point finding?
Because security work is mostly map-making, on both sides. The attacker who finds your eval service still has to find its interesting surfaces; a config that declares the debug route hands them the last step for free, and debug tooling is disproportionately worth finding — database panels and consoles concentrate exactly the powers (browse the data, run a query, execute a snippet) that the rest of your hardening tries to ration. The three points say: this is not the breach. The class's existence says: breaches are assembled, and this is a standard part.
For the defender the finding is nearly free value. It is the only class that can be closed by inspection in minutes — is the tool actually reachable in this configuration, yes or no — and answering it forces an inventory most teams have never made: what administrative tooling exists anywhere in the eval stack, under what paths, behind what gates. Teams routinely discover a panel installed for a one-off investigation two quarters ago, still answering. The LOW weight keeps the finding in proportion; the inventory it triggers is the real return.
When is a declared debug route acceptable?
When the tooling behind it is genuinely gated and the declaration is a deliberate, local-only convenience: a console route that exists only in the development configuration, on a localhost-bound service, is a normal tool of the trade. The class matches declarations in the files you scan — which should be the production-shaped set the eval actually runs with. If your scan set is your real run configuration, a debug route in it deserves the question the finding asks: not 'delete this string' but 'is this door, in this deployment, locked?'
Gating means authentication and, for database panels, network restriction as well — a panel reachable only from the VPN, requiring its own credentials, is a managed risk; the same panel on an all-interfaces bind is a finding the LOW label would undersell. That interplay is why the debug classes are read together: debug_route names the door, debug_mode_enabled names the unlocked interior, and the network classes name the street it opens onto. The set is scanned together precisely so combinations are visible, as in the exposure model.
What should replace phpMyAdmin-style tooling in an eval stack?
Usually, nothing web-shaped at all. The tasks those panels do during eval work — inspect the staging database, check a results table, run one query — are served as well by a command-line client over SSH, which inherits SSH's authentication and leaves no standing web surface. Where a panel is genuinely the team's tool, run it on demand: started for the session, bound to localhost, reached by tunnel, stopped after. The pattern is the same one that fixes the viewer problem — occasional tools should have occasional existence.
Remove the route declarations from the shared configs as you retire the standing tooling, and let the re-scan confirm the class has cleared. Keep a note of where the tooling went ('database access via SSH client; panel retired 2026') in the runbook, so the next engineer does not reinstall the panel out of habit and resurrect the finding next quarter.
Worked example: CedarWorks Furniture, scored end to end
Example. CedarWorks, a fictional furniture maker, evaluated a warranty-answer model. Its eval stack had grown a phpMyAdmin install during a data investigation months earlier; the route was declared in the shared service config, the panel's host service was bound to all interfaces, and debug mode was on in the harness settings. The scan returned:
| Finding | Class | Severity | Weight |
|---|---|---|---|
| Debug mode enabled in the harness settings | debug_mode_enabled | MEDIUM | 8 |
| Service bound to 0.0.0.0 in the service config | open_binding | MEDIUM | 8 |
| Debug route string (phpmyadmin) declared in the service config | debug_route | LOW | 3 |
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 panel had answered, unauthenticated, on the warehouse network since the investigation — a fact the LOW finding surfaced and the team treated with HIGH urgency. It was removed entirely; database inspection moved to an SSH client. Debug mode went off in the shared settings, the remaining services rebound to the private interface, and the re-scan reported zero findings. The incident note recorded the lesson in the team's words: the smallest finding on the report was the one that found the open door.
Close a debug_route finding: the five actions
Inventory, judge, gate or remove:
- Inventory the tooling behind every declared debug route. /debug, /console, adminer, phpmyadmin — for each: does it answer in this configuration, and who can reach it?
- Remove tooling that was installed for a finished task. One-off investigations end; their panels should too. Retired outright beats gated forever for anything nobody uses.
- Gate what genuinely stays. Authentication of its own, VPN or localhost reach only — a debug door gets two locks or none of your trust.
- Move occasional database work to a client over SSH. No standing web surface, authentication inherited from SSH, and nothing for the next scan to find.
- Re-scan and note the disposition. Confirm debug_route is absent from the declared set, and record in the runbook where each tool went, so habit does not reinstall it.
Treat the three-point class as a free audit prompt: it asks the cheapest useful question in the report. The full debug surface — routes plus mode — is one block of the pre-deployment checklist.
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, how EvalEgress scores eval exposure, how to read an EvalEgress report, which eval exposure findings to fix first. 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
If it is only LOW, can I ignore it?
You can deprioritise it behind every CRITICAL and HIGH — that is what weights are for. Ignoring it entirely wastes the cheapest inventory prompt on the report: five minutes to learn whether a database panel answers on your network.
Our debug route requires the app's login. Is that gated enough?
It is a real gate and a weaker one than it looks: the tooling inherits every session and credential weakness of the app. For database panels, add network restriction — defence in depth is the standard the class is prompting for.
The route is only in our development config. Why did it scan?
Because the declared set you scanned included it. Scan the production-shaped set the eval runs with; if that set carries dev-only routes, the boundary between your configs is leakier than the route itself.
Does renaming the route fix the finding?
It removes the matched string and none of the exposure — security by obscurity, and the next copied config restores the standard name anyway. Gate it or remove the tooling; those are the fixes.
What other routes count?
The class matches /debug, /console, adminer and phpmyadmin path strings — the common debug and database-admin surfaces. The principle extends to any administrative path your stack declares.