KAVACH
AI-Security Firewall
The problem KAVACH solves
Problem
- Ai tools write perfectly insecure code which become ease for developer as well for hackers.
- Security tools only scan the mistakes after getting committed so when they find the error its already too late.
- Also Cloud based tools use this sensitive data as well for their training.
Our solution
- Intercepts dangerous code the moment you save a file
- Generates a living security report that updates in real-time
- Traces vulnerabilities across multiple files, not just one line
- Learns your coding patterns and reduces false positives over time
- Blocks destructive terminal commands before execution
- Runs 100% locally — your code never leaves your machine
Challenges we ran into
-
Ollama Returning Unpredictable JSON
Ollama kept wrapping responses in markdown, adding extra text, or hallucinating fields — breaking every downstream system.Fix: Strict system prompts + a JSON extraction layer that strips everything outside curly braces + auto-retry on parse failure. -
Semgrep False Positives Everywhere
Fresh projects were showing 40+ alerts. Test files and mock data treated as critical threats. Tool was unusable.
Fix: Built context-aware filtering using context.json to auto-downgrade severity for test files. RL system learns which rules are noisy for your specific project over time -
Terminal Interception Breaking Normal Workflow
Shell hooks were too aggressive — blocking legitimate dev commands and frustrating the user constantly.
Fix: Introduced a 3-tier system — hard block, warn-and-proceed, and silent log — so only genuinely dangerous commands are stopped.
Technologies used
