SafeAI-Lab-X/ClawKeeper
SafeAI-Lab-X/ClawKeeper has 1,020 GitHub stars and 59 forks. GitHot measured 0 stars in 24 hours and +1 in 7 days. Last checked 2026-11-14 03:41 UTC. Last push 2026-08-17.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
ClawKeeper: Comprehensive Safety Protection for OpenClaw Agents Through Skills, Plugins, and Watchers (aka The Norton for OpenClaw)
보안README.md
OriginalClawKeeper
Host-agnostic safety middleware for tool-using agentic systems (can be wired into Hermes Agent, MCP tools, HTTP bridges, OpenClaw-style runtimes, or a custom host).
ClawKeeper sits between an agent and its tools. It can block risky tool calls, redact sensitive tool results, remember recurring attack patterns & self improve guardrail layers, and delegate harder trajectory-level decisions to an external Watcher.
What it is for
- Guarding shell, Python, browser, filesystem, and network tool calls before execution.
- Catching common agent-security failures: prompt injection, credential reads, credential exfiltration chains, unsafe shell execution, protected-path access, SSRF-like URLs, encoded second-stage payloads, and poisoned tool output.
- Running a host-independent Judge API for non-Python adapters.
- Running an optional Watcher daemon that reasons over intent, recent tool history, deterministic findings, and proposed tool calls.
- Self-improving guard coverage: Watcher catches can synthesize learned patterns, persist them under
~/.clawkeeper/, and hot-reload them into the live guard layer.
Install
git clone [email protected]:SafeAI-Lab-X/ClawKeeper.git
cd ClawKeeper
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
Sanity check:
pytest -q
Use with Hermes Agent
from run_agent import AIAgent
from clawkeeper_core import Judge
from clawkeeper_core.adapters.hermes import install as install_clawkeeper
agent = AIAgent(...)
install_clawkeeper(Judge(), agent)
agent.run("your task")
This installs the default pre-tool guard chain and post-tool-result scanners. No Hermes patching is required.
Run the HTTP core
For hosts that cannot import the Python package directly:
clawkeeper-server
curl http://127.0.0.1:7474/v1/health
Useful endpoints include /v1/judge, /v1/event, /v1/audit, /v1/scan/logs, /v1/scan/skill, and maintenance harden/rollback routes.
Run the Watcher
The Watcher is optional. It is useful when single-command rules are not enough and the decision depends on intent, recent tool history, or multi-step drift.
export CK_WATCHER_API_KEY="$OPENAI_API_KEY"
export CK_WATCHER_BASE_URL="$OPENAI_BASE_URL" # optional, OpenAI-compatible
export CK_WATCHER_MODEL="gpt-5.5" # or your configured model
python -m clawkeeper_core.watcher.daemon
curl http://127.0.0.1:9099/watcher/health
Wire it into Hermes:
install_clawkeeper(
Judge(),
agent,
watcher_url="http://127.0.0.1:9099",
)
Core guards
The default guard set currently covers:
- dangerous shell execution
- protected path access
- unsafe URL / SSRF patterns
- script-body and dynamic-path inspection
- base64/hex encoded payloads
- credential discovery plus network exfiltration chains
- poisoned return content
- credential redaction
The exact policies are intentionally small and inspectable; see clawkeeper_core/guards/.
Development
pip install -e ".[dev]"
pytest -q
Red-team fixtures and benchmark scripts live under tests/redteam/ and experiments/.
License
Apache-2.0.
관련 프로젝트 살펴보기
trimstray/the-book-of-secret-knowledge
영감을 주는 목록, 매뉴얼, 치트시트, 블로그, 팁, 원라이너, CLI/웹 도구 등을 모은 컬렉션.
258,357 스타Hack-with-Github/Awesome-Hacking
해커, 펜테스터, 보안 연구자를 위한 다양한 Awesome 목록 모음.
125,477 스타swisskyrepo/PayloadsAllTheThings
웹 애플리케이션 보안과 모의 침투 테스트/CTF에 유용한 페이로드 및 우회 방법 목록.
82,667 스타caddyserver/caddy
빠르고 확장 가능한 멀티플랫폼 HTTP/1-2-3 웹 서버이며, 자동 HTTPS를 지원합니다
79,026 스타