
Modular security toolkit for autonomous agents providing static analysis, configuration auditing, runtime monitoring, and supply chain verification to reduce LLM-driven risks.
Our Project: https://github.com/SafeAgent-Beihang/clawguard
ClawGuard is a security toolkit designed to mitigate risks associated with autonomous agents, such as OpenClaw and other LLM-driven entities. As agents gain more autonomy to execute code, access APIs, and manage files, ClawGuard provides necessary guardrails to help reduce security risks.
Autonomous agents are versatile but introduce unique security attack vectors:
ClawGuard is a comprehensive security solution that uses multiple security modules working together to help reduce security risks faced by agents. Each module has its specific responsibilities and can be used independently or deployed together.
Currently released three security modules:
More security modules will be released in the future to expand the protection capabilities.
ClawGuard is particularly suitable for scenarios where agents need to execute code, access files, or call external APIs.
ClawGuard is a modular security solution, with each module responsible for specific security functions. Currently released modules:
ClawGuard Auditor: Provides pre-installation static analysis, runtime capability enforcement, zero-trust execution, and real-time data redaction for OpenClaw Skills. Includes:
ClawGuard Checker: Security configuration analyzer and runtime integrity verifier. Includes:
ClawGuard Detect: Real-time behavioral monitoring and threat detection system. Includes:
ClawGuard's modules can be used independently or deployed together to form a complete protection system:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CLAWGUARD SECURITY FLOW β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββ
β Scenario 1: Install New Skill β
βββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Auditor (Audit) β β Check if Skill is safe
β Pre-installation β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Pass β Install β
β Reject β Abort β
βββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββ
β Scenario 2: Check Security Status β
βββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Checker (Check) β β Verify configuration
β Manual/Periodic β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Security Score β
β + Recommendations β
βββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββ
β Scenario 3: Agent Running Tasks β
βββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Detect (Monitor) β β Real-time threat detection
β Continuous β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Block / Warn β
β / Allow β
βββββββββββββββββββββββ
Three scenarios are independent and can be selected based on actual needs:
| Module | Auditor | Checker | Detect |
|---|---|---|---|
| Role | Security gate | Regular inspection | Security camera |
| When | Before skill installation | Manual/periodic | During runtime |
| Target | Third-party Skill source | OpenClaw config/system | Agent commands/operations |
| Focus | Malicious code in Skill | System configuration security | Active attacks |
| Use Case | Installing new Skill | Check system security status | Monitor for threats |
When to use: When someone wants to install a new third-party Skill for the Agent
Main checks:
When to use: When checking if the OpenClaw system itself is securely configured
Main checks:
When to use: While the Agent is executing tasks, monitoring for dangerous behavior in real-time
Main checks:
We welcome contributions to make autonomous agents safer!
git checkout -b feature/AmazingFeature).git commit -m 'Add some AmazingFeature').git push origin feature/AmazingFeature).Distributed under the MIT License. See LICENSE for more information.
ClawGuard is a security tool designed to reduce risk, but cannot guarantee 100% protection against all possible LLM vulnerabilities. Always follow the principle of least privilege (PoLP) when deploying autonomous agents.
Secure your agents. Protect your systems. Use ClawGuard.