omh-security-event-response
它能做什么
该技能指导处理已经上线的代码中的安全事件,例如存在漏洞的软件包,或被推送到代码仓库中的密钥。适合处理事件的开发者和安全人员。
适用场景
- ✓当某个安全公告涉及你的项目所使用的软件包时。
- ✓当密钥或 API 密钥被意外提交到代码仓库时。
- ✓当关于某个软件包的许可证问题出现,需要明确答复时。
技能链接
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-security-event-response/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们使用的一个软件包刚刚发布了 CVE。请帮我检查我们是否受影响,以及应先做什么。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体对事件进行分类,检查代码的暴露程度,并排列遏制步骤的顺序。在观察到密钥轮换或修复完成之前,它不会关闭该问题。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Security Event Response
This is an OMH security-event-response workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
security-event-response exists because an event had no owner: security-safety-review and application-threat-model review a design before it ships, and a CVE, a committed secret, or a license question was answered by onboarding, review, or an achievements lane with no containment order at all.
First Steps
- Classify the event and state its exposure window before proposing any step.
- For a leaked secret, order the rotation and its observed rejection before any history rewrite.
Do Not Use When
- Nothing has happened yet and the ask is a review of prompts, tools, or permissions before execution; use
omh-security-safety-review, which also owns a planned rotation with no exposure. - The subject is a design's assets, trust boundaries, and attack scenarios; use
omh-application-threat-model. - A dependency moves to a new version as routine maintenance with no advisory or leak attached, such as a dependabot bump; use
omh-refactor-plan. - The question is a contract, a privacy obligation, or legal advice beyond a dependency's declared terms; use
omh-legal-compliance-review. - Production is down or degraded right now and the ask is command of the incident; use
omh-live-incident-response.
Examples
Good example:
- Prompt: we committed a secret, what now
- Expected behavior: Record the credential type, scope, and exposure window, then prepare containment_plan/v1: revoke and replace, observe the old credential rejected, audit its use in the window, and only then rewrite history; the closure verdict stays open until the rotation is observed.
- Why: A rewritten history does not revoke a secret that was already cloned or scraped.
Bad example:
- Prompt: just force-push the history without the key and we are done
- Expected behavior: Refuse to close: rotate first, observe the old key rejected, then rewrite, and name what is still unobserved.
- Why: Rewriting history first leaves a live credential in every clone and cache made before the push.
Completion Checklist
- The event kind, source, and exposure window are stated.
- Every severity call cites the reachable path or its observed absence.
- A leaked secret's rotation precedes any history rewrite in the plan.
- The closure verdict is closed only when the rotation or fixed version is observed.
- No secret value appears anywhere, and OMH scanned, contacted, or rotated nothing.
Recovery Notes
- If the exposure window is unknown, treat the secret as exposed from its first push and say so.
- If no reachability evidence is available, keep the advisory's own severity and mark the adjustment unverified.
When to Use
Use when a security event has already happened to code that exists: a CVE or advisory in a dependency, a secret or credential committed or pushed, a dependency whose license may not fit the product, or an advisory that forces a major version. The output is reachability, a severity call, containment steps in order, and what must be observed before the event closes; OMH never scans, never contacts a registry, and rotates nothing.
Strong routing signals: `security-event-response`, `security event response`, `cve`, `triage this cve`, `cve in our dependency`, `cve in a dependency`, `security advisory`, `dependabot alert`, `dependabot security`, `vulnerable dependency`, `vulnerability in our dependency`, `reachability analysis`, `npm audit`, `committed a secret`, `committed an api key`, `leaked secret`, `leaked a secret`, `leaked credential`, `leaked api key`, `leaked an api key`, `leaked aws key`, `leaked an aws key`, `secret in git history`, `secret in the history`, `dependency license`, `dependency's license`, `license ok`, `license compatibility`, `license compatible`, `gpl dependency`, `agpl dependency`
Catalog Metadata
Category: review
Phase: security-event-response
Quality tier: event-closure-gated
Reasoning demand: standard
Quality bar:
- Classify the event first; each kind has its own containment order.
- Load
references/event-containment-order.mdfor the per-event containment order, the severity adjustment, and the license obligation table instead of recalling them. - Adjust severity by reachability: a critical advisory on a function nothing calls is not the same event as one on the request path.
- Keep prepared, observ
常见问题
如果密钥泄露,我应该先做什么?
该技能会先安排密钥轮换,然后进行任何历史清理,并等待证据表明旧密钥已被拒绝。
它会自动修复我的依赖吗?
不会。它引导你完成各个步骤,改动由你或你的团队完成。
这适用于常规更新吗?
不适用。没有安全公告的常规更新,更适合作为普通的维护工作处理。
详情
作者的原始描述
[omh] Security event on the code already shipped -- a CVE in a dependency, a secret committed to the repo, a license question, an advisory: triage reachability and severity, contain in order, and never close a leaked secret before its rotation is observed. Use when the user says: security-event-response, security event response, cve, triage this cve, cve in our dependency, cve in a dependency, security advisory, dependabot alert.
repo: rlaope/oh-my-hermes
热度
- GitHub 星标
- 5.1k
- 排名
- #15162
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
omh-accessibility-audit
5.1k帮你的智能体检查某个界面或流程是否存在无障碍问题,例如键盘使用、屏幕阅读器标签、对比度和触控目标大小。
omh-adversarial-consensus
5.1k在你做出决定之前,帮你的智能体从几个独立角度质疑一个技术方案,然后总结哪些观点经得起推敲。
omh-agent-debug
5.1k帮你的智能体找出另一个 AI 智能体为何卡住、陷入循环或偏离任务,并提出最小且安全的恢复方法。
omh-agent-instructions
5.1k帮你的智能体编写或更新指令文件,例如 AGENTS.md 或 CLAUDE.md,告诉 AI 工具如何在项目中工作。