ShieldClaw Security Suite
Overview
ShieldClaw is a security skill suite for OpenClaw, providing four core capabilities:
- - Scan - Security scanning
- Guard - Real-time protection
- Audit - Audit logging
- Vault - Sensitive data encryption
Usage Scenarios
1. Security Scan (Scan)
Perform security checks before installing or using a Skill.
Users might say:
- - "Scan this Skill for security issues"
- "Check if ~/projects/my-skill is safe"
- "Are there any risks in Skills in this directory"
- "Scan all Skills in the current directory"
Capabilities:
- - Detect dangerous function calls
- Discover hardcoded keys/passwords
- Evaluate permission risks
- Identify suspicious network requests
- Provide risk score (0-100)
2. Real-time Guard (Guard)
Monitor and intercept suspicious file/network/process operations.
Users might say:
- - "Enable file protection"
- "Protect ~/.ssh directory from access"
- "Block access to sensitive files"
- "View protection interception records"
- "Add /data/secrets to protection list"
Capabilities:
- - File system monitoring
- Network request interception
- Process execution control
- Real-time alerts
3. Data Vault (Vault)
Encrypt and securely store sensitive data, with auto-detection and masking.
Users might say:
- - "Encrypt this API Key"
- "Store this password for me"
- "Securely store this private key"
- "Mask sensitive data in this text"
- "View my saved sensitive data"
Capabilities:
- - AES-256-GCM encryption
- Auto-detect sensitive information (phone, ID, email, etc.)
- Smart masking display
- System keychain for key storage
4. Security Audit (Audit)
Record operation logs and generate security reports.
Users might say:
- - "Generate security report"
- "View recent security events"
- "Export audit logs"
- "View intercepted suspicious operations"
- "What security risks this month"
Capabilities:
- - Complete operation audit trail
- Visualized reports
- PDF/Excel export
- Compliance checking
Configuration
ShieldClaw supports the following configuration options:
| Option | Description | Default |
|---|
| scan.enabled | Enable scanning | true |
| scan.autoScanOnInstall |
Auto-scan on install | true |
| guard.enabled | Enable protection | true |
| guard.strictMode | Strict mode (more sensitive) | false |
| guard.sensitivePaths | Protected paths list | ["~/.ssh", "~/.aws"] |
| audit.enabled | Enable audit | true |
| audit.retentionDays | Log retention days | 180 |
| vault.enabled | Enable encryption | true |
Security Recommendations
- 1. Scan before install: Scan all third-party Skills before installation
- Encrypt sensitive data: Use Vault for passwords, API Keys, private keys
- Protect critical directories: Enable Guard for SSH keys, AWS credentials
- Regular audits: Review security reports and audit logs regularly
Notes
- - Encryption keys are auto-managed in system keychain
- Audit logs stored in local SQLite database
- Some advanced features may require manual configuration
- Supports Windows, macOS, Linux platforms
ShieldClaw安全套件
概述
ShieldClaw是OpenClaw的安全技能套件,提供四项核心能力:
- - 扫描 - 安全扫描
- 守护 - 实时保护
- 审计 - 审计日志
- 保险库 - 敏感数据加密
使用场景
1. 安全扫描(扫描)
在安装或使用技能前执行安全检查。
用户可能说:
- - 扫描这个技能的安全问题
- 检查 ~/projects/my-skill 是否安全
- 这个目录下的技能有没有风险
- 扫描当前目录下的所有技能
能力:
- - 检测危险函数调用
- 发现硬编码密钥/密码
- 评估权限风险
- 识别可疑网络请求
- 提供风险评分(0-100)
2. 实时守护(守护)
监控并拦截可疑的文件/网络/进程操作。
用户可能说:
- - 启用文件保护
- 保护 ~/.ssh 目录不被访问
- 阻止访问敏感文件
- 查看保护拦截记录
- 将 /data/secrets 加入保护列表
能力:
3. 数据保险库(保险库)
加密并安全存储敏感数据,支持自动检测和脱敏显示。
用户可能说:
- - 加密这个API密钥
- 帮我存储这个密码
- 安全存储这个私钥
- 脱敏这段文本中的敏感数据
- 查看我保存的敏感数据
能力:
- - AES-256-GCM加密
- 自动检测敏感信息(手机号、身份证、邮箱等)
- 智能脱敏显示
- 系统钥匙串管理密钥
4. 安全审计(审计)
记录操作日志并生成安全报告。
用户可能说:
- - 生成安全报告
- 查看最近的安全事件
- 导出审计日志
- 查看被拦截的可疑操作
- 本月有哪些安全风险
能力:
- - 完整操作审计追踪
- 可视化报告
- PDF/Excel导出
- 合规性检查
配置
ShieldClaw支持以下配置选项:
| 选项 | 描述 | 默认值 |
|---|
| scan.enabled | 启用扫描 | true |
| scan.autoScanOnInstall |
安装时自动扫描 | true |
| guard.enabled | 启用保护 | true |
| guard.strictMode | 严格模式(更敏感) | false |
| guard.sensitivePaths | 受保护路径列表 | [~/.ssh, ~/.aws] |
| audit.enabled | 启用审计 | true |
| audit.retentionDays | 日志保留天数 | 180 |
| vault.enabled | 启用加密 | true |
安全建议
- 1. 安装前扫描:安装所有第三方技能前进行扫描
- 加密敏感数据:使用保险库存储密码、API密钥、私钥
- 保护关键目录:为SSH密钥、AWS凭证启用守护
- 定期审计:定期查看安全报告和审计日志
注意事项
- - 加密密钥由系统钥匙串自动管理
- 审计日志存储在本地SQLite数据库中
- 部分高级功能可能需要手动配置
- 支持Windows、macOS、Linux平台