@ourobx/shield
v1.1.1
Published
Kernel-level Zero-Trust Security SDK for AI Agents and LLMs via Agent-eBPF
Maintainers
Readme
@ourobx/shield
Zero-Trust Kernel-Level Security SDK for AI Agents and LLMs
Powered by Agent-eBPF & ksec.space.
⚡ Quick Start (1 Line Integration)
npm install @ourobx/shieldimport { KsecShield } from '@ourobx/shield';
// 1. Initialize Shield connected to ksec.space Gateway
const shield = new KsecShield({
gatewayUrl: 'https://ksec.space',
apiKey: process.env.KSEC_API_KEY,
});
// 2. Guard any AI agent tool execution or network request
const response = await shield.guard(
async () => {
return await myAgent.executeTool('bash_exec', { command: 'curl example.com' });
},
{
actionType: 'tool_execution',
target: 'bash_exec',
}
);🛡️ Global HTTP / Egress Protection
// Auto-intercept fetch calls made by the agent
globalThis.fetch = shield.protectFetch(globalThis.fetch);🦜 LangChain / LangGraph Integration
import { KsecShield, KsecLangChainCallback } from '@ksec/shield';
const shield = new KsecShield({ gatewayUrl: 'https://ksec.space' });
const ksecCallback = new KsecLangChainCallback(shield);
const agent = createReactAgent({
llm,
tools,
callbacks: [ksecCallback],
});🔔 Real-Time Kernel Threat Event Hooks
shield.on('threat_blocked', (event) => {
console.error('🚨 [Agent-eBPF Threat Blocked]:', event);
});