首页> 外国专利> System and method for automatically detecting a security vulnerability in a source code using a machine learning model

System and method for automatically detecting a security vulnerability in a source code using a machine learning model

机译:使用机器学习模型在源代码中自动检测安全漏洞的系统和方法

摘要

A method for (of) automatically detecting a security vulnerability in a source code using a machine learning model, characterized in that the method includes: obtaining the source code from a client codebase, wherein the client codebase is a complete or an incomplete body of the source code for a given software program or an application; and using a machine learning (ML) model to perform a ML based analysis on an abstract syntax tree (AST) for detecting a first security vulnerability over a static source code, the machine learning based analysis comprise (i) flattening the abstract syntax tree (AST) into a sequence of structured tokens, wherein the sequence of structured tokens includes a semantic structure and a syntactic structure of the source code, (ii) implementing a natural language processing technique on the sequence of structured tokens for mapping the sequence of structured tokens to one or more integers, (iii) pre-training the machine learning model using an unlabeled source code as an input to predict a subsequent sub-token in the sequence of structured tokens and (iv) training the machine learning model on a labeled source code to predict a presence or an absence of the first security vulnerability.
机译:使用机器学习模型在源代码中自动检测安全漏洞的方法,其特征在于该方法包括:从客户端代码库获取源代码,其中客户端代码库是一个完整的或不完整的身体给定软件程序或应用程序的源代码;并使用机器学习(ML)模型对抽象语法树(AST)进行基于ML的分析,用于通过静态源代码检测第一安全漏洞,基于机器学习的分析包括(i)展平抽象语法树( AST)进入一系列结构令牌,其中结构令牌的序列包括语义结构和源代码的句法结构,(ii)在结构化令牌序列上实现自然语言处理技术,用于映射结构化令牌的序列到一个或多个整数,(iii)使用未标记的源代码作为输入来预先训练机器学习模型,以预测结构化令牌和(iv)序列中的后续子令牌训练在标记的源上的机器学习模型代码预测存在或不存在第一个安全漏洞。

著录项

  • 公开/公告号GB2587820B

    专利类型

  • 公开/公告日2022-01-19

    原文格式PDF

  • 申请/专利权人 PRAETORIAN;

    申请/专利号GB20190017161

  • 发明设计人 JEFF OLSON;MATTHEW KINDY II;

    申请日2019-11-26

  • 分类号G06F21/57;G06F21/56;G06N3/08;

  • 国家 GB

  • 入库时间 2022-08-24 23:27:53

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号