clawpatrol  by denoland

Security firewall for AI agents

Created 4 weeks ago

New!

315 stars

Top 85.6% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

Summary

Claw Patrol is a security firewall designed to protect production environments from agent actions. It intercepts and inspects agent traffic, enforcing custom rules written in HCL to prevent potentially destructive or unauthorized operations before they reach their targets. This provides a crucial safety layer for AI agents and automated systems interacting with sensitive infrastructure.

How It Works

The system operates by parsing network traffic at the wire level for various protocols, including SQL, Kubernetes, and HTTP. It extracts protocol-specific facts (e.g., SQL verbs, Kubernetes resource types, HTTP methods/paths) which are then evaluated against user-defined rules. These rules, written in HashiCorp Configuration Language (HCL), leverage Common Expression Language (CEL) for conditions, allowing for precise and expressive security policies. This approach offers granular control, enabling developers to define specific actions that are permitted or denied, thereby mitigating risks associated with autonomous agent behavior.

Quick Start & Requirements

Highlighted Details

  • Rule Enforcement: Example HCL rule demonstrates blocking Kubernetes secrets from leaving the cluster.
  • Condition Language: Utilizes CEL for flexible, fact-based condition evaluation over extracted wire traffic data.
  • Flexible Deployment: Offers three distinct deployment shapes: gateway (a standalone proxy), join (host-wide WireGuard tunnel), and run (per-process tunnel for Linux/macOS).
  • Protocol Support: Extracts facts for Postgres/ClickHouse (SQL), Kubernetes, and HTTP.

Maintenance & Community

No specific details on contributors, sponsorships, or community channels were provided in the README.

Licensing & Compatibility

  • License: MIT.
  • Compatibility: No explicit restrictions mentioned for commercial use or closed-source linking.

Limitations & Caveats

No specific limitations, alpha status, or known issues were detailed in the provided README excerpt.

Health Check
Last Commit

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
523
Issues (30d)
56
Star History
315 stars in the last 29 days

Explore Similar Projects

Feedback? Help us improve.