security-kg
收藏资源简介:
安全知识图谱三元组数据集是一个综合性的网络安全数据集,包含来自15个权威来源(如ATT&CK、CAPEC、CWE、CVE等)的结构化数据,以主题-谓词-对象(SPO)三元组形式呈现。数据集规模介于1M到10M之间,涵盖企业、移动、ICS等多个配置,总三元组数超过1800万。每个三元组包含三个字符串字段:subject(实体ID)、predicate(属性或关系类型)和object(值或目标实体ID)。该数据集适用于知识图谱构建、图机器学习、威胁情报分析、漏洞优先级排序等场景,提供了丰富的实体属性和关系谓词,支持复杂的网络安全分析和自动化任务。
The Security Knowledge Graph Triple Dataset is a comprehensive cybersecurity dataset containing structured data from 15 authoritative sources such as ATT&CK, CAPEC, CWE, CVE, and others, presented in the form of Subject-Predicate-Object (SPO) triples. The dataset has a scale ranging from 1 million to 10 million, covers multiple configurations such as enterprise, mobile, industrial control systems (ICS), etc., with a total of more than 18 million triples. Each triple contains three string fields: subject (entity ID), predicate (attribute or relationship type), and object (value or target entity ID). This dataset is applicable to scenarios such as knowledge graph construction, graph machine learning, threat intelligence analysis, vulnerability prioritization and others, providing rich entity attributes and relational predicates to support complex cybersecurity analysis and automated tasks.
安全知识图谱三元组数据集概述
数据集基本信息
- 数据集名称: Security Knowledge Graph Triples (ATT&CK / CAPEC / CWE / CVE / CPE / D3FEND / ATLAS / CAR / ENGAGE / EPSS / KEV / Vulnrichment / GHSA / Sigma / ExploitDB)
- 数据集地址: https://huggingface.co/datasets/s0u9ata/security-kg
- 语言: 英语
- 许可证: Apache-2.0
- 任务类别: 图机器学习
- 标签: 知识图谱、网络安全、MITRE ATT&CK、CAPEC、CWE、CVE、CPE、D3FEND、ATLAS、CAR、ENGAGE、EPSS、KEV、Vulnrichment、GHSA、Sigma、ExploitDB、STIX、威胁情报、三元组
- 数据规模: 1M<n<10M
- 最后更新: 2026-04-04T14:46:34Z
数据集配置与规模
数据集提供19个独立的配置,每个配置对应一个数据源或组合。
| 配置名称 | 描述 | 预估三元组数量 | 状态 |
|---|---|---|---|
enterprise (默认) |
Enterprise ATT&CK | 42,041 | Current |
mobile |
Mobile ATT&CK | 5,307 | Current |
ics |
ICS ATT&CK | 3,756 | Current |
attack-all |
ATT&CK 组合(去重) | 49,622 | Current |
capec |
CAPEC 攻击模式 | 8,114 | Current |
cwe |
CWE 弱点 | 14,565 | Current |
cve |
CVE 漏洞 | 3,544,309 | Current |
cpe |
CPE 平台枚举 | 12,399,534 | Current |
d3fend |
D3FEND 防御技术 | 8,154 | Current |
atlas |
ATLAS AI/ML 技术 | 1,420 | Current |
car |
CAR 分析 | 1,617 | Current |
engage |
ENGAGE 对手参与 | 1,464 | Current |
epss |
EPSS 漏洞利用预测分数 | 649,650 | Current |
kev |
KEV 已知被利用漏洞 | 17,054 | Current |
vulnrichment |
CISA Vulnrichment (SSVC, CVSS, CWE 增强) | 656,207 | Current |
ghsa |
GitHub 安全公告 | 327,142 | Current |
sigma |
Sigma 检测规则 | 32,750 | Current |
exploitdb |
ExploitDB 公开漏洞利用 | 346,303 | Current |
combined |
所有来源合并(去重) | 18,057,905 | Current |
数据结构与模式
- 格式: 以 Parquet 格式存储的主语-谓语-宾语 (SPO) 三元组。
- 特征:
subject(字符串): 实体ID。predicate(字符串): 属性名或关系类型。object(字符串): 值或目标实体ID。
数据来源
数据集整合了来自15个网络安全数据源的信息:
- ATT&CK: https://attack.mitre.org/
- CAPEC: https://capec.mitre.org/
- CWE: https://cwe.mitre.org/
- CVE: https://www.cve.org/
- CPE: https://nvd.nist.gov/products/cpe
- D3FEND: https://d3fend.mitre.org/
- ATLAS: https://atlas.mitre.org/
- CAR: https://car.mitre.org/
- ENGAGE: https://engage.mitre.org/
- EPSS: https://www.first.org/epss/
- KEV: https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- Vulnrichment: https://github.com/cisagov/vulnrichment
- GHSA: https://github.com/github/advisory-database
- Sigma: https://github.com/SigmaHQ/sigma
- ExploitDB: https://gitlab.com/exploit-database/exploitdb
知识图谱结构概览
数据集构建了一个连接多个网络安全概念的知识图谱,核心关系路径如下:
Group/Campaign -> uses -> TECHNIQUE -> belongs-to-tactic -> Tactic TECHNIQUE 与 CAPEC、CWE、CVE、CPE、D3FEND、CAR、Sigma、ENGAGE、ATLAS 等实体通过多种关系(如 counters, detects, maps-to, related-weakness, affects-cpe)相互关联。 CVE 与 EPSS、KEV、GHSA、Vulnrichment、ExploitDB 等实体通过关系(如 epss-score, exploits-cve)连接。
主要谓语(关系/属性)类别
- ATT&CK 实体属性:
rdf:type,name,description,platform,domain,alias,is-subtechnique,belongs-to-tactic,shortname,url,created,modified。 - ATT&CK 关系谓语:
uses,mitigates,subtechnique-of,detects,attributed-to。 - CAPEC 谓语:
rdf:type,name,description,abstraction,status,likelihood,severity,child-of,related-weakness,maps-to-technique。 - CWE 谓语:
rdf:type,name,description,abstraction,status,likelihood-of-exploit,child-of,related-attack-pattern,platform,consequence-scope,consequence-impact,introduction-phase。 - CVE 谓语:
rdf:type,state,description,date-published,date-updated,assigner,vendor,product,affects-cpe,platform,related-weakness,cvss-base-score,cvss-severity。 - CPE 谓语:
rdf:type,part,vendor,product,version,title,created,modified。 - D3FEND 谓语:
rdf:type,name,definition,synonym,child-of,counters。 - ATLAS 谓语:
rdf:type,name,description,maturity,belongs-to-tactic,subtechnique-of,related-attack-technique,related-attack-tactic,uses-technique,mitigates。 - CAR 谓语:
rdf:type,title,description,platform,information-domain,analytic-type,detects-technique,detects-subtechnique,covers-tactic,maps-to-d3fend。 - ENGAGE 谓语:
rdf:type,name,description,engages-technique,exploits-vulnerability-of,addresses-vulnerability。 - EPSS 谓语:
epss-score,epss-percentile。 - KEV 谓语:
rdf:type,kev-vendor,kev-product,kev-name,kev-description,kev-date-added,kev-due-date,kev-required-action,kev-ransomware-use,related-weakness。 - Vulnrichment 谓语:
ssvc-exploitation,ssvc-automatable,ssvc-technical-impact,adp-cvss-base-score,adp-cvss-severity,adp-related-weakness,adp-affects-cpe。 - GHSA 谓语:
rdf:type,summary,date-published,date-modified,severity,related-cve,related-weakness,cvss-vector,affects-package,fixed-in:<pkg>。 - Sigma 谓语:
rdf:type,title,description,status,level,author,date,logsource-category,logsource-product,logsource-service,detects-technique,related-cve。 - ExploitDB 谓语:
rdf:type,description,date-published,author,exploit-type,platform,verified,exploits-cve。
数据集创建
- 转换管道: 源代码和完整文档位于 https://github.com/S0UGATA/security-kg。
- 过程: 下载源数据,提取实体属性三元组和关系三元组,并将其写入 Parquet 文件。
主要用途
- 知识图谱构建: 将三元组加载到 Neo4j、RDFLib 或 NetworkX 中进行图谱查询。
- 图机器学习: 在安全数据结构上训练图神经网络,用于链接预测等任务。
- RAG / LLM 落地: 将三元组作为结构化上下文,用于检索增强生成。
- 威胁情报: 查询组织、技术、漏洞和缓解措施之间的关系。
- 漏洞优先级排序: 结合 CVE、EPSS 和 KEV 数据进行基于风险的优先级排序。
- 安全自动化: 以编程方式将检测映射到技术和战术。




