Introduction
PromptDefender is a sophisticated multi-layer defence tool designed to safeguard applications from prompt injection attacks. It utilizes a series of defensive layers to thoroughly sanitize and validate inputs and outputs within applications that interface with various LLM APIs.
Key Features
- Multi-layer Protection: Implement multiple layers of security including Wall, Keep, and the upcoming Drawbridge to address complex prompt injection threats effectively.
- Input Sanitization: The Wall layer sanitizes input based on predefined rules, ensuring only safe instructions reach the LLM API.
- Prompt Instruction Management: The Keep layer provides essential instructions to the LLM, minimizing risks associated with sensitive data exposure.
- Response Validation: Drawbridge will validate LLM responses for security issues, adding an additional layer of scrutiny.
Benefits
- Enhanced Security: Mitigate risks and protect sensitive information from prompt injection attacks.
- Flexibility: Compatible with any LLM APIs, including popular platforms like Bard, LlaMa, and ChatGPT.
- Comprehensive Testing: Supports thorough testing of both input sanitization and response validation through integration tests and load testing.
Highlights
- Utilizes advanced feedback mechanisms for continuous improvement and community engagement.
- Documentation and developer portals provide guidance for effective implementation.
- Actively managed repository with contributions from multiple developers, ensuring ongoing updates and support.


