Skip to content

iSE-UET-VNU/COSTA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COSTA

This repository provides the code for Context-based Statement-Level Vulnerability Localization.

About dataset

To download the testing dataset used for evaluation in our experiments, run the following commands:

gdown https://drive.google.com/uc?id=1ZGIdzKdlzyjX7wSJbP0AfMf5BFovRv1g

To download the training and validation dataset used for evaluation in our experiments, run the following commands:

gdown https://drive.google.com/uc?id=1dvvZeynTCNdLSBdX7H3wEnRKIZWyILlv
gdow https://drive.google.com/uc?id=11pyuNbkop_5uk10uAoNr4__Tpww65HXb

For more information of our dataset, please refer to LineVul and Big-Vul.

Train and test the vulnerability localization models

We provide python source code for training and testing the vulnerability localization models. The source files can be found here. We recommend to use Google Colab to execute the Jupiter notebook COSTA.ipynb.

Please modify hyper-parameters such as batch_size, epoch, vector_length, etc. to fit your own experiments.

Anlyze source code to obtain contexts

We use Joern to analyze source code. The python script for reading CPG nodes and edges can be found here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •