Skip to content
 
 

Repository files navigation

Clawdstrike

CI Status crates.io docs.rs License: MIT MSRV: 1.93

The claw strikes back.
At the boundary between intent and action,
it watches what leaves, what changes, what leaks.
Not "visibility." Not “telemetry.” Not "vibes." Logs are stories—proof is a signature.
If the tale diverges, the receipt won't sign.

Clawdstrike

Fail closed. Sign the truth.

 Tool-boundary enforcement   ·    Signed receipts   ·    Multi-framework

Docs   ·   TypeScript   ·   Python   ·   OpenClaw   ·   Examples


Overview

Alpha software — APIs and import paths may change between releases. See GitHub Releases and the package registries (crates.io / npm / PyPI) for published versions.

Clawdstrike provides runtime security enforcement for agents, designed for developers building EDR solutions and security infrastructure on top of OpenClaw.

Guards — Block sensitive paths, control network egress, detect secrets, validate patches, restrict tools, catch jailbreaks

Receipts — Ed25519-signed attestations proving what was decided, under which policy, with what evidence

Multi-language — Rust, TypeScript, Python, WebAssembly

Multi-framework — OpenClaw, Vercel AI, LangChain, Claude Code, and more

Quick Start

CLI (Rust)

cargo install --path crates/hush-cli

hush policy list
hush check --action-type file --ruleset strict ~/.ssh/id_rsa

TypeScript (tool boundary)

TypeScript does not ship a full policy engine; use the Rust CLI/daemon for evaluation. @clawdstrike/hush-cli-engine requires hush on your PATH (or pass hushPath).

import { createHushCliEngine } from "@clawdstrike/hush-cli-engine";
import {
  BaseToolInterceptor,
  createSecurityContext,
} from "@clawdstrike/adapter-core";

const engine = createHushCliEngine({ policyRef: "default" });
const interceptor = new BaseToolInterceptor(engine, { blockOnViolation: true });
const ctx = createSecurityContext({ sessionId: "session-123" });

const preflight = await interceptor.beforeExecute(
  "bash",
  { cmd: "echo hello" },
  ctx
);
if (!preflight.proceed) throw new Error("Blocked by policy");

OpenClaw plugin

See packages/clawdstrike-openclaw/docs/getting-started.md.

Highlights

Feature Description
7 Built-in Guards Path, egress, secrets, patches, tools, prompt injection, jailbreak
4-Layer Jailbreak Detection Heuristic + statistical + ML + optional LLM-as-judge with session aggregation
Output Sanitization Redact secrets, PII, internal data from LLM output with streaming support
Prompt Watermarking Embed signed provenance markers for attribution and forensics
Fail-Closed Design Invalid policies reject at load time; errors deny access
Signed Receipts Tamper-evident audit trail with Ed25519 signatures

Performance

Guard checks add <0.05ms overhead per tool call. For context, typical LLM API calls take 500-2000ms.

Operation Latency % of LLM call
Single guard check <0.001ms <0.0001%
Full policy evaluation ~0.04ms ~0.004%
Jailbreak detection (heuristic+statistical) ~0.03ms ~0.003%

No external API calls required for core detection. Full benchmarks →

Documentation

Security

We take security seriously. If you discover a vulnerability:

  • For sensitive issues: Email connor@backbay.io with details. We aim to respond within 48 hours.
  • For non-sensitive issues: Open a GitHub issue with the security label.

Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

cargo build && cargo test && cargo clippy

License

MIT License - see LICENSE for details.

About

Swarm Detection Response (SDR)

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages