@rocketlang/n8n-nodes-kavachos
v1.1.0
Published
KavachOS n8n community nodes — DAN gate, kernel enforcement, budget check, and audit log for AI agents.
Maintainers
Readme
@ankr/n8n-nodes-kavachos
KavachOS n8n community nodes — pre-execution DAN gate and kernel enforcement for AI agents.
Part of the xShieldAI Posture Suite · kavachos.xshieldai.com
Nodes
KavachGate
Intercepts AI agent actions before execution. Calls the Aegis KAVACH HTTP gate to:
- Classify danger level (DAN 1–4)
- Notify approvers via Telegram / WhatsApp (opt-in, requires
webhook_urlin~/.aegis/config.json) - Wait for ALLOW or STOP
- Block the workflow on STOP or timeout (silence = STOP)
Framework-neutral: all policy lives in Aegis (localhost:4850). The n8n node is a thin HTTP client.
KavachRun
Wraps a subprocess in kavachos kernel enforcement (seccomp-bpf + cgroup BPF egress firewall).
- Linux only — gracefully degrades on macOS/Windows with a configurable fallback (warn / skip / throw)
- Use after KavachGate for defense in depth: policy gate + kernel enforcement
trust_maskcontrols which syscall groups the process may calldomainselects the egress allowlist (maritime, logistics, OT, finance, general)
Install
# In your n8n data directory
npm install @ankr/n8n-nodes-kavachosThen restart n8n and add the Aegis API credential pointing to your Aegis dashboard (http://localhost:4850 by default).
Quick Start
- Start Aegis:
npx @rocketlang/aegis(orkavachos run n8n --domain=general) - Add credential: Aegis API → base URL
http://localhost:4850 - Import template:
examples/n8n-governed-agent.json - Run: Trigger → KavachGate → AI Agent → Audit
Gate API
The KavachGate node calls:
POST http://localhost:4850/api/v1/kavach/gate
{ "command": "...", "tool_name": "n8n-agent", "session_id": "...", "dry_run": false }
→ { "allow": true|false, "level": 0-4, "reason": "...", "decision": "ALLOW|STOP|TIMEOUT", "approval_id": "...", "_meta": {...} }allow: false → KavachGate throws (halt workflow) or passes allow=false downstream — configurable per node.
License
AGPL-3.0 — governance layer is open. Enterprise Edition (multi-tenant, Merkle ledger, EU AI Act evidence): xshieldai.com
