Skip to content

Kido-ai-secure/engine

Repository files navigation

Kido.ai Engine

AI-powered security detection engine for the vibe-coding era.

Real-time threat detection · Pre-execution blocking · Prompt injection guard · DNS/C2 monitoring


⚠️ Pre-OV Build Notice

This project is currently in public beta. The Windows installer does not yet carry an OV code-signing certificate (in progress). Windows SmartScreen will show a warning.

To install:

  1. Download the installer from Releases
  2. If SmartScreen appears → click "More info""Run anyway"
  3. OV certificate is being obtained. All detection logic is open source here.

Verify the binary:


What is Kido.ai?

Kido.ai is a local AI security layer designed for individuals and teams — whether you're a seasoned developer, a vibe coder using AI tools like Cursor or Claude, or simply someone who wants their PC protected.

Traditional security responds after execution. Kido.ai decides before it runs.

File saved / Process launched
        │
        ▼
  ┌─────────────────────────────────┐
  │  Local Rule Engine  (<5ms)      │  ← 90% handled here, no AI cost
  └────────────┬────────────────────┘
               │ High-risk?
               ▼
  ┌─────────────────────────────────┐
  │  AI Analysis (Gemini/Claude/    │  ← Business: Gemini only
  │  GPT-4 multi-stage)             │    Pro: Full multi-AI chain
  └────────────┬────────────────────┘
               │
               ▼
  ┌─────────────────────────────────┐
  │  Arbitration + Action           │  ← Block / Alert / Rollback
  └─────────────────────────────────┘

Detection Capabilities

🛡️ SCEA — Pre-Execution Control

Every process is scored before it runs. Suspicious behavior (anomalous paths, unsigned binaries, known malware hashes) is blocked before execution — not after.

📁 Project Guardian

Register your dev folder and every file save triggers:

  • AST-level code vulnerability scan
  • Malicious package detection (typosquatting, supply chain)
  • Exposed API key / secret detection
  • Git history scan for leaked credentials
  • Security fix suggestions for your existing codebase

🔍 Prompt Injection Guard

Scans AI-generated code for:

  • Hidden prompt injection patterns
  • Stealth Unicode characters
  • Jailbreak instructions
  • Secret exfiltration commands

🌐 DNS & C2 Detection

Real-time DNS query monitoring:

  • C2 beaconing detection
  • DNS tunneling patterns
  • DGA (Domain Generation Algorithm) domains

↩️ Auto Rollback (CoW)

Copy-on-Write snapshot before ransomware can encrypt. Full recovery within 3 seconds.

🧠 eepban 1.0 — Threat Intelligence

Learns continuously from:

  • CISA Known Exploited Vulnerabilities (KEV)
  • NVD CVE database
  • OSV.dev (PyPI, npm, Go, Maven...)
  • GitHub Security Advisories
  • URLhaus malicious URLs
  • MalwareBazaar malware hashes

Repository Structure

engine/
├── security_engine.py          # Core detection pipeline (KidoEngine, DetectingAI)
├── engine_main.py              # Windows process/file watcher orchestrator
├── project_guardian.py         # Dev folder security scanner
├── prompt_injection_detector.py # AI-generated code injection scanner
├── dns_monitor.py              # DNS/C2 network monitor
├── git_history_scanner.py      # Git history secret leak scanner
├── amsi_provider.py            # Windows AMSI integration
├── wsc_registration.py         # Windows Security Center registration
└── requirements.txt            # Python dependencies

Privacy

  • File contents are NEVER sent to our servers
  • ✅ All code analysis runs locally on your machine
  • ✅ Only anonymized metadata (file path hash, event type) is transmitted
  • ✅ No personal identifiers — see our Privacy Policy

Tech Stack

  • Language: Python 3.12
  • AI Models: Google Gemini Flash · Anthropic Claude · OpenAI GPT-4
  • Windows Integration: WMI, ETW, AMSI, WSC
  • Threat Feeds: CISA KEV, NVD, OSV.dev, GitHub Advisory, URLhaus, MalwareBazaar

Plans

Feature Free Business ($15/mo) Pro ($29/mo)
Real-time protection
Rule-based detection
AI analysis Gemini (1,000/mo) Multi-AI (5,000/mo)
AI security chat 100/day 200/day
Auto rollback
Project Guardian
DNS & C2 detection
Prompt injection guard
Devices 1 3 5

→ Start free at kido-ai.com


Contributing

Bug reports, false positive reports, and feature requests are welcome via GitHub Issues.

For security vulnerability reports, see SECURITY.md.


License

MIT License — see LICENSE

The Kido.ai server, client app, and infrastructure are proprietary. This repository contains the detection engine only.

About

Kido.ai security detection engine

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages