Characteristic extraction method and device of character string, program product and electronic equipment

By identifying keywords and delimiters of multiple programming languages, and grouping them to generate score matrix according to context types, determining the target programming language and context types, the problem of character string feature extraction errors in the prior art is solved, and the computer system is improved Security.

CN119166864APending Publication Date: 2024-12-20HILLSTONE NETWORKS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411365386.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

When the prior art performs feature extraction of character strings written in interpreted programming languages, it is impossible to effectively identify separators and lexical rules of different programming languages, resulting in errors in word segmentation results, which in turn affects the security of the computer system.

Method used

Through the first rule, word segmentation is used to identify keywords and Q delimiters of N programming languages, and words are grouped according to M context types, score matrix is ​​generated, and target programming language and context types are determined, thereby performing Feature extraction.

Benefits of technology

Improve the accuracy of string feature extraction, avoid attackers from using wrong features to bypass security detection, and enhance system security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166864A_ABST
    Figure CN119166864A_ABST
Patent Text Reader

Abstract

The invention discloses a character string feature extraction method and device, a program product and electronic equipment, and relates to the technical field of data processing.The method comprises the steps that word segmentation is conducted on a character string according to a first rule to obtain L words, then the L words are grouped according to M context types corresponding to the character string to obtain M key grouping sets, and then the M key grouping sets are grouped according to M context types corresponding to the character string; a score matrix is generated on the basis of N programming languages and M key group sets, each score is used for representing the probability that a character string determined according to each key group set belongs to the corresponding programming language, a target programming language and a target context type are determined according to the maximum score in the score matrix, and finally the target programming language and the target context type are determined according to the maximum score in the score matrix. And performing feature extraction on the character string according to the target programming language and the target context type. According to the method and the device, the technical problem of low system security caused by feature extraction of character strings written by an interpreted programming language in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art