zin-adk
v0.1.5
Published
ZAK — Zeron Agentic Kit, open-source ADK for building autonomous cybersecurity agents. Build, deploy, and govern autonomous cybersecurity agents.
Maintainers
Readme
zin-adk
ZAK (Zeron Agentic Kit) — Node.js/TypeScript SDK for building autonomous cybersecurity agents.
Define security agents declaratively with YAML, enforce policy guardrails at runtime, and connect to LLM providers for autonomous reasoning.
Install
npm install zin-adkWith LLM provider support:
npm install zin-adk openai # OpenAI / Azure OpenAI
npm install zin-adk @anthropic-ai/sdk # Anthropic ClaudeWith SIF graph backend:
npm install zin-adk neo4j-driverQuick Start
1. Create an Agent Definition
npx zak init --domain appsec --name my-scannerThis generates my-scanner.agent.yaml:
version: "1.0"
agent:
name: my-scanner
domain: appsec
description: Application security scanning agent
capabilities:
allowed_actions: [scan_code, read_file, write_report]
policy:
max_actions_per_minute: 30
require_approval_above: high
reasoning:
mode: rule_based2. Validate
npx zak validate my-scanner.agent.yaml3. Use in Code
import {
loadAgentYaml,
PolicyEngine,
AuditLogger,
zakTool,
AgentExecutor,
} from "zin-adk";
// Parse and validate an agent definition
const agent = await loadAgentYaml("my-scanner.agent.yaml");
// Policy engine enforces guardrails at runtime
const policy = new PolicyEngine();
const result = policy.evaluate(agent, "scan_code", { target: "repo" });
// result.allowed === true
// Register tools with automatic policy + audit integration
const scanCode = zakTool({
name: "scan_code",
description: "Scan source code for vulnerabilities",
parameters: { target: { type: "string" } },
execute: async (params) => {
// your scanning logic
return { vulnerabilities: [] };
},
});Features
| Feature | Description |
|---------|-------------|
| US-ADSL Schema | Declarative YAML agent definitions with Zod validation |
| Policy Engine | 6-rule chain: deny-list, allow-list, autonomy, risk budget, environment, red-team |
| Audit Logger | Structured JSON audit trail via pino |
| Tool Substrate | zakTool() higher-order function with policy + audit integration |
| Agent Executor | Full lifecycle management with pre/post hooks |
| LLM ReAct Loop | Reason + Act pattern with streaming support |
| SIF Graph | Security Intelligence Fabric with 7 node types, 7 edge types |
| Risk Engine | Quantitative risk propagation with configurable formula |
| Multi-tenant | Namespace isolation per tenant |
| CLI | zak init, validate, run, agents, info |
CLI
npx zak init --domain <domain> --name <name> # Scaffold agent YAML
npx zak validate <file.yaml> # Validate agent definition
npx zak run <file.yaml> # Execute agent
npx zak agents # List registered agents
npx zak info # Platform informationAvailable domains: generic, risk_quant, vuln_triage, appsec, compliance
Requirements
- Node.js >= 20.0.0
- TypeScript >= 5.5 (for development)
Links
License
Apache-2.0 — see LICENSE
