claudios/VulDeePecker
收藏资源简介:
--- arxiv: 1801.01681 dataset_info: features: - name: functionSource dtype: string - name: fName dtype: string - name: oriFile dtype: string - name: startEndLine dtype: string - name: label dtype: int64 - name: vulLine dtype: int64 - name: cwe dtype: string splits: - name: train num_bytes: 114905147 num_examples: 128118 - name: validation num_bytes: 14289221 num_examples: 16015 - name: test num_bytes: 14618528 num_examples: 16015 download_size: 52698659 dataset_size: 143812896 configs: - config_name: default data_files: - split: train path: data/train-* - split: validation path: data/validation-* - split: test path: data/test-* task_categories: - text-classification tags: - code --- This is an unofficial HuggingFace version of "[VulDeePecker: A Deep Learning-Based System for Vulnerability Detection ](https://arxiv.org/abs/1801.01681)" dataset. *** Database of "VulDeePecker: A Deep Learning-Based System for Vulnerability Detection" (NDSS'18) *** Code Gadget Database (CGD) focuses on two types of vulnerabilities in C/C++ programs, buffer error vulnerability (CWE-119) and resource management error vulnerability (CWE-399). Each code gadget is composed of a number of program statements (i.e., lines of code), which are related to each other according to the data flow associated to the arguments of some library/API function calls. Based on the National Vulnerability Database (NVD) and the NIST Software Assurance Reference Dataset (SARD) project, we collect 520 open source software program files with corresponding diff files and 8,122 test cases for the buffer error vulnerability, and 320 open source software program files with corresponding diff files and 1,729 test cases for the resource management error vulnerability. In total, the CGD database contains 61,638 code gadgets, including 17,725 code gadgets that are vulnerable and 43,913 code gadgets that are not vulnerable. Among the 17,725 code gadgets that vulnerable, 10,440 corresponds to buffer error vulnerabilities and the rest 7,285 corresponds to resource management error vulnerabilities.
arxiv: 1801.01681 数据集信息: 特征: - 名称:functionSource,数据类型:字符串 - 名称:fName,数据类型:字符串 - 名称:oriFile,数据类型:字符串 - 名称:startEndLine,数据类型:字符串 - 名称:label,数据类型:64位整数 - 名称:vulLine,数据类型:64位整数 - 名称:cwe,数据类型:字符串 数据集划分: - 名称:train(训练集),字节数:114905147,样本数量:128118 - 名称:validation(验证集),字节数:14289221,样本数量:16015 - 名称:test(测试集),字节数:14618528,样本数量:16015 下载大小:52698659,数据集总大小:143812896 配置项: - 配置名称:default,数据文件: - 训练集:data/train-* - 验证集:data/validation-* - 测试集:data/test-* 任务类别:文本分类 标签:代码 本仓库为《VulDeePecker:一种基于深度学习的漏洞检测系统》(https://arxiv.org/abs/1801.01681)数据集的非官方HuggingFace版本。 *** 《VulDeePecker:一种基于深度学习的漏洞检测系统》(NDSS'18)数据集 *** 代码片段数据库(Code Gadget Database, CGD)聚焦C/C++程序中的两类漏洞:缓冲区错误漏洞(CWE-119)与资源管理错误漏洞(CWE-399)。每个代码片段由若干程序语句(即代码行)组成,这些语句依据与特定库/应用程序编程接口(Application Programming Interface, API)函数调用参数相关联的数据流彼此关联。 本数据集基于美国国家漏洞数据库(National Vulnerability Database, NVD)以及美国国家标准与技术研究院(NIST)软件保障参考数据集(Software Assurance Reference Dataset, SARD)项目构建:针对缓冲区错误漏洞,我们收集了520个带对应差异文件的开源软件程序文件与8122个测试用例;针对资源管理错误漏洞,收集了320个带对应差异文件的开源软件程序文件与1729个测试用例。 CGD数据库总计包含61638个代码片段,其中17725个为存在漏洞的代码片段,剩余43913个为无漏洞代码片段。在17725个存在漏洞的代码片段中,10440个对应缓冲区错误漏洞,其余7285个对应资源管理错误漏洞。
数据集概述
数据集信息
-
特征列表:
functionSource: 字符串类型fName: 字符串类型oriFile: 字符串类型startEndLine: 字符串类型label: 整数类型vulLine: 整数类型cwe: 字符串类型
-
数据分割:
train: 字节数为114905147,样本数为128118validation: 字节数为14289221,样本数为16015test: 字节数为14618528,样本数为16015
-
数据大小:
- 下载大小: 52698659字节
- 数据集大小: 143812896字节
配置信息
- 默认配置:
train数据文件路径:data/train-*validation数据文件路径:data/validation-*test数据文件路径:data/test-*
任务类别
- 文本分类
标签
- 代码
数据集内容
- 数据集关注C/C++程序中的两种漏洞类型:缓冲区错误漏洞(CWE-119)和资源管理错误漏洞(CWE-399)。
- 基于国家漏洞数据库(NVD)和NIST软件保证参考数据集(SARD)项目,收集了520个开源软件程序文件及其对应的diff文件和8122个缓冲区错误漏洞测试用例,以及320个开源软件程序文件及其对应的diff文件和1729个资源管理错误漏洞测试用例。
- 总共包含61638个代码片段,其中17725个是易受攻击的,43913个是不易受攻击的。在17725个易受攻击的代码片段中,10440个对应于缓冲区错误漏洞,其余7285个对应于资源管理错误漏洞。




