Git Product home page Git Product logo

vulhcn's Introduction

VulHCN

This page includes the code and data used in the paper: Focus More on the Small Stuff: Hierarchical Attention-based Capsule Network for Robust Vulnerability Detection.

Instructions for code:

Ubuntu Linux22.04,Python3.10,clang15.0.7,llvm15.0.7,cmake15.0.7

torch1.12.1,graphviz2.38.0,networkx2.8.4,gensim4.3.0,numpy1.23.2

Contributions:

  1. We propose a novel greedy vulnerability-sensitive keywords selection approach to pinpoint highly suspicious vulnerable snippets and LLVM intermediate code-based representations to extract multi-dimensional and in-depth program features.
  2. We design and implement an automatic detection framework VulHCN, a hierarchical attention-based capsule network for vulnerability detection.
  3. We prepare a dataset of 57842 functions, including 21662 vulnerable functions and 36280 non-vulnerable functions. These vulnerabilities are from collected from SARD and NVD.

The design of VulHCN

step1. Parsing program source code into LLVM IR form and eliminating programs that cannot be transformed.

step2. Identifying greedy vulnerability-sensitive keywords.

step3. Slcing code lines.

step4. Formalization of intermediate code representation.

step5. Encoding intermediate code representations into vectors.

step6. Training the model.

If you are interested in our project, please contact [email protected] for more information. If you use our code and data in your work, please kindly cite our paper in your work.

Thank you.

vulhcn's People

Contributors

kyxbgmx avatar

Stargazers

jkjam avatar

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.