Fuzzy test system and method based on packet sequence variation
By introducing a protocol proxy server and a mutator into the fuzz testing system, the protocol packet sequence is subjected to packet mutation and packet sequence mutation processing, which solves the problems of difficult adaptation and poor test results in the existing technology, and achieves more efficient testing. Effect.
Patent Information
- Application Number
- CN202411386087.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-24
AI Technical Summary
The existing protocol fuzz testing schemes have problems such as difficult adaptation and poor testing results, especially the need to manually extract the protocol model, which is difficult and poorly versatile, and does not fully consider multi-field covariance.
A fuzzy testing system based on the sequence -based variation, including the protocol client, the protocol proxy server, and the mutant, obtain the protocol package sequence through the protocol proxy server, and use the mutant to perform the packaging mutations and sequence -sequence mutations by the mutant to generate test tests to generate test tests Use cases, reduce the difficulty of adaptation and improve the test effect.
By reducing the difficulty of adaptation without the need to deconstruct the protocol model, increase the mutation strategy of the entire package sequence, increase the probability of triggering the deep -seated state of the test target, and enhance the test effect.
Smart Images

Figure CN119363395A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fuzzy testing, and in particular to a fuzzy testing system and a testing method based on packet sequence variation. Background Art
[0002] Fuzz testing technology, also known as Fuzz technology, is an effective method for security testing of binary software. It is widely used in security testing of various application software such as document processing software, browsers, and network services.
[0003] The current protocol fuzz testing scheme is mainly a generative testing scheme, that is, by analyzing the protocol standard, extracting the protocol field model, defining mutation strategies for all fields, generating test cases, and then the developer tests the test target. However, not only does this method depend entirely on the quality of the protocol model and the complexity of the field mutation strategy, but it also requires manual extraction of the protocol model, which is difficult and has poor versatility. In addition, the existing protocol fuzz testing method usually only builds mutation strategies for fields, that is, it can generally only define strategies for a single field, and does not fully consider the situation of collaborative mutation of multiple fields, resulting in a large number of simple test cases that can only play a certain role in the protocol consistency test phase, and the overall test effect is poor. Summary of the invention
[0004] In view of this, in order to address the above shortcomings, it is necessary to propose a fuzzy testing system and testing method based on packet sequence mutation to solve the problems of difficult adaptation and poor testing results.
[0005] In a first aspect, the present invention provides a fuzzy testing system based on packet sequence mutation, comprising: a protocol client, a protocol proxy server and a mutator; The protocol client is used to initiate a session to connect to the protocol proxy server; and generate a protocol packet sequence for the session process and send the protocol packet sequence to the protocol proxy server; The protocol proxy server is used to respond to the session initiated by the protocol client, receive the protocol packet sequence, and forward the protocol packet sequence to the mutator; The mutator is used to obtain a protocol packet sequence from the protocol proxy server, and perform packet mutation and packet sequence mutation processing on the protocol packet sequence to obtain a packet mutation test case and a packet sequence mutation test case; The protocol proxy server is also used to call the mutator and obtain the packet mutation test case and the packet sequence mutation test case; and send the packet mutation test case and the packet sequence mutation test case to the target to be tested so that the target to be tested performs the test.
[0006] Preferably, the protocol client satisfies: the protocol supported by the protocol client can also be supported by the target to be tested.
[0007] Preferably, when the target to be tested supports multiple protocols at the same time, the protocol client includes multiple ones and supports different protocols, so as to generate packet mutation test cases and packet sequence mutation test cases for each protocol supported by the target to be tested, and use the packet mutation test cases and packet sequence mutation test cases corresponding to each protocol to test the target to be tested in turn.
[0008] Preferably, the mutator includes a package mutator and a package sequence mutator; The packet mutator is used to mutate the message field or structure in the protocol packet sequence to obtain a packet mutation test case; The packet sequence mutator is used to mutate the message sequence in the protocol packet sequence as a whole to obtain a packet sequence mutation test case; The protocol proxy server is used to call the packet mutator and the packet sequence mutator respectively, and obtain the packet mutation test case and the packet sequence mutation test case.
[0009] Preferably, when mutating the entire message sequence in the protocol packet sequence, the packet sequence mutator mutates the protocol packet sequence by at least one of adding a message sequence, deleting a message sequence and shuffling the message sequence.
[0010] Preferably, the packet sequence mutator stores and records the protocol packet sequence before mutating the message sequence in the protocol packet sequence as a whole.
[0011] Preferably, the protocol proxy server is further used to receive test target data returned by the target to be tested, and forward the test target data to the protocol client.
[0012] In a second aspect, the present invention provides a fuzzy testing method based on packet sequence variation, the implementation subject of the testing method is the fuzzy testing system based on packet sequence variation as described in the first aspect, and the method comprises the following steps: Initiate a session with the protocol proxy server using the protocol client to connect to the protocol proxy server; Using the protocol client to generate a protocol packet sequence of the session process, and sending the protocol packet sequence to the protocol proxy server; Responding to the session initiated by the protocol client using the protocol proxy server; Utilizing the protocol proxy server to receive a protocol packet sequence, and forwarding the protocol packet sequence to a mutator; Using the mutator to obtain the protocol packet sequence from the protocol proxy server; Using a mutator to perform packet mutation processing and packet sequence mutation processing on the protocol packet sequence respectively, to obtain a packet mutation test case and a packet sequence mutation test case; Using a protocol proxy server to call the mutator and obtain a packet mutation test case and a packet sequence mutation test case; The protocol proxy server is used to send the packet mutation test case and the packet sequence mutation test case to the target to be tested so that the target to be tested performs the test.
[0013] Preferably, when the target to be tested supports multiple protocols, a protocol client supporting different protocols is used to generate a protocol packet sequence, and the protocol packet sequence of each protocol is mutated through a mutator to obtain packet mutation test cases and packet sequence mutation test cases for each protocol supported by the target to be tested, so as to test each protocol supported by the target to be tested.
[0014] Preferably, the using a mutator to perform packet mutation processing and packet sequence mutation processing on the protocol packet sequence respectively includes: Using a packet mutator to mutate a message field or structure in a protocol packet sequence to obtain a packet mutation test case; and, The packet sequence mutator is used to mutate the message sequence in the protocol packet sequence as a whole to obtain a packet sequence mutation test case; The method of using the protocol proxy server to call the mutator and obtain the packet mutation test case and the packet sequence mutation test case includes: The protocol proxy server is used to call the packet mutator and the packet sequence mutator respectively to obtain the packet mutation test case and the packet sequence mutation test case.
[0015] It can be seen from the above technical scheme that in the fuzzy testing system and testing method based on packet sequence mutation provided by the embodiment of the present invention, the system includes a protocol client, a protocol proxy server and a mutator. The protocol client can initiate a session to the protocol proxy server to connect to the protocol proxy server. At the same time, the protocol client will generate a protocol packet sequence of the session process and send the generated protocol packet sequence to the protocol proxy server; the protocol proxy server will respond to the session initiated by the protocol client, then receive the protocol packet sequence, and forward the protocol packet sequence to the mutator; after the mutator obtains the protocol packet sequence from the protocol proxy server, it will perform packet mutation processing and packet sequence mutation processing on the protocol packet sequence respectively, thereby obtaining packet mutation test cases and packet sequence mutation test cases; further, the protocol proxy server obtains packet mutation test cases and packet sequence mutation test cases by calling the mutator, and sends them to the target to be tested so that the target to be tested can perform the test. It can be seen that this scheme obtains the protocol packet sequence through the protocol proxy server, does not require manual deconstruction of the protocol model, and greatly reduces the difficulty of adaptation. Moreover, based on the traditional packet mutation, this scheme further adds a mutation strategy for the entire packet sequence, and fully considers the situation of multi-field collaborative mutation from the session level, which can greatly improve the probability of triggering the deep-level state of the test target and enhance the test effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a fuzzy testing system based on packet sequence variation provided by an embodiment of the present invention.
[0017] Figure 2 A schematic diagram of another fuzzy testing system based on packet sequence variation provided by an embodiment of the present invention.
[0018] In the figure: a protocol client 10, a protocol proxy server 20, a mutator 30, a packet mutator 31, a packet sequence mutator 32, and a target to be tested 40. DETAILED DESCRIPTION
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Existing protocol fuzz testing schemes are mainly generative testing schemes, which analyze the protocol standards and extract the protocol field model; define mutation strategies for all fields and generate test cases; develop packet senders to test the test targets. The test results depend entirely on the quality of the protocol model and the complexity of the field mutation strategy.
[0021] In addition, since the generative protocol fuzz testing scheme requires manual extraction of the protocol model, it is difficult and has poor versatility, and the workload of adapting to private protocols is large. Secondly, when building mutation strategies for fields, strategies are generally only defined for a single field, and it is difficult to cover multi-field collaborative mutation strategies, resulting in a large number of simple test cases and poor test results, which can only play a role in the protocol consistency testing phase. In addition, the generative fuzz testing scheme is not easy to construct complex protocol interaction processes, resulting in many deep-level states of the target to be tested cannot be triggered. Based on this, Figure 1-2 As shown, the present invention provides a fuzzy testing system based on packet sequence mutation, including: a protocol client 10, a protocol proxy server 20 and a mutator 30; The protocol client 10 is used to initiate a session to connect to the protocol proxy server 20; and to generate a protocol packet sequence of the session process and send the protocol packet sequence to the protocol proxy server 20; The protocol proxy server 20 is used to respond to the session initiated by the protocol client 10, receive the protocol packet sequence, and forward the protocol packet sequence to the mutator 30; The mutator 30 is used to obtain the protocol packet sequence from the protocol proxy server 20, and perform packet mutation and packet sequence mutation processing on the protocol packet sequence to obtain a packet mutation test case and a packet sequence mutation test case; The protocol proxy server 20 is further used to call the mutator 30 and obtain the packet mutation test case and the packet sequence mutation test case; and send the packet mutation test case and the packet sequence mutation test case to the target to be tested 40 for testing by the target to be tested 40.
[0022] In this embodiment, the protocol packet sequence is obtained through the protocol proxy server 20, and there is no need to manually deconstruct the protocol model, which greatly reduces the difficulty of adaptation. Moreover, based on the traditional packet mutation, this solution further adds a mutation strategy for the entire packet sequence, and fully considers the situation of multi-field collaborative mutation from the session level, thereby greatly improving the probability of triggering the deep-level state of the test target and enhancing the test effect.
[0023] For the protocol client 10, it should be able to satisfy that the protocol supported by the protocol client 10 can also be supported by the target to be tested 40. In this way, the protocol client 10 can generate a protocol packet sequence under the corresponding protocol, thereby realizing the test of the device to be tested under the protocol. The protocol client 10, as the initiator of this solution, can select an existing client or customize the development. The development process is simple and the integration method is flexible.
[0024] Of course, in practice, the device to be tested often supports multiple protocols at the same time. Therefore, the protocol client 10 may include multiple and support different protocols to generate packet mutation test cases and packet sequence mutation test cases for each protocol supported by the target to be tested 40, and use the packet mutation test cases and packet sequence mutation test cases corresponding to each protocol to test the target to be tested 40 in turn, that is, to test the device to be tested under various protocols to ensure the comprehensiveness and accuracy of the test.
[0025] For example, if the device to be tested supports protocol A, protocol B and protocol C at the same time, then protocol client a supporting protocol A, protocol client b supporting protocol B and protocol client c supporting protocol C can be selected at the same time, and protocol client a, protocol client b and protocol client c can be used to execute the process of generating test cases respectively. For example, taking protocol client a as an example, protocol client a initiates a session to connect to protocol proxy server 20, and generates a protocol packet sequence and sends it to protocol proxy server 20; protocol proxy server 20 responds to the session initiated by protocol client a, and forwards it to mutator 30 after receiving the protocol packet sequence; mutator 30 performs mutation processing respectively after obtaining the protocol packet sequence, and obtains packet mutation test cases and packet sequence mutation test cases; protocol proxy server 20 calls mutator 30 to obtain packet mutation test cases and packet sequence mutation test cases, and sends them to the target to be tested 40 for testing. The same is true for protocol client b and protocol client c. In this way, packet mutation test cases and packet sequence mutation test cases corresponding to different protocols can be obtained respectively, and then packet mutation test cases and packet sequence mutation test cases can be obtained by using different protocols, so that different protocols of the target to be tested 40 can be tested.
[0026] Of course, in practice, although the target 40 to be tested supports multiple protocols at the same time, it is not necessary to test all the supported protocols. Therefore, the corresponding protocol client 10 can be selected for testing according to the protocol to be tested.
[0027] The protocol proxy server 20 is mainly used to respond to the session initiated by the protocol client 10, connect to the target to be tested 40, receive the protocol packet sequence, call the mutator 30 to record the packet sequence, obtain the mutated packet mutation test case and the packet sequence mutation test case, and receive the test target data and forward it to the protocol client 10, etc. In this way, the protocol proxy server 20 does not need to manually deconstruct the protocol model, thereby reducing the difficulty of adaptation.
[0028] The mutator 30 may specifically include: a packet mutator 31 and a packet sequence mutator 32; A packet mutator 31 is used to mutate a message field or structure in a protocol packet sequence to obtain a packet mutation test case; The packet sequence mutator 32 is used to mutate the message sequence in the protocol packet sequence as a whole to obtain a packet sequence mutation test case; The protocol proxy server 20 is used to call the packet mutator 31 and the packet sequence mutator 32 respectively, and obtain the packet mutation test case and the packet sequence mutation test case.
[0029] The packet mutator 31 is mainly used to mutate the message field or structure in the protocol packet sequence. For example, when mutating the version field of the IP message, the following process can be performed: The original hexadecimal message is: 0000 45 00 00 28 99 95 40 00 80 06 e7 f3 c0 a8 04 7e 0010 72 fa 41 26 The original message structure is: Internet Protocol Version 4, Src: 192.168.4.126, Dst: 114.250.65.38 0100 .... = Version: 4 .... 0101 = Header Length: 20 bytes (5) Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT) Total Length: 40 Identification: 0x9995 (39317) 010. .... = Flags: 0x2, Don't fragment ...0 0000 0000 0000 = Fragment Offset: 0 Time to Live: 128 Protocol: TCP (6) Header Checksum: 0xe7f3 [validation disabled] [Header checksum status: Unverified] Source Address: 192.168.4.126 Destination Address: 114.250.65.38 The hexadecimal message after the mutation is: 0000 55 00 00 28 99 95 40 00 80 06 e7 f3 c0 a8 04 7e 0010 72 fa 41 26 The message structure after mutation is: Internet Protocol Version 5, Src: 192.168.4.126, Dst: 114.250.65.38 0101 .... = Version: 5 .... 0101 = Header Length: 20 bytes (5) Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT) Total Length: 40 Identification: 0x9995 (39317) 010. .... = Flags: 0x2, Don't fragment ...0 0000 0000 0000 = Fragment Offset: 0 Time to Live: 128 Protocol: TCP (6) Header Checksum: 0xe7f3 [validation disabled] [Header checksum status: Unverified] Source Address: 192.168.4.126 Destination Address: 114.250.65.38 The packet sequence mutator 32 is used to mutate the entire message sequence in the protocol packet sequence, specifically, it can add message sequences, delete message sequences and disorder message sequences, etc. For example, the mutation of the IP packet message sequence can be as follows: The original message sequence is: Fragment 0, Fragment 1, Fragment end 1) Mutate message sequence 1 (delete message sequence) Fragment 0, Frament end 2) Mutation message sequence 2 (disordered message sequence) Fragment end, Fragment 0, Fragment 1 3) Mutation message sequence 3 (add message sequence) Fragment 0, Fragment 1, Fragment 1, Fragment end Of course, in one embodiment, before the packet sequence mutator 32 mutates the entire message sequence in the protocol packet sequence, it should also store and record the protocol packet sequence.
[0030] In addition, in one embodiment, the protocol proxy server 20 can also be used to receive the test target data returned by the target to be tested 40, and forward the test target data to the protocol client 10, so that the client staff can determine the test result of the target to be tested 40.
[0031] In addition, the present invention also provides a fuzzy testing method based on packet sequence variation. The implementation subject of the testing method is the fuzzy testing system based on packet sequence variation as described in the above embodiments. The method comprises the following steps: Initiate a session with the protocol proxy server 20 using the protocol client 10 to connect to the protocol proxy server 20; Generate a protocol packet sequence of a session process using the protocol client 10, and send the protocol packet sequence to the protocol proxy server 20; Using the protocol proxy server 20 to respond to the session initiated by the protocol client 10; Utilize the protocol proxy server 20 to receive the protocol packet sequence, and forward the protocol packet sequence to the mutator 30; Obtaining the protocol packet sequence from the protocol proxy server 20 using the mutator 30; Using the mutator 30 to perform packet mutation processing and packet sequence mutation processing on the protocol packet sequence, respectively, to obtain a packet mutation test case and a packet sequence mutation test case; Using the protocol proxy server 20 to call the mutator 30, and obtain the packet mutation test case and the packet sequence mutation test case; The protocol proxy server 20 is used to send the packet mutation test case and the packet sequence mutation test case to the target to be tested 40 so as to be tested by the target to be tested 40 .
[0032] In one embodiment, when the target to be tested 40 supports multiple protocols, a protocol client 10 that supports different protocols is used to generate a protocol packet sequence, and the protocol packet sequence of each protocol is mutated through a mutator 30 to obtain packet mutation test cases and packet sequence mutation test cases corresponding to each protocol supported by the target to be tested 40, so as to test each protocol supported by the target to be tested 40.
[0033] In one embodiment, the mutator 30 is used to perform packet mutation processing and packet sequence mutation processing on the protocol packet sequence, including: Using the packet mutator 31 to mutate the message field or structure in the protocol packet sequence to obtain a packet mutation test case; and, The packet sequence mutator 32 is used to mutate the message sequence in the protocol packet sequence as a whole to obtain a packet sequence mutation test case; Using the protocol proxy server 20 to call the mutator 30 and obtain the packet mutation test case and the packet sequence mutation test case, including: The protocol proxy server 20 is used to call the packet mutator 31 and the packet sequence mutator 32 respectively to obtain the packet mutation test case and the packet sequence mutation test case.
[0034] Since the method embodiment provided by the present invention is based on the same inventive concept as the system embodiment of this specification, the specific content can be found in the description of the system embodiment of this specification and will not be repeated here.
[0035] In summary, the present invention has at least the following beneficial effects: 1) The protocol fuzz testing method based on packet sequence mutation proposed in this solution is easy to integrate with feature protocol clients. It is difficult for current protocol testing tools to extract protocol models, the adaptation cost is high, and it is impossible to customize the adaptation of private protocols by individuals. This solution uses specific protocol clients for adaptation, which greatly reduces the adaptation cost and saves time for extracting protocol models.
[0036] 2) For the existing protocol testing scheme, the protocol field mutation strategy is simple and cannot trigger the deep-level status of the target. This scheme adds mutation strategies such as addition, deletion, and reordering for the complete session process packet sequence, which greatly enhances the test effect.
[0037] The present specification also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute a method in any one of the embodiments in the specification.
[0038] The present specification also provides a computing device, including a memory and a processor, wherein executable codes are stored in the memory, and when the processor executes the executable codes, a method in any embodiment of the present specification is implemented.
[0039] The modules or units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. The above disclosure is only the preferred embodiment of the present invention, and of course it cannot be used to limit the scope of the rights of the present invention. Those skilled in the art can understand that all or part of the processes of the above embodiment are implemented, and the equivalent changes made according to the claims of the present invention still fall within the scope of the invention.
Claims
1. A fuzzy testing system based on packet sequence variation, characterized in that: include: protocol clients, protocol proxy servers, and mutators; The protocol client is used to initiate a session to connect to the protocol proxy server; and, generating a protocol packet sequence of the session process, and sending the protocol packet sequence to the protocol proxy server; The protocol proxy server is used to respond to the session initiated by the protocol client, receive the protocol packet sequence, and forward the protocol packet sequence to the mutator; The mutator is used to obtain a protocol packet sequence from the protocol proxy server, and perform packet mutation and packet sequence mutation processing on the protocol packet sequence to obtain a packet mutation test case and a packet sequence mutation test case; The protocol proxy server is further used to call the mutator and obtain the packet mutation test case and the packet sequence mutation test case; And, the packet mutation test case and the packet sequence mutation test case are sent to a target to be tested, so that the target to be tested performs the test.
2. The fuzzy testing system based on packet sequence variation according to claim 1 is characterized in that: The protocol client satisfies that: the protocol supported by the protocol client can also be supported by the target to be tested.
3. The fuzzy testing system based on packet sequence variation according to claim 2 is characterized in that: When the target to be tested supports multiple protocols at the same time, the protocol client includes multiple protocols and supports different protocols, so as to generate packet mutation test cases and packet sequence mutation test cases for each protocol supported by the target to be tested, and use the packet mutation test cases and packet sequence mutation test cases corresponding to each protocol to test the target to be tested in turn.
4. The fuzzy testing system based on packet sequence variation according to claim 1 is characterized in that: The mutator includes a package mutator and a package sequence mutator; The packet mutator is used to mutate the message field or structure in the protocol packet sequence to obtain a packet mutation test case; The packet sequence mutator is used to mutate the message sequence in the protocol packet sequence as a whole to obtain a packet sequence mutation test case; The protocol proxy server is used to call the packet mutator and the packet sequence mutator respectively, and obtain the packet mutation test case and the packet sequence mutation test case.
5. The fuzzy testing system based on packet sequence variation according to claim 4 is characterized in that: When the packet sequence mutator mutates the message sequence in the protocol packet sequence as a whole, the protocol packet sequence is mutated by at least one of adding a message sequence, deleting a message sequence and shuffling the message sequence.
6. The fuzzy testing system based on packet sequence variation according to claim 4 is characterized in that: The packet sequence mutator stores and records the protocol packet sequence before mutating the message sequence in the protocol packet sequence as a whole.
7. The fuzzy testing system based on packet sequence variation according to any one of claims 1 to 6, characterized in that: The protocol proxy server is further configured to receive the test target data returned by the target to be tested, and forward the test target data to the protocol client.
8. A fuzzy testing method based on packet sequence variation, characterized in that: The implementation subject of the test method is the fuzzy test system based on packet sequence variation as described in claims 1-7, and the method comprises the following steps: Initiate a session with the protocol proxy server using the protocol client to connect to the protocol proxy server; Generate a protocol packet sequence of a session process using a protocol client, and send the protocol packet sequence to a protocol proxy server; Responding to the session initiated by the protocol client using the protocol proxy server; Utilizing the protocol proxy server to receive a protocol packet sequence, and forwarding the protocol packet sequence to a mutator; Using the mutator to obtain the protocol packet sequence from the protocol proxy server; Using a mutator to perform packet mutation processing and packet sequence mutation processing on the protocol packet sequence respectively, to obtain a packet mutation test case and a packet sequence mutation test case; Using a protocol proxy server to call the mutator and obtain a packet mutation test case and a packet sequence mutation test case; The protocol proxy server is used to send the packet mutation test case and the packet sequence mutation test case to the target to be tested so that the target to be tested performs the test.
9. The fuzzy testing method based on packet sequence variation according to claim 8 is characterized in that: When the target to be tested supports multiple protocols, a protocol client that supports different protocols is used to generate a protocol packet sequence, and the protocol packet sequence of each protocol is mutated through a mutator to obtain packet mutation test cases and packet sequence mutation test cases for each protocol supported by the target to be tested, so as to test each protocol supported by the target to be tested.
10. The fuzzy testing method based on packet sequence variation according to claim 8, characterized in that: The method of using a mutator to perform packet mutation processing and packet sequence mutation processing on the protocol packet sequence respectively includes: Using a packet mutator to mutate a message field or structure in a protocol packet sequence to obtain a packet mutation test case; and, The packet sequence mutator is used to mutate the message sequence in the protocol packet sequence as a whole to obtain a packet sequence mutation test case; The method of using the protocol proxy server to call the mutator and obtain the packet mutation test case and the packet sequence mutation test case includes: The protocol proxy server is used to call the packet mutator and the packet sequence mutator respectively to obtain the packet mutation test case and the packet sequence mutation test case.