← 返回
未分类

Sentinel Shield

Runtime security for OpenClaw agents. Monitors tool calls, enforces rate limits, scans for prompt injection, and alerts on suspicious behavior. Protect your...
OpenClaw代理的运行安全保护。监控工具调用、强制速率限制、扫描提示词注入并警报可疑行为。保护您的...
shadowfax-mitch
未分类 clawhub v0.2.0 1 版本 99453.6 Key: 无需
★ 0
Stars
📥 182
下载
💾 0
安装
1
版本
#latest

概述

Sentinel Shield — Runtime Security for OpenClaw Agents

Everyone else secures the model. We secure the agent.

Sentinel Shield is a lightweight security layer for OpenClaw agents. It monitors what your agent does — not just what it says — and alerts you before damage is done.

What It Protects Against

  • Stolen gateway tokens — Rate limiting + anomaly detection catches unauthorized sessions
  • Prompt injection — Scans inbound content for 16+ injection pattern signatures
  • Session hijacking — Behavioral fingerprinting flags sessions that don't match your patterns
  • Runaway agents — 50-call/60s sliding window kills runaway loops automatically
  • Silent exfiltration — File integrity monitoring on critical OpenClaw files

Quick Commands

Status Check

node {baseDir}/scripts/sentinel.js status

Returns current health, active session stats, and recent alert summary.

Security Audit

node {baseDir}/scripts/sentinel.js audit

Full audit: file integrity, rate limit state, injection scanner status, anomaly log.

Recent Alerts

node {baseDir}/scripts/sentinel.js alerts [--hours 24]

Shows alerts from the last N hours (default: 24).

Rate Limit Status

node {baseDir}/scripts/sentinel.js ratelimit

Shows current call counts per window for all monitored tools.

Kill Switch

node {baseDir}/scripts/sentinel.js kill

Emergency stop. Terminates active rate counters, logs kill event, sends Telegram alert.

Run Injection Scan

node {baseDir}/scripts/sentinel.js scan --text "some content to check"

Manually scan text for injection signatures.

Initialize / Reset Baselines

node {baseDir}/scripts/sentinel.js init

Establishes file integrity baselines for critical OpenClaw files.

Configuration

Edit {baseDir}/config/shield.json to customize:

{
  "rateLimit": {
    "maxCalls": 50,
    "windowSeconds": 60,
    "alertThreshold": 40
  },
  "telegram": {
    "enabled": true,
    "botToken": "YOUR_BOT_TOKEN",
    "chatId": "YOUR_CHAT_ID"
  },
  "monitoredFiles": [
    "~/.openclaw/openclaw.json",
    "~/.openclaw/credentials",
    "~/.ssh/authorized_keys",
    "/etc/passwd"
  ],
  "injectionScanning": true,
  "alertLevel": "medium"
}

Setup (Telegram Alerts)

  1. Create a Telegram bot via @BotFather → copy the token
  2. Message your bot to get your chat ID: https://api.telegram.org/bot/getUpdates
  3. Add both to {baseDir}/config/shield.json

How to Use in Agent Sessions

When you see a suspicious message or want to verify your session is clean:

User: "Run a security check"

Action: Run node {baseDir}/scripts/sentinel.js status

User: "Show me recent security alerts"

Action: Run node {baseDir}/scripts/sentinel.js alerts

User: "Scan this text for injection: [text]"

Action: Run node {baseDir}/scripts/sentinel.js scan --text "[text]"

User: "Emergency stop sentinel"

Action: Run node {baseDir}/scripts/sentinel.js kill

Alert Levels

LevelTriggerAction
------------------------
INFONormal activity loggedWrite to log only
MEDIUMRate limit >80%Log + Telegram
HIGHRate limit hit, injection detectedLog + Telegram + kill option
CRITICALFile integrity violationLog + Telegram + alert all channels

Files Monitored (Default)

  • ~/.openclaw/openclaw.json — Gateway auth token (THE critical file)
  • ~/.openclaw/credentials — Stored credentials
  • ~/.ssh/authorized_keys — SSH access control
  • /etc/passwd — System user accounts
  • /etc/sudoers — Privilege escalation paths

Version History

  • v0.2.0 — Rate limiting (50/60s sliding window), Telegram alerts, clawhub distribution
  • v0.1.0 — File integrity monitoring, process scanning, injection detection (16 patterns)

版本历史

共 1 个版本

  • v0.2.0 当前
    2026-05-12 06:14 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,219 📥 267,055
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,065 📥 802,273
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,364 📥 319,299