返回顶部
s

sensitive-info-protection敏感信息防护

Sensitive information real-time protection skill that automatically detects, alerts, and handles sensitive data in user interactions. Supports custom detection rules, external data source integration, and interactive processing. Use when you need to: (1) Scan text content for sensitive information, (2) Configure custom sensitive data detection rules, (3) Protect against accidental exposure of credentials, personal info, or business secrets.

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

sensitive-info-protection

敏感信息保护

概述

一个通用型敏感信息保护技能,提供对话内容中敏感数据的实时扫描、检测和交互式处理。通过可配置的检测规则,帮助防止个人信息、认证凭证和商业机密意外泄露。

核心能力

1. 敏感信息检测

  • - 实时扫描用户输入和输出内容
  • 默认检测多种敏感信息类型
  • 支持使用正则表达式模式自定义用户定义检测规则
  • 基于优先级的规则匹配

2. 配置管理

  • - 内置常见模式的默认敏感类型库
  • 支持添加/删除/启用/禁用自定义规则
  • 规则优先级调整以解决冲突

3. 外部数据集成

  • - 从外部数据源导入敏感关键词/模式列表
  • 支持动态规则更新
  • JSON/YAML配置格式

4. 交互式处理

  • - 检测结果的标准化输出格式
  • 清晰的操作选项供用户决策
  • 支持一键脱敏或手动编辑

默认敏感类型

内置检测以下类型:

  • - apikey - API密钥、访问令牌、认证凭证
  • creditcard - 信用卡号
  • idcard - 身份证号(中国)
  • phone - 手机号码(中国)
  • email - 电子邮件地址
  • bankcard - 银行卡号
  • password - 代码或日志中的密码模式
  • secret - 商业机密、保密信息标记

使用方法

扫描内容中的敏感信息

python
from scripts.detector import SensitiveDetector

detector = SensitiveDetector()
results = detector.scan(text_content)

if results:
# 以标准格式打印检测结果
detector.print_results(results)
# 等待用户决定是否继续
else:
# 未检测到敏感信息
pass

添加自定义规则

python
from scripts.models import DetectionRule

new_rule = DetectionRule(
name=custom_secret,
pattern=rMY_SECRET=\w+,
sensitivity=high,
description=自定义秘密模式
)
detector.addrule(newrule)

从文件加载配置

python
detector.load_config(path/to/config.json)

输出格式

检测到敏感信息时,使用以下格式:

检测结果

  • - 敏感类型: [type]
  • 位置: [start:end]
  • 原文: [original content]
  • 敏感度: [high/medium/low]

操作选项

  1. 1. 确认放行
  2. 修改后发送
  3. 取消发送

资源

scripts/

  • - detector.py - 主检测引擎类
  • models.py - 检测规则和结果的数据模型
  • cli.py - 命令行界面
  • default_rules.json - 内置默认检测规则

references/

  • - configuration.md - 详细配置指南
  • api.md - 集成API文档

assets/

  • - default_config.json - 默认配置模板

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 sensitive-info-protection-1776127230 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 sensitive-info-protection-1776127230 技能

通过命令行安装

skillhub install sensitive-info-protection-1776127230

下载

⬇ 下载 sensitive-info-protection v1.0.0(免费)

文件大小: 14.41 KB | 发布时间: 2026-4-14 14:26

v1.0.0 最新 2026-4-14 14:26
Initial release: Sensitive information real-time protection skill with detection, custom rules and desensitization

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

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

p2p_official_large
返回顶部