Cve Daily logo

Cve Daily

Community
easychen
cve-daily

每天核对新公布的 CVE 与自有服务器组件版本,判断哪些真的影响、哪些已修,并把结论推送到微信(Server 酱)。默认增量模式只看当天新增,速度快;历史回填和全量重算需要显式确认。当用户想订阅 CVE 情报、做漏洞影响评估、定期巡检服务器组件版本时使用。

Overview

Publishereasychen
Repositoryskills
Skill namecve-daily
Stars
28
Forks
1
Bundled files
8
LicenseAGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by easychen on GitHub. Read the source before you install it.

Installation

Install the Cve Daily AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/easychen/skills/tree/main/cve-daily
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/easychen/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/cve-daily .claude/skills/cve-daily
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cve Daily in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cve Daily on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cve Daily is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

CVE 日报 · 服务器漏洞影响核对

把「今天新公布的 CVE」和「你机器上真实的组件版本」对上,输出一份人话版风险清单: 哪个组件、几台机器、会不会被利用、修没修、要做什么。结论推到微信。

数据源不需要你配任何 key:CVE 官方公开增量 + CISA KEV + FIRST EPSS + 发行版公告。

它解决什么问题

每天新增 600~900 条 CVE,人不可能读完;而真正跟你有关的通常只有个位数。 这个 skill 做三件事:

  1. 过滤:只保留命中你资产清单的 CVE;
  2. 判定:用 CNA 登记的版本区间 + 发行版修复版本,判断「受影响 / 已修 / 不适用 / 待确认」;
  3. 排序:KEV(已在野利用)> EPSS(利用概率)> CVSS。

快速开始(3 步)

bash
# 1. 建立资产清单(照着示例改,删掉你没有的组件)
cp <skill>/examples/assets.example.json assets.json

# 2. 采集本机版本(只读,不装任何东西)
python3 <skill>/scripts/collect_local.py

# 3. 增量检查(默认,约 1 分钟)
python3 <skill>/scripts/cve_daily.py

输出:reports/YYYY-MM-DD.md,同时写入本地库 cve.db。

推送前:确认 Server 酱 Key

如果 SERVERCHAN_SENDKEY 没配置,脚本会打印配置指引并跳过推送,不会报错。 需要推送时,按下面引导用户:

  1. 打开 https://sct.ftqq.com(Turbo)或 https://sc3.ft07.com(Server酱³),微信扫码登录;
  2. 复制 SendKey(Turbo 形如 SCTxxxxxx,SC3 形如 sctp<数字>t<token>);
  3. 写入运行目录的 .env(脚本会自动读取):
bash
echo 'SERVERCHAN_SENDKEY=SCTxxxxxxxx' > .env && chmod 600 .env

不要把 SendKey 写进命令行、日志或仓库。.env 已列在 .gitignore。

然后 python3 cve_daily.py --push 即可。也可以把它挂到 cron,每天固定时间推一条。

两种模式:默认增量,全量要确认

模式命令耗时说明
增量(默认)cve_daily.py~1 分钟只判定当天新增的 CVE;往期未修的从本地库列出
时间窗cve_daily.py --hours 72~1-2 分钟补看过去几天
全量(慎用)cve_daily.py --full --yes几分钟起,随库增长变慢库里所有 CVE 对当前清单重算
历史回填backfill.py --yes5~15 分钟按 CPE 从 NVD 拉历史 CVE,一次性

规则:默认只用增量。 只有这两种情况才建议开全量,并且必须先跟用户确认:

  • 新接入一台机器 / 一批组件(需要拿历史 CVE 跟它比一遍);
  • 怀疑本地库和实际情况不一致。

没有 --yes 时全量模式会交互确认;非交互环境直接拒绝执行。 历史回填同理,会先提示耗时再要求确认。

资产清单怎么写

assets.json 是这套东西的全部知识。每个组件:

字段作用
products匹配 CNA 填的 product 字段(小写,短词要准)
cpe历史回填时按 NVD CPE 精确拉取
aliasesCVE 没填 affected 时的描述兜底(< 6 字符忽略)
version留空 = 只提示;填了才能判定(用 collect_local.py 自动填更好)
aggregatetrue = 内核/发行版这类批量组件,只计数不逐条报
image_basedtrue = 跑在容器里,宿主机版本不可信,需 manual_version
mitigation缓解措施,会显示在报告里(如「仅密钥访问」)
check报告里展示的核对命令

新增组件就是加一条 JSON,不改代码。

判定逻辑(重要,决定你会不会被误报)

CNA 版本区间 → 发行版修复版本 → 人工评估登记
  • 已修复:Ubuntu 的 Fixed in 版本 ≤ 机器上的包版本(注意:发行版会回移补丁, 上游版本号 8.3.6 可能已经修好了 8.3.36 才能修的问题,只比上游版本会误报);
  • 不适用:环境不满足前提(例:只影响 musl + 无 PAM 的 sshd,而你是 glibc + PAM);
  • 需按发行版复核:历史 CVE 且是发行版包,没做回移校验,不直接报「要修」;
  • 人工评估 写在 assessments.json:not_affected / fixed / accepted / mitigated。 改了这里,日报就不会再重复报同一条。

常见坑(都踩过)

  1. cve.org/rss 是假的:返回 200 但是 SPA 首页 HTML。判断 feed 要看 Content-Type。
  2. NVD 不能当主轴:实测近 7 天新 CVE 只有约 13% 完成分析、13% 有 CPE, 所以本 skill 用 CVE 官方每小时增量包(含 CNA 版本区间)。
  3. 发行版回移补丁:见上,必须用 USN / apt changelog 复核。
  4. 容器里的组件版本 ≠ 宿主机版本:image_based: true + manual_version。
  5. 备份文件:/root/xxx.bak 这类不算运行中组件,采集时会跳过。
  6. 别扫 macOS/Windows 的内核:本 skill 面向 Linux 服务器。

多机部署

collect_local.py 只采本机。多机有两种做法:

  • 每台机器跑一次 collect_local.py,把 inventory.json 合并(hosts 字典按主机名合并);
  • 或自己写 SSH 采集,产出同样的 inventory.json 结构:
json
{"hosts": {"web-1": {"versions": {"openssh": "9.6p1"}, "pkgs": {"openssh-server": "1:9.6p1-3ubuntu13.20"},
                    "codename": "noble", "gobins": []}}}

codename 用于查 Ubuntu 的修复版本,取 /etc/os-release 的 VERSION_CODENAME。

定时推送

cron
0 10 * * * cd /path/to/project && /usr/bin/python3 /path/to/skill/scripts/cve_daily.py --push >> cron.log 2>&1

文件

文件说明
scripts/cve_daily.py主程序:拉取 → 匹配 → 判定 → 报告 → 推送
scripts/collect_local.py本机版本采集
scripts/backfill.py历史回填(一次性,需确认)
scripts/store.pySQLite 持久层
examples/assets.example.json资产清单模板
references/sources.md情报源实测对比
references/design.md设计取舍与踩坑记录

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Cve Daily AI skill do?

每天核对新公布的 CVE 与自有服务器组件版本,判断哪些真的影响、哪些已修,并把结论推送到微信(Server 酱)。默认增量模式只看当天新增,速度快;历史回填和全量重算需要显式确认。当用户想订阅 CVE 情报、做漏洞影响评估、定期巡检服务器组件版本时使用。

Why use Cve Daily on TypingMind?

Because you install it once and use it with any model. Cve Daily is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cve Daily in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/easychen/skills/tree/main/cve-daily. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Cve Daily?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cve Daily?

As many as you like. As long as a model supports skills, you can use Cve Daily with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cve Daily AI skill free?

Yes. It is published on GitHub by easychen under the AGPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇