Inspiration
Developers and Web3 engineers frequently need rapid security reviews for smart contracts (.sol), environment configurations, and application code—yet pasting raw source code containing hardcoded API keys, deploy tokens, or private secrets into external cloud endpoints creates an immediate data-leak risk. VaultGuard Hybrid was built to solve this exact trade-off using Firebase AI Logic Hybrid Inference.
What It Does
VaultGuard Hybrid is a zero-leak, privacy-first smart contract and code secret auditor that combines local on-device protection with hybrid AI reasoning:
- Zero-Leak On-Device Privacy Shield: Scans and redacts sensitive credentials (
sk-...,AIza...,API_KEY, private tokens) strictly inside the user's browser ([REDACTED_ON_DEVICE]) before any network request ever leaves the machine. - Flexible Hybrid Inference Modes: Users can switch seamlessly between Hybrid: Prefer On-Device, Strict Offline: Only On-Device, and Hybrid: Prefer Cloud depending on sensitivity and connectivity.
- Actionable Security Auditing: Detects critical smart contract and application flaws—including missing access control (
withdrawAll), low-level.call{value:}reentrancy surfaces, and ERC-4626 first-depositor share inflation risks.
How We Built It
- Frontend: Lightweight, zero-dependency HTML5/CSS3/JavaScript web application hosted live via GitHub Pages.
- Firebase AI Logic & App Check: Configured in Firebase project
vaultguard-hybridwith Gemini Developer API hybrid routing and Enforced Firebase App Check (with hackathon evaluation debug token enabled). - Open Source: Licensed under Apache License 2.0 on GitHub.
Challenges We Ran Into
Ensuring strict client-side secret redaction runs deterministically before hybrid model routing while maintaining full offline usability when external network requests are restricted.
What's Next for VaultGuard Hybrid
Adding multi-file repository drag-and-drop auditing, custom regex/AST secret policy rules, and downloadable SARIF security reports for CI/CD pipelines.
Built With
- firebase-ai-logic
- freelancer
- gemini-nano
- geminy
- html5
- javascript
- solidity
- web