Open source, MIT

Client identifiers replaced on your machine, before the request is sent.

redact-bridge is a small proxy and MCP server that runs on the tester’s laptop. With it, the identifiers in your scope are replaced with stable placeholders on your machine before the request goes to PentestLLM or any other model API, and the model’s answer has the real values put back locally. The table that maps placeholders to real values never leaves the machine: it lives in memory, or in an encrypted file you choose.

text
1sent by your client Nmap scan report for dc01.corp.client.test (10.40.2.10)
2leaves your machine Nmap scan report for [[HOST_1]] ([[IPV4_1]])
3answer from the model [[HOST_1]] exposes LDAP without signing
4what you read dc01.corp.client.test exposes LDAP without signing

What it replaces

  • IPv4 and IPv6 addresses, except 127.0.0.1, 0.0.0.0, 255.255.255.255, :: and ::1.
  • Hostnames and domains in the scope list you give it, with their subdomains, and any name under .local, .internal, .corp or .lan. In a URL only the host is replaced, so the path stays readable.
  • Email addresses, values in Cookie and Set-Cookie headers, Authorization credentials, other bearer tokens of 16 characters or more, JWTs, passwords in URLs, keys with a known prefix (cloud, payment, source-control and chat platform keys), and the value of any field named like a password, secret, token, API key or session.
  • Private key blocks and password hashes (LM:NT pairs, bcrypt, SHA-256 and SHA-512 crypt).
  • Your own words and patterns: the client’s name, a project code name, a ticket format.

The same value gets the same placeholder for as long as the bridge runs, and across runs when you keep the encrypted map file, so the model can still reason about which host talks to which address. Streaming answers are restored as they arrive, including a placeholder split across two chunks.

What it does not catch

It is pattern-based. It cannot recognise a secret with no known shape and no telling label (a password written in a sentence, a bare hex key), a public hostname you left out of the scope list, usernames, real names or phone numbers you did not add as terms, or anything inside an attached image or file. Run redact-bridge redact on a file, or the proxy with --dry-run, on real material first: the first prints the redacted text, the second prints each redacted request body, and neither sends anything.

Set it up

bash
1npm install -g github:pentestllm/redact-bridge
2
3# see what would be sent, without sending anything
4redact-bridge redact findings.txt --scope client.example --term "Client Name" --show-map
5
6# run the proxy, then point your client at http://127.0.0.1:8787/v1
7redact-bridge proxy --preset pentestllm --scope client.example,corp.client.test

OpenAI-compatible clients (OpenCode, Cline, the OpenAI SDKs) use the base URL http://127.0.0.1:8787/v1; Claude Code and the Anthropic SDKs use ANTHROPIC_BASE_URL=http://127.0.0.1:8787. Your PentestLLM key passes through unchanged. As an MCP server (redact-bridge mcp) it gives a local agent redact, restore and ask tools.

It listens on 127.0.0.1 only and logs nothing by default. What PentestLLM itself keeps of a request is on the privacy page; the gateway can also redact secrets server-side per key (redaction), but that happens after the request has reached us. The bridge is for identifiers that should not leave the laptop: what it matches is replaced before the request is sent, and everything else in the request is sent as written.

Join on TelegramHelp