Files
vulnfeed/README.md

115 lines
6.0 KiB
Markdown
Raw Permalink Normal View History

# VulnFeed 高价值漏洞、安全公告采集与推送
2025-08-29 15:58:29 +08:00
VulnFeed 是一个用于收集和推送高价值漏洞和补丁公告信息的工具。它从多个数据源抓取漏洞和公告信息,并通过钉钉机器人进行推送。
2025-08-29 15:58:29 +08:00
## 数据源
当前抓取漏洞来源的站点的数据:
2025-08-29 15:58:29 +08:00
| 名称 | 地址 | 推送策略 |
| -------------------- | -------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| 阿里云漏洞库 | <https://avd.aliyun.com/high-risk/list> | 等级为高危或严重 |
| OSCS开源安全情报预警 | <https://www.oscs1024.com/cm> | 等级为高危或严重**并且**包含 `预警` 标签 |
| 知道创宇Seebug漏洞库 | <https://www.seebug.org/> | 等级为高危或严重 |
| CISA KEV | <https://www.cisa.gov/known-exploited-vulnerabilities-catalog> | 全部推送 |
| 奇安信威胁情报中心 | <https://ti.qianxin.com/> | 等级为高危严重**并且**包含 `奇安信CERT验证` `POC公开` `技术细节公布`标签之一 |
| 微步在线 | <https://x.threatbook.com/v5/vulIntelligence> | 等级为高危或严重 |
2025-09-23 16:57:55 +08:00
当抓取安全补丁公告的站点数据:
2025-10-23 18:05:24 +08:00
| 名称 | 地址 | 推送策略 |
| --------------------- | ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| 用友安全中心 | <https://security.yonyou.com/#/home> | 近三条数据 |
| 泛微ECOLOGY安全补丁包 | <https://www.weaver.com.cn/cs/securityDownload.html?src=cn> | "EC9.0全量补丁", "EC8.0全量补丁", "EC10.0安全补丁" |
| Smartbi安全补丁包 | <https://www.smartbi.com.cn/patchinfo> | 近三条数据 |
| 帆软安全漏洞声明 | <https://help.fanruan.com/finereport/doc-view-4833.html> | 近三条数据 |
| 致远安全补丁 | <https://service.seeyon.com/patchtools/tp.html#/patchList?type=%E5%AE%89%E5%85%A8%E8%A1%A5%E4%B8%81> | V5的近三条数据 |
| Vmware安全公告 | <https://support.broadcom.com/web/ecx/security-advisory?> | 近十条数据 |
| Oracle安全公告 | <https://www.oracle.com/cn/security-alerts/> | 近三条数据 |
| Firefox安全公告 | <https://www.mozilla.org/en-US/security/known-vulnerabilities/firefox/> | 近三条数据 |
| Apple安全公告 | <https://support.apple.com/zh-cn/100100> | 近十条数,不包含没有链接的据 |
| Grafana安全公告 | <https://grafana.com/tags/security/> | 第一页数据中以"Grafana security release" 或 "Grafana security update" 开头的公告 |
2025-08-29 17:29:23 +08:00
![app](./images/app.jpg)
![detail](./images/detail.jpg)
![plugin](./images/plugin.jpg)
![vuln_ding](./images/vuln_ding.jpg)
![notice_ding](./images/notice_ding.jpg)
2025-08-29 15:58:29 +08:00
## Features
- [x] 支持多数据源采集
- [x] 支持定时任务
- [x] 支持钉钉推送
- [x] 支持根据 CVE 号在`github`上检索近一年的相关代码仓库链接
2025-08-29 16:02:51 +08:00
- [x] 支持根据 CVE 号在 `nuclei` PR 记录检索相关记录链接
- [x] 支持重安全软件安全补丁公告
2025-08-29 15:58:29 +08:00
## 本地开发
### 安装 sqlx-cli
```bash
cargo install --version='~0.8' sqlx-cli --no-default-features --features rustls,postgres
```
### 启动数据库
```bash
chmod a+x ./scripts/init_db.sh
./scripts/init_db.sh
```
### 后端服务
创建初始化管理员密码
```bash
cargo run --bin vulnfeed create-super-user -c ./dev/config.toml -p "密码"
```
```bash
cargo run --bin vulnfeed server -c ./dev/config.toml
```
### 前端服务
```bash
cd assets && pnpm install
pnpm dev
```
## 服务部署
2025-08-29 16:02:51 +08:00
项目已经写好了 `Dockerfile``docker-compose.yml`, 可以本地构建服务镜像这里将前端代码打包到后端服务中不需要单独的Nginx服务。
2025-08-29 15:58:29 +08:00
```bash
docker build -t vulnfeed:latest .
docker save -o vulnfeed.tar vulnfeed:latest
```
将构建好的镜像在服务器上导入。
```bash
docker load -i vulnfeed.tar
```
服务器创建部署目录:
```bash
mkdir /data/vulnfeed/config -p
```
`dev/config.toml` 配置文件拷贝到 `/data/vulnfeed/config`
`docker-compose.yml` 拷贝到 `/data/vulnfeed/`
```bash
docker-compose up -d
docker exec CONTAINER_NAME /app/vulnfeed create-super-user -c /app/config.toml -p "密码"
2025-08-29 15:58:29 +08:00
```