Abnormal detection method, device and system, server, and storage medium

By detecting the time interval of data transmission between the server and the communication module, determining whether the data is listened to, and updating the key pair, the problem of the inability to detect data transmission security risks in the prior art is solved, and the security of data transmission is achieved and real-time.

CN115766229BActive Publication Date: 2024-11-19GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211434141.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-16
Publication Date
2024-11-19
Estimated Expiration
2042-11-16

AI Technical Summary

Technical Problem

The security risks of data transmission cannot be effectively detected in the prior art, especially in a secure data transmission scheme based on asymmetric encryption algorithms, and it is impossible to detect whether the data is monitored in real time.

Method used

By detecting the time interval of data transmission between the server and the communication module, determining whether the data is listened to, and updating the key pair in the listening situation, ensuring the security of data transmission.

Benefits of technology

The detection and response of security risks of data transmission is realized, the security and real-time nature of data transmission are ensured, and the problem of inability to detect data theft in the prior art is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115766229B_ABST
    Figure CN115766229B_ABST
Patent Text Reader

Abstract

The present application discloses an abnormal detection method, device and system, server, and storage medium. The method includes: determining the data transmission status between the server and the communication module; and determining whether the data transmitted between the server and the communication module is intercepted according to the data transmission status between the server and the communication module. The present application can solve the technical problem that the security risks of data transmission cannot be detected in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data security technology, and more specifically, to an abnormality detection method, device and system, server, and storage medium. Background Art

[0002] In the secure data transmission solution based on asymmetric encryption algorithm, an asymmetric encryption algorithm can be used to encrypt data transmission. The public key in the key pair is used for exchange and the private key is private, which greatly improves data security.

[0003] In conventional monitoring systems, the communication module collects node data and uploads it to the server. The communication methods for uploading to the server include wired and wireless, and the communication protocols support TCP, UDP, etc. Regardless of the communication method or protocol, a network connection needs to be established. Transmission through the network will inevitably have security risks such as being monitored. At present, there is no relevant solution to detect this unsafe factor.

[0004] With respect to the technical problem that the above-mentioned related technologies cannot detect the potential safety hazard of data transmission, no effective solution has been proposed so far. Summary of the invention

[0005] The embodiments of the present application provide an abnormality detection method, device and system, server, and storage medium to solve the technical problem that the related art cannot detect the security risks of data transmission.

[0006] To solve the above technical problems, according to one aspect of an embodiment of the present application, an abnormality detection system is provided, including: a communication module, which is communicatively connected to a server; and a server, wherein the server is used to determine whether the data transmitted between the server and the communication module is intercepted based on the data transmission status between the server and the communication module.

[0007] Optionally, the server is further configured to complete the change of the key pair through interaction with the communication module when data transmitted between the server and the communication module is intercepted.

[0008] According to another aspect of an embodiment of the present application, a method for detecting an abnormality is also provided, including: determining a data transmission status between a server and a communication module; and determining whether data transmitted between the server and the communication module is intercepted based on the data transmission status between the server and the communication module.

[0009] Optionally, determining whether the data transmitted between the server and the communication module is intercepted is performed based on the data transmission status between the server and the communication module, including: obtaining a first time interval for data transmission between the server and the communication module, wherein the first time interval is the time interval between the time when the data is sent and the time when the data is received; and determining whether the data transmitted between the server and the communication module is intercepted based on the relationship between the first time interval and a target time interval, wherein the target time interval is the time required for data transmission between the server and the communication module under normal circumstances.

[0010] Optionally, based on the relationship between the first time interval and the target time interval interval, determining whether the data transmitted between the server and the communication module is intercepted includes: when the first time interval of at least N pieces of data out of M consecutive pieces of data is not within the target time interval interval, determining that the data transmitted between the server and the communication module is intercepted, wherein the positive integer N is less than the positive integer M; when the number of pieces of data among the M pieces of data whose first time interval is not within the target time interval interval is less than N, determining that the data transmitted between the server and the communication module is not intercepted.

[0011] Optionally, after determining that the data transmitted between the server and the communication module is intercepted, the method further includes: completing the change of a key pair through interaction between the server and the communication module, wherein the key pair is used when the server communicates with the communication module.

[0012] Optionally, the key pair change is completed through interaction between the server and the communication module, including: through interaction between the server and the communication module, the key pair of the communication module is changed from an old first key pair to a new second key pair; and / or, through interaction between the server and the communication module, the key pair of the server is changed from an old third key pair to a new fourth key pair.

[0013] Optionally, according to the data transmission status between the server and the communication module, it includes: obtaining a second time interval for data transmission between the server and the communication module, wherein the second time interval is the time interval between the time when the data is sent and the time when the data is received; when the rate of change between the second time intervals of any two adjacent data in a plurality of consecutive data is less than a specified threshold, obtaining an average time interval of the second time intervals of the plurality of data; and generating a target time interval interval with the average time interval as the middle value of the interval.

[0014] According to another aspect of an embodiment of the present application, an abnormality detection device is also provided, including: a determination unit for determining the data transmission status between the server and the communication module; a detection unit for determining whether the data transmitted between the server and the communication module is intercepted based on the data transmission status between the server and the communication module.

[0015] Optionally, the detection unit is also used to: obtain a first time interval for data transmission between the server and the communication module, wherein the first time interval is the time interval between the time when the data is sent and the time when the data is received; determine whether the data transmitted between the server and the communication module is intercepted based on the relationship between the first time interval and a target time interval, wherein the target time interval is the time required for data transmission between the server and the communication module under normal circumstances.

[0016] Optionally, the detection unit is also used to: determine that the data transmitted between the server and the communication module is intercepted when the first time interval of at least N of the consecutive M data is not within the target time interval, wherein the positive integer N is less than the positive integer M; and determine that the data transmitted between the server and the communication module is not intercepted when the number of data among the M data whose first time interval is not within the target time interval is less than N.

[0017] Optionally, the device of the present application may also include: a key update unit, which is used to complete the change of the key pair after determining that the data transmitted between the server and the communication module is intercepted, through interaction between the server and the communication module, wherein the key pair is used when the server communicates with the communication module.

[0018] Optionally, the key update unit is also used to: change the key pair of the communication module from an old first key pair to a new second key pair through interaction between the server and the communication module; and / or, change the key pair of the server from an old third key pair to a new fourth key pair through interaction between the server and the communication module.

[0019] Optionally, the determination unit is also used to: obtain a second time interval for data transmission between the server and the communication module, wherein the second time interval is the time interval between the time when the data is sent and the time when the data is received; when the rate of change between the second time intervals of any two adjacent data in a plurality of consecutive data is less than a specified threshold, obtain the average time interval of the second time intervals of the plurality of data; and generate a target time interval interval with the average time interval as the middle value of the interval.

[0020] According to another aspect of an embodiment of the present application, a server is further provided, comprising the above-mentioned abnormality detection device.

[0021] According to another aspect of an embodiment of the present application, a computer-readable storage medium is further provided, the storage medium including a stored program, and the program implements the above method when executed by a processor.

[0022] According to another aspect of an embodiment of the present application, an electronic device is also provided, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the above method.

[0023] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the embodiments of the above method.

[0024] By applying the technical solution of the present application, it is possible to determine whether the data transmitted between the server and the communication module is intercepted based on the data transmission status between the server and the communication module, thereby solving the technical problem in the related art that the security risks of data transmission cannot be detected. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 is a schematic diagram of an optional abnormality detection system according to an embodiment of the present application;

[0026] Figure 2 is a flow chart of an optional abnormality detection method according to an embodiment of the present application;

[0027] Figure 3 is a schematic diagram of an optional abnormality detection device according to an embodiment of the present application;

[0028] Figure 4 It is a structural block diagram of a terminal according to an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0030] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.

[0031] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0032] It should be understood that although the terms first, second, third, etc. may be used to describe certain technical features in the embodiments of the present application, these technical features should not be limited to these terms. These terms are only used to distinguish these technical features.

[0033] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0034] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.

[0035] Example 1

[0036] To solve the above technical problems, according to one aspect of the embodiments of the present application, a system for detecting an abnormality is provided, such as Figure 1 As shown, including:

[0037] The communication module 12 is respectively connected to the service node 11 and the server 13 for communication. The communication module 12 collects data from the device (i.e., the service node 11) and uploads the data to the server 13.

[0038] The server 13 is used to determine whether the data transmitted between the server and the communication module (which can be sent by the server to the communication module or sent by the communication module to the server) is intercepted according to the data transmission status between the server and the communication module. The communication between the communication module and the server is bidirectional, and the data frame uploaded by the communication module to the server is timestamped, which can be accurate to milliseconds. The data transmission status here can be the loss, increase or decrease of data packets, changes in transmission time, etc.

[0039] Optionally, when the network transmission is stable, the time for each data frame to be sent from the communication module to the server is almost the same (the reverse data transmission is similar). If the difference is large, the data is stolen (i.e., the data is intercepted). When the data transmitted between the server and the communication module is intercepted, the key pair is changed through interaction with the communication module. The key pair here supports irregular updates or updates when there are security risks. The carriers that actively trigger the key pair change are the communication module and the server.

[0040] Through the above embodiments, whether the data transmitted between the server and the communication module is intercepted can be determined according to the data transmission status between the server and the communication module, which can solve the technical problem that the security risks of data transmission cannot be detected in the related technology.

[0041] Example 2

[0042] Figure 2 It is a flowchart of an optional abnormality detection method according to an embodiment of the present application. If the data is transmitted from the server to the communication module, the execution subject is the communication module, and the abnormality can be detected by the communication module, and then the key pair can be changed; if the data is transmitted from the communication module to the server, the execution subject is the server, and the abnormality can be detected by the server, and then the key pair can be changed, such as Figure 2 As shown, the method comprises the following steps:

[0043] Step S1, determining the data transmission status between the server and the communication module.

[0044] Optionally, a second time interval for data transmission between the server and the communication module may be obtained, where the second time interval is the time interval between the time when the data is sent and the time when the data is received, such as the time interval from when the communication module sends the business data to when the server receives the data, or the time interval from when the server sends the instruction data to when the communication module receives the instruction data; a change rate between the second time intervals of any two adjacent data in a plurality of consecutive data (for example, 10 or 20 data) (for example, the second time interval of the current data is t i , the second time interval of the previous data is t i-1 , then the rate of change is (ti -t i-1 ) / t i-1 *100%) is less than a specified threshold (such as less than 5%), the average time interval of the second time intervals of the multiple data pieces is obtained; the target time interval interval is generated with the average time interval as the middle value T of the interval, and the width of the interval can be determined as needed, such as [0.95T, 1.05T].

[0045] Step S2, determining whether the data transmitted between the server and the communication module is intercepted according to the data transmission status between the server and the communication module.

[0046] In the above embodiments, the data transmission status may be the loss, increase or decrease of data packets, change in transmission duration, etc., taking the latter as an example, the first time interval for data transmission between the server and the communication module may be obtained first, the first time interval being the time interval between the time when the data is sent and the time when the data is received; based on the relationship between the first time interval and the target time interval, it is determined whether the data transmitted between the server and the communication module is intercepted, the target time interval being the time required for data transmission between the server and the communication module under normal circumstances.

[0047] For example: when the first time interval of at least N of M consecutive data is not within the target time interval, it is determined that the data transmitted between the server and the communication module is intercepted, and the positive integer N is less than the positive integer M, such as M is 100 and N is 90; when the number of data whose first time interval is not within the target time interval among the M data is less than N, it is determined that the data transmitted between the server and the communication module is not intercepted.

[0048] Optionally, after determining that data transmitted between the server and the communication module is intercepted, the key pair can be changed through interaction between the server and the communication module, wherein the key pair is used when the server and the communication module communicate.

[0049] For example, through interaction between the server and the communication module, the key pair of the communication module is changed from an old first key pair to a new second key pair; and / or, through interaction between the server and the communication module, the key pair of the server is changed from an old third key pair to a new fourth key pair.

[0050] 1) Generate a second key pair in the communication module. For example, start a key generation program in the communication module, randomly select two prime numbers from a preset data set, and use a key pair generation algorithm to generate the second key pair.

[0051] 2) Using the public key in the third key pair to encrypt the public key in the second key pair, to obtain a change request.

[0052] 3) Sending a change request to the server, the server is used to decrypt the change request using the private key in the third key pair, and perform a check code calculation on the public key in the second key pair obtained by decryption to obtain a first check code.

[0053] 4) Receive a first message returned by the server, where the first message is obtained by encrypting the first verification code by the server using the public key in the first key pair.

[0054] When the first verification code obtained by decrypting the first message using the private key in the first key pair is incorrect, the connection between the communication module and the server is disconnected.

[0055] 5) When the first verification code obtained by decrypting the first message using the private key in the first key pair is correct, the key pair of the communication module is changed.

[0056] Similarly, the server can also complete the change of the key pair according to the above process. The above first message also carries the public key of the fourth key pair generated by the server (the server can start the key generation program, randomly select two prime numbers from a preset data set, and use the key pair generation algorithm to generate a fourth key pair). After interaction between the communication module and the server, the server's key pair is changed from the old third key pair to the new fourth key pair, including: using the private key in the first key pair to decrypt the first message to obtain the public key in the fourth key pair; when the first verification code is correct, performing a verification code calculation on the public key in the fourth key pair to obtain a second verification code; sending the second message obtained by encrypting the second verification code with the public key in the third key pair to the server, wherein the server is used to decrypt the second message with the private key in the third key pair, and return a confirmation message when the second verification code is correct; when the confirmation message returned by the server is received, the change of the server's key pair is completed.

[0057] Through the above steps, whether the data transmitted between the server and the communication module is intercepted can be determined according to the data transmission status between the server and the communication module, which can solve the technical problem that the security risks of data transmission cannot be detected in the related technology.

[0058] Example 3

[0059] The solution for detecting data theft in a remote network proposed in this application can quickly discover that data has been stolen, and then quickly take measures to deal with it. As an optional embodiment, the following is further described in detail in conjunction with a specific implementation method:

[0060] like Figure 1As shown, in the monitoring system, the communication module realizes the upload of the collected node data and the reception of the control instructions sent by the server by establishing a network connection. After the network transmission stabilizes, the time for each data frame to be sent from the communication module to be received by the server is almost the same. If the difference is large, there is a risk of data being stolen.

[0061] The network connection established by each communication module with the server is independent and unique. After each communication module successfully establishes a network connection with the server, the server starts a data theft detection thread to record the time interval t between the uploads of each data frame (the time t when the server receives the data frame r - the time t when the communication module sends the data frame s ). Until the time intervals between the uploads of each data frame differ by ±k% (0 <= k <= 5, the smaller k is, the higher the accuracy), it indicates that the communication is stable, and record the time T marking the communication stability.

[0062] Starting from the time T marking the communication stability, first continuously receive m data, calculate the average time interval t between the uploads of each data frame a = ∑t / m. At the same time, plot the time intervals t between the uploads of each subsequent data frame as a curve. The x-axis is the time when the data frame is received, and the y-axis is the time interval t between the uploads of the data frame. Under normal circumstances, the curve will fluctuate up and down within [t a - k%, t a + k%] (0 <= k <= 5).

[0063] When the plotted curve exceeds the range of [t a - k%, t a + k%] (0 <= k <= 5), detect the number of times L of the time intervals between the uploads of the continuously out-of-range data frames. If L > 10 n (3 < n < 6, the smaller n is, the higher the accuracy. n should not be too large or too small. It is recommended to take n = 5 as the best), it indicates that there is an obvious change in the time intervals between the transmissions of the front and rear data frames, and there is a risk of data being stolen. A few scattered out-of-range times can be regarded as short-term communication interference, which is a reasonable phenomenon.

[0064] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0065] 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 by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, 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 (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0066] Example 4

[0067] According to another aspect of an embodiment of the present application, there is also provided an abnormality detection device for implementing the above-mentioned abnormality detection method. Figure 3 is a schematic diagram of an optional abnormality detection device according to an embodiment of the present application, such as Figure 3 As shown, the device may include:

[0068] The determination unit 31 is used to determine the data transmission status between the server and the communication module; the detection unit 33 is used to determine whether the data transmitted between the server and the communication module is intercepted according to the data transmission status between the server and the communication module.

[0069] Through the above module, whether the data transmitted between the server and the communication module is intercepted can be determined according to the data transmission status between the server and the communication module, which can solve the technical problem that the security risks of data transmission cannot be detected in the related technology.

[0070] Optionally, the detection unit is also used to: obtain a first time interval for data transmission between the server and the communication module, the first time interval being the time interval between the time when the data is sent and the time when the data is received; determine whether the data transmitted between the server and the communication module is intercepted based on the relationship between the first time interval and the target time interval, wherein the target time interval is the time required for data transmission between the server and the communication module under normal circumstances.

[0071] Optionally, the detection unit is also used to: determine that the data transmitted between the server and the communication module is intercepted when the first time interval of at least N of the consecutive M data is not within the target time interval, wherein the positive integer N is less than the positive integer M; and determine that the data transmitted between the server and the communication module is not intercepted when the number of data among the M data whose first time interval is not within the target time interval is less than N.

[0072] Optionally, the device of the present application may also include: a key update unit, which is used to complete the change of the key pair after determining that the data transmitted between the server and the communication module is intercepted, through interaction between the server and the communication module, wherein the key pair is used when the server communicates with the communication module.

[0073] Optionally, the key update unit is also used to: change the key pair of the communication module from an old first key pair to a new second key pair through interaction between the server and the communication module; and / or, change the key pair of the server from an old third key pair to a new fourth key pair through interaction between the server and the communication module.

[0074] Optionally, the determination unit is also used to: obtain a second time interval for data transmission between the server and the communication module, wherein the second time interval is the time interval between the time when the data is sent and the time when the data is received; when the rate of change between the second time intervals of any two adjacent data in a plurality of consecutive data is less than a specified threshold, obtain the average time interval of the second time intervals of the plurality of data; and generate a target time interval interval with the average time interval as the middle value of the interval.

[0075] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules, as part of the device, can be run in a corresponding hardware environment, can be implemented by software, and can also be implemented by hardware, wherein the hardware environment includes a network environment.

[0076] Example 5

[0077] This embodiment provides an electronic device, the electronic device comprising: a processor 201, a memory 202, and a transmission device 203, such as Figure 4 As shown, the terminal may also include an input and output device 204; wherein:

[0078] The memory 202 can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application. The processor 201 executes various functional applications and data processing by running the software programs and modules stored in the memory 202, that is, implementing the above-mentioned method. The memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 202 may further include a memory remotely arranged relative to the processor 201, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0079] The transmission device 203 is used to receive or send data via a network, and can also be used for data transmission between a processor and a memory. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 203 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 203 is a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet wirelessly.

[0080] Specifically, the memory 202 is used to store application programs.

[0081] The processor 201 may call the application program stored in the memory 202 through the transmission device 203 to execute the steps in the above embodiment.

[0082] Example 6

[0083] The embodiment of the present application provides a software for executing the technical solutions described in the above embodiments and preferred implementation modes.

[0084] An embodiment of the present application provides a non-volatile computer storage medium, which stores computer executable instructions. The computer executable instructions can execute the method for editing the content in a document in any of the above method embodiments.

[0085] The above-mentioned software is stored in the above-mentioned storage medium, which includes but is not limited to: a CD, a floppy disk, a hard disk, an erasable memory, etc.

[0086] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0087] The electronic device of the embodiment of the present application exists in various forms, including but not limited to:

[0088] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.

[0089] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.

[0090] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.

[0091] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, device bus, etc. The server is similar to the general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, manageability, etc.

[0092] (5) Other electronic devices with data interaction functions, such as televisions, large-screen cars, etc.

[0093] The device embodiments described above are merely illustrative, wherein 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 network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0094] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for detecting anomalies, characterized in that: A detection system for abnormality, the detection system comprising: a communication module, connected to a server for communication; the server, for determining whether data transmitted between the server and the communication module is intercepted according to the data transmission status between the server and the communication module; the detection method comprising: Determine the data transmission status between the server and the communication module; Determine whether the data transmitted between the server and the communication module is intercepted according to the data transmission status between the server and the communication module; wherein the data transmission status at least includes a change in the transmission duration; Determining whether data transmitted between the server and the communication module is intercepted according to the data transmission status between the server and the communication module includes: Acquire a second time interval for data transmission between the server and the communication module, wherein the second time interval is a time interval between a time when data is sent and a time when data is received; When the change rate between the second time intervals of any two adjacent data in the plurality of continuous data is less than a specified threshold, obtaining an average time interval of the second time intervals of the plurality of data; Generate a target time interval interval with the average time interval as the middle value of the interval; Acquire a first time interval for data transmission between the server and the communication module, wherein the first time interval is a time interval between a time when data is sent and a time when data is received; Determining whether data transmitted between the server and the communication module is intercepted according to the relationship between the first time interval and the target time interval, wherein the target time interval is the time required for data transmission between the server and the communication module under normal circumstances; Determining whether data transmitted between the server and the communication module is intercepted according to a relationship between the first time interval and the target time interval includes: When the first time interval of at least N pieces of data among the M consecutive pieces of data is not within the target time interval, it is determined that the data transmitted between the server and the communication module is intercepted, wherein the positive integer N is less than the positive integer M; When the number of data in the M pieces of data whose first time interval is not within the target time interval is less than N, it is determined that the data transmitted between the server and the communication module is not intercepted.

2. The method according to claim 1, characterized in that After determining that the data transmitted between the server and the communication module is intercepted, the method further includes: The key pair is changed through interaction between the server and the communication module, wherein the key pair is used when the server communicates with the communication module.

3. The method according to claim 2, characterized in that The key pair is changed through interaction between the server and the communication module, including: Through interaction between the server and the communication module, the key pair of the communication module is changed from an old first key pair to a new second key pair; and / or, Through interaction between the server and the communication module, the key pair of the server is changed from the old third key pair to the new fourth key pair.

4. An abnormality detection device, characterized in that: A detection system for abnormality, the detection system comprising: a communication module, connected to a server for communication; the server, for determining whether data transmitted between the server and the communication module is intercepted according to the data transmission status between the server and the communication module; the detection device comprising: A determination unit, used to determine the data transmission status between the server and the communication module; A detection unit, configured to determine whether data transmitted between the server and the communication module is intercepted according to a data transmission status between the server and the communication module; wherein the data transmission status at least includes a change in transmission duration; The determination unit is further used to: obtain a second time interval for data transmission between the server and the communication module, wherein the second time interval is the time interval between the time when the data is sent and the time when the data is received; when the rate of change between the second time intervals of any two adjacent data in a plurality of consecutive data is less than a specified threshold, obtain an average time interval of the second time intervals of the plurality of data; and generate a target time interval interval with the average time interval as the middle value of the interval; The detection unit is also used to: obtain a first time interval for data transmission between the server and the communication module, the first time interval being the time interval between the time when the data is sent and the time when the data is received; determine whether the data transmitted between the server and the communication module is intercepted based on the relationship between the first time interval and a target time interval, wherein the target time interval is the time required for data transmission between the server and the communication module under normal circumstances; determine that the data transmitted between the server and the communication module is intercepted when the first time interval of at least N of the consecutive M data is not within the target time interval, wherein the positive integer N is less than the positive integer M; and determine that the data transmitted between the server and the communication module is not intercepted when the number of data in the M data whose first time interval is not within the target time interval is less than N.

5. A server, characterized in that: A device for detecting abnormality comprising the device described in claim 4.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.

7. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the method according to any one of claims 1 to 3.