draft-security-advisory

将漏洞报告转化为可发布的 GitHub 安全公告。

仓库最近推送
GitHub Stars
184
Forks
65
Issues / PRs
14

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "draft-security-advisory":https://skillpi.com/zh/skills/deepskill-81c8e6c4e1a9c0d60e1a531abc5f158fd1ac28a6a2d1dd4964b880e5592b567c。安装前核对上游来源和版本:https://github.com/frappe/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

将漏洞报告转化为可发布的 GitHub 安全公告。

0 下载

介绍来源: third_party · frappe · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: draft-security-advisory
description: Turn a vulnerability report into a publication-ready GitHub Security Advisory.
disable-model-invocation: true

GitHub Security Advisory Writer

Turn the vulnerability report the user provides into a publication-ready GitHub Security Advisory (GHSA): a terse two-section body, with the precision carried by GitHub's structured form fields.

Class, not instance

The advisory speaks at the level of the vulnerability class: the flaw class (SQL injection, SSTI, missing authorization), the broken or missing control, the feature area, the risk category. Everything at the level of the instance — function names, file paths, field names, endpoints, configuration keys, code snippets, payloads — stays out, so a reader can never work backwards from the advisory to the patched code path. A published advisory locates a flaw no more precisely than "certain endpoints", "a configuration field", "a certain page", "names of a few records" — match that register.

Title

Pick the established pattern that fits; when an earlier advisory for the same project covered the same class, reuse its title verbatim — repeated titles are house style, not a defect:

  • Injection flaws: Possibility of {class} due to missing validation
  • Authorization flaws: Unauthorised {action} due to missing validation (British spelling)
  • Outcome-led: {Outcome} via {class} — e.g. Account takeover via Reflected XSS
  • Feature-scoped: {Class} in {feature area} — a last resort, only when none of the patterns above fit; never to make a title unique, since identical titles across advisories are fine. Generalize the feature area so the exact feature stays unrevealed: name an umbrella surface one level broader than where the flaw sits (e.g. "portal pages", not the specific portal), never a module, screen, or record type.

Advisory body

Exactly two sections:

### Impact
{One or two sentences: where the flaw sits, at class level; what control
was missing; what the attacker gains and the minimum privilege needed.}

### Workarounds
No workaround available; upgrading is required.

Reuse the stock Impact sentence when the class has one:

  • SQL injection: "Some endpoints were vulnerable to SQL injection through specially crafted requests, which would allow a malicious actor to extract sensitive information."
  • Missing authorization: "Certain endpoints failed to enforce proper authorization checks, allowing users to modify data beyond their permitted role."

For other classes, write the sentence in the same register: "{Class} through {vague vector} allows {an authenticated user / a malicious user} to {capability}." Amend the Workarounds line only when a real workaround exists.

Form fields

After the body, list the values for GitHub's advisory form:

  • Ecosystem / package: the project's ecosystem and package name
  • Affected / patched versions: one row per currently supported release stream — ask the user which streams are supported if not stated in the report; affected < {first fixed release}, patched {first fixed release}
  • CVSS: v3.1 vector and score, derived from the rules below, with a one-sentence rationale for each non-obvious metric choice (PR, S, C, I)
  • Severity: the band the score falls in
  • CWE: the most specific id available
  • Credits: reporter(s) from the report as reporter; whoever authored the fix as remediation developer

That is the whole advisory: the body carries no summary, no root-cause walkthrough, and no proof of concept, and the CVE field stays empty — GitHub assigns one after publication. The report's PoC informs the CVSS metrics only.

Derivation rules

CVSS metrics, from the report:

  • AV — Network if reachable via web UI; Local if shell access is required.
  • AC — Low, unless the report describes a race condition, non-default setup, or hard-to-meet precondition.
  • PR — None if unauthenticated; Low for any authenticated user or common operational role; High for admin/superuser only.
  • UI — None, unless a victim must take an action.
  • S — Changed when the exploit reaches resources outside the attacker's own authorization scope (cross-tenant data, document types the role cannot normally access).
  • C — High if arbitrary sensitive records are readable; Medium if limited; None otherwise.
  • I — High for arbitrary writes or deletes; Low for constrained or incidental writes; None if read-only.
  • A — High if service disruption is possible; None otherwise.

CWE — the most specific available:

  • Template injection → CWE-1336
  • SQL injection → CWE-89
  • Missing authorization → CWE-862
  • Improper input validation → CWE-20
  • Code injection (generic) → CWE-94
  • Path traversal → CWE-22
  • XSS → CWE-79
  • SSRF → CWE-918
  • XXE → CWE-611

Severity bands from the CVSS base score: 9.0–10.0 Critical · 7.0–8.9 High · 4.0–6.9 Medium · 0.1–3.9 Low.

If the report supplies its own CVSS or CWE, validate it; where your analysis disagrees, use your analysis and note the discrepancy in one sentence.

Final check

Re-read the title and the Impact section. They must hold zero instance-level identifiers.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值90/100

亮点

  • 高价值/高频刚需:直接解决用户明确的核心任务痛点,显著提升日常高频场景的效率。
  • 针对 GitHub 安全公告的撰写需求,提供标准化、结构化的模板和规则。
触发精准90/100

亮点

  • 触发词精准完整,覆盖多种变体,边界清晰。
  • description 明确描述了 Skill 的功能,skill_body 中详细说明了适用场景、输出格式、字段填写规则等。
结构规范90/100

亮点

  • Phase/步骤清晰,有出口条件,含端到端示例,frontmatter完整,单文件≤500行。
  • 文档结构清晰,分为多个章节,每个部分都有明确的说明和示例。
执行可靠90/100

亮点

  • 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制。
  • 核心逻辑是基于用户提供的漏洞报告生成结构化的文本内容,参数和规则都在文档中明确说明,覆盖了主要的异常情况。
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。