[go: up one dir, main page]

CN100459579C - Detection method of super-long signaling message based on text coding - Google Patents

Detection method of super-long signaling message based on text coding Download PDF

Info

Publication number
CN100459579C
CN100459579C CNB2005101208915A CN200510120891A CN100459579C CN 100459579 C CN100459579 C CN 100459579C CN B2005101208915 A CNB2005101208915 A CN B2005101208915A CN 200510120891 A CN200510120891 A CN 200510120891A CN 100459579 C CN100459579 C CN 100459579C
Authority
CN
China
Prior art keywords
feature
message
separator
detection
signaling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2005101208915A
Other languages
Chinese (zh)
Other versions
CN1852245A (en
Inventor
刘利锋
郑志彬
赵凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2005101208915A priority Critical patent/CN100459579C/en
Publication of CN1852245A publication Critical patent/CN1852245A/en
Application granted granted Critical
Publication of CN100459579C publication Critical patent/CN100459579C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种基于文本编码的超长信令报文的检测方法,包括以下步骤:B1)根据文本编码的信令协议构造基于特征分隔符的超长报文识别函数;B2)对收到的信令报文用识别函数识别是否为超长报文;B3)如属于超长报文则将其过滤,否则继续其它处理。识别函数包括表示两个特征分隔符之间允许的最大间距的特征间距表以及两个特征分隔符是否允许连续重复出现的特征分隔符约束关系表。这种超长信令报文检测方法,可以用软件实现,也可以采用硬件实现,用于在网络入口处实施超长报文检测。本发明提供的方法适用于所有文本型信令报文的出现超长报文的检测,对不同的文本信令协议,只需对特征间距表和特征分隔符约束关系表进行更换调整相应的参数即可,从而有效防止黑客的攻击和破坏,保证网络服务的正常运行。

Figure 200510120891

A kind of detection method based on the superlong signaling message of text coding, comprises the following steps: B1) constructs the superlong message recognition function based on characteristic delimiter according to the signaling agreement of text coding; B2) to the signaling that receives Use the identification function to identify whether the message is a super long message; B3) filter it if it belongs to a super long message, otherwise continue other processing. The identification function includes a feature distance table indicating the maximum space allowed between two feature separators and a feature separator constraint relationship table indicating whether two feature separators allow continuous repetition. This super-long signaling message detection method can be realized by software or hardware, and is used for super-long message detection at the entrance of the network. The method provided by the invention is applicable to the detection of super-long messages in all text-type signaling messages. For different text signaling protocols, it is only necessary to replace and adjust the corresponding parameters of the feature distance table and the feature separator constraint relationship table. That is, so as to effectively prevent hackers from attacking and destroying, and ensure the normal operation of network services.

Figure 200510120891

Description

基于文本编码的超长信令报文的检测方法 Detection method of super-long signaling message based on text coding

技术领域 technical field

本发明涉及网络信息处理技术,具体涉及一种基于文本编码的超长信令报文的检测方法。The invention relates to network information processing technology, in particular to a method for detecting super-long signaling messages based on text coding.

背景技术 Background technique

随着网络融合趋势的不断增强,以IMS(IP Multimedia Subsystem的缩写,指IP多媒体子系统)为核心的下一代网络技术在为人们带来灵活便利的网络服务的同时,下一代网络的安全问题已经成为业界关注的重点。网络边界的安全是整个网络安全的基础。下一代网络是一个融合的网络,支持用户的随时、随地的接入,因此边界安全尤其重要。由于下一代网络出现比较晚,目前还没有专门的下一代网络入侵检测工具,尤其是针对信令报文的检测。在下一代网络中,会话初始协议(以下缩写为SIP)、媒体网关控制协议(以下缩写为MGCP)和会话描述协议(以下缩写SDP)等信令协议都是基于文本编码的,很容易受到异常数据包的攻击。在异常数据包攻击中,超长数据包是最常用的方法和最显著的特征。攻击者向对方服务器发送大量的超长数据包,其目的是造成服务器解析错误或缓冲区溢出,导致服务器端出现一个致命错误,或出现死机、或者服务器突然重新启动等症状。下面一个超长畸形报文的样例:With the increasing trend of network convergence, the next-generation network technology with IMS (abbreviation for IP Multimedia Subsystem, referring to IP Multimedia Subsystem) as the core will bring flexible and convenient network services to people, while the security issues of next-generation networks It has become the focus of the industry's attention. The security of the network border is the foundation of the entire network security. The next-generation network is a converged network that supports users' access anytime and anywhere, so border security is particularly important. Since the next-generation network appears relatively late, there is no special next-generation network intrusion detection tool, especially for the detection of signaling packets. In next-generation networks, signaling protocols such as Session Initiation Protocol (hereinafter abbreviated as SIP), Media Gateway Control Protocol (hereinafter abbreviated as MGCP) and Session Description Protocol (hereinafter abbreviated as SDP) are all based on text encoding and are vulnerable to anomalies. packet attack. In the abnormal data packet attack, the super long data packet is the most commonly used method and the most prominent feature. The attacker sends a large number of overlong data packets to the other server, with the purpose of causing server parsing errors or buffer overflows, resulting in a fatal error on the server side, or crashes, or sudden restarts of the server and other symptoms. The following is an example of an overlong malformed packet:

INVITE sip:bob@biloxi.comINVITE sip: bob@biloxi.com

SIP/2.0000000000000000000000000000000000000000000000000000000000000000000000000 SIP/2.0 000000000000000000000000000000000000000000000000000000000000000000000000

0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

          Via:SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bK776asdhds  Via: SIP/2.0/UDP pc33.atlanta.com; branch=z9hG4bK776asdhds

          Max-Forwards:70Max-Forwards: 70

          To:Bob<sip:bob@biloxi.com>  To: Bob<sip: bob@biloxi.com>

          From:Alice<sip:alice@atlanta.com>;tag=1928301774From: Alice<sip: alice@atlanta.com>; tag=1928301774

          Call-ID:a84b4c76e66710@pc33.atlanta.com      Call-ID: a84b4c76e66710@pc33.atlanta.com

          CSeq:314159 INVITECSeq: 314159 INVITE

          Contact:<sip:alice@pc33.atlanta.com>Contact: <sip: alice@pc33.atlanta.com>

          Content-Type:application/sdp  Content-Type: application/sdp

          Content-Length:142 Content-Length: 142

其中,下划线部分为本信令的超长部分,毫无疑问,这种超长报文信令进入系统后可能造成网络效率降低以至不能正常工作,而对到来的信令报文进行有效的检测是阻止这种畸形报文入侵的有效良方,现有技术还不能提供阻止这种恶意的超长畸形报文的技术,给下一代网络的边际安全带来诸多隐患。Among them, the underlined part is the super-long part of this signaling. There is no doubt that this kind of super-long message signaling may cause the network efficiency to decrease and fail to work normally after entering the system, and the incoming signaling message is effectively detected. It is an effective way to prevent the intrusion of such malformed packets, and the prior art cannot provide the technology to prevent such malicious ultra-long malformed packets, which brings many hidden dangers to the marginal security of the next generation network.

发明内容 Contents of the invention

本发明要解决的技术问题在于,针对黑客使用超长数据包攻击,提出了一种网络超长信令报文的检测方法,能够有效地将畸形报文阻止在网络边际外,换言之,本发明的目的在于,如何在分析总结超长数据包特征的基础上,提出一种识别和处理信令报文中的超长报文的方法。The technical problem to be solved by the present invention is to propose a method for detecting network super-long signaling messages against hackers using super-long data packets, which can effectively prevent malformed messages from the edge of the network. In other words, the present invention The purpose of the present invention is how to propose a method for identifying and processing the extra-long message in the signaling message on the basis of analyzing and summarizing the characteristics of the extra-long data packet.

本发明上述技术问题这样解决,构造一种基于文本编码的超长信令报文的检测方法,包括以下步骤:The above-mentioned technical problem of the present invention is solved like this, constructs a kind of detection method based on the superlong signaling message of text coding, comprises the following steps:

A、接收信令报文,判断所述信令报文中两个相邻的特征分隔符的间距或相邻关系是否与超长报文识别函数中对应的参数相符,所述超长报文识别函数基于特征分隔符生成,所述参数包括任意两个特征分隔符的最大间距或不允许的相邻关系;A. Receive a signaling message, and judge whether the spacing or adjacent relationship between two adjacent feature separators in the signaling message matches the corresponding parameters in the super-long message identification function, and the super-long message The recognition function is generated based on the feature separator, and the parameters include the maximum distance between any two feature separators or the adjacent relationship that is not allowed;

B、如果相符,判断所述信令报文为超长报文;B. If they match, it is judged that the signaling message is an overlong message;

C、将所述超长报文过滤处理。C. Filtering and processing the overlong message.

在按照本发明提供的上述检测方法中,所述超长报文识别函数具体为特征间距表,所述特征间距表包括任意两个特征分隔符的最大间距,步骤A具体为:接收信令报文,判断所述信令报文中两个相邻的特征分隔符的间距是否大于所述最大间距。In the above detection method provided according to the present invention, the ultra-long message identification function is specifically a feature distance table, and the feature distance table includes the maximum distance between any two feature separators, and step A is specifically: receiving a signaling message text, judging whether the distance between two adjacent feature delimiters in the signaling message is greater than the maximum distance.

在按照本发明提供的上述检测方法中,所述超长报文识别函数具体为特征分隔符约束关系表,所述特征分隔符约束关系表包括任意两个特征分隔符不允许的相邻关系,步骤A具体为:接收信令报文,判断所述信令报文中两个相邻的特征分隔符的相邻关系是否是不允许的。In the above detection method provided according to the present invention, the ultra-long message identification function is specifically a feature separator constraint relationship table, and the feature separator constraint relationship table includes adjacent relationships that are not allowed by any two feature separators, Step A specifically includes: receiving a signaling message, and judging whether the adjacency relationship between two adjacent feature separators in the signaling message is not allowed.

在按照本发明提供的上述检测方法中,所述步骤A和B具体为步骤B23,所述步骤B23对每一个以回车换行符结束的行执行以下步骤:In the above-mentioned detection method provided according to the present invention, said steps A and B are specifically step B23, and said step B23 performs the following steps on each line ending with a carriage return and line feed character:

B231)提取本行的第一个特征分隔符S1和其后的一个特征分隔符S2;B231) Extract the first feature separator S1 and a subsequent feature separator S2 of this line;

B232)在已提取的特征分隔符S1、S2基础上,形成五元组(S1、F1、D、S2、F2),其中,F1是紧跟该第一个特征分隔符S1的第一个字符;D是两个特征分隔符S1与S2之间的特征间距;F2是第二个特征分隔符S2后紧跟的第一个字符;B232) On the basis of the extracted feature separator S1, S2, form a five-tuple (S1, F1, D, S2, F2), wherein, F1 is the first character following the first feature separator S1 ;D is the feature spacing between two feature separators S1 and S2; F2 is the first character immediately following the second feature separator S2;

B233)对五元组(S1、F1、D、S2、F2)进行三项检测:如果F1是特征分隔符检测S1和F1的相邻关系是否是满足属于所述特征分隔符约束关系表中不允许的;如果F2是特征分隔符,检测S2和F2的相邻关系是否是满足所述特征分隔符约束关系表中不允许的;检测特征间距D是否满足大于所述特征间距表中规定的S1和S2之间的最大间距;如果三项检测中有任何一项条件满足,则确认该报文是超长报文并退出,否则,执行步骤B234);B233) Carry out three detections to quintuple (S1, F1, D, S2, F2): if F1 is the adjacent relationship of feature separator detection S1 and F1 is to satisfy the not in the constraint relationship table belonging to the feature separator Allowed; if F2 is a feature separator, check whether the adjacent relationship between S2 and F2 is not allowed in the feature separator constraint relationship table; check whether the feature distance D is greater than the S1 specified in the feature distance table and the maximum distance between S2; if any one condition is satisfied in the three detections, then confirm that the message is an overlong message and exit, otherwise, perform step B234);

B234)检测是否到本行结尾,如未到本行结尾,则将当前特征分隔符S2作为S1、提取下一个特征分隔符作为S2,返回到步骤B232);如已到本行结尾,则转到步骤B235);B234) detect whether to the end of this line, if not to the end of this line, then use the current feature separator S2 as S1, extract the next feature separator as S2, and return to step B232); if you have reached the end of this line, then turn to step B235);

B235)判断是否完成所有行内检测,如未完成则选择下一个行,转到步骤B231);如已经完成所有行内检测则退出。B235) Judging whether all in-line detections are completed, if not, select the next line, and go to step B231); if all in-line detections have been completed, then exit.

在按照本发明提供的上述检测方法中,所述步骤B23之前还包括行间检测步骤B22,所述行间检测步骤B22包括以下步骤:In the above-mentioned detection method provided according to the present invention, the inter-line detection step B22 is also included before the step B23, and the inter-line detection step B22 includes the following steps:

B221)对输入信令报文中每一个以回车换行符结束的成行的文本段,反复执行以下步骤B222-B223,直到确定当前报文为超长报文或输入信令报文结束;B221) Repeat the following steps B222-B223 for each line-forming text segment ending with a carriage return and line feed in the input signaling message, until it is determined that the current message is an overlong message or the input signaling message ends;

B222)这样产生文本段的五元组(S1、F1、D、S2、F2),使得第一行文本段的首字符或其它行文本段的前一行回车换行符为S1,紧跟S1后的第一个字符为F1,取S1后的第一个回车换行符为S2,取S2后紧跟的第一个字符为F2,符号S1与符号S2之间的间距为D;B222) produce the quintuple (S1, F1, D, S2, F2) of text section like this, make the first character of the first line text section or the carriage return and line feed character of the previous row of other line text section be S1, follow after S1 The first character is F1, the first carriage return and line feed character after S1 is S2, the first character immediately after S2 is F2, and the distance between the symbol S1 and the symbol S2 is D;

B223)对上述五元组检测S1和F1是否满足F1是特征分隔符,同时判断S1和F1的相邻关系是否属于所述特征分隔符约束关系表不允许的;检测S2和F2是否满足F2是特征分隔符,同时判断S2和F2的相邻关系是否属于所述特征分隔符约束关系表不允许的;检测特征间距D是否满足大于所述特征间距表中规定的S1和S2之间的最大间距;如有任何一项满足,则确认该报文为超长报文并退出;否则,取下一行文本段,进到步骤B222。B223) whether above-mentioned quintuple detection S1 and F1 satisfy F1 is a feature delimiter, and judge simultaneously whether the adjacent relationship of S1 and F1 belongs to the feature delimiter constraint relationship table does not allow; detect whether S2 and F2 satisfy F2 yes feature separator, while judging whether the adjacent relationship between S2 and F2 is not allowed in the feature separator constraint relationship table; whether the detection feature distance D satisfies the maximum distance between S1 and S2 specified in the feature distance table ; If any item is satisfied, then confirm that the message is an overlong message and exit; otherwise, take the next line of text and go to step B222.

在按照本发明提供的上述检测方法中,在所述步骤B22与所述步骤B23之间还包括步骤B224)如当前输入信令报文结束且没有确认为超长报文,则形成用于指出输入信令报文各个行文本段的位置和长度的行分布位置表,包括报文首字符、由相对于前一行回车换行符之间距离的偏移量和回车换行符组成的有限序列对。In the above-mentioned detection method provided according to the present invention, step B224 is also included between said step B22 and said step B23) If the current input signaling message ends and is not confirmed as an overlong message, a Enter the line distribution position table of the position and length of each line text segment of the signaling message, including the first character of the message, the offset from the distance between the carriage return and line feed characters of the previous line, and the finite sequence of carriage return and line feed characters right.

在按照本发明提供的上述检测方法中,所述特征分隔符包括“(”、“)”、“<”、“>”、“@”、“,”、“;”、“:”、“/”、“[”、“]”、“=”、“{”、“}”、SP,其中SP为空格。。In the above detection method provided according to the present invention, the feature separators include "(", ")", "<", ">", "@", ",", ";", ":", " /", "[", "]", "=", "{", "}", SP, where SP is a space. .

按照本发明提供的基于文本编码的超长信令报文的检测方法,可以用软件实现,也可以做成专用的硬件检测设备放在网络的入口处实施检测。利用本发明对超长信令报文进行有效的筛选和过滤,可防止黑客对服务器的攻击和破坏,保证网络服务的正常运行;同时,本发明的方法适用于所有文本型信令报文的超长检测,对不同的文本信令协议,只需对特征间距表和特征分隔符约束关系表进行更换调整相应的参数即可,对保证网络安全,尤其对抵御以超长报文为特征的恶意攻击具有十分显著的效果。According to the detection method of the super-long signaling message based on text coding provided by the present invention, it can be implemented by software, or it can be made into a special hardware detection device and placed at the entrance of the network for detection. Utilizing the present invention to effectively screen and filter super-long signaling messages can prevent hackers from attacking and destroying servers and ensure the normal operation of network services; at the same time, the method of the present invention is applicable to all text type signaling messages Ultra-long detection, for different text signaling protocols, only need to replace and adjust the corresponding parameters of the feature distance table and the feature separator constraint relationship table, which can ensure network security, especially against the over-long message Malicious attacks can have quite dramatic effects.

附图说明 Description of drawings

图1是实现本发明检测方法的原理性逻辑框图;Fig. 1 is a schematic logic block diagram realizing the detection method of the present invention;

图2是利用本发明方法对超长信令报文进行检测的流程示意图;Fig. 2 is a schematic flow diagram of using the method of the present invention to detect superlong signaling messages;

图3是利用本发明方法进行行间检测的流程示意图;Fig. 3 is the schematic flow chart of utilizing the method of the present invention to carry out interline detection;

图4是利用本发明方法进行行内检测的流程示意图;Fig. 4 is a schematic flow diagram of utilizing the method of the present invention to carry out in-line detection;

具体实施方式 Detailed ways

如图1所示,本发明的检测方法是实现基于文本编码的超长畸形信令报文的检测,包括过滤引擎1、数据关联表2、特征间距表3和特征分隔符约束关系表4四个环节,报文检测可以通过程序或程序段实现,也可以通过硬件装置实现或部分硬件实现部分程序段实现,用在网络边界处,对进入网络的信令报文进行过滤,只有满足要求的信令报文才可以通过,即过滤掉超长信令报文。其中,过滤引擎1接收输入信令报文5,形成数据关联表2,将数据关联表2和特征间距表3、分隔符约束关系表4进行比较,作出是否为超长报文的判断,如果是超长报文,将其丢弃,只输出不再包含超长报文的信令报文6。As shown in Figure 1, the detection method of the present invention is to realize the detection of the overlong deformed signaling message based on text encoding, including filter engine 1, data association table 2, feature distance table 3 and feature separator constraint relationship table 44 In this link, message detection can be realized through programs or program segments, or through hardware devices or part of hardware and part of program segments. It is used at the network boundary to filter signaling messages entering the network, and only those that meet the requirements Only signaling packets can pass through, that is, super-long signaling packets are filtered out. Wherein, filter engine 1 receives input signaling message 5, forms data association table 2, compares data association table 2 with characteristic distance table 3, delimiter constraint relationship table 4, and makes a judgment whether it is an overlong message, if If it is an overlong message, it is discarded, and only the signaling message 6 that no longer contains the overlong message is output.

本发明对超长报文数据的检测的一个方面是基于特征间距的检测,即判断两个特征分隔符间的长度,对应于图1中的特征间距表3。本发明对超长报文数据的检测的另一个方面是基于特征分隔符是否允许相连的约束关系的检测,即判断两个相邻特征分隔符间是否被允许,规定是否允许特征分隔符相连的基础是图1中的特征分隔符约束关系表4。One aspect of the detection of super-long message data in the present invention is based on the detection of feature distances, that is, judging the length between two feature separators, which corresponds to the feature distance table 3 in FIG. 1 . Another aspect of the present invention's detection of super-long message data is based on the detection of the constraint relationship of whether the feature separators allow connection, that is, to judge whether two adjacent feature separators are allowed, and to specify whether to allow the feature separators to be connected. The basis is the feature separator constraint relation Table 4 in Figure 1.

按照本发明的方法适用于对所有基于文本编码的信令报文出现的超长报文的检测,只要根据具体的协议,重新定义特征间距表3中分隔符之间的长度值以及特征分隔符约束关系表4中禁止相连的约束关系即可。According to the method of the present invention, it is applicable to the detection of superlong messages that appear in all text-encoded signaling messages, as long as according to the specific protocol, the length value between the delimiters and the feature delimiters in the feature spacing table 3 are redefined In the constraint relationship table 4, it is sufficient to prohibit the connected constraint relationship.

更具体地说,在本发明中,超长信令报文是对基于文本编码的信令报文而言的,每个信令报文一般由一个或几个消息字段组成,每个消息字段的长度都有一个范围,超过这个范围的信令报文称为超长信令报文。在本发明中,特征表示的是某种实体或处理过程(如协议、病毒、文件、程序写入)存在与否的痕迹,包括一些字节流及彼此之间的逻辑关系。特征包括字节特征和逻辑特征,是特征匹配的基本单位。在本发明中,特征分隔符是指用来判断消息字段长度的分隔符,在超长信令报文检测中,我们以特征分隔符之间的距离即特征间距做为检测的基础。这里定义的特征分隔符包括:“(”/“)”/“<”/“>”/“@”/“,”/“;”/“:”/DQUOTE /“/”/“[”/“]”/“=”/“{”/“}”/SP/CR/LF。有了识别超长信令报文的特征分隔符的定义后,将特征间距定义为特征分隔符之间允许的距离,是本发明判断信令报文是否超长的依据。More specifically, in the present invention, the ultra-long signaling message refers to text-based coding signaling messages, and each signaling message generally consists of one or several message fields, and each message field There is a range for the length of the signaling packet, and the signaling packet exceeding this range is called an ultra-long signaling packet. In the present invention, the feature represents the trace of the existence or non-existence of some entity or process (such as protocol, virus, file, program writing), including some byte streams and the logical relationship among them. Features include byte features and logical features, which are the basic unit of feature matching. In the present invention, the feature delimiter refers to the delimiter used to judge the length of the message field. In the detection of super-long signaling messages, we use the distance between the feature delimiters, that is, the feature distance, as the basis for detection. The feature separators defined here include: "("/")"/"<"/">"/"@"/","/";"/":"/DQUOTE/"/"/"["/ "]"/"="/"{"/"}"/SP/CR/LF. With the definition of the feature delimiter for identifying the superlong signaling message, defining the feature distance as the allowable distance between the feature delimiters is the basis for judging whether the signaling message is super long in the present invention.

下面,以会话初始协议(英文为Session Initiation Protocol,以下缩写为SIP)为例,对如表1所示出的特征间距对应表加以说明。Next, taking the Session Initiation Protocol (Session Initiation Protocol in English, hereinafter abbreviated as SIP) as an example, the feature distance correspondence table shown in Table 1 will be described.

                           表1会话初始协议特征间距对应表Table 1 Correspondence Table of Session Initiation Protocol Feature Distance

  1 1   SP SP   : :   @ @   / /   CR CR   LF LF   ; ;   = =   <   > >>   “ "   ” "   , ,   …… ...   1 1   8 8   256 256   SP SP   20 20   63 63   32 32   11 11   20 20   63 63   20 20   20 20   : :   63 63   20 20   63 63   63 63   @ @   63 63   63 63   63 63   63 63   63 63   63 63   63 63   / /   3 3   6 6   10 10   CR CR   0 0   LF LF   19 19   256 256   ; ;   = =   40 40   20 20   10 10   20 20   <   4 4   > >>   “ "   10 10   20 20   63 63   “ "   , ,   …… ...

对表1说明如下:The description of Table 1 is as follows:

1)表中的“1”代表信令报文的第一个字符。1) "1" in the table represents the first character of the signaling message.

2)表中的“……”代表会话初始协议中未用到的特征分隔符。2) "..." in the table represents the feature separator not used in the session initiation protocol.

3)表中的数值表示两个特征间隔府之间以字节为单位的间距大小,对于表中每一个分隔符采用横向判断,如第二行空格(SP),每个分隔符表示在空格后面出现的第一个特征分隔符,数字则代表空格和这个分隔符之间可能的最大长度,长度单位是字节,如果没有数字出现,表示两个特征分隔符之间没有联系,可作为保留使用。3) The value in the table indicates the distance in bytes between the two feature intervals. For each separator in the table, horizontal judgment is used, such as the second line of space (SP), and each separator is represented in the space The first feature separator that appears later, the number represents the maximum possible length between the space and this separator, and the unit of length is bytes. If no number appears, it means that there is no connection between the two feature separators, which can be reserved use.

4)对于媒体网关控制协议(英文为:Media Gateway Control Protocol媒体网关控制协议,缩写为MGCP)、会话描述协议(英文为Session DescriptionProtocol,缩写为SDP)等别的基于文本编码的信令报文,仅需要根据各自协议调整特征间距即可。4) For other text-based signaling messages such as Media Gateway Control Protocol (English: Media Gateway Control Protocol, abbreviated as MGCP), Session Description Protocol (English: Session Description Protocol, abbreviated as SDP), It is only necessary to adjust the feature spacing according to the respective protocol.

本发明对超长报文数据的检测的另一个方面是基于特征分隔符约束关系表,对应于图1中的特征分隔符约束关系表4。其检测原理是这样的,一般情况下,在基于文本编码的信令报文中仅允许少数几个特征分隔符可以连续或重复出现(如冒号空格、分号空格、逗号空格、空格左尖括号、空格双引号以及空格空格等),如果在信令报文中出现了连续两个或两个以上的特征分隔符,则同样可认为是一种超长包。下面的表2给出了会话初始协议中特征分隔符之间的约束关系。Another aspect of the detection of overlong message data in the present invention is based on the feature separator constraint relationship table, which corresponds to the feature separator constraint relationship table 4 in FIG. 1 . The detection principle is as follows. In general, only a few feature separators are allowed to appear continuously or repeatedly in text-encoded signaling messages (such as colon spaces, semicolon spaces, comma spaces, and space left angle brackets. , space double quotes and space space, etc.), if there are two or more consecutive feature separators in the signaling message, it can also be considered as a super long packet. Table 2 below shows the constraint relationship among the feature separators in the session initiation protocol.

                       表2会话初始协议的特征分隔符约束关系表Table 2 Feature Separator Constraint Relationship Table

  0x20 0x20   : :   @ @   / /   CR CR   LF LF   ; ;   = =   <   > >>   “ "   ” "   , ,   …… ...   0x20 0x20   × ×   × ×   × ×   × ×   × ×   × ×   : :   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   @ @   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   / /   × ×   × ×   × ×   × ×   × ×   × ×   CR CR   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   LF LF   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   ; ;   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   = =   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   <   × ×   × ×   × ×   × ×   × ×   × ×   > >>   × ×   × ×   × ×   × ×   × ×   “ "   × ×   × ×   × ×   × ×   × ×   × ×   ” "   × ×   × ×   × ×   × ×   , ,   × ×   × ×   × ×   × ×   × ×   × ×   × ×   × ×   …… ...

对表2说明如下:The description of Table 2 is as follows:

1)“……”代表会话初始协议中未用到的特征分隔符。1) "..." represents a feature separator not used in the session initiation protocol.

2)“×”表示两个特征分隔符之间存在约束关系不能连续出现。2) "×" indicates that there is a constraint relationship between two feature separators and cannot appear continuously.

3)对于媒体网关控制协议(英文为:Media Gateway Control Protocol媒体网关控制协议,缩写为MGCP)、会话描述协议(英文为Session DescriptionProtocol,缩写为SDP)等别的基于文本编码的信令数据报,仅需要根据各自协议调整特征分隔符之间的约束关系。3) For other text-encoded signaling datagrams such as Media Gateway Control Protocol (English: Media Gateway Control Protocol, abbreviated as MGCP), Session Description Protocol (English: Session Description Protocol, abbreviated as SDP), Only the constraint relationship between feature separators needs to be adjusted according to the respective protocols.

有了特征间距表和分隔特征约束关系表后,我们就可以直接进行输入信令报文的超长报文检测了。其过程简单说明如下:With the feature distance table and the separation feature constraint relationship table, we can directly detect the overlong message of the input signaling message. The process is briefly described as follows:

实施例1Example 1

对收到的文本中的任何一个特征分隔符,检测其直接邻接的字符是否是特征分隔符号,如果是特征分隔符,则判断两个特征分隔符是否属于特征分隔符约束关系表中不允许邻接的情况,如果是,则说明检测到当前文本为超长报文;对收到的文本中的任何一个特征分隔符,检测与其间隔最近的另一个特征分隔的距离是否超出特征间距表规定的最大间距,如果是则说明检测到当前文本为超长报文。For any feature separator in the received text, check whether the character directly adjacent to it is a feature separator, and if it is a feature separator, then judge whether the two feature separators belong to the feature separator. Adjacency is not allowed in the constraint relationship table If it is, it means that the current text is detected as an overlong message; for any feature delimiter in the received text, check whether the distance between another feature delimiter with the closest interval exceeds the maximum specified in the feature distance table If it is, it means that the current text is detected as an overlong message.

为实现对输入信令报文的快速检测,本发明的方法利用了一个作为数据关联的五元组(S1、F1、D、S2、F2),该五元组可以是图1中过滤引擎1对输入数据包5预处理的结果,是快速判断数据包是否超长的基础。对五元组中的每个元素描述如下:For realizing the rapid detection of input signaling message, the method of the present invention has utilized a quintuple (S1, F1, D, S2, F2) as data association, and this quintuple can be filter engine 1 among Fig. 1 The result of preprocessing the input data packet 5 is the basis for quickly judging whether the data packet is too long. Each element in the quintuple is described as follows:

S1:提取的第一个特征分隔符。S1: The first feature separator extracted.

F1:第一个特征分隔符紧跟的第一个字符。F1: The first character immediately following the first feature delimiter.

D:两个特征分隔符之间的长度即特征间距。D: The length between two feature separators is the feature spacing.

S2:第一个特征分隔符后紧跟的第二个特征分隔符。S2: The second character separator immediately following the first character separator.

F2:第二个特征分隔符后紧跟的第一个字符。F2: The first character immediately following the second feature separator.

结合图1,过滤引擎1是实现超长报文检测的核心,其作用包括:1)对每个进入网络的信令报文进行分析,提取其中的特征分隔符,将输入的信令报文转换成五元组集合(S1、F1、D、S2、F2);2)对五元组集合(S1、F1、D、S2、F2)检测是否属于特征间距表规定的超长文本;3)对五元组集合(S1、F1、D、S2、F2)检测是否属于特征分隔符约束关系表规定的超长报文,此时,如果S1、F1同为特征分隔符或S2、F2同为特征分隔符,且属于特征分隔符约束关系表禁止相连的情况,则当前检测到的报文属于超长报文。如果发现属于超长报文就停止检测,过滤掉此数据包。In conjunction with Fig. 1, the filtering engine 1 is the core of realizing superlong message detection, and its function includes: 1) analyzing each signaling message entering the network, extracting the characteristic delimiter therein, and filtering the input signaling message Convert to a quintuple set (S1, F1, D, S2, F2); 2) Detect whether the quintuple set (S1, F1, D, S2, F2) belongs to the super-long text specified in the feature distance table; 3) Check whether the five-tuple set (S1, F1, D, S2, F2) belongs to the super long message specified in the feature separator constraint relationship table. At this time, if S1 and F1 are both feature separators or S2 and F2 are both feature delimiter, and it belongs to the situation that the feature delimiter constraint relationship table prohibits connection, then the currently detected message is an overlong message. If it is found to be an overlong packet, the detection will be stopped and the data packet will be filtered out.

实施例2Example 2

对根据输入信令报文形成的每一个五元组(S1、F1、D、S2、F2)进行以下检测:如F1是特征分隔符且S1和F1是否满足特征分隔符约束关系表中禁止相连的情况;如F2是特征分隔符且S2和f2是否满足特征分隔符约束关系表中禁止相连的情况;特征间距D是否满足特征间距表中定义的S1和S2之间的特征间距。如有任何一点满足超长报文条件,则过滤掉此报文。Each quintuple (S1, F1, D, S2, F2) formed according to the input signaling message is detected as follows: if F1 is a feature separator and whether S1 and F1 satisfy the prohibition of connection in the feature separator constraint relationship table For example, if F2 is a feature separator and whether S2 and f2 meet the prohibition of connection in the feature separator constraint relationship table; whether the feature distance D satisfies the feature distance between S1 and S2 defined in the feature distance table. If any point satisfies the condition of an overlong message, the message is filtered out.

如上述,任何文本段的五元组(S1、F1、D1、S2、F2)有三个检测点,检测时同时检测三个点,如果有一点满足超长报文的条件,就认为该文本段含超长报文,可将其过滤掉。上述基于五元组的检测是也适用于利用本发明方法进行下文介绍的行间检测和行内检测。As mentioned above, the quintuple (S1, F1, D1, S2, F2) of any text segment has three detection points, and three points are detected at the same time during detection, if one point meets the condition of an ultra-long message, it is considered that the text segment contains an ultra-long message. Long messages can be filtered out. The above-mentioned detection based on quintuple is also applicable to the inter-row detection and intra-row detection described below by using the method of the present invention.

实施例3Example 3

利用本发明的方法对超长信令报文的检测,可以采用行间检测和行内检测相结合的检测方法,即,如图2所示首先判断信令报文中每行的长度是否在正常范围,只要有一行不满足,即过滤掉此报文;如果每行都满足,会生成一个行分布位置表,指导进行行内检测,判断每行内各个特征分隔符之间的特征间距是否满足要求。Utilize the method of the present invention to the detection of superlong signaling message, can adopt the detection method that inter-line detection and intra-line detection combine, that is, first judge whether the length of each line in the signaling message is in normal as shown in Figure 2 Range, as long as there is a line that does not meet the requirements, the message will be filtered out; if each line is satisfied, a line distribution position table will be generated to guide the detection within the line to determine whether the feature spacing between the feature separators in each line meets the requirements.

结合图2,看整个检测过程,在框201开始输入信令报文,在框202开始行间检测,在框203对行间检测结果进行判断,如果属于超长报文,则在框204中将其过滤;否则在框205,生成行位置分布表,启动行内检测;在框206对行内检测结果进行判断,如果属于超长报文,在框207将其过滤;否则在框208作出让信令报文通过的决定。In conjunction with Fig. 2, look at the whole detection process, start to input the signaling message in frame 201, start the interline detection in frame 202, judge the interline detection result in frame 203, if it belongs to a super long message, then in frame 204 It is filtered; Otherwise, in frame 205, generate row position distribution table, start the detection in the row; In frame 206, the detection result in the row is judged, if belong to superlong message, it is filtered in frame 207; Otherwise make letter in frame 208 A decision to pass a message.

为说明框202的行间检测过程,参考图3。行间检测是根据回车换行符来判断每行间的长度是否满足条件。可由图1中的过滤引擎1,将特征分隔符(这里是回车换行)转换到五元组(S1,F1,D,S2,F2)中,然后根据实施例2给出的五元组(S1,F1,D,S2,F2)三点检测的原则进行判断,如果不属于超长报文,进行下一行的检测;否则,认为该信令报文超长,停止检测将其过滤掉。从具体给出行间检测流程的图3可见,在框301中,输入信令报文,在框302中,从输入的信令报文中提取第一个字符和其后的第一个回车换行符,构成一个以回车换行符结束的一行;在框303中将其映射(也可认为是表达或预处理为)成一个五元组(S1、F1、D、S2、F2),在框304中,检测此五元组中的三个检测点是否有满足超长报文的;如果有,在框305中停止检测,丢掉该报文;否则在框306检测是否到报文尾,如果已到报文末尾,在框307中形成行分布位置表,用于启动行内检测;如果还没有到报文末尾,在框308提取五元组中的第二个回车换行和下一个回车换行符,并转到框303。所有的行间检测完成后,会生成一个行位置分布表,如表3所示,该表可以作为行内检测的基础。To illustrate the interline detection process of block 202, refer to FIG. 3 . Inter-line detection is to judge whether the length between each line meets the condition according to the carriage return and line feed characters. Can be by filter engine 1 among Fig. 1, feature delimiter (carriage return and line feed here) is converted in the quintuple (S1, F1, D, S2, F2), then according to the quintuple ( S1, F1, D, S2, F2) The principle of three-point detection is judged, if it does not belong to the super long message, the detection of the next line is carried out; otherwise, it is considered that the signaling message is too long, and the detection is stopped to filter it out. As can be seen from Fig. 3 that specifically provides the interline detection process, in frame 301, a signaling message is input, and in frame 302, the first character and the first carriage return thereafter are extracted from the input signaling message A newline character constitutes a line ending with a carriage return and a newline character; in box 303, it is mapped (also considered to be expressed or preprocessed as) into a five-tuple (S1, F1, D, S2, F2), in In frame 304, detect whether three detection points in this quintuple have satisfied superlong message; If have, stop detection in frame 305, discard this message; Otherwise detect whether to end of message in frame 306, If the end of the message has been reached, the row distribution position table is formed in frame 307 to detect in the start line; if the end of the message has not been reached yet, the second carriage return and line feed and the next return in the five-tuple are extracted in frame 308 Carry a line break, and go to box 303. After all inter-row detection is completed, a row position distribution table will be generated, as shown in Table 3, which can be used as the basis for intra-row detection.

                                  表3行位置分布表Table 3 row location distribution table

  报文第一个字符 The first character of the message   偏移量n1 Offset n1   回车换行符 Carriage return line feed   偏移量n2 Offset n2   回车换行符 Carriage return line feed   …… ...   回车换行符 Carriage return line feed

对表3简单说明如下,偏移量是相对于前面的回车换行符之间的位移距离,换言之,所谓行位置分布表,用于指出输入信令报文各个行文本段的位置和长度,具体包括报文首字符、由相对于前一行回车换行符(字符)之间距离的偏移量和回车换行符组成的有限序列对。例如,如果一个报文有9行,行位置分布表的长度为19,分别为:首字符,n1,CR,n2,CR,n3……,n9,CR。其中CR为回车换行符。形成行位置分布表的过程实际上是计数的过程。A brief description of Table 3 is as follows. The offset is relative to the displacement distance between the previous carriage return and line feed characters. In other words, the so-called line position distribution table is used to point out the position and length of each line text segment of the input signaling message. Specifically, it includes the first character of the message, the offset of the distance between the carriage return and line feed characters (characters) of the previous line, and the finite sequence pair composed of the carriage return and line feed characters. For example, if a message has 9 lines, the length of the line position distribution table is 19, which are: first character, n1, CR, n2, CR, n3..., n9, CR. Where CR is a carriage return and line feed character. The process of forming the row position distribution table is actually a counting process.

在图2所示的实施例中,框205指出,在框202指出的行间检测的基础上,利用表3所示的行位置分布表进行行内检测。其原理和行间检测一样,提取相邻的两个特征分隔符映射成五元组,然后根据五元组的检测原则进行判断,如果不属于超长报文,进行本行内其它特征字符间的检测,否则,认为该信令报文超长,停止检测并将该报文过滤掉。如果所有的行内检测都满足条件,则认为此信令报文合格,系统允许此信令报文通过。图4给出了对应于图2框205的行内检测的详细流程。在框401中,根据行位置分布表选择并提取一个行;在框402中,提取本行的第一个特征分隔符S1和其后的第二个特征分隔符S2;在框403中,用特征分隔符S1和S2为基础提取相应数据形成一个五元组(S1、F1、D、S2、F2);在框404中,对该五元组实施三个检测,如三个检测中有任何一个满足超长报文的条件,则进到框405丢弃该报文并退出检测;如三个检测全部属于正常报文,则进到框406,判断是否到本行末尾;如果已经到本行末尾,则在框407中判断是否完成所有行内检测,如没有完成所有行内检测,则进到框409开始其余行的检测并返回到框402;如在框407中判断已经完成所有行内检测,则在框410中作出此报文不是超长报文,让其正常通过;如在框406中,检测到没有到本行末尾,则转到框408,在框408将当前五元组的第二个特征分隔符作为S1和提取本行下一个特征分隔符作为S2,并转到框403,继续检测。In the embodiment shown in FIG. 2 , block 205 indicates that on the basis of the inter-row detection indicated in block 202 , the intra-row detection is performed using the row position distribution table shown in Table 3 . Its principle is the same as inter-line detection. Two adjacent feature separators are extracted and mapped into quintuples, and then judged according to the detection principle of quintuples. Otherwise, it considers that the signaling message is too long, stops the detection and filters out the message. If all the in-line checks meet the conditions, the signaling message is considered qualified, and the system allows the signaling message to pass. FIG. 4 shows a detailed flow of inline detection corresponding to block 205 in FIG. 2 . In frame 401, select and extract a row according to the row position distribution table; in frame 402, extract the first feature separator S1 and the second feature separator S2 of this row; in frame 403, use Feature separators S1 and S2 are based on extracting corresponding data to form a five-tuple (S1, F1, D, S2, F2); in frame 404, three detections are implemented to this five-tuple, as any in the three detections One satisfies the condition of overlong message, then enters frame 405 and discards this message and exits detection; As three detections all belong to normal message, then enter frame 406, judge whether to arrive at the end of this line; If have arrived this line At the end, then judge in frame 407 whether to finish detection in all rows, if not finish detection in all rows, then proceed to frame 409 and start the detection of remaining rows and return to frame 402; Making this message in frame 410 is not a super long message, let it pass through normally; As in frame 406, it is detected that the end of the line is not reached, then go to frame 408, and in frame 408, the second of the current five-tuple feature delimiter as S1 and extract the next feature delimiter in this row as S2, and go to frame 403 to continue detection.

在本实施例中,行间检测是以回车换行符结束的行为单位进行检测;行间检测后进行的行内检测是检测一行内,两个特征分隔符之间的文本段是否属于超长文本。两者可以从不同的层面上,检测出属于超长文本的所有可能。In this embodiment, the interline detection is detected by the behavior unit ending with a carriage return and line feed; the inline detection performed after the interline detection is to detect whether the text segment between two feature separators in a line is an extra-long text . The two can detect all possibilities of ultra-long text from different levels.

实施例4Example 4

可以直接进行图4所示的行内检测而不进行图3所示的行间检测,多半情况下,同样可以及时检测出输入文本中的超长文本。The in-line detection shown in FIG. 4 can be directly performed instead of the inter-line detection shown in FIG. 3 , and in most cases, super-long text in the input text can also be detected in time.

实施例5Example 5

本实施例是实施本发明网络超长信令报文检测方法的一个模块化表示,结合图1,过滤引擎单元1用于将输入信令报文的每一行及每一行内,进行转换,将转换后的每个五元组(S1、F1、D、S2、F2)存放在五元组单元2;过滤引擎单元1还用于在行间检测和行内检测环节中判断五元组是否满足特征间距表3和特征分隔符约束关系表4规定的属于超长报文的情形,如果属于超长报文,则过滤属于超长报文的文本信令;如不属于超长报文则输出不属于超长报文的文本信令,继续处理。其中,特征间距表3用于存放任何两个特征分隔符之间最大允许间距,特征分隔符约束关系表4用于存放任何两个特征分隔符是否允许连续重复出现的;五元组单元2中,S1是从文本段提取的第一个特征分隔符,F1是紧跟该第一个特征分隔符的第一个字符;D是两个特征分隔符之间的特征间距;S2是第一个特征分隔符后第紧跟的第二个特征分隔符;F2是第二个特征分隔符后紧跟的第一个字符。This embodiment is a modular representation of implementing the method for detecting network super-long signaling messages of the present invention. In conjunction with FIG. Each converted quintuple (S1, F1, D, S2, F2) is stored in the quintuple unit 2; the filter engine unit 1 is also used to judge whether the quintuple satisfies the feature in the interline detection and inline detection links. If the situation specified in the distance table 3 and the feature delimiter constraint relation table 4 belongs to the super long message, if it belongs to the super long message, then filter the text signaling belonging to the super long message; if it does not belong to the super long message, then output no The text signaling belonging to the super long message continues to be processed. Among them, the feature spacing table 3 is used to store the maximum allowable spacing between any two feature separators, and the feature separator constraint relationship table 4 is used to store whether any two feature separators allow continuous repetition; in the quintuple unit 2 , S1 is the first feature delimiter extracted from the text segment, F1 is the first character following the first feature delimiter; D is the feature spacing between two feature delimiters; S2 is the first The second character separator immediately following the character separator; F2 is the first character immediately following the second character separator.

本发明针对基于文本编码的信令协议,提出了利用超长字段检测出畸形报文的恶意攻击的方法和装置,可用于各种不同的基于文本编码的信令协议。本发明的上述实施例仅仅是示范说明性表述而非限制性表述。本领域普通技术人员可能根据本发明的启示和教导,对本发明实施例进行某种改变,但这种变形和改变仍然为本申请权利要求书限定的保护范围。Aiming at the signaling protocol based on text coding, the present invention proposes a method and a device for detecting malicious attacks of malformed messages by using super-long fields, which can be used in various signaling protocols based on text coding. The above-mentioned embodiments of the present invention are merely illustrative representations rather than restrictive representations. Those skilled in the art may make certain changes to the embodiments of the present invention according to the revelation and teaching of the present invention, but such deformation and changes are still within the scope of protection defined by the claims of the present application.

Claims (7)

1, a kind of detection method of the superlong signaling message based on text code is characterized in that, may further comprise the steps:
A, reception signaling message, whether spacing or the neighbouring relations of judging two adjacent feature separators in the described signaling message conform to corresponding parameters in the overlength message recognition function, described overlength message recognition function generates based on the feature separator, and described parameter comprises the maximum spacing or the unallowed neighbouring relations of any two feature separators;
If B conforms to, judge that described signaling message is the overlength message;
C, described overlength packet filtering is handled.
2, according to the described method of claim 1, it is characterized in that, described overlength message recognition function is specially the feature pitch table, described feature pitch table comprises the maximum spacing of any two feature separators, steps A is specially: receive signaling message, whether the spacing of judging two adjacent feature separators in the described signaling message is greater than described maximum spacing.
3, according to claim 1 or 2 described methods, it is characterized in that, described overlength message recognition function is specially feature separator restriction relation table, described feature separator restriction relation table comprises any two unallowed neighbouring relations of feature separator, steps A is specially: receive signaling message, judge whether the neighbouring relations of two adjacent feature separators in the described signaling message are unallowed.
According to the described method of claim 3, it is characterized in that 4, described steps A and B are specially step B23, described step B23 carries out following steps to each with the row that the new line symbol finishes:
B231) extract first a feature separator S1 of one's own profession and a feature separator S2 thereafter;
B232) on the feature separator S1 that has extracted, S2 basis, form five-tuple (S1, F1, D, S2, F2), wherein, F1 is first character immediately following this first feature separator S1; D is the feature pitch between two feature separator S1 and the S2; F2 is first character of closelying follow behind second feature separator S2; B233) five-tuple (S1, F1, D, S2, F2) is carried out three detections: if whether the neighbouring relations that F1 is the feature separator detects S1 and F1 are unallowed in the described feature separator restriction relation table; If F2 is the feature separator, whether the neighbouring relations that detect S2 and F2 are unallowed in the described feature separator restriction relation table; Whether the detected characteristics space D satisfies greater than S1 that stipulates in the described feature pitch table and the maximum spacing between the S2; If there is any one condition to satisfy in three detections, confirm that then this message is the overlength message and withdraws from, otherwise, execution in step B234);
B234) detect whether arrive this line endings, as not arriving this line endings, then with current feature separator S2 as S1, the next feature separator of extraction as S2, turn back to step B232); As arriving this line endings, then forward step B235 to);
B235) judge whether to finish detection in all row, then select next row as unfinished, forward step B231 to); Then withdraw from as finishing the interior detection of all row.
According to the described method of claim 4, it is characterized in that 5, also comprise before the described step B23 and detect step B22 in the ranks, the described step B22 that detects may further comprise the steps in the ranks:
B221) to each carries out following steps B222-B223 repeatedly with the text chunk of embarking on journey that the new line symbol finishes in the incoming signalling message, be overlength message or incoming signalling ENMES up to definite current message;
B222) produce the five-tuple (S1, F1, D, S2, F2) of text chunk like this, make the initial character of this section of style of writing of winning or the previous row new line symbol of other row text chunk be S1, immediately following first character behind the S1 is F1, first new line symbol of getting behind the S1 is S2, getting first character of closelying follow behind the S2 is F2, and the spacing between symbol S1 and the symbol S2 is D;
B223) above-mentioned five-tuple being detected S1 and F1, whether to satisfy F1 be the feature separator, and it is unallowed whether the neighbouring relations of judging S1 and F1 simultaneously belong to described feature separator restriction relation table; Detecting S2 and F2, whether to satisfy F2 be the feature separator, and it is unallowed whether the neighbouring relations of judging S2 and F2 simultaneously belong to described feature separator restriction relation table; Whether the detected characteristics space D satisfies greater than S1 that stipulates in the described feature pitch table and the maximum spacing between the S2; Satisfy if any any one, confirm that then this message is the overlength message and withdraws from; Otherwise, take off delegation's text chunk, enter step B222.
6, according to the described method of claim 5, it is characterized in that, between described step B22 and described step B23, also comprise step B224) as current incoming signalling ENMES and do not confirm as the overlength message, then be formed for pointing out the position of each row text chunk of incoming signalling message and the capable distributing position table of length, comprise message initial character, right by the finite sequence of forming with respect to the side-play amount and the new line symbol of distance between the previous row new line symbol.
7, according to the described method of claim 1, it is characterized in that, described feature separator comprise " (", ") ", "<", ">", " @ ", ", ", "; ", ": ", "/", " [", "] ", "=", " { ", " } ", SP, wherein SP is the space.
CNB2005101208915A 2005-12-15 2005-12-15 Detection method of super-long signaling message based on text coding Expired - Fee Related CN100459579C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101208915A CN100459579C (en) 2005-12-15 2005-12-15 Detection method of super-long signaling message based on text coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101208915A CN100459579C (en) 2005-12-15 2005-12-15 Detection method of super-long signaling message based on text coding

Publications (2)

Publication Number Publication Date
CN1852245A CN1852245A (en) 2006-10-25
CN100459579C true CN100459579C (en) 2009-02-04

Family

ID=37133714

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101208915A Expired - Fee Related CN100459579C (en) 2005-12-15 2005-12-15 Detection method of super-long signaling message based on text coding

Country Status (1)

Country Link
CN (1) CN100459579C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101374115B (en) * 2008-09-28 2010-12-22 北京鼎实创新科技有限公司 Rapid discriminating multiport control method based on PROFIBUS packet
WO2012012915A1 (en) * 2010-07-30 2012-02-02 Hewlett-Packard Development Co Detecting separator lines in a web page
CN102821100B (en) * 2012-07-25 2014-10-29 河南省信息中心 Method for realizing streaming file system based on security gateway of network application layer
CN113890904B (en) * 2021-09-27 2023-10-27 新华三信息安全技术有限公司 Method, device, computer equipment and storage medium for message analysis

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1529248A (en) * 2003-10-20 2004-09-15 北京启明星辰信息技术有限公司 Network invasion related event detecting method and system
US20050097357A1 (en) * 2003-10-29 2005-05-05 Smith Michael R. Method and apparatus for providing network security using security labeling
CN1633123A (en) * 2004-12-03 2005-06-29 北京北方烽火科技有限公司 Method of one-way short message pick-up based on MAP layer protocol
CN1677933A (en) * 2004-04-01 2005-10-05 华为技术有限公司 Method for controlling protocol message attack

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1529248A (en) * 2003-10-20 2004-09-15 北京启明星辰信息技术有限公司 Network invasion related event detecting method and system
US20050097357A1 (en) * 2003-10-29 2005-05-05 Smith Michael R. Method and apparatus for providing network security using security labeling
CN1677933A (en) * 2004-04-01 2005-10-05 华为技术有限公司 Method for controlling protocol message attack
CN1633123A (en) * 2004-12-03 2005-06-29 北京北方烽火科技有限公司 Method of one-way short message pick-up based on MAP layer protocol

Also Published As

Publication number Publication date
CN1852245A (en) 2006-10-25

Similar Documents

Publication Publication Date Title
CN109951500B (en) Network attack detection method and device
JP5320458B2 (en) Attack protection for packet-based networks
EP2134057B1 (en) Method for protecting a packet-based network from attacks, as well as security border node
US11128658B2 (en) Cloud-based forensic IP traceback
US8561188B1 (en) Command and control channel detection with query string signature
Makiou et al. Improving Web Application Firewalls to detect advanced SQL injection attacks
CN111200605B (en) A malicious identification defense method and system based on Handle system
CN101789947A (en) Method and firewall for preventing HTTP POST flooding attacks
KR20130014226A (en) Dns flooding attack detection method on the characteristics by attack traffic type
KR20110065091A (en) Internet Phone Billing Bypass Attack Detection System and Its Detection Method
CN102523223A (en) Trojan detection method and apparatus thereof
CN104348789A (en) Web server and method for preventing cross-site scripting attack
CN114928452A (en) Access request verification method, device, storage medium and server
CN112769833B (en) Method and device for detecting command injection attack, computer equipment and storage medium
CN100459579C (en) Detection method of super-long signaling message based on text coding
CN112154635A (en) Attack source tracing in SFC overlay networks
CN107864110A (en) Botnet main control end detection method and device
KR100684602B1 (en) Scenario-based Intrusion Response System using Session State Transition and Its Method
CN101795277A (en) Flow detection method and equipment in unidirectional flow detection mode
US8406223B2 (en) Mechanism for protecting H.323 networks for call set-up functions
CN107295022A (en) A kind of client certificate method based on man-machine identification
Chiou et al. Blocking spam sessions with greylisting and block listing based on client behavior
CN108768935A (en) Distribution system and method supporting layer-3 loop traffic detection and anti-DDOS attack
Li et al. A proposal for cyber-attack trace-back using packet marking and logging
JP4391455B2 (en) Unauthorized access detection system and program for DDoS attack

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090204

Termination date: 20191215