AI-Powered Supply Chain Firewall for Git
npm install vanguard-cli
Intercepts git clone & git pull to detect malware, backdoors, and vulnerabilities
BEFORE they reach your disk. Powered by Hybrid Intelligence.
mermaid
graph TD
User["User Command (clone/pull)"] --> CLI["Vanguard CLI"]
CLI --> Cache{"Cache Check (SHA-256)"}
Cache -- "Hit (Safe)" --> Finish["Verdict: PASS"]
Cache -- "Miss" --> Sync["Sync Intelligence"]
Sync --> DB["GitHub Threat DB"]
Sync --> OSV["OSV.dev API"]
DB --> Analysis["AI Analysis"]
OSV --> Analysis
Analysis -- "Gemini 2.0 / Ollama" --> Verdict{"Verdict"}
Verdict -- "Malicious" --> Block["Verdict: BLOCK"]
Verdict -- "Clean" --> SaveCache["Save to Cache"]
SaveCache --> Finish
`
---
📦 Installation
Ensure you have Node.js (v18+) installed.
`bash
npm install -g vanguard-cli
`
---
🚀 Quick Start
$3
Integrate Vanguard with your shell (Bash, Zsh, Fish, PowerShell) to automatically scan every git clone.
`bash
vanguard integrate
`
$3
Verify if the firewall is active or if you are in a protected session.
`bash
vanguard status
`
$3
Setup your Gemini API key or local Ollama endpoint:
`bash
vanguard config
`
$3
Audit and clone any repository in a single command. Vanguard isolates the repo in a sandbox first.
`bash
vanguard clone
`
$3
Safely update your local codebase. Vanguard audits the diff before merging.
`bash
vanguard pull
``