Method, device, electronic device and storage medium for processing communication data
Through mutation processing and simulation testing of the original communication data in the WPS protocol, the security vulnerabilities of the Registrar role were identified, solving the vulnerability problem that was difficult to identify in the existing technology, and improving the security of the wireless network.
Patent Information
- Application Number
- CN202111494321.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-08
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-12-08
AI Technical Summary
In the existing technology, the security vulnerabilities of the Registrar role in the WPS protocol are difficult to be effectively identified by automated fuzz testing methods, and the general wireless protocol fuzz testing method is difficult to fully exploit the vulnerabilities of the Registrar role, especially due to the memory introduced when parsing the data packets sent by the Enrollee role. Insufficient coverage of broken vulnerabilities and TLV attributes.
By obtaining the original communication data, using the target communication protocol (such as WPS protocol) to mutate it, simulating the authenticator role to send mutation data to the registrant role, and monitoring the running status of the registrant role to achieve fuzz testing of the registrant role. , and then identify its security vulnerabilities.
It achieves efficient and comprehensive identification of security vulnerabilities in the registrant role, improves the security of wireless networks, and avoids the problems of invalid mutations and insufficient coverage in general fuzz testing methods.
Smart Images

Figure CN114173344B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and further to the field of network security, and in particular to a method, device, electronic device and storage medium for processing communication data. Background Art
[0002] The Wi-Fi Protected Setup (WPS) protocol is a protocol used to simplify the configuration, installation and security configuration of wireless networks, and can effectively simplify the security setup operations of wireless networks.
[0003] The WPS protocol includes three logical roles: Enrollee, Registrar, and Access Point (AP). In related solutions, when wireless manufacturers implement the Registrar role in the WPS protocol, they often inevitably introduce some security vulnerabilities, which will seriously affect the security of the wireless network. Summary of the invention
[0004] The present disclosure provides a method, device, electronic device and storage medium for processing communication data to efficiently and comprehensively identify security vulnerabilities of registrant roles.
[0005] According to one aspect of the present disclosure, a method for processing communication data is provided, comprising: obtaining original communication data, wherein the original communication data adopts a target communication protocol, the target communication protocol is used to simplify the security configuration of a wireless local area network, and an authenticator role and a registrant role are defined in the target communication protocol; mutating the original communication data to obtain mutated communication data; sending the mutated communication data to the registrant role by simulating the authenticator role; and monitoring the operating status of the registrant role when processing the mutated communication data.
[0006] According to another aspect of the present disclosure, there is provided a device for processing communication data, including: an acquisition module, used to acquire original communication data, wherein the original communication data adopts a target communication protocol, the target communication protocol is used to simplify the security configuration of the wireless local area network, and the target communication protocol defines an authenticator role and a registrant role; a mutation module, used to mutate the original communication data to obtain mutated communication data; a sending module, used to send the mutated communication data to the registrant role by simulating the authenticator role; and a monitoring module, used to monitor the operating status of the registrant role when processing the mutated communication data.
[0007] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for processing communication data proposed in the present disclosure.
[0008] According to yet another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method for processing communication data proposed in the present disclosure.
[0009] According to another aspect of the present disclosure, a computer program product is provided, including a computer program. When a processor executes the computer program, the method for processing communication data proposed in the present disclosure is executed.
[0010] In the present disclosure, by obtaining original communication data, the original communication data adopts a target communication protocol, the target communication protocol is used to simplify the security configuration of the wireless local area network, the target communication protocol defines an authenticator role and a registrant role, and then the original communication data is mutated to obtain mutated communication data, and then the authenticator role is simulated to send the mutated communication data to the registrant role, and finally the running status of the registrant role when processing the mutated communication data is monitored, thereby achieving the purpose of fuzz testing the registrant role using the mutated communication data, so that the security vulnerabilities of the registrant role can be identified efficiently and comprehensively.
[0011] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0013] Figure 1 is a hardware structure block diagram of a computer terminal (or mobile device) for implementing a method for processing communication data according to an embodiment of the present disclosure;
[0014] Figure 2 is a flow chart of a method for processing communication data according to an embodiment of the present disclosure;
[0015] Figure 3 is a flow chart of another method for processing communication data according to an embodiment of the present disclosure;
[0016] Figure 4 It is a structural block diagram of a device for processing communication data according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0017] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0018] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0019] First, some nouns or terms that appear in the description of the embodiments of the present disclosure are subject to the following explanations:
[0020] Fuzz testing: It is to input automatically or semi-automatically generated random data into a program and monitor program anomalies, such as crashes and assertion failures, to find possible program errors, such as memory leaks. Fuzz testing can be used to detect security vulnerabilities in software or computer systems.
[0021] The WPS protocol can effectively simplify the security setting operation of wireless networks. After applying the WPS protocol during communication, users only need to enter their personal information code to securely connect to the wireless LAN.
[0022] The WPS protocol is a communication protocol based on tags, lengths, and contents (Tag, Length, Value, TLV), which mainly includes three logical roles: Enrollee, Registrar, and AP. Among them, the Enrollee can obtain the security configuration information of the AP with the help of the Registrar.
[0023] In related solutions, when wireless vendors implement the Registrar role in the WPS protocol, they often inevitably introduce some security vulnerabilities, such as memory corruption vulnerabilities, due to parsing the TLV in the data packets sent by the Enrollee role. These vulnerabilities will seriously affect the security of the wireless network. However, there is currently no automated fuzz testing method and tool specifically for the Registrar role in the WPS protocol, and the general wireless protocol fuzz testing method is difficult to fully explore the vulnerabilities existing in the Registrar role.
[0024] Specifically, in the general wireless protocol fuzz testing method, the wireless network data packets are first captured, and then the captured wireless network data packets are randomly mutated and sent to the test target to monitor whether the test target is abnormal or crashed. In this test method, random mutation is adopted, and no parsing and understanding of the data packets is performed, resulting in a large number of invalid mutations; in addition, the Registrar role supports a large number of TLV attributes, and the general method can only mutate based on the captured data packets, resulting in insufficient coverage of the mutated attributes; finally, the Registrar role has different states, and some vulnerabilities can only be triggered when the Registrar role is in a specific state. It is difficult for the general method to discover such vulnerabilities.
[0025] Therefore, it is difficult for general wireless protocol fuzz testing methods to fully explore the vulnerabilities existing in the Registrar role.
[0026] According to an embodiment of the present disclosure, a method for processing communication data is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0027] The method embodiments provided by the embodiments of the present disclosure can be executed in a mobile terminal, a computer terminal or a similar electronic device. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein. Figure 1 A hardware structure block diagram of a computer terminal (or mobile device) for implementing a method for processing communication data is shown.
[0028] like Figure 1 As shown, the computer terminal 100 includes a computing unit 101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 102 or a computer program loaded from a storage unit 108 into a random access memory (RAM) 103. In the RAM 103, various programs and data required for the operation of the computer terminal 100 can also be stored. The computing unit 101, the ROM 102, and the RAM 103 are connected to each other via a bus 104. An input / output (I / O) interface 105 is also connected to the bus 104.
[0029] A number of components in the computer terminal 100 are connected to the I / O interface 105, including: an input unit 106, such as a keyboard, a mouse, etc.; an output unit 107, such as various types of displays, speakers, etc.; a storage unit 108, such as a disk, an optical disk, etc.; and a communication unit 109, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 109 allows the computer terminal 100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0030] The computing unit 101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 101 performs the method for processing communication data described herein. For example, in some embodiments, the method for processing communication data may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 108. In some embodiments, part or all of the computer program may be loaded and / or installed on the computer terminal 100 via ROM 102 and / or communication unit 109. When the computer program is loaded into RAM 103 and executed by the computing unit 101, one or more steps of the method for processing communication data described herein may be performed. Alternatively, in other embodiments, the computing unit 101 may be configured to perform the method for processing communication data in any other appropriate manner (e.g., by means of firmware).
[0031] Various implementations of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0032] It should be noted that, in some optional embodiments, the above Figure 1 The electronic device shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Figure 1 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the electronic devices described above.
[0033] Under the above operating environment, the present disclosure provides Figure 2 The method for processing communication data shown in FIG. Figure 1 The computer terminal or similar electronic device shown is used for execution. Figure 2 FIG. 1 is a flow chart of a method for processing communication data according to an embodiment of the present disclosure. Figure 2 As shown, the method may include the following steps:
[0034] Step S21, obtaining original communication data, wherein the original communication data adopts a target communication protocol, the target communication protocol is used to simplify the security configuration of the wireless local area network, and the target communication protocol defines an authenticator role and a registrant role;
[0035] The target communication protocol is a communication protocol implemented based on the target data transmission protocol, and the target data transmission protocol defines a tag field, a length field and a content field.
[0036] For example, if the target communication protocol is the WPS protocol, by analyzing the WPS protocol and actually capturing and analyzing the WPS data packets of various wireless manufacturers, a more complete set of attributes can be obtained, thereby covering a larger test range.
[0037] The above-mentioned original communication data can be obtained by capturing the communication data packet of the WPS protocol, wherein the communication data packet of the WPS protocol is sent by the Enrollee role to the Registrar role. The target data transmission protocol is the TLV protocol, the tag field is the Tag field, the tag field consists of one or more bytes, and is used to indicate the data type. When TLV is nested, it can be used to describe the type of message; the length field is the Length field, which is used to indicate the length of the data value, and the encoding format is divided into a fixed-length method (Definite Form) and an indefinite-length method (Indefinite Form); the content field is the Value field, which is used to indicate the data value, wherein the data value can be a primitive data type (Primitive Data) or a TLV structure (Constructed Data).
[0038] Step S22, performing mutation processing on the original communication data to obtain mutated communication data;
[0039] Specifically, the implementation process of performing mutation processing on the original communication data to obtain the mutated communication data can refer to the further introduction of the embodiment of the present disclosure, which will not be described in detail.
[0040] Step S23, sending the mutated communication data to the registrant role by simulating the authenticator role;
[0041] For example, the WPS packet sender can simulate the Enrollee role and send mutated communication data to the Registrar role. The WPS packet sender can fully implement the Enrollee role of the WPS protocol stack, interact with the Registrar role, and enable the Registrar role to enter any state.
[0042] Step S24, monitoring the running status of the registrant role when processing the mutated communication data.
[0043] Specifically, the implementation process of monitoring the running status of the registrant role when processing the mutated communication data can refer to the further introduction of the embodiment of the present disclosure, which will not be described in detail.
[0044] According to the above steps S21 to S24 of the present disclosure, by obtaining the original communication data, the original communication data adopts the target communication protocol, the target communication protocol is used to simplify the security configuration of the wireless local area network, the target communication protocol defines the authenticator role and the registrant role, and then the original communication data is mutated to obtain the mutated communication data, and then the authenticator role is simulated to send the mutated communication data to the registrant role, and finally the running status of the registrant role when processing the mutated communication data is monitored, thereby achieving the purpose of fuzzy testing the registrant role using the mutated communication data, so that the security vulnerabilities of the registrant role can be identified efficiently and comprehensively.
[0045] The method for processing communication data in the above embodiment is further introduced below.
[0046] As an optional implementation manner, in step S22, performing mutation processing on the original communication data to obtain the mutated communication data includes: performing mutation processing on the length field included in the original communication data to obtain the mutated communication data.
[0047] Specifically, the original communication data is parsed and the Length field contained therein is mutated to obtain the mutated communication data, which can effectively reduce invalid mutations and improve the efficiency of generating mutated communication data. For example, only the Value field in the original communication data is mutated to obtain the mutated communication data. When the Registrar role parses such mutated communication data, an abnormal operation state may not occur. Therefore, such mutation processing performed only on the Value field in the original communication data is an invalid mutation.
[0048] For example, the Length field included in the original communication data is mutated to obtain mutated communication data. The value of the Length field in the original communication data is the length of the Value field. The Length field included in the original communication data is mutated to an abnormal value that is different from the length of the Value field, such as increasing the value of the Length field or decreasing the value of the Length field. For example, the value of the Length field in the original communication data is mutated to 0, and the actual value of the value of the Length field is the length of the Value field, and the actual value is not 0.
[0049] By mutating the length field contained in the original communication data to obtain mutated communication data, some common memory corruption vulnerabilities in the TLV parsing process of the Registrar role can be triggered, and the memory corruption vulnerabilities in the Registrar role can be identified. For example, if the Length field is too short, it will cause out-of-bounds read or integer overflow, and if the Length field is too long, it will cause out-of-bounds write and other problems.
[0050] As an optional implementation, in step S22, the original communication data is mutated to obtain mutated communication data, including: mutating the data block contained in the original communication data to obtain mutated communication data, wherein the structure of the data block is configured according to the tag field, length field and content field.
[0051] For example, the TLV blocks contained in the original communication data are randomly added or deleted to obtain the mutated communication data, and each TLV block includes three parts: Tag, Length, and Value.
[0052] By mutating the data blocks contained in the original communication data to obtain mutated communication data, the logical vulnerabilities related to memory corruption in the TLV parsing process of the Registrar role can be triggered, and the logical vulnerabilities related to memory corruption in the Registrar role can be identified. For example, logical vulnerabilities related to memory corruption may include double-free, use-after-free, etc.
[0053] As an optional implementation, in step S24, monitoring the running state of the registrant role when processing the mutated communication data includes: using a target monitoring method to monitor whether the running state of the registrant role is abnormal when processing the mutated communication data.
[0054] The above target monitoring method can be implemented through a crash monitoring module. The crash monitoring module can be used to monitor whether the running state of the Registrar role is abnormal when processing mutated communication data.
[0055] Specifically, the target monitoring method is adopted to monitor whether the running state of the registrant role is abnormal when processing the mutated communication data. The implementation process can refer to the further introduction of the embodiment below and will not be repeated here.
[0056] By adopting the target monitoring method to monitor whether the running status of the registrar role is abnormal when processing the mutated communication data, the fuzzy test of the registrar role can be quickly implemented to obtain accurate and reliable test results.
[0057] As an optional implementation, adopting a target monitoring method to monitor whether the running status is abnormal includes: adopting a log monitoring method to determine whether the running status is abnormal by filtering keywords included in a preset log.
[0058] The above preset log is a serial port log, and the monitoring serial port log is adopted to filter the keywords contained in the serial port log to determine whether the running state is abnormal. Among them, when the running state is abnormal, the keywords contained in the serial port log may include crash, error, stack trace, etc.
[0059] By monitoring and filtering the keywords included in the preset logs, when the running status of the Registrar role is abnormal, the abnormal running status can be accurately detected, and then the security vulnerabilities that cause the abnormal running status can be identified, and the fuzzy testing of the Registrar role can be efficiently implemented.
[0060] As an optional implementation manner, adopting a target monitoring method to monitor whether the operating status is abnormal includes: adopting a command monitoring method to detect whether the operating status is abnormal through a preset command.
[0061] The preset command may be a network diagnostic tool (Packet Internet Groper, Ping) command, which can be used to measure the network connection amount. For example, the survival status of the Registrar role can be determined by the Ping command, and then whether the running status of the Registrar role crashes when processing abnormal communication data.
[0062] Combine the following Figure 3 The method for processing communication data described in the disclosed embodiment is introduced.
[0063] Figure 3 is a flow chart of another method for processing communication data according to an embodiment of the present disclosure, such as Figure 3 As shown, the method comprises the following steps:
[0064] Step S31, obtaining original communication data;
[0065] The original communication data adopts the target communication protocol, which is used to simplify the security configuration of the wireless local area network. The target communication protocol defines an authenticator role and a registrant role.
[0066] Step S32, performing mutation processing on the original communication data to obtain mutated communication data;
[0067] Step S33, using the WPS packet sender to send the mutated communication data to the registrant role;
[0068] Specifically, the WPS packet sender is responsible for sending WPS data packets, which include mutated communication data. For example, the WPS packet sender can send M1, M3, M5, and M7 data packets, and can parse and process the received M2, M4, M6, and M8 data packets. Correspondingly, the Registrar role has the following states: receiving M1 (RECV_M), sending M2 (SEND_M2), receiving M3 (RECV_M3), sending M4 (SEND_M4), receiving M5 (RECV_M5), sending M6 (SEND_M6), receiving M7 (RECV_M7), sending M8 (SEND_M8), receiving completed (RECV_DONE), sending M2D file (SEND_M2D), receiving confirmation character of M2D file (RECV_M2D_ACK), etc., among which some security vulnerabilities can only be triggered in specific states. The WPS packet sender can fully implement the Enrollee role of the WPS protocol stack. It can interact with the Registrar role by simulating the Enrollee role and enable the Registrar to enter any state.
[0069] Step S34, using the Crash monitoring module to monitor the running status of the registrant role when processing the mutated communication data.
[0070] Based on the above steps S31 to S34, the possible security vulnerabilities in the Registrar role can be efficiently and comprehensively mined to obtain accurate and reliable fuzz test results. For example, by applying the other methods for processing communication data described in the above embodiments to the wireless network mesh fuzz test (MeshFuzzer) tool, fuzz testing is performed on the WiFi chip, and multiple high-risk security vulnerabilities can be found, and multiple common vulnerability disclosures (Common Vulnerabilities & Exposures, CVE) can be obtained.
[0071] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0072] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present disclosure.
[0073] In the present disclosure, a device for processing communication data is also provided, and the device is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0074] Figure 4 is a structural block diagram of a device for processing communication data according to one embodiment of the present disclosure, such as Figure 4 As shown, a device 400 for processing communication data includes:
[0075] The acquisition module 401 is used to acquire original communication data, wherein the original communication data adopts a target communication protocol, the target communication protocol is used to simplify the security configuration of the wireless local area network, and the target communication protocol defines an authenticator role and a registrant role;
[0076] The mutation module 402 is used to perform mutation processing on the original communication data to obtain mutated communication data;
[0077] The sending module 403 is used to send the mutated communication data to the registrant role by simulating the authenticator role;
[0078] The monitoring module 404 is used to monitor the running status of the registrant role when processing the mutated communication data.
[0079] Optionally, the target communication protocol is a communication protocol implemented based on a target data transmission protocol, and the target data transmission protocol defines a tag field, a length field and a content field.
[0080] Optionally, the mutation module 402 is further configured to perform mutation processing on the length field contained in the original communication data to obtain mutated communication data.
[0081] Optionally, the mutation module 402 is further used to perform mutation processing on a data block included in the original communication data to obtain mutated communication data, wherein the structure of the data block is configured according to a tag field, a length field and a content field.
[0082] Optionally, the monitoring module 404 is further used to: adopt a target monitoring method to monitor whether the running state of the registrant role is abnormal when processing the mutated communication data.
[0083] Optionally, the monitoring module 404 is further used to: adopt a log monitoring method to determine whether the running status is abnormal by filtering keywords contained in a preset log.
[0084] Optionally, the monitoring module 404 is further used to: adopt a command monitoring method to detect whether the operating status is abnormal through preset commands.
[0085] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0086] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device, including a memory and at least one processor, wherein the memory stores computer instructions, and the processor is configured to run the computer instructions to execute the steps in the above method embodiment.
[0087] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0088] Optionally, in the present disclosure, the processor may be configured to execute the following steps through a computer program:
[0089] S1, obtaining original communication data, wherein the original communication data adopts a target communication protocol, the target communication protocol is used to simplify the security configuration of the wireless local area network, and the target communication protocol defines an authenticator role and a registrant role;
[0090] S2, performing mutation processing on the original communication data to obtain mutated communication data;
[0091] S3, by simulating the authenticator role, sends the mutated communication data to the registrant role;
[0092] S4, monitoring the running status of the registrant role when processing the mutated communication data.
[0093] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0094] According to an embodiment of the present disclosure, the present disclosure further provides a non-transitory computer-readable storage medium storing computer instructions, wherein the non-transitory computer-readable storage medium stores computer instructions, wherein the computer instructions are configured to execute the steps in the above method embodiment when running.
[0095] Optionally, in this embodiment, the non-transitory computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0096] S1, obtaining original communication data, wherein the original communication data adopts a target communication protocol, the target communication protocol is used to simplify the security configuration of the wireless local area network, and the target communication protocol defines an authenticator role and a registrant role;
[0097] S2, performing mutation processing on the original communication data to obtain mutated communication data;
[0098] S3, by simulating the authenticator role, sends the mutated communication data to the registrant role;
[0099] S4, monitoring the running status of the registrant role when processing the mutated communication data.
[0100] Optionally, in this embodiment, the non-transitory computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the above. More specific examples of readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.
[0101] According to an embodiment of the present disclosure, the present disclosure also provides a computer program product. The program code for implementing the audio processing method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as an independent software package and partially on a remote machine, or entirely on a remote machine or server.
[0102] In the above embodiments of the present disclosure, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0103] In the several embodiments provided in the present disclosure, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0104] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0105] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0106] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0107] The above is only a preferred embodiment of the present disclosure. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present disclosure. These improvements and modifications should also be regarded as the scope of protection of the present disclosure.
Claims
1. A method for processing communication data, comprising: Acquire original communication data, wherein the original communication data adopts a target communication protocol, the target communication protocol is used to simplify the security configuration of the wireless local area network, the target communication protocol defines an authenticator role and a registrant role, the target communication protocol is a communication protocol implemented based on a target data transmission protocol, and the target data transmission protocol defines a tag field, a length field, and a content field; Performing mutation processing on the original communication data to obtain mutated communication data; Sending the mutated communication data to the registrant role by simulating the authenticator role; Monitoring the running status of the registrant role when processing the mutated communication data; The mutating process of the original communication data to obtain the mutated communication data includes: randomly adding or deleting data blocks contained in the original communication data to obtain the mutated communication data, wherein the structure of the data block is configured according to the tag field, the length field and the content field, and the mutated communication data is used to trigger the memory corruption logic vulnerability corresponding to the registrant role, and the memory corruption logic vulnerability includes at least one of the following: secondary release, reuse after release; The step of monitoring the operation status of the registrant role when processing the mutated communication data includes: using a log monitoring method to determine whether the operation status is abnormal by filtering keywords contained in a preset log.
2. The method according to claim 1, wherein: The original communication data is subjected to mutation processing to obtain the mutated communication data, comprising: The length field contained in the original communication data is mutated to obtain the mutated communication data.
3. The method according to claim 1, wherein: Monitoring the running state of the registrant role when processing the mutated communication data includes: A target monitoring method is adopted to monitor whether the operation state of the registrant role is abnormal when processing the mutated communication data.
4. The method according to claim 3, wherein: Using the target monitoring method to monitor whether the operating state is abnormal includes: A command monitoring method is adopted to detect whether the operating state is abnormal through preset commands.
5. A device for processing communication data, comprising: an acquisition module, used for acquiring original communication data, wherein the original communication data adopts a target communication protocol, the target communication protocol is used for simplifying the security configuration of the wireless local area network, the target communication protocol defines an authenticator role and a registrant role, the target communication protocol is a communication protocol implemented based on a target data transmission protocol, and the target data transmission protocol defines a tag field, a length field and a content field; A mutation module, used for performing mutation processing on the original communication data to obtain mutated communication data; A sending module, configured to send the mutated communication data to the registrant role by simulating the authenticator role; A monitoring module, used for monitoring the running status of the registrant role when processing the mutated communication data; The mutation module is further used to randomly add or delete data blocks contained in the original communication data to obtain the mutated communication data, wherein the structure of the data block is configured according to the tag field, the length field and the content field, and the mutated communication data is used to trigger the memory corruption logic vulnerability corresponding to the registrant role, and the memory corruption logic vulnerability includes at least one of the following: secondary release, reuse after release; The monitoring module is further used to: adopt a log monitoring method to determine whether the operating state is abnormal by filtering keywords contained in a preset log.
6. The device according to claim 5, wherein: The mutation module is also used to: The length field contained in the original communication data is mutated to obtain the mutated communication data.
7. The device according to claim 5, wherein: The monitoring module is also used for: A target monitoring method is adopted to monitor whether the operation state of the registrant role is abnormal when processing the mutated communication data.
8. The device according to claim 7, wherein: The monitoring module is also used for: A command monitoring method is adopted to detect whether the operating state is abnormal through preset commands.
9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 4.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-4.
11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Power grid embedded terminal fuzzy test method aiming at GOOSE protocol
CN113507436A
