clawd-zero-trust
БесплатноБез исполняемых скриптовНе проверенZero Trust security hardening for OpenClaw deployments. Use when asked to audit, harden, or apply Zero Trust architecture to an OpenClaw instance — including…
от lxyeternal★ 68 звёзд на GitHubОб этом скилле
clawd-zero-trust (v1.3.1)
Zero Trust hardening framework for OpenClaw. Built by Blocksoft.
⚠️ BREAKING (v1.3.0→v1.3.1): First apply after upgrade requires
--forceor runbash scripts/release-gate.sh --reset-hashto reset trusted baseline. Unattended/cron apply workflows must be updated.
Dependencies
The following binaries are required. Install with apt on Debian/Ubuntu:
| Binary | Package | Required For |
|---|---|---|
ufw |
ufw |
All mutating operations (--apply, --canary, --reset, --refresh) |
curl |
curl |
Endpoint verification (--verify, --verify-all) |
openssl |
openssl |
SMTP/IMAP verification in --verify-all |
nc |
netcat-openbsd |
TCP/UDP port checks in --verify-all |
dig |
dnsutils |
DNS resolution for provider IPs |
python3 |
python3 |
JSON parsing, log aggregation, state management |
Read-only modes (--verify, --audit-log, --status) do not require root. Mutating modes (--apply, --canary, --reset, --refresh) require root privileges.
Core Principles
- NHI (Non-Human Identity): Sub-agents run as isolated sessions with scoped credentials. Never share 'main' identity for high-risk ops.
- PLP (Principle of Least Privilege): Restrict default model toolset. Use
tools.byProviderto limit small/untrusted models tocodingprofile. - Plan-First: Declare intent (what + why + expected outcome) before any write, exec, or network call.
- Egress Control: Whitelist outbound traffic to authorized AI providers only. Preserve Tailscale + Telegram API.
- Assumption of Breach: Design as if the attacker is already in. Verify every plugin, model, and extension.
Canonical Egress Script Path
Single source of truth:
/home/claw/.openclaw/workspace/skills/clawd-zero-trust/scripts/egress-filter.sh
Compatibility symlink:
/home/claw/.openclaw/workspace/scripts/egress_filter.sh -> .../skills/clawd-zero-trust/scripts/egress-filter.sh
Workflow: Audit → Harden → Egress → Verify
1) Audit
bash scripts/audit.sh
2) Harden
# Preview (default)
bash scripts/harden.sh
# Apply
bash scripts/harden.sh --apply
3) Egress Policy (dry-run default)
# Dry-run preview (default)
bash scripts/egress-filter.sh --dry-run
# Transactional apply: auto-rollback if Telegram/GitHub/Anthropic/OpenAI checks fail
bash scripts/egress-filter.sh --apply
# Canary mode: temporary apply + 120s periodic verification, then commit/rollback
bash scripts/egress-filter.sh --canary
# Verify critical endpoints only (Telegram, GitHub, Anthropic, OpenAI)
bash scripts/egress-filter.sh --verify
# Emergency rollback
bash scripts/egress-filter.sh --reset
4) Egress Profile Status (v1.3.0)
# Print current egress profile status (read-only, no root required)
bash scripts/egress-filter.sh --status
Displays: profile version, last applied timestamp, last result, provider count from providers.txt, and current UFW state. Read-only. No root required for core status output. UFW active state is best-effort — may show 'unknown' if sudo is unavailable on your system.
5) Egress Violation Audit Log (v1.3.0)
# View blocked outbound traffic from the last 24 hours
bash scripts/egress-filter.sh --audit-log
Parses /var/log/ufw.log and journalctl -k for [UFW BLOCK] entries with outbound markers (OUT=, DPT=). Aggregates by destination IP + port and prints a summary table with counts, first-seen, and last-seen timestamps. During --apply, a UFW LOG rule (ZT:egress-violation) is automatically inserted to capture future violations.
6) IP Snapshot Auto-Refresh (v1.3.0)
# Re-resolve DNS and apply only changed IPs (delta) to UFW
bash scripts/egress-filter.sh --refresh
Re-resolves all domains in config/providers.txt, diffs against the last-applied IP snapshot (.state/applied-ips.json), and applies only the delta rules. Transactional: backs up UFW rules before applying, verifies critical endpoints after, and rolls back on failure. The IP snapshot is saved automatically after every --apply and --canary.
7) Per-Provider Verification (v1.3.0)
# Protocol-aware verification of ALL providers in providers.txt
bash scripts/egress-filter.sh --verify-all
Detects the appropriate protocol from port number and runs the matching check:
- 443 → HTTPS
curl(status code check) - 587/465/25 → SMTP
openssl s_client(STARTTLS/TLS) - 993/143 → IMAP
openssl s_client(TLS/STARTTLS) - 41641 → UDP
nc -zu(Tailscale WireGuard) - 22 → TCP
nc -z(SSH) - other → TCP
nc -z(generic fallback)
Each check runs with a hard timeout 5s wrapper (enforced at OS level, not just socket timeout). Automatically called after --apply and --canary. Available standalone for on-demand verification. Requires: curl, openssl, nc (netcat-openbsd).
8) Plugin Integrity Hashing (v1.3.0)
# Snapshot curren
Установить clawd-zero-trust в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл clawd-zero-trust?
Zero Trust security hardening for OpenClaw deployments. Use when asked to audit, harden, or apply Zero Trust architecture to an OpenClaw instance — including NHI identity scoping, Principle of Least Privilege (PLP), Plan-First protocol, DNS-based egress filtering, plugin allowlisting, and SSH/network lockdown. Also triggers on security audit requests, vulnerability analysis, SecureClaw installation, firewall hardening, and post-deployment security reviews.
Как установить скилл clawd-zero-trust?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл clawd-zero-trust запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic