[KongchangAI]
Productboundary gate

boundary_gate.py

A Python script of approximately 120 lines that performs local detection of sensitive information before a prompt is sent. It uses regular expressions to intercept high-risk fields such as API keys, private keys, connection URLs, and Bearer tokens, returning a non-zero exit code to block transmission upon a match.

Timeline (last 90 days)

Oct 11

The author provides a Python script of approximately 120 lines, boundary_gate.py, which identifies three outbound destinations—model, server, and logs—and refuses to treat the laptop as a destination.

Unverified50%
Oct 11

boundary_gate.py uses regex to match six categories of patterns: assignment-style keys, private key banners, common connection URLs (postgres/mysql/mongodb/redis/amqp), AWS key format (starting with AKIA), Bearer tokens, and email addresses.

Unverified50%

All Facts (2)

Source Articles