ClawCare: Security Guard for AI Coding Agents After AWS Key Leak

ClawCare is a security tool for AI coding agents that intercepts and scans commands before execution, created after a developer accidentally leaked an AWS secret key through Claude Code. The developer had an agent check environment variables, forgetting an AWS key was stored there, which entered the session context and was sent to the LLM provider.
Key Features
ClawCare hooks directly into Claude Code as a PreToolUse hook, scanning every command before execution. It includes built-in rules that block specific patterns:
envbulk dumps → blocked (HIGH_ENV_BULK_DUMP)curl -dexfiltration → blocked (CRIT_NETWORK_EXFIL)nc -e /bin/bashreverse shells → blocked (CRIT_REVERSE_SHELL)- Pipe-to-shell patterns → blocked (CRIT_PIPE_TO_SHELL)
- Medium-risk commands like
eval $(...)→ surfaces a confirmation prompt
The tool logs violations to a report using a PostToolUse hook. It also performs static scanning of .claude/skills/ directories for dangerous patterns, which can be run locally or gated in CI with clawcare scan <skill directory> --ci.
Setup and Usage
Setup takes about 10 seconds:
pip install clawcare
clawcare guard activate --platform claude
For audit trail:
clawcare guard report --since 24h
ClawCare includes over 30 built-in rules, supports custom YAML rules, and allows per-skill policy manifests. It supports OpenClaw, Cursor, and Codex in addition to Claude. The tool is Apache 2.0 licensed and requires Python 3.10+.
This type of security tool addresses the risk of giving AI agents access to shells, files, and secrets with minimal guardrails, particularly concerning third-party skills that can run commands without visibility.
📖 Read the full source: r/ClaudeAI
👀 See Also

OpenClaw Patches Critical Privilege Escalation in /pair Approve Path
OpenClaw 2026.3.28 fixes a critical security vulnerability (GHSA-hc5h-pmr3-3497) where the /pair approve command allowed users with pairing privileges to approve device requests for broader scopes, including admin access. Affected versions are <= 2026.3.24.

Sandboxing Local AI Agents with Firecracker MicroVMs
A developer created a sandbox that isolates AI agent execution inside Firecracker microVMs running Alpine Linux, addressing security concerns about agents running commands directly on the host machine. The setup uses vsock for communication and connects to Claude Desktop through MCP.

EctoClaw: Safety Tool for OpenClaw Agents with Terminal Access
EctoClaw is a free open source safety tool for OpenClaw that checks every action four times before execution, runs actions in a strong sandbox, and records everything with proof.

820 Malicious Skills Found in OpenClaw's ClawHub Marketplace
Security researchers identified 820 skills in OpenClaw's ClawHub marketplace containing confirmed malware including keyloggers, data-exfiltration scripts, and hidden shell commands. These skills can execute code and interact with the local environment, creating supply-chain security risks.