跳到正文
Skillpedia
安全25k · #10063

security-architect

它能做什么

这个技能指导你的 AI 对 C++ 的某个区域进行高层次的安全审查,提供建议而不是修改代码。适合希望规划安全改进的工程师。

适用场景

  • ✓当你想对某个 C++ 组件或区域进行安全架构审查时。
  • ✓当你需要一份简短的、附带风险说明的切实安全改进清单时。
  • ✓当你想知道哪些接口可能导致所有权或生命周期问题时。

技能链接

https://github.com/chromium/chromium/blob/main/agents/skills/security-architect/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/chromium/chromium/blob/main/agents/skills/security-architect/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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:
    1. Avoid handling it in the browser process at all.
    2. Rewrite the handling to be safe (by doing it in Rust).
    3. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能