返回顶部
s

senticlaw

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
106
下载量
0
收藏
概述
安装方式
版本历史

senticlaw

# SentiClaw — Runtime AI Security for OpenClaw SentiClaw is a 6-layer security middleware that protects your OpenClaw agent from prompt injection, identity spoofing, data exfiltration, and runtime abuse. ## Install ```bash npx clawhub@latest install senticlaw pip install ./skills/senticlaw ``` ## Quick Start Add to your OpenClaw workspace (`HEARTBEAT.md` or any tool): ```python from senticlaw import SentiClaw sc = SentiClaw(config={ "owner_ids": {"discord": ["YOUR_DISCORD_USER_ID"]}, "trusted_senders": {"discord": ["YOUR_DISCORD_USER_ID"]}, }) # Check inbound message result = sc.check_inbound(text, sender_id=sender_id, channel="discord", session_id=session_id) if not result.allowed: return result.block_message # Run your agent logic here... response = agent.respond(result.text) # Check outbound response safe = sc.check_outbound(response, session_id=session_id) return safe.response ``` ## The 6 Layers | # | Layer | Protects Against | |---|-------|-----------------| | 0 | **Identity** | Spoofing, unauthorized access, name-claim attacks | | 1 | **Sanitizer** | Prompt injection, jailbreaks, zero-width char attacks | | 2 | **Outbound Gate** | API key leaks, internal IP exposure, system prompt leakage | | 3 | **Redactor** | PII in responses (email, phone, SSN, credit cards) | | 4 | **Governance** | Rate limiting, loop detection, spend caps | | 5 | **Access Control** | Unsafe file paths, private URL access, tool abuse | ## Audit Log All events are logged to SQLite (`senticlaw_audit.db`): - `ALLOWED` — clean message passed through - `BLOCKED` — message blocked by policy - `INJECTION_ATTEMPT` — prompt injection detected - `SPOOFING_ATTEMPT` — identity spoofing detected - `OUTBOUND_BLOCKED` — sensitive data in response blocked - `RATE_LIMITED` — sender exceeded volume limits - `LOOP_DETECTED` — repeated identical messages ## Alert Integration Wire up instant alerts to any channel OpenClaw supports: ```python sc = SentiClaw(config={ "owner_ids": {"discord": ["YOUR_ID"]}, "alert_channel": "discord", # discord | telegram | slack | whatsapp "alert_channel_id": "YOUR_CHANNEL_OR_CHAT_ID", }) ``` Any injection or spoofing attempt fires an immediate alert to your channel. ## Configuration ```python from senticlaw import SentiClaw, SentiClawConfig config = SentiClawConfig( owner_ids={"discord": ["YOUR_ID"]}, trusted_senders={"discord": ["YOUR_ID"]}, block_unknown_senders=False, redact_pii=True, redact_secrets=True, redaction_mode="mask", # mask | remove | tokenize spend_cap_daily_usd=10.0, max_messages_per_hour=100, loop_threshold=3, outbound_block_api_keys=True, outbound_block_file_paths=True, alert_channel_id="", # Discord channel ID for alerts audit_db_path="senticlaw_audit.db", ) ``` ## Running Tests ```bash cd skills/senticlaw python tests/run_tests.py ``` --- Built by [PHRAIMWORK LLC](https://phraimwork.com) · MIT License

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 senticlaw-1776119488 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 senticlaw-1776119488 技能

通过命令行安装

skillhub install senticlaw-1776119488

下载 Zip 包

⬇ 下载 senticlaw v1.0.0

文件大小: 19.48 KB | 发布时间: 2026-4-14 13:52

v1.0.0 最新 2026-4-14 13:52
- Initial release of SentiClaw 1.0.0 — 6-layer runtime AI security middleware for OpenClaw.
- Protects agents against prompt injection, identity spoofing, PII leakage, and abuse.
- Provides SQLite audit logging, outbound content gating, PII redaction, and instant threat alerts.
- Includes detailed configuration options for sender controls, rate limits, spend caps, and alert integration.
- Designed for drop-in use with OpenClaw agents. Not a network/firewall security solution.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部