Security defense method and device, electronic equipment and storage medium
AC regularly counts the number of HTTP/HTTPS packets of STA, identify and process blacklist users, notify the AP to discard their messages, solves the problem of insufficient processing power caused by excessive HTTP/HTTPS packets in wireless LAN, and improves the User experience.
Patent Information
- Application Number
- CN202411181724.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-27
AI Technical Summary
In a wireless LAN with a centralized forwarding mode, when there are too many HTTP/HTTPS messages sent by the STA that has not passed the portal authentication, it may exceed the AC's concurrent processing capability, resulting in redirection failure or lag in operation, affecting the user experience.
AC regularly counts the number of HTTP/HTTPS messages from the same STA, identifies the attacked blacklist users, and adds them to the blacklist list, notifies the corresponding AP to discard these messages, thereby improving the AC's processing capabilities.
By promptly identifying and handling attacked blacklist users, AC's processing capabilities are improved and user experience is improved.
Smart Images

Figure CN119071784A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a security defense method, device, electronic device and storage medium. Background Art
[0002] In a wireless local area network (WLAN) with a centralized forwarding mode, the AC does not allow any station (STA) that has not passed the portal authentication to access network resources, that is, the AC discards the uplink data message from the STA; for the Hypertext Transfer Protocol (HTTP) / Secure Hypertext Transfer Protocol (HTTPS) message from the STA, the AC initiates a redirection process, that is, pops up a Portal authentication page to the STA, and after the STA enters the correct authentication account information (for example, user name and password) on the Portal authentication page, the STA is allowed to access network resources.
[0003] When a STA is attacked, the AC may receive a large number of HTTP / HTTPS messages. If the number exceeds the AC's concurrent processing capability, redirection failure or operation freeze may occur, affecting the user experience. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present application provides a security defense method, device, electronic device and storage medium.
[0005] According to a first aspect of an embodiment of the present application, a security defense method is provided, the method being applied to an AC, the method comprising:
[0006] After the current first statistical period arrives, count the first total number of Hypertext Transfer Protocol (HTTP) / Secure Hypertext Transfer Protocol (HTTPS) messages received by itself from the same STA in the current first statistical period;
[0007] If there is a first total number that is not less than the first set number among all the first total numbers counted, and the device itself works in normal mode, it sets itself to work in blacklist mode, adds the first STA corresponding to the first total number that is not less than the first set number to the blacklist list, and sends the first blacklist information for the first STA to the first access point (Access Point, AP) to which the first STA accesses, so that the first AP discards the HTTP / HTTPS message received from the first STA corresponding to the first blacklist information after receiving the first blacklist information, and when the second total number of HTTP / HTTPS messages discarded by the first AP counted within the second statistical period set for the first STA is less than the first safety number, delete the first blacklist information, and report the first deletion notification message carrying the first blacklist information to the AC;
[0008] Upon receiving a second deletion notification message sent by a second AP and carrying second blacklist information of a second STA, the second STA is deleted from the current blacklist, and when the blacklist after deletion is empty, the device is set to work in normal mode;
[0009] If there is a first total number not less than the first set number among all the counted first total numbers, and the device itself works in the blacklist mode, the step of adding the first STA corresponding to the first total number not less than the first set number to the blacklist list is started.
[0010] According to a second aspect of an embodiment of the present application, a security defense method is provided, the method being applied to an AP, the method comprising:
[0011] After receiving the blacklist information for the first STA sent by the AC to which it is connected, discarding the HTTP / HTTPS message received from the first STA, wherein the blacklist information is set to work in blacklist mode after the AC arrives at the current first statistical period, and when it is counted that the first total number of HTTP / HTTPS messages of the first STA received by the AC in the current first statistical period is not less than the first set number, and the AC works in normal mode, and the first STA is added to the blacklist list and then sent;
[0012] When a second total number of HTTP / HTTPS messages discarded by the first AP counted within a first statistical period set for the first STA is less than a first safety number, the blacklist information is deleted, and a deletion notification message carrying the blacklist information is reported to the AC.
[0013] According to a third aspect of an embodiment of the present application, a security defense device is provided, the device is applied to an AC, and the device includes:
[0014] A statistics module, configured to count a first total number of HTTP / HTTPS messages received by the module from the same STA within the current first statistics period after the current first statistics period arrives;
[0015] A first defense module is used for, if there is a first total number not less than a first set number among all the first total numbers counted by the statistical module and the module works in normal mode, setting itself to work in blacklist mode, adding a first STA corresponding to the first total number not less than the first set number to a blacklist list, and sending first blacklist information for the first STA to a first AP to which the first STA accesses, so that the first AP discards the HTTP / HTTPS message received from the first STA corresponding to the first blacklist information after receiving the first blacklist information, and when a second total number of HTTP / HTTPS messages discarded by the first AP counted within a second statistical period set for the first STA is less than a first safety number, deleting the first blacklist information, and reporting a first deletion notification message carrying the first blacklist information to the AC; and if there is a first total number not less than a first set number among all the first total numbers counted and the module works in blacklist mode, starting to execute the step of adding the first STA corresponding to the first total number not less than the first set number to a blacklist list;
[0016] The deletion setting module is used to delete the second STA from the current blacklist when receiving the second deletion notification message carrying the second blacklist information of the second STA sent by the second AP, and set itself to work in normal mode when the blacklist is empty after deletion.
[0017] According to a fourth aspect of an embodiment of the present application, a security defense device is provided. The device is applied to an AP, and the device includes:
[0018] A discarding module, configured to discard the HTTP / HTTPS message received from the first STA after receiving the blacklist information for the first STA sent by the AC to which it is connected, wherein the blacklist information is the AC that sets the AC to work in the blacklist mode and sends the first STA after the AC arrives at the current first statistical period, when it is counted that the first total number of HTTP / HTTPS messages of the first STA received by the AC in the current first statistical period is not less than the first set number, and the AC works in the normal mode, and adds the first STA to the blacklist list;
[0019] A deletion module is used to delete the blacklist information and report a deletion notification message carrying the blacklist information to the AC when the second total number of HTTP / HTTPS messages discarded by the first AP counted within the first statistical period set for the first STA is less than the first safety number.
[0020] According to the fifth aspect of an embodiment of the present application, there is provided an electronic device, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps of the above-mentioned security defense method.
[0021] According to a sixth aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps of the above-mentioned security defense method are implemented.
[0022] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0023] In an embodiment of the present application, the AC periodically monitors the number of HTTP / HTTPS messages from the same STA, promptly identifies the attacked blacklist users, and sets itself to work in blacklist mode, and notifies the corresponding AP of the blacklist information of the corresponding STA, so that the corresponding AP discards the HTTP / HTTPS messages from the corresponding STA based on the blacklist information, thereby improving the processing capability of the AC and further improving the user experience.
[0024] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings, which are incorporated in the specification and constitute a part of this application, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
[0026] Figure 1 One of the flowcharts of a security defense method provided in an embodiment of the present application;
[0027] Figure 2 A second flowchart of a security defense method provided in an embodiment of the present application;
[0028] Figure 3 One of the structural schematic diagrams of a security defense device provided in an embodiment of the present application;
[0029] Figure 4A second structural diagram of a security defense device provided in an embodiment of the present application;
[0030] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0032] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0033] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" or "if" as used herein may be interpreted as "at the time of" or "when...".
[0034] Next, the embodiments of the present application are described in detail.
[0035] The present application embodiment provides a security defense method, which is applied to AC, such as Figure 1 As shown, the method may include the following steps:
[0036] S11. After the current first statistical period arrives, count a first total number of HTTP / HTTPS messages received from the same STA within the current first statistical period.
[0037] S12. If there is a first total number that is not less than the first set number among all the first total numbers counted, and the device itself works in normal mode, it sets itself to work in blacklist mode, adds the first STA corresponding to the first total number that is not less than the first set number to the blacklist list, and sends the first blacklist information for the first STA to the first AP to which the first STA accesses, so that after receiving the first blacklist information, the first AP discards the HTTP / HTTPS message received from the first STA corresponding to the first blacklist information, and when the second total number of HTTP / HTTPS messages discarded by the first AP counted within the second statistical period set for the first STA is less than the first safe number, the first blacklist information is deleted, and the first deletion notification message carrying the first blacklist information is reported to the AC.
[0038] In this step, the first blacklist information may be address information of the first STA, for example, an Internet Protocol (IP) address and / or a Media Access Control (MAC) address of the first STA.
[0039] S13: upon receiving a second deletion notification message sent by the second AP and carrying the second blacklist information of the second STA, the second STA is deleted from the current blacklist, and when the blacklist is empty after the deletion, the device is set to work in normal mode.
[0040] In this step, the second blacklist information may be the address information of the second STA, for example, the IP address and / or MAC address of the second STA. Here, after the AC sets itself to work in the normal mode, it processes the received message according to the existing message processing method.
[0041] S14. If there is a first total number that is not less than the first set number among all the counted first total numbers, and the system itself works in the blacklist mode, start executing the step of adding the first STA corresponding to the first total number that is not less than the first set number to the blacklist list in step S12.
[0042] It should be noted that, in the embodiment of the present application, when the number of first STAs is multiple, the second statistical periods set for the first STAs may be the same or different.
[0043] For the first AP, when the second total number of HTTP / HTTPS messages discarded by the first AP counted within the second statistical period set for the first STA is not less than the first security number, the first AP continues to discard the HTTP / HTTPS messages received from the first STA.
[0044] It should be further explained that in an embodiment of the present application, for the AC, when receiving the second deletion notification message sent by the second AP and carrying the second blacklist information of the second STA, after deleting the second STA from the current blacklist, if the blacklist after deletion is not empty, then continue to work in the blacklist mode. Once the total number of HTTP / HTTPS messages of a certain STA or some STAs is not less than the first set number after the arrival of a subsequent first statistical period, continue to add this STA or these STAs to the blacklist, and send the corresponding blacklist information to the AP to which this STA or these STAs access.
[0045] Furthermore, in the embodiment of the present application, the AC may also perform the following operations:
[0046] After executing the step of counting the first total number of HTTP / HTTPS messages received by itself from the same site STA in the current first statistical period, if itself works in the blacklist mode, continue to count the third total number of all HTTP / HTTPS messages received by itself in the current first statistical period;
[0047] If all the first total numbers counted are less than the first set number, and the third total number is not less than the second set number, set itself to work in blacklist mode and whitelist mode, and send a defense notification message to the third AP to which all the third STAs corresponding to the first total number are connected, so that after receiving the defense notification message, the third AP redirects the HTTP / HTTPS message sent by the fourth STA that is not in the obtained STA list that has passed the Portal authentication, and reports to the AC the total number of HTTP / HTTPS messages redirected by the third AP within the third statistical period according to the third statistical period;
[0048] Among them, the first statistical period is greater than the third statistical period.
[0049] It should be noted that by performing this operation flow, the AC can offload the redirection operation of the HTTP / HTTPS message to the AP side, which can further reduce the load on the AC side, improve the processing capability of the AC, and thus improve the user experience.
[0050] In addition, in this operation process, in one example, the STA list may be obtained by the third AP from a defense notification message.
[0051] In another example, the STA list can be received by the third AP before receiving the defense notification message and sent by the AC, and is presented in the form of STA table entries. In this case, once a STA passes the Portal authentication, the AC will promptly send the authenticated STA table entry to the AP it accesses.
[0052] In addition, for the third AP, the specific implementation process of redirecting the HTTP / HTTPS message sent by the fourth STA is the same as the specific implementation of the redirection operation on the received HTTP / HTTPS message by the AC side, which is not described in detail here.
[0053] Furthermore, in the embodiment of the present application, the AC may also perform the following operations:
[0054] After executing the step of counting the first total number of HTTP / HTTPS messages received by itself from the same site STA in the current first statistical period, if itself works in the blacklist mode and the whitelist mode, continue to count the fourth total number of all HTTP / HTTPS messages received by itself in the current first statistical period;
[0055] A sum operation is performed on the fourth total number and a fifth total number of HTTP / HTTPS messages of the fourth AP performing a redirection operation in the third statistical period and reported most recently by the fourth AP and received by the fourth AP in the current first statistical period to obtain a calculation result;
[0056] When the calculation result is less than the second safety number, if the current blacklist is not empty, set itself to work in the blacklist mode, and send a cancellation defense notification message to the fourth AP, so that the fourth AP sends the received HTTP / HTTPS message to the AC after receiving the cancellation defense notification message;
[0057] If the current blacklist is empty, set itself to work in normal mode.
[0058] It should be noted that, by performing this operation flow, the AC can adjust its own working mode in a timely manner to ensure that the WLAN network where the AC is located can operate well.
[0059] It should be further explained that, in the embodiment of the present application, the above-mentioned first set number, the above-mentioned second set number and the above-mentioned second safety number can be set by the administrator according to the network operation experience of the WLAN network where the AC is located, and configured in advance on the AC.
[0060] Correspondingly, the first safety number may also be set by an administrator according to network operation experience of the WLAN network where the AC is located, and configured in advance on the first AP.
[0061] The above content is the implementation process of the security defense method described from the AC side. The following describes the implementation process of the security defense method from the AP side.
[0062] The present application also provides a security defense method, which is applied to an AP, such as Figure 2 As shown, the method may include the following steps:
[0063] S21. After receiving the blacklist information for the first STA sent by the AC to which it is connected, discard the HTTP / HTTPS message received from the first STA.
[0064] In this step, the blacklist information is sent after the AC arrives at the current first statistical period, and when it is found that the first total number of HTTP / HTTPS messages of the first STA received by the AC in the current first statistical period is not less than the first set number, and the AC is working in normal mode, the AC is set to work in blacklist mode, and the first STA is added to the blacklist list.
[0065] Furthermore, the blacklist information may be address information of the first STA, for example, the IP address and / or MAC address of the first STA.
[0066] S22. When a second total number of HTTP / HTTPS messages discarded by the first AP counted within a first statistical period set for the first STA is less than a first safety number, delete the blacklist information, and report a first deletion notification message carrying the first blacklist information to the AC.
[0067] It should be noted that in an embodiment of the present application, for the AC, when receiving the first deletion notification message, the first STA is deleted from the current blacklist, and when the blacklist is empty after deletion, the AC is set to work in normal mode; or, when the blacklist is not empty after deletion, the AC continues to work in blacklist mode.
[0068] Furthermore, in the embodiment of the present application, the AP may also perform the following operations:
[0069] After receiving the blacklist information for the first STA sent by the AC to which it is connected, if a defense notification message sent by the AC is received, a redirection operation is performed on the HTTP / HTTPS message sent by the second STA that is not in the obtained STA list that has passed the portal authentication Portal;
[0070] After the third statistical period is reached, the total number of HTTP / HTTPS packets redirected by the user in the third statistical period is reported to the AC, where the second statistical period is greater than the third statistical period.
[0071] After receiving the defense cancellation notification message sent by the AC, the received HTTP / HTTPS message is sent to the AC.
[0072] In this operation process, the defense notification message is sent after the AC has counted the first total number of HTTP / HTTPS messages received by the AC from the same STA in the current first statistical period. If the AC itself works in the blacklist mode, it continues to count the third total number of all HTTP / HTTPS messages received by the AC in the current first statistical period, and when all the first total numbers counted are less than the first set number and the third total number is not less than the second set number, it sets itself to work in blacklist mode and whitelist mode and then sends it.
[0073] It should be noted that, in the embodiment of the present application, the above-mentioned first set number and the above-mentioned second set number can be set by the administrator according to the network operation experience of the WLAN network where the AC is located, and can be pre-configured on the AC.
[0074] Correspondingly, the first safety number can also be set by the administrator according to the network operation experience of the WLAN network where the AC is located, and configured on the AP in advance.
[0075] In addition, other processing flows of AC have been described from the AC side and will not be described in detail here.
[0076] The above security defense method is described in detail below with reference to specific embodiments.
[0077] In a WLAN network whose forwarding mode is a centralized forwarding mode, for an AC in the WLAN network, assuming that a first first statistical period has arrived, a first total number of HTTP / HTTPS messages received by the AC from the same STA in the first first statistical period is counted.
[0078] Assume that there is a first total number that is not less than the first set number among all the first total numbers counted, and the AC works in normal mode. In this case, the AC sets itself to work in blacklist mode and performs the following operations: add the first STA (for example, STA1) corresponding to the first total number that is not less than the first set number to the blacklist list, and send the blacklist information of STA1 (recorded as blacklist information 1, for example, including the IP address of STA1) to the AP (for example, AP1) to which STA1 accesses.
[0079] After receiving the blacklist information 1, if AP1 receives the HTTP / HTTPS message 1 sent by STA1, then AP1 discards the HTTP / HTTPS message 1 and counts the second total number of HTTP / HTTPS messages from STA1 discarded by AP1 within the second statistical period according to the second statistical period set for STA1.
[0080] Subsequently, it is assumed that the second total number of HTTP / HTTPS messages from STA1 discarded by AP1 counted within a second statistical period is less than the first safety number. In this case, AP1 deletes blacklist information 1 and reports deletion notification message 1 carrying blacklist information 1 to the AC.
[0081] When AC receives the deletion notification message 1 sent by AP1, it deletes STA1 from the current blacklist. Assuming that the blacklist is not empty after deletion, AC continues to work in the blacklist mode.
[0082] Next, for the AC, assuming that the fourth first statistical period has arrived and the AC is working in blacklist mode, the first total number of HTTP / HTTPS messages received by the AC from the same STA in the fourth first statistical period is counted, and the third total number of all HTTP / HTTPS messages received by the AC in the fourth first statistical period is counted.
[0083] Assume that there is a first total number that is not less than the first set number among all the first total numbers counted. In this case, the operation flow executed when the AC works in the blacklist mode continues to be executed, which is not described in detail here.
[0084] Subsequently, it is assumed that the fifth first statistical period has arrived and the AC is working in blacklist mode. The first total number of HTTP / HTTPS messages received by the AC from the same STA in the fifth first statistical period is counted, and the third total number of all HTTP / HTTPS messages received by the AC in the fifth first statistical period is counted.
[0085] Assuming that all the first total numbers counted are less than the first set number, and the third total number is not less than the second set number, in this case, the AC sets itself to work in blacklist mode and whitelist mode, and sends defense notification message 1 to the AP (for example, AP2) accessed by all STAs (for example, STA2, STA3 and STA4) corresponding to the first total number.
[0086] For example, defense notification message 1 carries STA list 1 that has passed Portal authentication.
[0087] After receiving the defense notification message 1, if AP2 receives the HTTP / HTTPS message 2 sent by the STA (for example, STA5) that is not in the STA list 1, AP2 redirects the HTTP / HTTPS message 2, and counts the total number of HTTP / HTTPS messages redirected by AP2 within the third statistical period according to the third statistical period, and reports the total number to the AC.
[0088] Assuming that the eighth first statistical period has arrived, the AC works in blacklist mode and whitelist mode, and counts the first total number of HTTP / HTTPS messages received by the AC from the same STA in the eighth first statistical period, and counts the fourth total number of all HTTP / HTTPS messages received by the AC in the eighth first statistical period.
[0089] The AC performs a sum operation on the fourth total number and the fifth total number of HTTP / HTTPS messages for redirection operation performed by AP2 in the third statistical period, which is the most recently reported number of HTTP / HTTPS messages received by the AC in the eighth first statistical period, to obtain a calculation result.
[0090] Assuming that the calculation result is less than the second safety number, and assuming that the current blacklist is not empty, the AC sets itself to work in the blacklist mode, and sends a defense cancellation notification message 1 to AP2.
[0091] After receiving the defense cancellation notification message 1, AP2 sends the received HTTP / HTTPS message to the AC.
[0092] It should be noted that the above content only describes the implementation process of the security defense method using several first statistical cycles as an example. For the subsequent processing flow of the AC, please refer to the implementation process of the security defense method described on the AC side, which will not be described in detail here.
[0093] It can be seen from the above technical solution that in the embodiment of the present application, the AC periodically monitors the number of HTTP / HTTPS messages from the same STA, promptly identifies the attacked blacklist users, and sets itself to work in blacklist mode, and notifies the corresponding AP of the blacklist information of the corresponding STA, so that the corresponding AP discards the HTTP / HTTPS messages from the corresponding STA based on the blacklist information, thereby improving the processing capability of the AC and further improving the user experience.
[0094] Based on the same inventive concept, the present application also provides a security defense device, which is applied to AC, and its structural diagram is as follows: Figure 3 As shown, specifically including:
[0095] A statistics module 31 is used to count a first total number of HTTP / HTTPS messages received by the module from the STA of the same station within the current first statistics period after the current first statistics period arrives;
[0096] The first defense module 32 is used for, if there is a first total number not less than a first set number among all the first total numbers counted by the statistical module 31 and the first defense module 32 works in the normal mode, setting itself to work in the blacklist mode, adding the first STA corresponding to the first total number not less than the first set number to the blacklist list, and sending the first blacklist information for the first STA to the first access point AP to which the first STA accesses, so that the first AP discards the HTTP / HTTPS message received from the first STA corresponding to the first blacklist information after receiving the first blacklist information, and when the second total number of HTTP / HTTPS messages discarded by the first AP counted within the second statistical period set for the first STA is less than the first safety number, deleting the first blacklist information, and reporting the first deletion notification message carrying the first blacklist information to the AC; and if there is a first total number not less than the first set number among all the first total numbers counted and the first defense module 32 works in the blacklist mode, starting to execute the step of adding the first STA corresponding to the first total number not less than the first set number to the blacklist list;
[0097] The deletion setting module 33 is used to delete the second STA from the current blacklist when receiving the second deletion notification message carrying the second blacklist information of the second STA sent by the second AP, and set itself to work in normal mode when the blacklist is empty after deletion.
[0098] Preferably, the statistical module 31 is further used for:
[0099] After executing the step of counting the first total number of HTTP / HTTPS messages received by itself from the same site STA in the current first statistical period, if itself works in the blacklist mode, continue to count the third total number of all HTTP / HTTPS messages received by itself in the current first statistical period;
[0100] The device also includes:
[0101] Second defense module ( Figure 3(not shown), for, if all the first total quantities counted by the statistical module are less than the first set quantity, and the third total quantity is not less than the second set quantity, setting itself to work in blacklist mode and whitelist mode, sending a defense notification message to the third AP to which the third STA corresponding to the first total quantity is connected, so that after receiving the defense notification message, the third AP redirects the HTTP / HTTPS message sent by the fourth STA that is not in the obtained STA list that has passed the portal authentication, and reports to the AC according to the third statistical period the total number of HTTP / HTTPS messages redirected by the third AP within the third statistical period;
[0102] Among them, the first statistical period is greater than the third statistical period.
[0103] Preferably, the statistical module 31 is further used for:
[0104] After executing the step of counting the first total number of HTTP / HTTPS messages received by itself from the same site STA in the current first statistical period, if itself works in the blacklist mode and the whitelist mode, continue to count the fourth total number of all HTTP / HTTPS messages received by itself in the current first statistical period;
[0105] Performing a sum operation on the fourth total number and a fifth total number of HTTP / HTTPS messages for redirection operation performed by the fourth AP in the third statistical period, which is reported most recently by the fourth AP and received by the fourth AP in the current first statistical period, to obtain a calculation result;
[0106] When the calculation result is less than the second safety number, if the current blacklist is not empty, set itself to work in blacklist mode, and send a cancellation defense notification message to the fourth AP, so that the fourth AP sends the received HTTP / HTTPS message to the AC after receiving the cancellation defense notification message;
[0107] If the current blacklist is empty, set itself to work in normal mode.
[0108] The present application also provides a security defense device, which is applied to AP, and its structural diagram is as follows: Figure 4 As shown, specifically including:
[0109] A discarding module 41 is configured to discard the HTTP / HTTPS message received from the first STA after receiving the blacklist information for the first station STA sent by the access controller AC to which it is connected, wherein the blacklist information is sent after the AC arrives at the current first statistical period, and when it is counted that the first total number of HTTP / HTTPS messages of the first STA received by the AC in the current first statistical period is not less than the first set number, and the AC works in the normal mode, the AC is set to work in the blacklist mode, and the first STA is added to the blacklist list;
[0110] The deletion module 42 is used to delete the blacklist information and report a deletion notification message carrying the blacklist information to the AC when the second total number of HTTP / HTTPS messages discarded by the first AP counted within the first statistical period set for the first STA is less than the first safety number.
[0111] Preferably, the device further comprises:
[0112] Redirection module ( Figure 4 (not shown) is used to redirect the HTTP / HTTPS message sent by the second STA that is not in the obtained STA list that has passed the portal authentication Portal after receiving the blacklist information for the first STA sent by the access controller AC to which it is connected, if a defense notification message sent by the AC is received;
[0113] Reporting module( Figure 4 (not shown) for reporting to the AC, after reaching a third statistical period, the total number of HTTP / HTTPS messages for which the AC performs a redirection operation within the third statistical period, wherein the first statistical period is greater than the third statistical period;
[0114] Transceiver module( Figure 4 ), is used to send the received HTTP / HTTPS message to the AC after receiving the cancellation defense notification message sent by the AC.
[0115] It can be seen from the above technical solution that in the embodiment of the present application, the AC periodically monitors the number of HTTP / HTTPS messages from the same STA, promptly identifies the attacked blacklist users, and sets itself to work in blacklist mode, and notifies the corresponding AP of the blacklist information of the corresponding STA, so that the corresponding AP discards the HTTP / HTTPS messages from the corresponding STA based on the blacklist information, thereby improving the processing capability of the AC and further improving the user experience.
[0116] The present application also provides an electronic device, such as Figure 5 As shown, it includes a processor 51 and a machine-readable storage medium 52, wherein the machine-readable storage medium 52 stores machine-executable instructions that can be executed by the processor 51, and the processor 51 is prompted by the machine-executable instructions to implement the steps of any of the above-mentioned security defense methods.
[0117] The machine-readable storage medium may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the machine-readable storage medium may also be at least one storage device located away from the processor.
[0118] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0119] In another embodiment provided in the present application, a computer-readable storage medium is also provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned security defense methods are implemented.
[0120] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A security defense method, characterized in that: The method is applied to an access controller AC, and the method includes: After the current first statistical period arrives, count the first total number of HTTP / HTTPS messages received by the STA from the same site within the current first statistical period; If there is a first total number that is not less than the first set number among all the first total numbers counted, and the device itself works in normal mode, it sets itself to work in blacklist mode, adds the first STA corresponding to the first total number that is not less than the first set number to the blacklist list, and sends the first blacklist information for the first STA to the first access point AP to which the first STA accesses, so that the first AP discards the HTTP / HTTPS message received from the first STA corresponding to the first blacklist information after receiving the first blacklist information, and deletes the first blacklist information when the second total number of HTTP / HTTPS messages discarded by the first AP counted within the second statistical period set for the first STA is less than the first safety number, and reports the first deletion notification message carrying the first blacklist information to the AC; Upon receiving a second deletion notification message sent by a second AP and carrying second blacklist information of a second STA, the second STA is deleted from the current blacklist, and when the blacklist after deletion is empty, the device is set to work in normal mode; If there is a first total number not less than the first set number among all the counted first total numbers, and the device itself works in the blacklist mode, the step of adding the first STA corresponding to the first total number not less than the first set number to the blacklist list is started.
2. The method according to claim 1, characterized in that The method further comprises: After executing the step of counting the first total number of HTTP / HTTPS messages received by itself from the same site STA in the current first statistical period, if itself works in the blacklist mode, continue to count the third total number of all HTTP / HTTPS messages received by itself in the current first statistical period; If all the first total numbers counted are less than the first set number, and the third total number is not less than the second set number, set itself to work in blacklist mode and whitelist mode, and send a defense notification message to the third AP to which all third STAs corresponding to the first total number are connected, so that after receiving the defense notification message, the third AP redirects the HTTP / HTTPS message sent by the fourth STA that is not in the acquired STA list that has passed the portal authentication, and reports to the AC according to the third statistical period the total number of HTTP / HTTPS messages redirected by the third AP within the third statistical period; Among them, the first statistical period is greater than the third statistical period.
3. The method according to claim 2, characterized in that The method further comprises: After executing the step of counting the first total number of HTTP / HTTPS messages received by itself from the same site STA in the current first statistical period, if itself works in the blacklist mode and the whitelist mode, continue to count the fourth total number of all HTTP / HTTPS messages received by itself in the current first statistical period; Performing a sum operation on the fourth total number and a fifth total number of HTTP / HTTPS messages for redirection operation performed by the fourth AP in the third statistical period, which is reported most recently by the fourth AP and received by the fourth AP in the current first statistical period, to obtain a calculation result; When the calculation result is less than the second safety number, if the current blacklist is not empty, set itself to work in blacklist mode, and send a cancellation defense notification message to the fourth AP, so that the fourth AP sends the received HTTP / HTTPS message to the AC after receiving the cancellation defense notification message; If the current blacklist is empty, set itself to work in normal mode.
4. A security defense method, characterized in that: The method is applied to an access point AP, and the method comprises: After receiving the blacklist information for the first station STA sent by the access controller AC to which it is connected, discarding the HTTP / HTTPS message received from the first STA, wherein the blacklist information is set to work in the blacklist mode after the AC arrives at the current first statistical period, when it is counted that the first total number of HTTP / HTTPS messages of the first STA received by the AC in the current first statistical period is not less than the first set number, and the AC works in the normal mode, and the first STA is added to the blacklist list and then sent; When a second total number of HTTP / HTTPS messages discarded by the first AP counted within a first statistical period set for the first STA is less than a first safety number, the blacklist information is deleted, and a deletion notification message carrying the blacklist information is reported to the AC.
5. The method according to claim 4, characterized in that The method further comprises: After receiving the blacklist information for the first STA sent by the access controller AC to which it is connected, if a defense notification message sent by the AC is received, a redirection operation is performed on the HTTP / HTTPS message sent by the second STA that is not in the obtained STA list that has passed the portal authentication Portal; After reaching a third statistical period, reporting to the AC the total number of HTTP / HTTPS messages for which the AC performs a redirection operation within the third statistical period, wherein the first statistical period is greater than the third statistical period; After receiving the defense cancellation notification message sent by the AC, the received HTTP / HTTPS message is sent to the AC.
6. A security defense device, characterized in that: The device is applied to an access controller AC, and the device includes: A statistics module, configured to count a first total number of HTTP / HTTPS messages received by the module from the STA of the same site within the current first statistics period after the current first statistics period arrives; A first defense module, for setting itself to work in a blacklist mode, if there is a first total number not less than a first set number among all the first total numbers counted by the statistical module and the module works in a normal mode, adding a first STA corresponding to the first total number not less than the first set number to a blacklist list, and sending first blacklist information for the first STA to a first access point AP to which the first STA accesses, so that the first AP discards the HTTP / HTTPS message received from the first STA corresponding to the first blacklist information after receiving the first blacklist information, and when a second total number of HTTP / HTTPS messages discarded by the first AP counted within a second statistical period set for the first STA is less than a first safety number, deleting the first blacklist information, and reporting a first deletion notification message carrying the first blacklist information to the AC; and if there is a first total number not less than a first set number among all the first total numbers counted and the module works in a blacklist mode, starting to execute the step of adding the first STA corresponding to the first total number not less than the first set number to a blacklist list; The deletion setting module is used to delete the second STA from the current blacklist when receiving the second deletion notification message carrying the second blacklist information of the second STA sent by the second AP, and set itself to work in normal mode when the blacklist is empty after deletion.
7. The device according to claim 6, characterized in that The statistical module is also used for: After executing the step of counting the first total number of HTTP / HTTPS messages received by itself from the same site STA in the current first statistical period, if itself works in the blacklist mode, continue to count the third total number of all HTTP / HTTPS messages received by itself in the current first statistical period; The device also includes: A second defense module is used for setting itself to work in blacklist mode and whitelist mode if all the first total quantities counted by the statistical module are less than the first set quantity, and the third total quantity is not less than the second set quantity, and sending a defense notification message to the third AP to which all the third STAs corresponding to the first total quantity are connected, so that after receiving the defense notification message, the third AP redirects the HTTP / HTTPS message sent by the fourth STA that is not in the acquired STA list that has passed the portal authentication, and reports to the AC according to the third statistical period the total number of HTTP / HTTPS messages redirected by the third AP within the third statistical period; Among them, the first statistical period is greater than the third statistical period.
8. The device according to claim 7, characterized in that The statistical module is also used for: After executing the step of counting the first total number of HTTP / HTTPS messages received by itself from the same site STA in the current first statistical period, if itself works in the blacklist mode and the whitelist mode, continue to count the fourth total number of all HTTP / HTTPS messages received by itself in the current first statistical period; Performing a sum operation on the fourth total number and a fifth total number of HTTP / HTTPS messages for redirection operation performed by the fourth AP in the third statistical period, which is reported most recently by the fourth AP and received by the fourth AP in the current first statistical period, to obtain a calculation result; When the calculation result is less than the second safety number, if the current blacklist is not empty, set itself to work in blacklist mode, and send a cancellation defense notification message to the fourth AP, so that the fourth AP sends the received HTTP / HTTPS message to the AC after receiving the cancellation defense notification message; If the current blacklist is empty, set itself to work in normal mode.
9. A security defense device, characterized in that: The device is applied to an access point AP, and the device includes: A discarding module, configured to discard the HTTP / HTTPS message received from the first STA after receiving the blacklist information for the first station STA sent by the access controller AC to which it is connected, wherein the blacklist information is set to work in blacklist mode after the AC arrives at the current first statistical period, and the first STA is added to the blacklist list and then sent when the first total number of HTTP / HTTPS messages of the first STA received by the AC in the current first statistical period is not less than the first set number and the AC works in normal mode; A deletion module is used to delete the blacklist information and report a deletion notification message carrying the blacklist information to the AC when the second total number of HTTP / HTTPS messages discarded by the first AP counted within the first statistical period set for the first STA is less than the first safety number.
10. The device according to claim 9, characterized in that The device also includes: A redirection module is used to redirect the HTTP / HTTPS message sent by the second STA that is not in the obtained STA list that has passed the portal authentication Portal after receiving the blacklist information for the first STA sent by the access controller AC to which it is connected, if a defense notification message sent by the AC is received; a reporting module, configured to report, after reaching a third statistical period, to the AC a total number of HTTP / HTTPS messages for which the AC performs a redirection operation within the third statistical period, wherein the first statistical period is greater than the third statistical period; The transceiver module is used to send the received HTTP / HTTPS message to the AC after receiving the cancellation defense notification message sent by the AC.
11. An electronic device, characterized in that: The method comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps described in any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Method and equipment for sending portal redirected address
CN104821940A
Network authentication method and system
CN105376739A
Message processing method and device
CN105939320A
Distributed portal authentication method
CN106973383A
Method and equipment for issuing WLAN user access authentication and configuration information
CN107517189A
