Prompt Guard is a lightweight HTTPS MITM proxy that intercepts prompts sent to AI coding assistants and APIs. It effectively blocks or redacts sensitive data such as API keys and passwords in real time, ensuring that critical information never reaches third-party servers. Protect your development environment seamlessly.
Prompt Guard is a lightweight HTTPS MITM proxy designed to enhance security while utilizing AI coding assistants and APIs by intercepting requests and blocking sensitive data. This tool ensures that potentially sensitive information, such as API keys, passwords, and other personal identifiers, does not leave a user's machine unprotected.
AI tools like GitHub Copilot, ChatGPT, and Claude can inadvertently expose sensitive information from the developer's environment. Prompt Guard operates by monitoring and inspecting each prompt sent to these AI services, offering real-time protection by blocking or redacting sensitive information before it is transmitted to third-party servers.
[REDACTED], allowing responses from the AI without compromising confidentiality.Prompt Guard can intercept prompts directed to major AI coding assistants and APIs including:
*.githubcopilot.com)api.openai.com)api.anthropic.com)Administrators can modify the built-in rules by accessing the ~/.prompt-guard/rules.json configuration file. This file can be edited to customize rule behavior, switch between blocking and tracking, and add bespoke patterns for sensitive data detection.
Prompt Guard is built for cross-platform compatibility and requires Go 1.21 or higher, functioning seamlessly on macOS, Linux, or Windows environments. Users can initiate the proxy service with minimal setup, ensuring robust protection with just a few commands.
git clone https://github.com/chaudharydeepak/prompt-guard
cd prompt-guard
go build -o prompt-guard .
./prompt-guard
This tool addresses growing concerns regarding data security in AI-assisted coding practices, making it essential for developers who prioritize confidentiality and protection of their sensitive information.
No comments yet.
Sign in to be the first to comment.