Isolate the DAST/pentest browser's network #321

Open
opened 2026-09-21 20:19:31 +00:00 by sharang · 0 comments
Owner

Follow-up to #294.

guarded_net pins the address and checks every redirect for our own HTTP and TCP connections. The DAST and pentest browser does not go through it: it drives an external Chrome (browserless, CHROME_WS_URL) over CDP, and Chrome resolves names and follows redirects itself. A tenant page can therefore navigate or redirect the browser to an internal address.

DAST and pentest are off in production (source_only), so this blocks turning them back on in R1, not the MVP.

Change:

  • Run the browser on a network that can reach only the internet: no platform services, no metadata endpoint. Use a dedicated Docker network, or run it on the Werkbank runner.
  • Also start Chrome with --host-resolver-rules / --proxy-server pointing at a filtering proxy that applies NetGuard.

Acceptance: from inside a browser session, http://169.254.169.254/ and http://mongo:27017/ are unreachable; a test proves it.

Follow-up to #294. `guarded_net` pins the address and checks every redirect for our own HTTP and TCP connections. The DAST and pentest **browser** does not go through it: it drives an external Chrome (browserless, `CHROME_WS_URL`) over CDP, and Chrome resolves names and follows redirects itself. A tenant page can therefore navigate or redirect the browser to an internal address. DAST and pentest are off in production (`source_only`), so this blocks turning them back on in R1, not the MVP. **Change:** - Run the browser on a network that can reach only the internet: no platform services, no metadata endpoint. Use a dedicated Docker network, or run it on the Werkbank runner. - Also start Chrome with `--host-resolver-rules` / `--proxy-server` pointing at a filtering proxy that applies `NetGuard`. **Acceptance:** from inside a browser session, `http://169.254.169.254/` and `http://mongo:27017/` are unreachable; a test proves it.
sharang added this to the R1 · Dynamic & OT depth milestone 2026-09-21 20:19:31 +00:00
sharang added the security label 2026-09-21 20:19:31 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#321