VulCNN: An Image-inspired Scalable Vulnerability Detection System论文总结

该博客主要介绍了四个阶段:图形提取,句子嵌入,图像生成和分类。在图形提取阶段,通过静态分析函数源码得到程序依赖图。接着,将代码行视为句子并转化为固定长度向量。在图像生成步骤中,利用中心性分析重置向量,形成反映句子重要性的图像。最后,通过训练卷积神经网络模型对生成的图像进行漏洞检测。
摘要由CSDN通过智能技术生成

->notion文章地址

Main Phases

Graph Extraction, Sentence Embedding, Image Generation, Classification

1. Graph Extraction

Main idea: normalize the source code of a function, and perform static analysis to extract the PDG ****of the function.

2. Sentence Embedding

Main idea: regard a line of code as a sentence and embed them into a fixed-length vector.

3. Image Generation

Main idea: After sentence embedding, apply centrality analysis to reset vector, which can reflect the difference between importance of sencences(or node of graph). use three centralities to correspond to the three channels of images and form the image.

4. Classification

Main idea: train a CNN model to detect the gerenated image to detect vulnerability.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值