Composite rule set matching method and system
A rule and multi-mode matching technology, applied in the field of network information security, to reduce the number of repeated readings, improve the actual matching speed, and weaken the effect of independence
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2015-11-11
Smart Images
Figure 1 Figure 2
Abstract
Description
technical field
[0001] The invention relates to the field of network information security, in particular to a compound rule set matching method and system. Background technique
[0002] In network security, pattern matching is widely used in intrusion detection, content filtering, keyword retrieval and other fields. At this stage, due to the large network information flow and the rich content of information to be matched, the traditional single-mode and multi-mode matching cannot meet the needs well in many practical application fields. The demand for set matching problems such as "a given text needs to hit multiple feature strings at the same time, and these strings need to be compounded in a specific order" is increasing. The focus of research has changed from the traditional single-mode and multi-mode The study of matching shifts to more complex matching with compound rule sets.
[0003] At present, researchers' main research methods for compound rule matching include t...
Examples
Embodiment Construction
[0054] In order to facilitate the understanding of those skilled in the art, the present invention will be further described below in conjunction with the accompanying drawings, which cannot be used to limit the protection scope of the present invention.
[0055] The invention provides a composite rule matching method in which each sub-feature string is a partial order, which is suitable for the field of feature string matching such as network information security and text retrieval. The solution of the present invention first preprocesses the compound rule set, splits the compound rule set into two rule sets, one is a feature string rule set, each character string is obtained in the process of restoring the compound rule, and each Each feature string corresponds to a unique ID. The other is a set of regular expressions, each of which is formed by concatenating IDs corresponding to several feature strings with ".*". During the matching process, we use a two-round matching met...