Inspiration
What it does
Inspiration
We noticed that people frequently share personal and financial information with AI applications. This creates privacy and security risks. We wanted to build a solution that allows people to use AI while keeping their sensitive information protected.
What We Built
We developed VaultMind AI, a privacy-preserving AI agent that combines AES-256-GCM encryption, Shamir Secret Sharing, and an AI privacy gateway.
Our application provides:
- Secure encryption and decryption of sensitive information.
- Shamir 2-of-3 secret sharing for master-key recovery.
- Automatic detection and redaction of sensitive information.
- AI processing using sanitized prompts.
- A security dashboard to monitor operations and detect tampering.
How We Built It
We used React and Vite for the frontend and Python with FastAPI for the backend.
We implemented AES-256-GCM for authenticated encryption and Shamir Secret Sharing over a finite field for secure key management.
A privacy gateway detects sensitive information and replaces it with placeholders before sending prompts to the AI service. The master encryption key and secret shares remain outside the AI agent.
We also created an encryption lab, secret-sharing lab, AI chat interface, and security monitoring dashboard.
Challenges We Faced
One of our main challenges was protecting the master encryption key while allowing secure recovery.
We also worked on implementing mathematical secret sharing, detecting sensitive information, preventing ciphertext tampering, and connecting the frontend with the backend.
Another challenge was ensuring that sensitive information never entered external AI request payloads.
What We Learned
Through this project, we learned about AES-GCM encryption, finite-field mathematics, Shamir Secret Sharing, Lagrange interpolation, AI privacy, and secure backend development.
We also understood that encryption alone is not enough when integrating AI systems. Protecting the information sent to external AI services is equally important.
Future Improvements
We plan to improve semantic sensitive-data detection, introduce independent key custodians, and explore hardware-backed key management and advanced privacy-preserving AI techniques.
Conclusion
VaultMind AI demonstrates how cryptography and artificial intelligence can work together to provide safer AI interactions.
Our vision: Your Data. Your Keys. Your Privacy.
How we built it
Challenges we ran into
Accomplishments that we're proud of
What we learned
What's next for VaultMind AI – Privacy-Preserving AI Agent
Built With
- aes-256-gcm
- api
- cryptography
- fastapi
- javascript
- node.js
- python
- react
- rest
- secret
- shamir
- sharing
- sqlite
- vite