360 Secure SkillHub
360 安全技能中心

LGD Crypto Guard(隐私计算守门)

通过零依赖 Python CLI 对处理敏感数据的 AI 系统做 LGD「有籍·有证·有门禁」自评,输出逐项检查、门禁结论与退出码,可用于隐私计算、密文传输、联邦学习和数据最小化场景,并提示日志泄露与权限分级问题;默认不外发数据。

分类:安全
zhaoxinghua09-cell
zhaoxinghua09-cell
热度 16.64
最近更新 2026-11-30 17:54:59

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add zhaoxinghua09-cell/lgd-crypto-guard
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
lgd-crypto-guard
description
Check whether an AI system handling sensitive data meets the three-law standard of registered, evidenced and gated before it is deployed. lgd-crypto-guard — 把 LGD 三律(有籍·有证·有门禁)翻译进隐私计算 / 数据加密与最小化 AI 应用(联邦·密文·脱敏)的合规守门器,对 AI 系统做三律自评与门禁判定(零依赖)。
slug
lgd-crypto-guard
version
1.0.1
homepage
https://zhaoxinghua09-cell.github.io/lgd-hub/
display_name
隐私计算守门
display_name_en
Privacy-Compute Guard
agent_created
true
author
XLGD · 诺声(Logos)@SynomosAI
license
MIT
license_scope
代码(.py 文件)MIT;本 SKILL.md 与其中理论文本不在 MIT 覆盖范围内(见文末「License & attribution」)
allowed-tools
Read, Glob, Grep, Bash, Write, WebFetch
category
AI 治理
platforms
["windows","macos","linux"]
copyright
XLGD · SynomosAI
description_zh
lgd-crypto-guard — 把 LGD 三律(有籍·有证·有门禁)翻译进隐私计算 / 数据加密与最小化 AI 应用(联邦·密文·脱敏)的合规守门器,对 AI 系统做三律自评与门禁判定(零依赖)。
description_en
Check whether an AI system handling sensitive data meets the three-law standard of registered, evidenced and gated before it is deployed. It runs a zero-dependency self-assessment and returns gate decisions for federated learning, encrypted transmission and de-identified pipelines, flagging log leakage and weak permission tiers.
classification
{"skillhub":["ai-governance"],"iso_25010":["Security","Maintainability"]}
risk_tier
medium
risk_rationale
门禁批量补丁默认 medium(按默认策略设计为中等风险):调用 API/读写文件/本地执行,最小权限,密钥走 Secret;若实际涉对外代执行(push/发布/发送/上架)须人工复评,改 high 并走人工批准。
tags
["lgd-crypto-guard","AI 治理","隐私计算","数据最小化"]
read_when
["AI 模型部署前要验证数据流转是否符合 LGD 三律","系统处理敏感数据,涉及隐私计算/联邦学习/密文传输且要最小化原则","AI 接口有日志泄露风险或权限分级错误,要自动脱敏与门禁拦截","用户说「这个隐私计算方案合规吗」「明文有没有出安全区」"]
ai_protocol
true
spec
usk/1.0
interface
{"type":"cli","entry_point":"scripts/crypto_guard.py","runtime":"python3","call_pattern":"args"}
input_schema
{"args":{"type":"string","description":"命令行参数透传给主脚本,具体取值见各包 --help","required":false}}
output_schema
{"stdout":{"type":"string","description":"标准输出为 JSON 结果,含逐项检查与总体结论"},"exit_code":{"type":"integer","description":"0=PASS/完成;1=FAIL/有警告或待补强;2=用法或参数错误"}}
capabilities
["cli_tool"]
permissions
{"network":true,"filesystem":true,"subprocess":true,"scope":"project-dir-only"}
requirements
{"python_packages":[],"min_python":"3.8"}
changelog
1.0.1: Bilingual rewrite (full EN+ZH, English first), added read_when; 1.0.0: initial upload (USK v3)

凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:见平台质量门禁规范

English

When to use

  • Call it before an AI model deployment, to verify that data flows meet the LGD "registered · evidenced · gated" standard.
  • Enable it when a system handles sensitive data in privacy-computing, federated-learning or ciphertext-transmission scenarios and must satisfy the data-minimization principle.
  • Use it when an AI interface shows log-leakage risk or flawed permission tiers, triggering automatic desensitization and gate blocking.

Usage

In a Python runtime, import the core classes and functions from the crypto_guard.py module. Configure the inputs as the data source under check, the model path and the compliance policy level (e.g. HIGH). Recommended invocation:

from crypto_guard import GuardianEngine, LGD_POLICY
guard = GuardianEngine(policy=LGD_POLICY.STRICT)
result = guard.check_model(ai_model_path="local/model.pkl")

Workflow

  1. Environment prep: load the crypto_guard module; confirm no dependency conflicts.
  2. Data assembly: organize the AI model file, training dataset and access-request context into a standardized input object.
  3. Compliance scan: run the evaluation engine for an LGD three-law self-check on data lineage and encryption strategy.
  4. Report generation: emit a structured report with the "registered / evidenced / gated" status verdicts.
  5. Execution control: if the check fails, automatically issue encryption, desensitization or access-denial instructions; on pass, open the service.

Evidence & safety statement

  • Evidence: TBD (no evaluation / badge link yet; update here once it is produced)
  • Version: 1.0.1
  • Security: no independent security scan has been performed (TBD); the conclusion is pending and no endorsement is given until it is completed.

中文

何时用

在 AI 模型部署前需验证数据流转是否符合 LGD“有籍·有证·有门禁”标准时调用。 当系统处理敏感数据,涉及隐私计算、联邦学习或密文传输场景且需满足最小化原则时启用。 若检测到 AI 接口存在日志泄露风险或权限分级错误,需触发自动脱敏与门禁拦截机制时使用。

用法

在 Python 执行环境中,直接导入 crypto_guard.py 模块中的核心类与函数。需配置输入参数为待检数据源、模型路径及合规策略等级(如 HIGH)。实际调用推荐通过以下结构初始化并发送请求:

from crypto_guard import GuardianEngine, LGD_POLICY
guard = GuardianEngine(policy=LGD_POLICY.STRICT)
result = guard.check_model(ai_model_path="local/model.pkl")

流程

  1. 环境准备:加载 crypto_guard 模块,确认无依赖冲突。
  2. 数据构建:组织 AI 模型文件、训练数据集及访问请求上下文为标准化输入对象。
  3. 合规扫描:调用评估引擎对数据血缘与加密策略进行 LGD 三律自检。
  4. 报告生成:输出包含“有籍/有证/门禁”状态判定结果的结构化报告。
  5. 执行控制:若校验未通过,自动触发数据加密、脱敏或访问拒绝指令;通过后开放服务。

证据与安全声明

  • 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
  • 版本:1.0.1
  • 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。

Triggers / 触发词

这些是用户真实会说的话(中 / 英对照),命中任一即应加载本技能:

  • 「训练数据要出境,先过隐私检查」 / "check privacy before training data leaves"
  • 「联邦学习方案能不能上线」 / "can this federated learning setup go live"
  • 「日志里会不会漏出用户信息」 / "will our logs leak user data"
  • 「密文传输还需要做合规自评吗」 / "do we still need review for encrypted transfer"
  • 「做数据最小化,怎么判断够不够」 / "is our data minimization enough"
  • 「模型部署前帮我跑一遍门禁」 / "run the gate check before model deployment"

Trigger when the user says any of the above, in Chinese or English.



Ecosystem / 生态入口

This skill is one door of the LGD ecosystem — every entry below is publicly reachable. 本技能是 LGD 生态 的一个入口,下列地址均对公网可达。

Looking for something else? / 还想要别的?

Tell your AI assistant: "Find me an LGD skill that can " — the hub lists every published skill with a one-line purpose. 跟你的 AI 助手说一句「去 LGD 生态超市找能……的技能」,总入口按用途列全了所有已发布技能。


Data handling / 数据处理边界

  • 默认不向任何外部地址发送数据:扫描结果、报告、命中明细一律只写本地或只打印到当前会话。
  • 如需外发(告警、工单、邮件、IM),必须由人先明确指定接收方,并在每次发送前逐次确认;本技能不预设、也不硬编码任何接收端。
  • 只处理调用者明确指定的目标路径,不遍历无关目录,不跟随符号链接,不读取目标之外的凭据文件。
  • 命中内容在输出时按需脱敏,避免把敏感原值写进日志或对话记录。