AGENT SKILL

敏感信息脱敏

redaction-guard

每当要输出操作员可见的内容时使用——聊天/话题消息、PagerDuty 或 ServiceNow 记录、提交信息或拉取请求正文,或任何报告制品(HTML、PowerPoint、Teams 卡片)。确定性地屏蔽密钥、凭证、令牌、私钥、URI 中嵌入的密码以及个人身份信息(PII),确保它们不会出现在对话或任何交付物中。这是一项横切护栏,由产生输出的技能调用,而非一个操作手册步骤。

适用职业安全工程师
License 许可
MIT
最近更新
2026-11-10
Stars
★ 189
Forks
198

01 前言 Front Matter

name
redaction-guard
tools
[ "SearchMemory", "ExecutePythonCode" ]
metadata
{ "kind": "Skill", "api_version": "azuresre.ai/v2" }
description
Use whenever you are about to emit operator-visible content — a chat/thread message, a PagerDuty or ServiceNow note, a commit message or pull-request body, or any report artifact (HTML, PowerPoint, Teams card). Deterministically masks secrets, credentials, tokens, private keys, URI-embedded passwords, and PII so they never appear in the thread or in any deliverable. This is a cross-cutting guardrail invoked by the output-producing skills, not a runbook step.

02 资源文件 7

03 SKILL.md 正文

Zava Learning — Redaction Guard

A cross-cutting safety layer: nothing sensitive ever reaches an operator-visible surface. The triggering alert is symptom-only and the investigation touches Key Vault secrets, connection strings, access tokens and learner PII — none of which may be exposed in chat, notes, PRs, or reports.

Load the standard, then scrub

Retrieve the canonical policy and scrubber with SearchMemory("zava-redaction"). It defines what counts as sensitive, the credential files you must never print, and a deterministic redact() function. Apply redact() (via ExecutePythonCode) to every string you are about to emit — chat summary, note body, PR/commit text, and the assembled HTML/markdown/deck — before it leaves the agent. The scrubber is idempotent, so running it more than once is safe.

What to redact (summary — see zava-redaction for the full list)

  • Secrets & credentials: passwords, PGPASSWORD, connection strings, Key Vault secret values, client secrets, API / access / account keys, SAS tokens.
  • Tokens: GitHub PATs (gho_/ghp_/github_pat_…), JWTs / AAD access tokens (eyJ…), bearer / Authorization values.
  • Private keys: any -----BEGIN … PRIVATE KEY----- block, SSH/cert keys.
  • Credentials inside URIs: the password in scheme://user:password@host.
  • PII: email addresses and learner personal data from the database.

Keep resource names, resource groups, regions, app names, alert names, and PR/CR numbers — they are not sensitive and are needed for the narrative.

Hard rules

  • Never read or print credential files. Reference them by name only — never cat / Get-Content / echo / type the contents of .git/git-credentials, .env, *.pem, id_rsa*, *.pfx, kubeconfig, ~/.azure/*, or *.tfstate into the thread or a report.
  • When a command can echo a secret (e.g. az keyvault secret show), do not paste its output — confirm the fact ("secret present / rotated") without revealing the value.
  • When in doubt, redact. Replace with [REDACTED:<CLASS>]; for URI credentials keep the scheme and username and mask only the password.

How the other skills use this

zava-reporting, pagerduty-incident-update, servicenow-change-management, and pr-delivery each call redact() on their output before emitting. Because loading a separate skill swaps the active toolset, those skills inline the redact() function (retrieved via SearchMemory("zava-redaction")) within their own ExecutePythonCode step rather than handing off here — this skill is the authoritative definition they follow.

Verification

Every operator-visible string has passed through redact() (or equivalent manual masking) and shows [REDACTED:<CLASS>] in place of any secret, token, private key, URI credential, or PII. No credential file was ever printed to the thread or a deliverable.

04 同仓库更多 Skills

microsoft
microsoft/sre-agent

Zava 事件分析报告生成

zava-reporting

用于将已完成的 Zava Learning 事件分析打包呈现给受众。首先呈现带品牌标识的线程内执行摘要(内联前后对比视觉效果的 markdown),然后生成可下载的交付物——PowerPoint 演示文稿、HTML 电子邮件和 Teams 通知,使用 Zava 企业模板。调用的 agent 可将其缩小为子集(例如仅 HTML 报告)。产出内容和工件;它不负责发送。组装 rca-analysis、evidence-before-after、recommendations-next-steps 和 pr-delivery 的输出。

SRE 工程师安全事件响应与威胁狩猎
★ 189
microsoft
microsoft/sre-agent

Zava 治理审计报告生成

zava-audit-report

用于将已完成的 Zava Learning 每周治理审计(NSG/网络安全、RBAC/最小权限或云成本)打包成一份采用 Zava 企业风格、带品牌标识的可下载 PowerPoint 演示文稿。调用的审计 agent 传入其发现结果(带严重级别的条目列表)和简短的安全态势摘要;本技能渲染演示文稿、应用脱敏处理,并返回附件下载链接。产出工件本身;它不负责发送。

云架构师云合规与数据边界管理
★ 189
microsoft
microsoft/sre-agent

ServiceNow 变更请求管理

servicenow-change-management

当 Zava Learning 调查产生了需要变更管理的持久性修复时使用——在为基础设施即代码或应用代码的根本原因打开 GitHub PR 之后,提出引用该 PR 的 ServiceNow 变更请求并附上 RCA 报告。是 ServiceNow 变更请求及附件操作的唯一负责方。

SRE 工程师部署与发布管理
★ 189
microsoft
microsoft/sre-agent

事件改进建议

recommendations-next-steps

用于为 Zava Learning 事件生成前瞻性的建议和后续步骤——包括按优先级排序的预防性、检测性和流程性行动,并附带负责人、目标日期和不采取行动的风险。其输出用于 zava-reporting 交付物。

SRE 工程师安全事件响应与威胁狩猎
★ 189
microsoft
microsoft/sre-agent

事件根因分析

rca-analysis

用于为已解决或已缓解的 Zava Learning 事件生成根因分析叙述——包括事件时间线、触发因素与潜在根因(5-Whys)、促成因素以及如何呈现这些内容。定义 RCA 章节格式;其输出用于前后对比、建议和报告等交付物。

SRE 工程师安全事件响应与威胁狩猎
★ 189
microsoft
microsoft/sre-agent

RBAC 最小权限审计

rbac-audit

当操作员或定时任务请求对 Zava Learning 资源组进行周期性 RBAC/最小权限审计时使用——枚举该组上实际生效的角色分配,将每个身份与实际的活动日志(Activity-Log)使用情况关联,以发现从未使用过的长期访问权限,标记权限过高、直接分配(而非通过组管理)的身份以及过期的故障排查访问权限,并推荐最小权限的修正措施。只读;生成用于报告的审计发现。

安全工程师身份与访问管理
★ 189