cd /news/ai-tools/show-hn-kavach-ai-sub-16ms-ast-secur… · home › topics › ai-tools › article
[ARTICLE · art-174518] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Show HN: Kavach AI – Sub-16ms AST security gate with 0% false positives

Kavach AI v1.4.1, an offline in-memory AST-based security scanner, was posted to Show HN claiming a 0.0% false positive rate and 46.7-second scans of a 105,024-line Python codebase across 100 enterprise modules, with 6.50 MB peak engine RAM and 2,249 lines of code scanned per second. The tool flags CWE-798 hardcoded credentials, CWE-89 SQL injection, CWE-78 command injection, CWE-369 and CWE-95 runtime exceptions, and CWE-775 resource leaks, then emits native GitHub ```suggestion blocks for one-click patches and fails CI on critical findings. Kavach AI reports zero cloud dependency, running in the customer's GitHub runner, VPC or workstation, and positions itself as a SOC 2 and ISO 27001 compliance enabler.

key takeaway

Kavach AI v1.4.1 scans 105,024 lines of Python in 46.7 seconds at 6.50 MB peak RAM with a claimed 0.0% false positive rate, and installs via a .github/workflows/kavach.yml file that runs ci_bot.py --fail-on CRITICAL to block merges on critical CWEs.

read5 min views3 publishedNov 23, 2026
Show HN: Kavach AI – Sub-16ms AST security gate with 0% false positives
Image: Michielbdejong (auto-discovered)

Autonomous High-Precision Code Armor & 1-Click Surgical Patcher

Kavach AI is an autonomous, high-speed static security inspector and surgical code repair engine. Operating like an impenetrable armor across your GitHub Pull Requests (CI/CD), local CLI, VS Code editor, and Web Console, it eliminates critical security hazards (CWE-89 SQLi, CWE-798 Secret Leaks, CWE-120 Buffer Overflows) and generates 1-click ready-to-merge patches with zero-regression self-healing verification.

Most static code scanners overwhelm developers with hundreds of stylistic warnings (missing docstrings, trailing whitespace). Developers end up ignoring them.

Kavach AI operates on a strict zero-noise policy:

  1. Ignores Noise: Lockfiles (package-lock.json ,poetry.lock ), minified bundles, images, and formatting diffs are discarded automatically.
  2. Flags Real Hazards Only: - 🛡️ Hardcoded Credentials & Tokens (CWE-798): AWS keys, GitHub PATs, OpenAI/Stripe secret keys in Python and JavaScript.
  • 🛡️ Raw SQL Injections (CWE-89): Raw string interpolation inside queries.
  • 🛡️ Arbitrary OS Command Injection (CWE-78): Untrusted shell inputs viaos.system /child_process.exec .
  • 🔴 Fatal Runtime Exceptions (CWE-369, CWE-95): ZeroDivisionError crashes, dynamiceval() execution.
  • ⚡ Resource Descriptors Leaks (CWE-775): Unmanagedopen() handles missingwith context managers.
  1. 🛡️
  2. Generates Instant Patches: Kavach AI outputs native GitHub markdown``` suggestion blocks that team leads can merge in 1 click right inside the GitHub UI.

For high-growth startups and enterprise teams, code privacy is non-negotiable:

  • 100% Offline & In-Memory AST Engine: Zero code, snippets, or metadata are ever uploaded to any 3rd party cloud or LLM vendor.
  • Air-Gapped & Self-Hosted Ready: Runs inside your own GitHub runner, VPC, or local developer workstation.
  • SOC 2 & ISO 27001 Compliance Enabler: Guarantees deterministic static checks before code reaches production branches without third-party data processing agreements (DPAs).

Tested on an enterprise codebase consisting of 105,024 lines of Python code across 100 enterprise modules:

Metric Kavach AI (v1.4.1) Traditional Scanners (Bandit / Flake8) Cloud SAST (Snyk / SonarQube)
Scan Duration (105k LOC) 46.7 seconds 12.4 seconds 3+ minutes (cloud queue)
Throughput 2,249 LOC / second ~8,000 LOC/sec (Regex only) Cloud-limited
Peak Engine RAM 6.50 MB 45 MB Cloud infrastructure
False Positive Rate 0.0% (Zero Noise) 28% – 35% false alarms 15% – 25%
1-Click Auto-Remediation YES (Surgical AST Patches) NO (Only error logs) NO (Manual dev work)
Cloud Dependency ZERO (100% Offline) Local Mandatory Cloud Upload

Add Kavach AI to any GitHub repository in 30 seconds by creating .github/workflows/kavach.yml:

name: Kavach AI Security Review

on:
  pull_request:
    branches: [ main, master, dev ]
  push:
    branches: [ main, master ]

permissions:
  contents: read
  pull-requests: write
  issues: write

jobs:
  kavach-ci:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Code
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Set up Python 3.11
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Kavach AI PR Reviewer
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: |
          python ci_bot.py --fail-on CRITICAL
  1. Inspects Changeset in < 0.05s without external network latency.
  2. Posts an Official PR Review Comment with exact line numbers and 1-click GitHub commit suggestions.
  3. Populates the GitHub Step Summary with executive metrics and CWE classifications.
  4. Fails the CI status check to block merging if Critical vulnerabilities are detected.
                  ┌───────────────────────────────┐
                  │   Incoming Git Pull Request   │
                  │   (git diff main...feature)   │
                  └───────────────┬───────────────┘
                                  │
                                  ▼
                  ┌───────────────────────────────┐
                  │    DiffParser (Zero-Noise)    │
                  │   - Filters lockfiles/assets  │
                  │   - Extracts modified hunks   │
                  └───────────────┬───────────────┘
                                  │
                                  ▼
                  ┌───────────────────────────────┐
                  │       Surgical Analyzer       │
                  │   - Python & JS/TS Parsers    │
                  │   - CWE-798 Credential Leaks  │
                  │   - CWE-89 SQL Injections     │
                  │   - CWE-78 Command Injections │
                  │   - CWE-775 Descriptor Leaks  │
                  └───────────────┬───────────────┘
                                  │
                                  ▼
                  ┌───────────────────────────────┐
                  │     1-Click Patch Engine      │
                  │   - GitHub suggestion blocks  │
                  │   - PR Commenter Bot (CI/CD)  │
                  │   - Standalone .patch export  │
                  └───────────────────────────────┘

Clone the repository and install requirements:

git clone https://github.com/rajrajak99/kavach-ai.git
cd kavach-ai
pip install -r requirements.txt
python cli.py ./my-project --patch kavach.patch

git apply kavach.patch
streamlit run app.py

Open http://localhost:8502 in your browser.

pytest -o pythonpath=. tests/
kavach-ai/
├── action.yml                  # GitHub Action specification (Composite)
├── ci_bot.py                   # Automated CI/CD PR Reviewer & Commenter
├── cli.py                      # Standalone high-speed Terminal CLI scanner
├── app.py                      # Luxury Raycast/Linear Dark review workstation
├── core/
│   ├── __init__.py
│   ├── diff_parser.py          # Unified Git diff & hunk pre-filtering
│   ├── surgical_analyzer.py    # Zero-noise CWE & bug detection engine
│   └── patch_validator.py      # Syntax and indentation patch validator
├── samples/
│   ├── __init__.py
│   └── vulnerable_samples.py   # Multi-language test scenarios (Python + Node.js)
├── tests/
│   ├── __init__.py
│   └── test_autopatch.py       # Comprehensive pytest test suite (4/4 passing)
├── .github/
│   └── workflows/
│       └── kavach.yml          # Production CI workflow configuration
├── .streamlit/
│   └── config.toml             # Raycast/Linear Obsidian theme configuration
├── requirements.txt            # Minimal production dependencies
├── LICENSE                     # PolyForm Noncommercial 1.0.0
└── README.md                   # Technical documentation
CWE ID Vulnerability Class Language Severity Kavach AI Remediation
CWE-798 Hardcoded Credentials & Tokens Python / JS Critical Moves secrets to environment variables
CWE-89 SQL Injection (Raw formatting) Python / JS Critical Converts to parameterized queries
CWE-78 OS Command Injection Python / JS High Converts string interpolation to discrete arrays
CWE-95 Arbitrary Code Execution ( eval ) JavaScript Critical Replaces with strict JSON parser
CWE-775 Unmanaged Resource Descriptor Python Medium Enforces with open(...) context manager
CWE-369 Unchecked Zero Division Python High Inserts defensive conditional guard

Kavach AI is licensed under the PolyForm Noncommercial License 1.0.0.

  • Free for Community : Free forever for individuals, students, open-source projects, and noncommercial research.
  • Commercial Restrictions : Commercial deployment, SaaS hosting, or commercial redistribution is strictly prohibited without a commercial license.
  • Enterprise & Commercial Licensing : For commercial use or organization subscriptions, contactRaja Rajak (rajabhaiyarajak2008@gmail.com ).

Copyright (c) 2026 Raja Rajak (@rajrajak99). All rights reserved.

── more in #ai-tools 4 stories · sorted by recency
── more on @kavach ai 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-kavach-ai-su…] indexed:0 read:5min 2026-11-23 · —