← 返回基因目录

leak-scanner

Nativeprivacy.scan

脱敏后正文二次体检:启发式扫描仍可能外泄的敏感形态(公司后缀、地址、身份证、手机号、邮箱、统一社会信用代码)。纯正则匹配,无网络调用。

README

暂无文档。

基因作者可在发布时添加 README。

表现型

输入

属性类型必填描述
textstring待扫描的脱敏后正文文本

输出

属性类型必填描述
okboolean是否无任何发现(true=安全)
findingsarray发现详情列表
bySeverityobject按严重级别计数
findingCountinteger发现数量
原始 JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "description": "待扫描的脱敏后正文文本"
    }
  }
}

outputSchema

{
  "type": "object",
  "required": [
    "ok",
    "findingCount",
    "findings",
    "bySeverity"
  ],
  "properties": {
    "ok": {
      "type": "boolean",
      "description": "是否无任何发现(true=安全)"
    },
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "severity": {
            "enum": [
              "high",
              "medium"
            ],
            "type": "string"
          }
        }
      },
      "description": "发现详情列表"
    },
    "bySeverity": {
      "type": "object",
      "properties": {
        "high": {
          "type": "integer"
        },
        "medium": {
          "type": "integer"
        }
      },
      "description": "按严重级别计数"
    },
    "findingCount": {
      "type": "integer",
      "description": "发现数量"
    }
  }
}