Egress DLP addon: token detection, secret detection, and prompt injection scanning #195

Closed
opened 2026-06-04 20:33:35 -04:00 by didericis-claude · 0 comments
Collaborator

After removing pipelock (PR #193), the egress proxy has no DLP scanning. The research in PR #192 recommends building a mitmproxy addon that adds per-route DLP configuration.

This issue tracks the implementation of the three remaining phases from the plan:

  1. Phase 1a: Token patterns detector — regex-based API key / credential detection on outbound requests
  2. Phase 1b: Known secrets detector — check if provisioned credentials (from cred-proxy / agent env) appear in outbound traffic, including encoded variants
  3. Phase 2: Naive prompt injection detector — pattern-based detection of prompt disclosure and jailbreak attempts in inbound responses

Per-route configuration is added to the manifest egress.routes[*].dlp block; detectors are implemented as pure functions in egress_addon_core.py and wired into the mitmproxy addon.

After removing pipelock ([PR #193](https://gitea.dideric.is/didericis/bot-bottle/pulls/193)), the egress proxy has no DLP scanning. The [research in PR #192](https://gitea.dideric.is/didericis/bot-bottle/pulls/192) recommends building a mitmproxy addon that adds per-route DLP configuration. This issue tracks the implementation of the three remaining phases from the plan: 1. **Phase 1a: Token patterns detector** — regex-based API key / credential detection on outbound requests 2. **Phase 1b: Known secrets detector** — check if provisioned credentials (from cred-proxy / agent env) appear in outbound traffic, including encoded variants 3. **Phase 2: Naive prompt injection detector** — pattern-based detection of prompt disclosure and jailbreak attempts in inbound responses Per-route configuration is added to the manifest `egress.routes[*].dlp` block; detectors are implemented as pure functions in `egress_addon_core.py` and wired into the mitmproxy addon.
didericis added the Kind/FeatureKind/Security labels 2026-06-04 21:01:20 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: didericis/bot-bottle#195