一种静态代码分析方法、装置、电子设备及存储介质

By combining static analysis of abstract syntax trees, three-address codes, and regular expressions with AHP weight analysis, the problems of language dependency and high false positive rate in static code analysis are solved, achieving more accurate analysis results and higher security performance.

CN115828241BActive Publication Date: 2026-07-17BEIJING TOPSEC NETWORK SECURITY TECH +2

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING TOPSEC NETWORK SECURITY TECH
Filing Date
2022-12-01
Publication Date
2026-07-17

Smart Images

  • Figure CN115828241B_ABST
    Figure CN115828241B_ABST
Patent Text Reader

Abstract

本申请实施例提供一种静态代码分析方法、装置、电子设备及存储介质,其中,该方法包括:获取源码文件和正则表达式;对所述源码文件进行解析,得到抽象语法树、三地址码;根据抽象语法树静态分析方法对所述抽象语法树进行静态分析,得到第一漏洞;根据三地址码静态分析方法对所述三地址码进行静态分析,得到第二漏洞;根据所述正则表达式和正则表达式静态分析方法对所述源码文件进行静态分析,得到第三漏洞;分别对所述第一漏洞、第二漏洞和第三漏洞进行AHP权重分析,得到第一权重、第二权重和第三权重;根据所述第一权重、所述第二权重和所述第三权重生成静态代码分析结果。实施本申请实施例,可以降低误报率,提高静态代码分析报告的质量。
Need to check novelty before this filing date? Find Prior Art