security-architect
它能做什么
这个技能指导你的 AI 对 C++ 的某个区域进行高层次的安全审查,提供建议而不是修改代码。适合希望规划安全改进的工程师。
适用场景
- ✓当你想对某个 C++ 组件或区域进行安全架构审查时。
- ✓当你需要一份简短的、附带风险说明的切实安全改进清单时。
- ✓当你想知道哪些接口可能导致所有权或生命周期问题时。
技能链接
https://github.com/chromium/chromium/blob/main/agents/skills/security-architect/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“能审查这个 C++ 组件的安全设计,并提出最多五项改进建议吗?”
每周 5 个新技能,1 分钟读完。
工作原理
AI 读取目标区域,撰写一份最多包含五条建议的报告。每条建议都包括如何实现、对使用该代码的用户的影响,以及风险。它不会修改任何代码。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
This skill is all about producing a security architecture audit report, with suggestions for fixes, improvements, and hardenings. Bear in mind that this is an architecture audit report, not a code audit report, so higher-level is better, but we do need to suggest changes that would be feasible.
Writing A Good Report
Lay out at most five improvements you can see to make to the security of the target area. Interface and implementation improvements are both good. For each improvement, give:
- A sketch of how to implement it
- Your assessment of how much impact it would have (if any) on clients of any interfaces you're changing
- Any risks or downsides you see to doing it
Don't make any actual code changes - you're just writing a report.
Interface guidance
- Many security problems are caused by lifetime misunderstandings at interfaces so interfaces should prioritize clean transfer of ownership and simple ownership models.
- Interfaces should use spans in preference to (pointer, length) pairs.
- Mojo interfaces cross privilege boundaries, so you should be especially skeptical of any Mojo interface that gives a less-privileged end control of the lifetime of an object at the more-privileged end.
- Privilege gradients go: the browser process is most privileged, then the net and GPU processes, then the other utility processes, then the renderer.
Implementation guidance
- Try hard to obey the Rule of Two: untrusted data may not be handled in unsafe
ways in the browser process. In priority order:
- Avoid handling it in the browser process at all.
- Rewrite the handling to be safe (by doing it in Rust).
- Do the handling in a sandboxed helper process that the browser IPCs to.
常见问题
这个技能会修改我的代码吗?
不会。技能只撰写带有建议的报告,不会进行代码修改。
它适用于其他语言吗?
技能说明它只对 C++ 代码有用。其他语言需要不同的方法。
它主要查找哪些问题?
主要查找对象所有权不清晰、接口存在风险,以及信任度较低的代码可以控制信任度较高的代码的地方。
详情
作者的原始描述
Skill for assessing security architecture and suggesting improvements. - This skill is only useful for C++ code.
repo: chromium/chromium
热度
- GitHub 星标
- 25k
- 排名
- #10063
- 许可证
- BSD-3-Clause
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
fuzzing
25k帮你的智能体编写模糊测试,向代码输入大量随机数据,以找出 C++ 代码中的崩溃和错误。
gn-deps-debugging
25k帮你的智能体修复 GN 构建文件中因依赖缺失或错误而导致的构建错误,且不添加范围过大、不必要的依赖。
java-memory-leaks
25k帮你的智能体通过读取 LeakCanary 的泄漏报告,查找并修复 Android 应用中的 Java 内存泄漏。
jni-type-conversion
25k帮你的智能体用更简单的 @JniType 注解,替换 Android 代码中手动的 Java 到 C++ 转换代码。