Invasive equipment detection method and system based on RS485 bus fault safety bias voltage

By sampling fail-safe bias voltage and communication signals in the RS485 bus, extracting voltage amplitude characteristics and constructing channel fingerprints, combined with constant false alarm rate constraints to identify intrusion signals, it solves the problems of high detection cost and insufficient resource utilization in the existing technology. , achieving low-cost and efficient intrusion device detection.

CN118646560AActive Publication Date: 2024-09-13XI AN JIAOTONG UNIV

Patent Information

Application Number
CN202410673304.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-13
Estimated Expiration
2044-05-28

AI Technical Summary

Technical Problem

The existing intrusion device detection methods in the RS485 bus are costly, cumbersome to extract signal features, and do not fully utilize bus communication resources, making it unable to effectively detect external intrusion devices.

Method used

An intrusion device detection method based on the RS485 bus fail-safe bias voltage is adopted. By sampling the fail-safe bias voltage signal and the gateway device signal at the communication time during the network idle time, the voltage amplitude characteristics are extracted and the channel fingerprint is constructed, combined with the constant false alarm rate constraint. Generate detection thresholds to identify intrusion signals.

Benefits of technology

It significantly reduces detection costs and time requirements, achieves accurate detection of external intrusion devices, reduces sampling frequency and detection time, avoids occupying bus resources, and improves the interpretability of the detection model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646560A
    Figure CN118646560A
Patent Text Reader

Abstract

The invention discloses an intrusion equipment detection method and system based on RS485 bus fail-safe bias voltage. Unauthorized access of external intrusion equipment in an RS485 bus causes the fail-safe bias voltage at the idle moment of the bus and the amplitude of a communication signal of gateway equipment to change; bus idle moment bias voltage and communication moment gateway communication signals are sampled, voltage amplitude characteristics are extracted respectively, channel fingerprints are constructed cooperatively, and external intrusion equipment is identified and detected through differences generated by the channel fingerprints; the cooperative utilization of two bus communication resources, namely a bus idle moment fault safety bias voltage and a communication moment gateway communication signal, can significantly reduce the requirements of the detection method for the sampling frequency and the detection time; based on side channel monitoring, bus resources are not occupied, meanwhile, a detection threshold value is dynamically generated based on constant false alarm rate constraint, a detection environment is adapted in real time, detection overhead is reduced, and accurate detection of various external intrusion devices in an RS485 bus network in a low-cost mode is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of intrusion detection, and in particular relates to an intrusion device detection method and system based on RS485 bus fault safety bias voltage. Background Art

[0002] The RS485 bus is widely used for real-time distributed control in industrial control systems (ICSs) due to its simplicity and stability. Real-world RS485 bus networks contain hundreds of interconnected devices, presenting a wide range of network layouts. However, due to the limitations of computing resources and real-time communication requirements, most industrial control protocols (such as Modbus, etc.) in RS485 networks lack security measures such as authentication and encryption. Attackers can directly connect external intrusion devices to these communication lines to launch various attacks, posing a major threat to the stable operation of ICSs.

[0003] The current detection method for intrusion devices in RS485 bus has the following shortcomings in actual design:

[0004] (1) The detection cost is too high. Most existing methods use high-sampling frequency acquisition equipment to sample the communication signals in the bus to construct a detailed channel fingerprint, which places too high a hardware requirement on the detection tool.

[0005] (2) Signal feature extraction is cumbersome. Existing methods generally require multi-dimensional feature extraction (time domain and frequency domain features) of communication signals, so as to train machine learning models to identify changes in physical features in communication signals.

[0006] (3) The communication resources in the bus are not fully utilized. The existing methods only consider the difference recognition on the normal communication signal, but do not consider the impact of the intrusion device on the voltage signal of the bus when it is idle. Summary of the invention

[0007] The technical problem to be solved by the present invention is to provide an intrusion device detection method and system based on RS485 bus fault safety bias voltage in view of the deficiencies in the above-mentioned prior art, so as to solve the technical problem that the existing method has too high cost for external intrusion device detection.

[0008] The present invention adopts the following technical solutions:

[0009] The intrusion device detection method based on RS485 bus fail-safe bias voltage includes the following steps:

[0010] In the network initialization phase, the fail-safe bias voltage signal at any position of the RS485 bus and the communication signal of the gateway device at the communication time are sampled at the network idle time;

[0011] The voltage amplitude features of the fail-safe bias voltage signal and the gateway device communication signal are extracted respectively and the channel fingerprint is constructed collaboratively;

[0012] In the detection phase, the fail-safe bias voltage signal and the gateway device communication signal are resampled to generate the channel feature to be detected, and the difference signal is generated by performing differential processing with the channel fingerprint;

[0013] A detection threshold is generated under the condition of constant false alarm rate constraint to detect whether there is an intrusion signal in the difference signal, and finally determine whether there is an external intrusion device.

[0014] Preferably, when the network is idle, M segments of fail-safe bias voltage signals and M gateway device communication signals are collected at any position of the RS485 bus.

[0015] Preferably, the voltage amplitude characteristics of the fail-safe bias voltage signal and the gateway device communication signal are extracted respectively as follows:

[0016] Normalizing high-level and low-level sampling points in each gateway device communication signal to the same voltage level to obtain amplitude characteristics;

[0017] The M segments of fail-safe bias voltage signals and the M standardized gateway device communication signals are averaged to reduce the noise intensity and construct a channel fingerprint.

[0018] More preferably, the normalization process is as follows:

[0019]

[0020] Among them, x CV Represents a gateway device communication signal, and They represent the high-level and low-level sampling points in a gateway device communication signal, respectively, and ave(·) represents the average operator of the sampling points.

[0021] More preferably, the averaging process is as follows:

[0022]

[0023] Where k = 1, 2, ..., N, y F [k] represents the sampling point after a fail-safe bias voltage signal and a gateway device communication signal are spliced ​​together, y F [k] is the channel fingerprint, x BV is a fail-safe bias voltage signal, is the Gaussian white noise still remaining in the channel fingerprint, and N represents the number of sampling points obtained from a fail-safe bias voltage signal and a gateway device communication signal.

[0024] Preferably, the difference signal s d [k] Specifically:

[0025]

[0026] Among them, s[k] is the intrusion signal reflecting the existence of external intrusion devices, ω s [k] is the Gaussian white noise in the difference signal, attacked means there is an external intrusion device in the network, and no attack means there is no intrusion device in the network.

[0027] Preferably, let H0:ω s [k] is the original condition when the network is not attacked, H1:s[k]+ω s [k] is the alternative condition for the network to be attacked by external intrusion devices; then (s d [k]|H0)~N(0,σ 2 ), (s d [k]|H1)~N(ave(s),σ 2 ), N(·) represents normal distribution. Based on the Bayesian criterion, a likelihood ratio decision equation is derived as a detection model for detecting external intrusion devices. When the detection model detects that the channel feature is greater than the detection threshold, there is an external intrusion device in the RS485 bus network.

[0028] More preferably, the detection model is specifically:

[0029]

[0030] Among them, s d [k] is the difference signal, σ is ω s [k] is the standard deviation, N is the number of sampling points obtained from a fail-safe bias voltage signal and a gateway device communication signal, and Z is the integral lower limit of the probability density calculated in the standard normal distribution table.

[0031] More preferably, under the constant false alarm rate constraint condition, when the constant false alarm rates are set to 0.01%, 0.1% and 1%, respectively, the values ​​of Z are 3.59, 3.09 and 2.32, respectively.

[0032] In a second aspect, an embodiment of the present invention provides an intrusion device detection system based on RS485 bus fail-safe bias voltage, comprising:

[0033] The sampling module samples the fail-safe bias voltage signal at any position of the RS485 bus and the communication signal of the gateway device at the communication time during the network initialization phase and the network idle time;

[0034] An extraction module extracts the voltage amplitude characteristics of the fail-safe bias voltage signal and the gateway device communication signal respectively and collaboratively constructs a channel fingerprint;

[0035] The differential module resamples the fail-safe bias voltage signal and the gateway device communication signal in the detection phase to generate the channel feature to be detected, and performs differential processing with the channel fingerprint to generate a difference signal;

[0036] The detection module generates a detection threshold under the condition of constant false alarm rate constraint, detects whether there is an intrusion signal in the difference signal, and finally determines whether there is an external intrusion device.

[0037] In a third aspect, a computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned intrusion device detection method based on RS485 bus fault safety bias voltage when executing the computer program.

[0038] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, comprising a computer program, which, when executed by a processor, implements the steps of the above-mentioned intrusion device detection method based on RS485 bus fail-safe bias voltage.

[0039] Compared with the prior art, the present invention has at least the following beneficial effects:

[0040] Intrusion device detection method based on RS485 bus fail-safe bias voltage. Unauthorized access of external intrusion devices to the RS485 bus will inevitably cause changes in the amplitude of the fail-safe bias voltage and the communication signal of the gateway device at the idle time of the bus. The bias voltage at the idle time of the bus and the gateway communication signal at the communication time are sampled, and the voltage amplitude characteristics are extracted respectively and the channel fingerprint is constructed collaboratively. The external intrusion device is detected by identifying the differences generated on the channel fingerprint. The collaborative use of the two bus communication resources, the fail-safe bias voltage at the idle time of the bus and the gateway communication signal at the communication time, can significantly reduce the detection method's requirements for sampling frequency and detection time; the detection method is based on side channel monitoring and does not occupy bus resources. At the same time, the detection threshold is dynamically generated based on the constant false alarm rate constraint, which adapts to the detection environment in real time and reduces the detection overhead, realizing the accurate detection of various external intrusion devices in the RS485 bus network in an extremely low-cost manner.

[0041] Furthermore, an equivalent circuit of an RS485 fieldbus network with a fail-safe bias was constructed, and the impact of intrusion devices on the signal amplitude during fieldbus communication and idle periods was theoretically analyzed. The effectiveness of constructing a channel fingerprint by collaboratively utilizing the bias voltage during idle times and the gateway communication signal during communication times was demonstrated.

[0042] Furthermore, relying on the analysis of equivalent circuits, a signal standardization process is designed to extract only the voltage amplitude characteristics of the signal in the time domain, which simplifies the feature dimensions that need to be extracted in the traditional intrusion detection process and reduces the storage, computing overhead and hardware cost of the detection method.

[0043] Furthermore, the channel fingerprint is constructed using the bias voltage at idle time and the gateway communication signal at communication time. The full utilization of bus communication and channel resources at idle time can reflect the channel status more comprehensively and quickly, reduce the detection time, and discover the intrusion device in time.

[0044] Furthermore, the use of the assumed inspection principle and the constant false alarm rate constraint condition gets rid of the training process of the traditional machine learning method, further reducing the detection cost while improving the interpretability of the detection model.

[0045] It can be understood that the beneficial effects of the second aspect mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0046] In summary, the present invention utilizes the influence of external intrusion devices on the fail-safe bias voltage signal and the communication signal of the gateway device, adopts the side channel monitoring method to passively sample the two signals, and based on the hypothesis testing principle and the constant false alarm rate constraint identification signal, the change of the voltage amplitude characteristics is realized, thereby realizing the intrusion device detection method based on the RS485 bus fail-safe bias voltage.

[0047] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 The input conditions and corresponding output states of the RS485 receiver;

[0049] Figure 2 It is the equivalent circuit of RS485 bus network;

[0050] Figure 3 Figure 2 is a diagram of a bias voltage signal (BV signal) and a gateway device communication signal (CV signal);

[0051] Figure 4 This is a connection diagram of the intrusion device and monitoring device in the smart distribution cabinet in a real scenario;

[0052] Figure 5 This is the observation signal diagram of the power distribution cabinet under the influence of the intrusion device;

[0053] Figure 6The detection performance diagrams under different sampling frequencies and different averaging times, where (a) is the detection accuracy based on different sampling frequencies when the averaging times M is fixed at 10, and (b) is the detection accuracy based on different averaging times M when the sampling frequency is fixed at 20KS / s;

[0054] Figure 7 is a flow chart of the present invention;

[0055] Figure 8 A schematic diagram of a computer device provided by an embodiment of the present invention;

[0056] Fig. 9 The block diagram of a chip provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0058] In the description of the present invention, it should be understood that the terms “include” and “comprises” indicate the presence of described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.

[0059] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural forms unless the context clearly indicates otherwise.

[0060] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. 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 the present invention generally indicates that the associated objects are in an "or" relationship.

[0061] It should be understood that, although the terms first, second, third, etc. may be used to describe preset ranges, etc. in the embodiments of the present invention, these preset ranges should not be limited to these terms. These terms are only used to distinguish preset ranges from each other. For example, without departing from the scope of the embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.

[0062] The word "if" as used herein 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.

[0063] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.

[0064] The present invention provides an intrusion device detection method based on RS485 bus fail-safe bias voltage, samples the bias voltage at the idle time of the bus and the gateway communication signal at the communication time, extracts the voltage amplitude characteristics respectively and collaboratively constructs the channel fingerprint, and detects the external intrusion device by identifying the difference generated on the channel fingerprint. The collaborative use of the two bus communication resources, the fail-safe bias voltage at the idle time of the bus and the gateway communication signal at the communication time, can significantly reduce the detection method's requirements for sampling frequency and detection time; the detection method is based on side channel monitoring, does not occupy bus resources, and dynamically generates detection thresholds based on constant false alarm rate constraints, adapts to the detection environment in real time, reduces detection overhead, and realizes accurate detection of various types of external intrusion devices in the RS485 bus network in an extremely low-cost manner.

[0065] See also Figure 7 The present invention provides an intrusion device detection method based on RS485 bus fail-safe bias voltage. The access of external intrusion devices causes the impedance distribution of the RS485 bus network to change. The change is simultaneously reflected in the BV signal at the bus idle time and the CV signal at the gateway communication time. Based on this, combined with the analysis of the RS485 network equivalent circuit, the specific steps are as follows:

[0066] S1. The gateway device periodically sends a communication signal;

[0067] In the normal operation of the RS485 bus network, each terminal device needs to rely on the command of the gateway device to periodically execute the given action. Therefore, the gateway device periodically sends communication signals, which is a common workflow in the RS485 bus network.

[0068] S2, collecting M segments of fail-safe bias voltage signals (BV signals) and M gateway device communication signals (CV signals) at any position of the RS485 bus;

[0069] S201. When the network is physically secure (for example, during network initialization or after a careful security check), M segments of BV signals and M CV signals are collected for constructing a channel fingerprint. Figure 3 A signal diagram of a BV signal and a CV signal is shown. At this time, after executing S3, M BV signals and M CV signals will be stored as a channel fingerprint reflecting the security status of the channel.

[0070] S202, during the detection process (ie, not the first time to collect BV and CV signals), M segments of BV signals and M CV signals will execute step S4 after executing S3.

[0071] S3, voltage amplitude feature extraction and collaborative averaging;

[0072] S301, firstly, the high level and low level sampling points in each CV signal are standardized to the same voltage level to obtain amplitude characteristics. This standardization process is expressed as:

[0073]

[0074] Among them, x CV Represents a gateway device communication signal (CV signal), and They represent the high and low level sampling points in a CV signal, respectively, and ave(·) represents the average operator of the sampling points. The BV signal is a DC voltage signal, and no standardization process is required to extract the amplitude feature.

[0075] S302, in order to reduce noise interference in detection, M segments of BV signals and M standardized CV signals are averaged to reduce noise intensity and construct channel fingerprints; the averaging process is expressed as:

[0076]

[0077] Where k = 1, 2, ..., N, y F [k] represents the sampling point after a BV signal and a CV signal are spliced ​​together. is the channel fingerprint, xBV is a BV signal. is the Gaussian white noise that still remains in the channel fingerprint, and N represents the number of sampling points that can be obtained from a BV signal and a CV signal.

[0078] S4, reconstructing the channel characteristics and performing differential analysis with the channel fingerprint to generate a difference signal;

[0079] In the detection phase, the M segments of BV signals and M CV signals are resampled, and the channel features to be detected are generated in the same way as the channel fingerprint construction process. Then Channel Fingerprint Perform a differential operation to obtain the difference signal:

[0080]

[0081] Among them, s d [k] is the difference signal, s[k] is the intrusion signal reflecting the existence of external intrusion devices, ω s [k] is the Gaussian white noise in the difference signal. "Attacked" means there is an external intrusion device in the network, and "no attack" means there is no intrusion device in the network.

[0082] S5. Dynamic threshold generation and intrusion detection based on constant false alarm rate constraint;

[0083] Assume H0:ω s [k] is the original condition when the network is not attacked, H1:s[k]+ω s [k] is the alternative condition for the network to be attacked by external intrusion devices; s [k] is Gaussian white noise, then (s d [k]|H0)~N(0,σ 2 ) and (s d [k]|H1)~N(ave(s),σ 2 ), N(·) represents normal distribution. Based on the Bayesian criterion, the likelihood ratio decision equation can be derived, which is also the detection model for external intrusion devices:

[0084]

[0085] Among them, s d [k] is the difference signal, σ represents ω s[k] standard deviation, N represents the number of sampling points that can be obtained from a BV signal and a CV signal, Z represents the integral lower limit of the probability density calculated in the standard normal distribution table, under the condition of constant false alarm rate constraint, when the constant false alarm rate is set to 0.01%, 0.1% and 1%, the value of Z is 3.59, 3.09 and 2.32 respectively. In the present invention, in order to ensure that the false alarm rate of the detection model is minimized, the Z value is set to 3.59 by default.

[0086] If the channel characteristics detected by the detection model are greater than the detection threshold, it means that there is an external intrusion device in the RS485 bus network, and step S6 is executed. If the channel characteristics are less than the detection threshold, it is determined that the RS485 bus network is in a safe state at this time, and the channel characteristics at this time are updated as the channel fingerprint used for the next detection.

[0087] S6. There is an external intrusion device in the RS485 bus network, generating an alarm.

[0088] In still another embodiment of the present invention, an intrusion device detection system based on RS485 bus fail-safe bias voltage is provided. The system can be used to implement the above-mentioned intrusion device detection method based on RS485 bus fail-safe bias voltage. Specifically, the intrusion device detection system based on RS485 bus fail-safe bias voltage includes module, module, module, module and module.

[0089] Among them, the sampling module samples the fail-safe bias voltage signal at any position of the RS485 bus and the communication signal of the gateway device at the communication time during the network initialization phase and the network idle time;

[0090] An extraction module extracts the voltage amplitude characteristics of the fail-safe bias voltage signal and the gateway device communication signal respectively and collaboratively constructs a channel fingerprint;

[0091] The differential module resamples the fail-safe bias voltage signal and the gateway device communication signal in the detection phase to generate the channel feature to be detected, and performs differential processing with the channel fingerprint to generate a difference signal;

[0092] The detection module generates a detection threshold under the condition of constant false alarm rate constraint, detects whether there is an intrusion signal in the difference signal, and finally determines whether there is an external intrusion device.

[0093] In another embodiment of the present invention, a terminal device is provided, the terminal device includes a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc., which are the computing core and control core of the terminal, which are suitable for implementing one or more instructions, and are specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding functions; the processor described in the embodiment of the present invention can be used for the operation of the intrusion device detection method based on the RS485 bus fail-safe bias voltage, including:

[0094] In the network initialization phase, the fail-safe bias voltage signal at any position of the RS485 bus and the gateway device communication signal at the communication time are sampled when the network is idle; the voltage amplitude characteristics of the fail-safe bias voltage signal and the gateway device communication signal are extracted respectively, and the channel fingerprint is collaboratively constructed; in the detection phase, the fail-safe bias voltage signal and the gateway device communication signal are resampled to generate the channel characteristics to be detected, and the difference signal is generated by differential processing with the channel fingerprint; under the condition of constant false alarm rate constraint, a detection threshold is generated to detect whether there is an intrusion signal in the difference signal, and finally it is determined whether an external intrusion device exists.

[0095] In another embodiment of the present invention, the present invention further provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a terminal device for storing programs and data. It can be understood that the computer-readable storage medium here can include both the built-in storage medium in the terminal device and the extended storage medium supported by the terminal device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory (Non-Volatile Memory), such as at least one disk memory.

[0096] The processor may load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the intrusion device detection method based on the RS485 bus fail-safe bias voltage in the above embodiment; the processor may load and execute the following steps:

[0097] In the network initialization phase, the fail-safe bias voltage signal at any position of the RS485 bus and the gateway device communication signal at the communication time are sampled when the network is idle; the voltage amplitude characteristics of the fail-safe bias voltage signal and the gateway device communication signal are extracted respectively, and the channel fingerprint is collaboratively constructed; in the detection phase, the fail-safe bias voltage signal and the gateway device communication signal are resampled to generate the channel characteristics to be detected, and the difference signal is generated by differential processing with the channel fingerprint; under the condition of constant false alarm rate constraint, a detection threshold is generated to detect whether there is an intrusion signal in the difference signal, and finally it is determined whether an external intrusion device exists.

[0098] See also Figure 8 , the terminal device is a computer device, and the computer device 60 of this embodiment includes: a processor 61, a memory 62, and a computer program 63 stored in the memory 62 and executable on the processor 61. When the computer program 63 is executed by the processor 61, the method for calculating the composition of fluid in the reservoir reformed wellbore in the embodiment is realized. To avoid repetition, it is not described one by one here. Alternatively, when the computer program 63 is executed by the processor 61, the functions of each model / unit in the system for calculating the composition of fluid in the reservoir reformed wellbore in the embodiment are realized. To avoid repetition, it is not described one by one here.

[0099] The computer device 60 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The computer device 60 may include, but is not limited to, a processor 61 and a memory 62. Those skilled in the art will appreciate that Figure 8 This is only an example of the computer device 60 and does not constitute a limitation of the computer device 60. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.

[0100] The processor 61 may be a central processing unit (CPU), or other general-purpose processors, central processing units, graphics processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, data processing logic based on quantum computing, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0101] The memory 62 may be an internal storage unit of the computer device 60, such as a hard disk or memory of the computer device 60. The memory 62 may also be an external storage device of the computer device 60, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the computer device 60.

[0102] Furthermore, the memory 62 may include both an internal storage unit of the computer device 60 and an external storage device. The memory 62 is used to store computer programs and other programs and data required by the computer device. The memory 62 may also be used to temporarily store data that has been output or is to be output.

[0103] Any reference to memory, database or other media used in the embodiments provided in the present application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0104] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0105] See also Fig. 9 , the terminal device is a chip, and the chip 600 of this embodiment includes a processor 622, which may be one or more, and a memory 632 for storing a computer program executable by the processor 622. The computer program stored in the memory 632 may include one or more modules, each corresponding to a set of instructions. In addition, the processor 622 may be configured to execute the computer program to execute the above-mentioned generalizable monocular absolute depth map estimation method.

[0106] In addition, the chip 600 may further include a power supply component 626 and a communication component 650, wherein the power supply component 626 may be configured to perform power management of the chip 600, and the communication component 650 may be configured to implement communication, for example, wired or wireless communication, of the chip 600. In addition, the chip 600 may further include an input / output interface 658. The chip 600 may operate based on an operating system stored in the memory 632.

[0107] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention described and shown in the drawings here can usually be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0108] An embodiment of the present invention provides an attack scenario of an application example of an intrusion device detection method based on RS485 bus fail-safe bias voltage. In a real power distribution cabinet based on RS485 bus, three different external intrusion devices (protocol converters) are respectively connected to the bus to eavesdrop on key communication information broadcast on the bus without any encryption. The following case is specifically analyzed.

[0109] See also Figure 1 The RS485 standard specifies that the minimum differential bus voltage for the receiver to output the correct logical state is ±0.2V. A differential bus voltage greater than 0.2V indicates that the receiver outputs a logic "high", while a differential bus voltage less than -0.2V indicates that the receiver outputs a logic "low". However, during network idle periods (for example, between the intervals of each gateway communication command), no transmitter is actively driving the bus, thereby increasing the differential bus voltage V AB The differential voltage of 0V during idle is an undefined input level for a standard RS485 receiver. Faced with such an undefined input, the receiver may output an incorrect logic state or oscillate. Fail-safe biasing is the primary solution to this problem. Standard RS485 equipment contains a DC voltage source, pull-up and pull-down resistors, whose voltage divider action provides a differential DC bus voltage greater than 0.2V, i.e. Figure 1 The fail-safe bias voltages shown ensure that all receiver outputs go to a defined logic “high” state when no driver is actively driving the bus.

[0110] See also Figure 2 , the RS485 device acts as a driver (i.e., a device that sends commands) or a receiver (i.e., a device that receives commands) depending on its state. Figure 2 As shown in Figure 1, the gateway is the driver in the network, where the terminal device is the receiver. The equivalent model of the driver consists of a r The differential signal source V S_ACIt is used to send command voltage signals with opposite phases and equal amplitudes. The equivalent model of the receiver consists of two resistors R IN The common feature of the driver and receiver is the integration of a DC voltage source V S_DC , pull-up and pull-down resistors R for fail-safe biasing B ; To facilitate circuit analysis, Figure 2 The DC voltage source, pull-up, and pull-down resistors of each benign device in the example have the same value. Figure 2 There is a gateway device and n receiver terminals interconnected, with terminal resistors R at both ends T To simplify the analysis, the network topology is converted to a “lumped equivalent circuit” where R P Represents the equivalent input resistance of all transceiver pull-up or pull-down resistors, R EQ represents the equivalent input resistance of all receivers; the differential voltage V AB By solving the line voltage V A and V B Get, expressed as:

[0111]

[0112] Where R represents the impedance set of all resistors in the network, B(·) and C(·) are the DC voltage sources V S_DC and the differential signal source V S_AC Ratio function to R.

[0113] Accordingly, x BV Represents the bias voltage signal (BV signal) during network idle period (i.e. when no driver is active in the network), x CV Indicates the command voltage signal (CV signal) during network communication. In the attacked RS485 network, there is an input resistor R I ' N A listening intruder device (i.e. acting as a receiver) is connected to the bus. Its DC voltage source and pull-up / pull-down resistors are denoted as V S ' _DC and R' B Then, the differential voltage V in the attacked network is A ' B It is expressed as:

[0114]

[0115] Where R' represents the impedance set whose output impedance value is greater than R due to the influence of the intrusion device. Therefore, the BV signal and the CV signal become x' respectively. BV and x′ CVBased on the above analysis, the access of the intrusion device will inevitably cause the change of the network impedance distribution, which is reflected in the amplitude of the BV signal and the CV signal. AB and V A ' B to detect intrusion devices.

[0116] See also Figure 4 The power distribution cabinet contains eight different smart meters and a gateway to monitor and manage the power consumption of all electrical appliances in the 420 square meter laboratory. The smart meters and the gateway are interconnected through the RS485 bus with a baud rate of 9.6 kbit / s. The gateway sends a Modbus / RTU request command to each smart meter every 5 ms to obtain the measurement data of each meter. The bit length of each request command is 80 bits. In order to perform the attack, three common protocol converters on the market, ZLAN, KonNaD and MOXA, are used as intrusion devices to access the power distribution cabinet. Table 1 lists the electrical configuration of each device in the power distribution cabinet.

[0117] Table 1 Electrical configuration of each device in the power distribution cabinet

[0118]

[0119] The detection tool consists of a PC and a PicoScope oscilloscope. The PicoScope is used to sample the differential voltage signal in the network, and the initial sampling rate is set to 100KS / s. The PC is used to process the sampling points and store the channel fingerprint. When the distribution cabinet communicates at a baud rate of 9.6kbit / s, the number of sampling points of the 5ms interval BV signal and the 80-bit CV signal is 500 and 800, that is, N = 1300. Accordingly, before and after the intrusion device is connected, a BV signal and a standardized CV signal in the distribution cabinet are as follows: Figure 5 As shown in the figure, as the input resistance of the intrusion device increases, the amplitude of the intrusion signal decreases. Specifically, under the influence of ZLAN, the amplitude differences of the BV signal and the CV signal are about 0.2V and 0.25V, respectively. Under the influence of KonNaD, the amplitude differences are both 0.05V, while under the influence of MOXA, they show the smallest amplitude differences, which are 1mV and 7mV, respectively.

[0120] Table 2 shows the performance of detecting different intrusion devices when using only CV signal and when using the combination of BV signal + CV signal. For ZLAN and KonNaD, both detection signals can achieve 100% accuracy and 0% false alarm rate, without the need for multiple averaging to enhance the signal-to-noise ratio. However, for Figure 5MOXA, which has the least impact on signal amplitude, requires averaging 14 CV signals to achieve 100% accuracy using only CV signals for detection. The combined detection of BV and CV signals requires averaging 3 times to achieve 100% accuracy. Their respective detection time costs are 254ms and 100.5ms, respectively. This result shows that joint detection of BV and CV signals can significantly reduce detection latency. In addition, the consistent 0% false alarm rate in all scenarios verifies the appropriateness of the detection threshold generated based on Z = 3.59 (i.e., under the minimum constant false alarm rate constraint).

[0121] Table 2 Detection performance for different intrusion devices

[0122]

[0123] In order to evaluate the detection performance under different sampling rates, we tested the MOXA in the power distribution cabinet 10 times on average (i.e., M=10). The sampling rate was adjusted to 20KS / s, 40KS / s, 60KS / s, 80KS / s, and 100KS / s, and the signal with a baud rate of 9.6kbit / s was collected. The corresponding N values ​​were 260, 520, 780, 1040, and 1300. Figure 6 As shown in the figure, the detection accuracy increases with the increase of sampling rate; the combined use of BV signal and CV signal reaches 100% accuracy at 60KS / s sampling rate, while the detection of CV signal alone can only reach 66.10% accuracy at 100KS / s. These results show that the combination of BV signal and CV signal for detection greatly reduces the sampling cost.

[0124] In addition, if Figure 6 As shown in (b), when a 20KS / s sampling rate (2× baud rate) is used, the improved signal-to-noise ratio due to the increased number of averaging times can compensate for the detection performance based on fewer sampling points.

[0125] Specifically, when M=30, the detection using the BV signal and the CV signal together at a sampling rate of 20 KS / s can also achieve 100% accuracy, but the detection time consumption will also be greater.

[0126] In summary, the present invention provides an intrusion device detection method and system based on the RS485 bus fail-safe bias voltage, which samples the bias voltage at the idle time of the bus and the gateway communication signal at the communication time, extracts the voltage amplitude characteristics respectively and collaboratively constructs the channel fingerprint, and detects the external intrusion device by identifying the difference generated on the channel fingerprint. The collaborative use of the two bus communication resources, the fail-safe bias voltage at the idle time of the bus and the gateway communication signal at the communication time, can significantly reduce the detection method's requirements for sampling frequency and detection time; the detection method is based on side channel monitoring, does not occupy bus resources, and dynamically generates detection thresholds based on constant false alarm rate constraints, adapts to the detection environment in real time, reduces detection overhead, and realizes accurate detection of various types of external intrusion devices in the RS485 bus network in an extremely low-cost manner.

[0127] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0128] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0129] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0130] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0131] 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0132] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0133] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0134] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0135] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0136] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0137] The above contents are only for explaining the technical idea of ​​the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.

Claims

1. An intrusion device detection method based on RS485 bus fail-safe bias voltage, characterized in that: The following steps are involved: During the network initialization phase, the fail-safe bias voltage signal at any position of the RS485 bus and the communication signal of the gateway device at the communication time are sampled; The voltage amplitude features of the fail-safe bias voltage signal and the gateway device communication signal are extracted respectively and the channel fingerprint is constructed collaboratively; In the detection phase, the fail-safe bias voltage signal and the gateway device communication signal are resampled to generate the channel feature to be detected, and the difference signal is generated by performing differential processing with the channel fingerprint; A detection threshold is generated under the condition of constant false alarm rate constraint to detect whether there is an intrusion signal in the difference signal, and finally determine whether there is an external intrusion device.

2. The intrusion device detection method based on RS485 bus fail-safe bias voltage according to claim 1, characterized in that, When the network is idle, M segments of fail-safe bias voltage signals and M gateway device communication signals are collected at any position of the RS485 bus.

3. The intrusion device detection method based on RS485 bus fail-safe bias voltage according to claim 1, characterized in that, The voltage amplitude characteristics of the fail-safe bias voltage signal and the gateway device communication signal are extracted respectively as follows: Normalizing high-level and low-level sampling points in each gateway device communication signal to the same voltage level to obtain amplitude characteristics; The M segments of fail-safe bias voltage signals and the M standardized gateway device communication signals are averaged to reduce the noise intensity and construct a channel fingerprint.

4. The intrusion device detection method based on RS485 bus fail-safe bias voltage according to claim 3, characterized in that, The standardization process is as follows: Among them, x CV Represents a gateway device communication signal, and They represent the high-level and low-level sampling points in a gateway device communication signal, respectively, and ave(·) represents the average operator of the sampling points.

5. The intrusion device detection method based on RS485 bus fail-safe bias voltage according to claim 3, characterized in that: The averaging process is as follows: Where k = 1, 2, ..., N, y F [k] represents the sampling point after a fail-safe bias voltage signal and a gateway device communication signal are spliced ​​together. is the channel fingerprint, x BV is a fail-safe bias voltage signal, is the Gaussian white noise still remaining in the channel fingerprint, and N represents the number of sampling points obtained from a fail-safe bias voltage signal and a gateway device communication signal.

6. The intrusion device detection method based on RS485 bus fail-safe bias voltage according to claim 1, characterized in that: Difference signal d [k] Specifically: Among them, s[k] is the intrusion signal reflecting the existence of external intrusion devices, ω s [k] is the Gaussian white noise in the difference signal, attacked means there is an external intrusion device in the network, and no attack means there is no intrusion device in the network.

7. The intrusion device detection method based on RS485 bus fail-safe bias voltage according to claim 1, characterized in that: Let H0:ω s [k] is the original condition when the network is not attacked, H1:s[k]+ω s [k] is the alternative condition for the network to be attacked by external intrusion devices; then (s d [k]|H0)~N(0,σ 2 ), (s d [k]|H1)~N(ave(s),σ 2 ), N(·) represents normal distribution. Based on the Bayesian criterion, a likelihood ratio decision equation is derived as a detection model for detecting external intrusion devices. When the detection model detects that the channel feature is greater than the detection threshold, there is an external intrusion device in the RS485 bus network.

8. The intrusion device detection method based on RS485 bus fail-safe bias voltage according to claim 7, characterized in that: The specific detection model is: Among them, s d [k] is the difference signal, σ is ω s [k] is the standard deviation, N is the number of sampling points obtained from a fail-safe bias voltage signal and a gateway device communication signal, and Z is the integral lower limit of the probability density calculated in the standard normal distribution table.

9. The intrusion device detection method based on RS485 bus fail-safe bias voltage according to claim 8, characterized in that: Under the constant false alarm rate constraint condition, when the constant false alarm rate is set to 0.01%, 0.1% and 1%, the values ​​of Z are 3.59, 3.09 and 2.32 respectively.

10. An intrusion device detection system based on RS485 bus fail-safe bias voltage, characterized in that: include: The sampling module samples the fail-safe bias voltage signal at any position of the RS485 bus and the communication signal of the gateway device at the communication time during the network initialization phase and the network idle time; An extraction module extracts the voltage amplitude characteristics of the fail-safe bias voltage signal and the gateway device communication signal respectively and collaboratively constructs a channel fingerprint; The differential module resamples the fail-safe bias voltage signal and the gateway device communication signal in the detection phase to generate the channel feature to be detected, and performs differential processing with the channel fingerprint to generate a difference signal; The detection module generates a detection threshold under the condition of constant false alarm rate constraint, detects whether there is an intrusion signal in the difference signal, and finally determines whether there is an external intrusion device.

Citation Information

Patent Citations

  • Industrial control system physical intrusion attack detection method based on serial communication bus signal analysis

    CN108520187A

  • Deep SVDD-based vehicle external intrusion detection method and system

    CN113359666A

  • Power grid monitoring equipment detection method based on channel electrical characteristic fingerprint identification

    CN115473716A

  • Communication network hierarchical fingerprint model construction method for smart power grid

    CN115514542A

  • Field bus network silent intrusion equipment detection method and related equipment thereof

    CN117375976A

Cited By

  • RS232 equipment fingerprint extraction method based on free section frequency domain characteristics

    CN119226211A