Coder Social home page Coder Social logo

isenglab / llm4vulfix Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 2.0 133.72 MB

[2023 TDSC] Pre-trained Model-based Automated Software Vulnerability Repair: How Far are We?

Home Page: https://arxiv.org/abs/2308.12533

Python 98.56% Shell 1.44%
large-language-models program-repair vulnerability-repair

llm4vulfix's Introduction

Pre-trained Model-based Automated Software Vulnerability Repair: How Far are We?

How to set up the running environment

Please run the following commands to install the necessary packages for running the replication package.

pip install pipreqs
pipreqs /the/root/entry --encoding=utf-8 --force
pip install -r requirements.txt 

How to run the replication package

We created the folders according to the RQs we propose in our paper.

Each sub-folder contains a file named run.py. It contains the shell commands used for training and testing the corresponding model. To replicate the results of our paper, run the following commands:

cd /the entry you want
python run.py

If you want to reproduce the result rather than train the model from the scratch, you may access this link vulnerability to download the binary files we trained.

Noticed that the file named "bugfix_train.py" exceeds the file size limit of GitHub, you may also need to refer to the link above to download the data.

SCAN

SCAN is an abstraction tool we developed and employed in the experiment. We have already provided the jar executable file in the "data" folder. To run the abstraction, please run the following command.

java -jar cabs.jar source_input.c target_input.c source_output.c target_output.c map

Specific examples can be viewed in trans.py in the data folder.

The source code of SCAN is also available on GitHub https://github.com/QuanjunZhang/SCAN

llm4vulfix's People

Contributors

dio157128 avatar quanjunzhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

llm4vulfix's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.