A runtime security skill for OpenClaw. Defends against the threat landscape
exposed by ClawHavoc: backdoored skills, prompt injection via external data,
credential exfiltration, and process-level abuse.
Free tier: skill integrity checks, basic injection scanning.
Premium (x402/USDC/Base): continuous daemon monitoring, network egress
monitoring, process anomaly detection, full audit log.
# One-shot audit of all installed skills (free)
sentinel audit
# Continuous guardian daemon (premium — will prompt for x402 payment)
sentinel daemon start
# Scan a single skill before installing
sentinel check <skill-path-or-clawhub-id>
See references/threat-model.md for the full threat matrix. In brief:
| Threat | Feature | Tier |
|---|---|---|
| --- | --- | --- |
| Tampered skill files post-install | Integrity hashing | Free |
| Prompt injection via email/web/skill output | Injection scanner | Free |
| Plaintext secrets in skill dirs / SOUL.md | Credential auditor | Free |
| Unexpected outbound connections | Egress monitor | Premium |
| Shell commands outside declared behavior | Process anomaly | Premium |
| Continuous real-time protection | Daemon mode | Premium |
# Install the binary (built from scripts/src/)
cargo install --path scripts/ --bin sentinel
# Verify installation and print wallet address
sentinel setup
sentinel setup will:
~/.sentinel/wallet)When the user says anything like "scan my skills", "audit", "check for threats":
sentinel audit [--path ~/.openclaw/skills]
Output: a structured report of hash mismatches, injection patterns, and
exposed credentials. No payment required.
When the user wants to vet a skill before running clawhub install:
sentinel check <skill-directory-or-clawhub-id>
Prints a risk score (LOW / MEDIUM / HIGH / CRITICAL) with findings.
When the user asks for daemon mode, egress monitoring, or process anomaly
detection, sentinel will automatically:
402 Payment Required with price in the X-Payment-Requestheader (typically $0.01–$0.05/day for daemon mode)
~/.sentinel/walletThe user will see the price before their wallet signs anything. All
non-custodial. See references/x402-payment.md for the full payment flow.
sentinel daemon start # runs in foreground, writes to ~/.sentinel/daemon.log
# Run in background from your shell if needed:
# sentinel daemon start > ~/.sentinel/daemon.log 2>&1 &
# disown
sentinel daemon status
sentinel daemon stop
sentinel daemon logs # tail the audit log
The daemon watches:
~/.openclaw/skills/** for file mutations (inotify / FSEvents)~/.openclaw/SOUL.md and MEMORY.md for unauthorized writesAlerts are delivered via OpenClaw's notification system and written to the
audit log.
but declares it)
egress
SOUL.md mutation
sentinel isolate — quarantines the skill (moves it out ofthe active skills directory)
~/.sentinel/audit.logclawhub uninstall and report via sentinel report
Read these when you need deeper detail:
references/threat-model.md — Full threat matrix and attack descriptionsfrom ClawHavoc and similar campaigns
references/x402-payment.md — x402 payment flow, wallet setup, andtroubleshooting
references/binary-build.md — How to build sentinel from source, cross-compilation targets, CI/CD
sentinel wallet show # print address and USDC balance
sentinel wallet fund # print QR code and address to send USDC
sentinel wallet export # export mnemonic for backup (handle carefully)
sentinel wallet recover # restore from mnemonic on a new machine
Minimum recommended balance for uninterrupted daemon mode: $1 USDC
(roughly 20–100 days of coverage depending on scan frequency).
sentinel is fully local. No skill content, file paths, or scan results are
sent to any server. The only outbound calls are:
only)
Both can be disabled with --offline for air-gapped environments (free tier
only in offline mode).
共 1 个版本