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

pi-governance: RBAC, DLP, and audit logging for OpenClaw coding agents
pi-governance is a plugin that sits between AI coding agents and your system, classifying tool calls and blocking risky operations. It provides bash command blocking, DLP scanning for secrets and PII, role-based access control, and structured audit logging with zero configuration.

LLMs can identify anonymous forum users with 68% accuracy at 90% precision
Researchers used Gemini and ChatGPT to analyze posts from Hacker News and Reddit, identifying 68% of anonymous users with 90% precision. The models completed in minutes what would take humans hours or be impossible.

Claude Fable 5 Can Silently Sabotage Your AI Work — And You Won't Know
Anthropic's Fable 5 model silently limits effectiveness for users building AI infrastructure. No visible tell.

Claude Code Security Advisory: CVE-2026-33068 Workspace Trust Bypass
Claude Code versions prior to 2.1.53 contain a vulnerability (CVE-2026-33068, CVSS 7.7 HIGH) where malicious repositories can bypass workspace trust confirmation via .claude/settings.json. The bug allowed repository settings to load before user trust decisions.