Security auditing method, device and system and medium

Through the collaboration between the USB audit device and the cloud management server, the USB UDC and USB Host interfaces are used for data packet transmission and monitoring, detecting and handling violations, solving the problem of USB interface security events, and improving the security of data packets and system reliability. sex.

CN118761065AInactive Publication Date: 2024-10-11SHANGHAI BEIRUI INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410798390.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

USB interface security incidents occur frequently, causing computer systems to face serious security risks, such as malware spread, data leakage, and unauthorized access. Existing technologies are difficult to effectively solve these security risks.

Method used

Through the collaboration between the USB audit device and the cloud management server, the USB UDC interface and USB Host interface are used for data packet transmission and monitoring, detecting violations and analyzing and processing according to audit rules, including interception and alarm triggering management rules, to ensure the security of data packets sex.

Benefits of technology

It implements a full-process monitoring agent for packet communication and data transmission between USB devices and the host computer, solves potential safety hazards during the use of USB devices, and improves the security and reliability of computer systems and USB device data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118761065A_ABST
    Figure CN118761065A_ABST
Patent Text Reader

Abstract

The invention provides a safety auditing method, device and system and a medium, and the method comprises the steps: transmitting a USB data packet on a USB link between an upper computer and USB equipment in a preset transparent transmission mode after USB auditing equipment is started, entering a preset monitoring mode, and capturing and analyzing the USB data packet transmitted by each USB interface in the preset monitoring mode; when the illegal behavior of the USB equipment is detected, reporting the illegal behavior to a cloud management server, so that the cloud management server determines an auditing rule; and receiving an auditing rule issued by the cloud management server, and analyzing and processing the USB data packet in a preset injection mode according to the auditing rule. According to the invention, the whole-process monitoring agent can be carried out on the communication handshake process of the USB data packet of the USB equipment and the upper computer and the data transmission, the auditing analysis and modification of the USB data packet can be realized, the technical problem of potential safety hazards in the use process of the USB equipment is solved, and the safety and reliability of the data of the upper computer and the USB equipment are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and in particular to a security audit method, device, system and medium. Background Art

[0002] Security audit refers to a comprehensive and systematic inspection and evaluation of computer systems, network equipment, applications, and security policies to discover security issues and vulnerabilities in the system and provide corresponding repair suggestions and improvement measures.

[0003] USB has become one of the essential interfaces for computers and smart devices, and is widely used in various scenarios of daily work, such as using USB flash drives to share data between PCs, using USB printers, USB security authentication cards, and USB mouse and keyboard. In recent years, security incidents of various hardware products have emerged in an endless stream, and a variety of attack methods have emerged against USB interfaces, such as malware propagation, data leakage, unauthorized access, automatic operation attacks, charging cable attacks, and other security issues in USB use, resulting in serious security risks for related systems. Therefore, a security audit method to eliminate security risks in USB use is urgently needed. Summary of the invention

[0004] In view of the above problems, the present invention is proposed to provide a security audit method, device, system and medium that overcome the above problems or at least partially solve the above problems.

[0005] To achieve the above purpose and other related purposes, the present invention provides a security audit method, which is applied to a USB audit device, wherein the USB audit device is connected to a cloud management server, and the USB audit device uses a USB UDC interface and a USB Host interface to connect a host computer and a USB device, and the method comprises:

[0006] After the USB audit device is started, the USB data packets on the USB link between the host computer and the USB device are transmitted in a preset transparent transmission mode, and the preset monitoring mode is entered at the same time, and the USB data packets transmitted by each USB interface are captured and analyzed in the preset monitoring mode;

[0007] When a violation of the USB device is detected, the violation is reported to the cloud management server so that the cloud management server can determine an audit rule;

[0008] Receive the audit rules sent by the cloud management server, and analyze and process the USB data packet in a preset injection mode according to the audit rules.

[0009] Optionally, the audit rules include: interception rules and / or alarm trigger management rules.

[0010] Optionally, the analyzing and processing the USB data packet in a preset injection mode according to the audit rule includes:

[0011] In the case where the audit rule is an interception rule, parsing the USB data packet on the USB link to extract a unique identifier of the USB device;

[0012] The unique identifier is analyzed and identified according to a preset blacklist, and when it is detected that the unique identifier is included in the device list of the preset blacklist, the USB data packet is prohibited from communicating and transmitting, and an alarm message is sent to the cloud management server.

[0013] Optionally, after the step of extracting the unique identifier of the USB device, the method further includes:

[0014] The unique identifier is analyzed and identified according to a preset white list, and when it is detected that the unique identifier is included in the device list of the preset white list, the USB data packet is allowed to communicate and transmit.

[0015] Optionally, the analyzing and processing the USB data packet in a preset injection mode according to the audit rule includes:

[0016] In the case where the audit rule is an alarm trigger management rule, unpacking and analyzing the USB data packet on the USB link to obtain the transmission content of the USB device;

[0017] When it is detected that the transmission content is sensitive content, the USB data packet is modified or intercepted, and an alarm message is sent to the cloud management server.

[0018] Optionally, after the step of detecting the illegal behavior of the USB device, the method further includes:

[0019] The USB audit device is allowed to locally issue audit rules, and analyze and process the USB data packet in a preset injection mode according to the audit rules.

[0020] To achieve the above objectives and other related objectives, the present invention provides a security audit method, which is applied to a cloud management server, and the method includes:

[0021] Receive violations reported by USB audit devices and determine audit rules based on the violations;

[0022] The audit rules are issued to the USB audit device, so that the USB audit device analyzes and processes the USB data packets in a preset injection mode according to the audit rules.

[0023] In a second aspect, the present invention further provides a security audit device, which is applied to a USB peripheral security audit device, wherein the USB audit device is connected to a cloud management server, and the USB audit device uses a USB UDC interface and a USB Host interface to connect a host computer and a USB device, and the device comprises:

[0024] A transmission module, used for transmitting USB data packets on the USB link between the host computer and the USB device in a preset transparent transmission mode after the USB audit device is started, and entering a preset monitoring mode at the same time, and capturing and analyzing USB data packets transmitted by each USB interface in the preset monitoring mode;

[0025] A reporting module, configured to report, when a violation of the USB device is detected, the violation to the cloud management server so that the cloud management server can determine an audit rule;

[0026] The audit module is used to receive the audit rules sent by the cloud management server, and analyze and process the USB data packet in a preset injection mode according to the audit rules.

[0027] In a third aspect, the present invention further provides a security audit system, the system comprising:

[0028] A USB audit device, which is used to transmit USB data packets on the USB link between the host computer and the USB device in a preset transparent transmission mode after the USB audit device is started, and enter a preset monitoring mode at the same time, and capture and analyze USB data packets transmitted by each USB interface in the preset monitoring mode;

[0029] The USB audit device is further used to report the illegal behavior to the cloud management server when the illegal behavior of the USB device is detected;

[0030] A cloud management server, configured to receive the violation reported by the USB audit device and determine an audit rule according to the violation;

[0031] The cloud management server is further used to issue audit rules to the USB audit device;

[0032] The USB audit device is also used to receive the audit rules sent by the cloud management server, and analyze and process the USB data packet in a preset injection mode according to the audit rules.

[0033] The above one or more technical solutions provided by the present invention may have the following advantages or at least achieve the following technical effects:

[0034] The security audit method, device, system and medium of the present invention are applied to a USB audit device, wherein the USB audit device is connected to a cloud management server, and the USB audit device uses a USB UDC interface and a USB Host interface to connect a host computer and a USB device. The method comprises: after the USB audit device is started, a USB data packet on a USB link between the host computer and the USB device is transmitted in a preset transparent transmission mode, and a preset monitoring mode is entered at the same time, and USB data packets transmitted by each USB interface are captured and analyzed in the preset monitoring mode; when a violation of the USB device is detected, the violation is reported to the cloud management server so that the cloud management server can determine an audit rule; and the audit rule issued by the cloud management server is received, and the USB data packet is analyzed and processed in a preset injection mode according to the audit rule.

[0035] Therefore, the present invention can monitor the entire USB data packet communication handshake process and data transmission between the USB device and the host computer through the joint cooperation of the USB audit device and the cloud management server, and can realize the audit analysis and modification of the USB data packet, solve the technical problem of potential safety hazards in the use of USB devices, and improve the security and reliability of computer systems and USB device data. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 Shown is a basic framework diagram of a USB audit device in one embodiment of the present invention;

[0037] Figure 2 Shown is a schematic flow chart of a security audit method in one embodiment of the present invention;

[0038] Figure 3 Shown is a schematic diagram of a transparent transmission mode of a USB audit device in one embodiment of the present invention;

[0039] Figure 4 Shown is a schematic diagram of a monitoring mode of a USB audit device in one embodiment of the present invention;

[0040] Figure 5 Shown is a schematic diagram of the injection mode of a USB audit device in one embodiment of the present invention;

[0041] Figure 6 Shown is a schematic diagram of the functional modules of a security audit device in one embodiment of the present invention.

[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0044] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0045] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.

[0046] The terms "first", "second", etc. in the specification and claims of the disclosed embodiments and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the disclosed embodiments described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0047] Unless otherwise stated, the term "plurality" means two or more.

[0048] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0049] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0050] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:

[0051] <1> , The host computer refers to the computer or system that communicates and controls the lower computer or device. It is usually an independent computer used to monitor, configure, control and manage the operation of the lower computer or device.

[0052] <2> , USB device refers to a hardware device that is connected to a computer through a USB interface.

[0053] <3> , UDC (USB Device Controller) refers to the underlying hardware controller on a USB hardware device that is a peripheral of other USB host controllers. The hardware and driver will be attached to a USB host controller as a USB device.

[0054] <4> Malware refers to software designed to damage, harm, steal, or gain unauthorized access to computer systems. Common ways of spreading malware include, but are not limited to: email attachments, malicious links, software vulnerabilities, USB and other removable media.

[0055] Malware propagation refers to the use of malware that can be spread through infected USB devices. When a user connects an infected USB device, the malware may spread to the user's computer or other devices.

[0056] <5> , data leakage, refers to the access, theft or disclosure of sensitive, confidential or protected data by unauthorized individuals or entities. Common causes of data leakage include but are not limited to: hacker attacks, malware, internal threats, physical theft and third-party leakage.

[0057] <6> Unauthorized access is when a person or entity attempts or succeeds in gaining access to a computer system, network, application, data, or resource without proper permissions. For example, a malicious user may gain physical access to a user's computer without being noticed and attempt to insert a malicious USB device to gain unauthorized access control.

[0058] <7> , Autorun attack, refers to a method of spreading malware that exploits the autorun feature in the Windows operating system. For example, a malicious USB may exploit the autorun feature to automatically execute malicious code when the device is connected to a computer.

[0059] <8> , Charging cable attack, a method of attacking electronic devices using specially designed charging cables (e.g., malicious charging cables may contain malware that is used to attack the connected device's system), such as mobile phones or tablets connected via USB.

[0060] <9> , USB HID (Human Interface Device) is a USB device used for interaction between computer systems and users, such as keyboards, mice, etc. Its features include: plug-and-play, multiple uses, standardization, and flexibility.

[0061] The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0062] An embodiment of the present invention provides a security audit method, which is applied to a USB audit device, wherein the USB audit device is connected to a cloud management server, and the USB audit device uses a USB UDC interface and a USB Host interface to connect a host computer and a USB device.

[0063] Among them, the USB audit device is a single-board system based on ARM SoC, running an embedded operating system. It includes a USB HOST interface and a USB UDC interface, and supports USB1.0 to 3.0 protocols. It can be used to monitor and manage the use of USB devices to ensure data security and prevent the spread of malware.

[0064] As an example, the USB HOST interface may be preferably a Type-A interface, and the USB UDC interface may be preferably a Type-C interface. USB IN (USB input) and USB OUT (USB output) are distinguished by using the Type-A interface and the Type-C interface. In a specific embodiment, the interface type of the USB audit device may be adjusted according to actual conditions.

[0065] As another example, see Figure 1 , Figure 1 This is a basic framework diagram of the USB audit device; Figure 1 As can be seen from the figure, the USB audit device is an intermediate device for USB data communication, which can monitor and intercept data. The USB audit device can use the USB HOST interface and USB UDC interface to connect the USB device and the host computer. Figure 1 The "WIFI" and "Bluetooth" are used for networking and remote control of USB audit devices, indicating that the USB audit device can be connected to the host computer via Ethernet (such as USB interface) or WiFi.

[0066] The security audit method of the embodiment of the present invention is described in detail below in conjunction with multiple embodiments.

[0067] See also Figure 2 An embodiment of the present invention provides a security audit method, which may include the following steps S10 to S30:

[0068] Step S10, after the USB audit device is started, the USB data packets on the USB link between the host computer and the USB device are transmitted in a preset transparent transmission mode, and the preset monitoring mode is entered at the same time, and the USB data packets transmitted by each USB interface are captured and analyzed in the preset monitoring mode.

[0069] Among them, the transparent transmission mode can be a USB data packet directly transmitted between the host computer and the USB device without any additional processing or filtering; it focuses on the direct forwarding of USB data packets. Among them, in the transparent transmission mode, the USB audit device is transparent to the USB data packet and will not change the content of the USB data packet.

[0070] See also Figure 3 , Figure 3 This is a schematic diagram of the transparent transmission mode of the USB audit device; Figure 3 It can be seen that after the USB audit device is started, in the transparent transmission mode, the USB data packets on the USB link between the host computer and the USB device (ie, the audited device) are directly forwarded.

[0071] In the monitoring mode, USB data packets transmitted through each USB interface can be captured and analyzed during USB auditing; it focuses on the capture and analysis of USB data packets.

[0072] See also Figure 4 , Figure 4 This is a diagram of the monitoring mode of the USB audit device; Figure 4 It can be seen that in monitoring mode, the USB audit device collects and analyzes all USB data packets on the USB bus, and when abnormalities in data security or behavior analysis are found, the data or behavior is reported to the cloud management server.

[0073] In the specific implementation, after the USB audit device is started, the USB data packets on the USB link between the host computer and the USB device can be transmitted in transparent transmission mode to ensure the normal transmission of the USB link between the host computer and the USB device. At the same time, the monitoring mode can be entered to capture the USB data packets transmitted by each USB interface of the USB design device in the monitoring mode, and the behavior of the USB device corresponding to each USB data packet can be analyzed to detect whether there is any behavior that violates the security policy.

[0074] Step S20, when a violation of the USB device is detected, the violation is reported to the cloud management server so that the cloud management server can determine the audit rules.

[0075] Among them, the violation may be the use of USB devices in an act that is not in compliance with the organization's security policies or laws and regulations.

[0076] As an example, a USB device is analyzed for USB violations, such as unauthorized USB device access, use of unsafe USB devices, data leakage, or malware infection.

[0077] Audit rules can be used in USB auditing to monitor, record, and analyze the interactions between USB devices and host computers to ensure data security, prevent unauthorized access, and detect potential threats.

[0078] As an example, when a USB data packet is detected to contain sensitive content, a security warning message may be triggered.

[0079] As another example, when a malicious program is detected in a connected USB device, USB data packets of the USB device are modified or filtered in a timely manner.

[0080] As another example, when unauthorized USB device access is detected, USB device data communication is prohibited and an alarm message is sent to the cloud management server.

[0081] In the specific implementation, when a violation of a USB device is detected, the violation can be reported to the cloud management server; the cloud management server can then determine the corresponding audit rules based on the violation of the USB device, and then the cloud management server can issue the audit rules to the USB audit device to remotely manage the USB audit device.

[0082] Furthermore, in one embodiment, the audit rules may include: interception rules and / or alarm trigger management rules.

[0083] As an example, the audit rule can be an interception rule. For example, the USB audit device can extract the PID and VID of the USB setup data packet, and analyze and identify it based on the PID and VID; then the communication can be allowed or denied based on the black and white list. Among them, various USB devices can be quickly and accurately identified and managed through PID and VID.

[0084] As another example, the audit rule may be an alarm triggering management rule. For example, the USB audit device analyzes the USB HID data packet to obtain the corresponding mouse or keyboard input content; when it is found that the user enters specific content or keywords, a security alarm message may be triggered.

[0085] As yet another example, audit rules may be interception rules and alert trigger management rules.

[0086] Step S30, receiving the audit rules sent by the cloud management server, and analyzing and processing the USB data packet in a preset injection mode according to the audit rules.

[0087] Among them, the injection mode can be that when the data security or behavior analysis anomalies are found, the USB audit device injects specific data or commands into the USB data packet to filter dangerous data or stop forwarding.

[0088] See also Figure 5 , Figure 5 This is a schematic diagram of the injection mode of the USB audit device; Figure 5 It can be seen that after the USB audit device finds anomalies in data security or behavior analysis, it enters the injection mode to filter or block the forwarding of dangerous USB data packets.

[0089] In the specific implementation, the audit rules issued by the cloud management server can be received, and the audit rules can be used to analyze and process the USB data packets in injection mode to realize the full monitoring agent of the USB data packet communication handshake process and data transmission between the USB device and the host computer.

[0090] In this embodiment, after the USB audit device is started, the USB data packet on the USB link between the host computer and the USB device is transmitted in a preset transparent transmission mode, and the preset monitoring mode is entered at the same time, and the USB data packets transmitted by each USB interface are captured and analyzed in the preset monitoring mode; when the violation of the USB device is detected, the violation is reported to the cloud management server for the cloud management server to determine the audit rules; the audit rules issued by the cloud management server are received, and the USB data packet is analyzed and processed in a preset injection mode according to the audit rules. The present invention can monitor the USB data packet communication handshake process and data transmission between the USB device and the host computer through the joint cooperation of the USB audit device and the cloud management server, and can realize the audit analysis and modification of the USB data packet, solve the technical problem of the potential safety hazard in the use of the USB device, and improve the security and reliability of the computer system and the USB device data.

[0091] Based on the above embodiments, a second embodiment of the security audit method of the present invention is proposed. In this embodiment, step S30 may further include the following sub-steps A10 to A20:

[0092] Sub-step A10, when the audit rule is an interception rule, the USB data packet on the USB link is parsed to extract the unique identifier of the USB device.

[0093] The interception rule may be a behavior that specifies that data transmission or data connection of a USB device should be blocked under certain circumstances.

[0094] As an example, the interception rule may be for unauthorized USB device interception, which may prevent USB devices that do not appear on the whitelist from connecting to the host computer.

[0095] As another example, the blocking rule may be a blacklist blocking rule, which may automatically block known blacklist USB devices that may be associated with security incidents or unsafe behaviors.

[0096] The unique identifier can be the PID (Product ID) and VID (Vendor ID) of the USB device; in USB device management and auditing, the PID and VID can be used to authenticate and manage the USB device. Each USB device corresponds to a unique PID and VID.

[0097] In a specific implementation, when the audit rule is an interception rule, the USB data packet on the USB link can be parsed to extract the unique identifier of the USB device; then the USB device can be authenticated based on the unique identifier to determine whether the USB device has permission.

[0098] Sub-step A20, analyzing and identifying the unique identifier according to a preset blacklist, and when it is detected that the device list in the preset blacklist does not contain the unique identifier, prohibiting the USB data packet from communicating and transmitting, and sending an alarm message.

[0099] Among them, the black and white lists can be used to control and manage the access rights of USB devices in USB auditing; they can effectively control the use of USB devices, prevent data leakage and the spread of malicious software, and thus improve the security of data between the host computer and USB devices.

[0100] The whitelist may include a list of USB devices that are trusted and allowed to access the host computer; only USB devices on the whitelist can be connected to the host computer for data transmission, which can reduce the security risks brought by unauthorized USB devices.

[0101] The blacklist can contain a list of USB devices that are prohibited from accessing the host computer. When any device on the blacklist attempts to connect, the host computer will automatically block its access. This can be used to prevent known malicious or unsafe USB devices from accessing.

[0102] In a specific implementation, a blacklist can be used to analyze and identify a unique identifier to determine whether the USB device corresponding to the unique identifier has access permission; when it is detected that the blacklist device list contains a unique identifier, it means that the USB device corresponding to the unique identifier does not have access permission, and the USB data packets communicated by the USB device can be intercepted and an alarm message can be sent.

[0103] Furthermore, in one embodiment, after sub-step A10, the method may further include the following sub-step A30:

[0104] Sub-step A30, analyzing and identifying the unique identifier according to a preset white list, and when it is detected that the unique identifier is included in the device list of the preset white list, allowing the USB data packet to communicate and transmit.

[0105] In a specific implementation, after analyzing and identifying the unique identifier using the whitelist, when it is detected that the unique identifier is included in the device list of the whitelist, it means that the USB device corresponding to the unique identifier has access permission, and thus the USB data packet communicating with the USB device can be allowed to be transmitted.

[0106] In this embodiment, when the audit rule is an interception rule, the USB data packet on the USB link is parsed to extract the unique identifier of the USB device; the unique identifier is analyzed and identified according to the preset blacklist, and when the unique identifier is detected in the device list of the preset blacklist, the USB data packet is prohibited from being transmitted and an alarm message is sent. Thus, the access rights of the USB device are effectively controlled and managed through the interception rule, data leakage and the spread of malicious software are prevented, and the security of the data between the host computer and the USB device is improved.

[0107] Based on the above embodiments, a third embodiment of the security audit method of the present invention is proposed. In this embodiment, step S30 may include the following sub-steps B10 to B20:

[0108] Sub-step B10, when the audit rule is an alarm triggering management rule, unpacking and analyzing the USB data packet on the USB link to obtain the transmission content of the USB device.

[0109] Among them, the alarm trigger management rules can automatically issue a security warning when certain conditions are met.

[0110] As an example, when a malicious program is detected in a USB flash drive or a mobile hard disk (ie, a USB device) used by a user, a security warning is automatically issued.

[0111] As another example, when it is detected that a user keyboard or mouse (ie, a USB HID device) inputs specific content (ie, sensitive content), a security warning may be automatically triggered.

[0112] In a specific implementation, when the audit rule is an alarm triggering rule, the USB data packet is unpacked and analyzed to parse out the input content of the USB device.

[0113] As an example, the input content of the corresponding mouse or keyboard (ie, USB HID device) can be obtained by analyzing the USB HID data packet (ie, USB data packet).

[0114] Sub-step B20, when it is detected that the transmission content is sensitive content, modify or intercept the USB data packet and send an alarm message to the cloud management server.

[0115] The sensitive content may be specific content or keywords that trigger security alerts, such as passwords, personal identity information, or time.

[0116] In a specific implementation, when it is detected that the transmission content contains sensitive content, the USB data packet can be modified or intercepted, and an alarm message can be sent to the cloud management server.

[0117] As an example, a USB audit device can be used to monitor all keyboard input through the USB interface. When password data (i.e., sensitive content) is detected, the data can be modified to empty data (or the data can be cut off from forwarding transmission) and a security alarm can be automatically triggered.

[0118] In this embodiment, when the audit rule is an alarm trigger rule, the USB data packet on the USB link is unpacked and analyzed to obtain the transmission content of the USB device; when the transmission content is detected to be sensitive content, the USB data packet is modified or intercepted, and an alarm message is sent to the cloud management server. Thus, the USB data packet is audited by the alarm trigger management rule to modify or intercept dangerous data, which can effectively monitor and protect sensitive content input through the USB HID device and reduce the risk of data leakage.

[0119] Based on the above embodiments, a fourth embodiment of the security audit method of the present invention is proposed. In this embodiment, after step S20, the following sub-step C10 may be included:

[0120] Sub-step C10, allowing the USB audit device to locally issue audit rules, and analyzing and processing the USB data packet in a preset injection mode according to the audit rules.

[0121] The audit rules may be rules pre-set and implemented on the USB audit device, which may define how the USB audit device processes and monitors the usage of the USB device, and are stored locally on the USB audit device after configuration is completed.

[0122] As an example, audit rules may define the permitted uses of USB devices, and the operations performed by USB devices; such as preventing unauthorized USB device access.

[0123] As another example, the audit rules may include a filtering mechanism to monitor and log USB data packets transmitted through various USB interfaces of the USB audit device.

[0124] In a specific implementation, after a USB violation is detected, the USB audit device may be allowed to locally issue audit rules; and then analyze and process the USB data packets in a preset injection mode according to the local audit rules.

[0125] In addition, the audit rules locally issued by the USB audit device may need to be manually updated regularly to adapt to changing USB audit security requirements and policies.

[0126] In this embodiment, by allowing the USB audit device to issue audit rules locally and analyzing and processing the USB data packet in a preset injection mode according to the audit rules, the USB audit device will automatically perform audit tasks according to the audit rules without the intervention of an external server, which helps to improve the efficiency and response speed of the audit and also reduces the dependence on network connections.

[0127] Furthermore, an embodiment of the present invention also provides a security audit method, which is applied to a cloud management server and may include the following sub-steps S40 to S50:

[0128] Step S40, receiving the violation reported by the USB audit device, and determining the audit rules according to the violation.

[0129] In a specific implementation, the cloud management server may receive the violation behavior of the USB device reported by the USB audit device; and then the cloud management server may determine the corresponding audit rules according to the violation behavior.

[0130] As an example, create a trusted device list (which contains the PID and VID of trusted USB devices). If the list only contains the PID and VID of a USB keyboard (i.e., USB HID), it means that only authorized USB keyboards are allowed to connect to the host computer, which can lock or disable all USB interfaces except the USB keyboard input; thereby improving the security of USB auditing and reducing security risks.

[0131] Sub-step S50, issuing audit rules to the USB audit device, so that the USB audit device analyzes and processes the USB data packet in a preset injection mode according to the audit rules.

[0132] In a specific implementation, the cloud management server can issue audit rules to the USB audit device to remotely manage the USB audit device; after receiving the audit rules, the USB audit device can analyze and process the USB data packet in a preset injection mode according to the audit rules.

[0133] In this embodiment, the USB violation reported by the USB audit device is received, and the audit rules are determined according to the USB violation; the audit rules are issued to the USB audit device, so that the USB audit device analyzes and processes the USB data packet in a preset injection mode according to the audit rules. The present invention monitors the USB data packet communication handshake process and data transmission between the USB device and the host computer through the joint cooperation of the USB audit device and the cloud management server, and can realize the audit analysis and modification of the USB data packet, solve the technical problem of potential safety hazards in the use of USB devices, and improve the security and reliability of the host computer and USB device data.

[0134] Based on the same inventive concept, the sixth embodiment of the present invention also provides a security audit device corresponding to the security audit method of the previous embodiment. Since the principle of solving the problem by the device in the sixth embodiment of the present invention is similar to the security audit method of the previous embodiment of the present invention, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated. Figure 6 , the security audit device of the present invention may include:

[0135] The transmission module 10 is used to transmit the USB data packets on the USB link between the host computer and the USB device in a preset transparent transmission mode after the USB audit device is started, and enter the preset monitoring mode at the same time, and capture and analyze the USB data packets transmitted by each USB interface in the preset monitoring mode;

[0136] The reporting module 20 is used to report the illegal behavior of the USB device to the cloud management server when the illegal behavior is detected, so that the cloud management server can determine the audit rules;

[0137] The audit module 30 is used to receive the audit rules sent by the cloud management server, and analyze and process the USB data packet in a preset injection mode according to the audit rules.

[0138] In addition, the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the above-mentioned security audit method is implemented.

[0139] In summary, the present invention, through the joint cooperation of the USB audit device and the cloud management server, performs full-process monitoring and proxying of the USB data packet communication handshake process and data transmission between the USB device and the host computer, can realize the audit analysis and modification of the USB data packet, solves the technical problem of security risks in the use of USB devices, and improves the security and reliability of the host computer and USB device data.

[0140] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A security audit method, It is characterized in that Applied to a USB audit device, the USB audit device is connected to a cloud management server, and the USB audit device uses a USB UDC interface and a USB Host interface to connect a host computer and a USB device. The method includes: After the USB audit device is started, the USB data packets on the USB link between the host computer and the USB device are transmitted in a preset transparent transmission mode, and the preset monitoring mode is entered at the same time, and the USB data packets transmitted by each USB interface are captured and analyzed in the preset monitoring mode; When a violation of the USB device is detected, the violation is reported to the cloud management server so that the cloud management server can determine an audit rule; Receive the audit rules sent by the cloud management server, and analyze and process the USB data packet in a preset injection mode according to the audit rules.

2. The method according to claim 1, It is characterized in that The audit rules include: interception rules and / or alarm trigger management rules.

3. The method according to claim 2, It is characterized in that The analyzing and processing the USB data packet in a preset injection mode according to the audit rule includes: In the case where the audit rule is an interception rule, parsing the USB data packet on the USB link to extract a unique identifier of the USB device; The unique identifier is analyzed and identified according to a preset blacklist, and when it is detected that the unique identifier is included in the device list of the preset blacklist, the USB data packet is prohibited from communicating and transmitting, and an alarm message is sent to the cloud management server.

4. The method according to claim 3, It is characterized in that After the step of extracting the unique identifier of the USB device, the method further includes: The unique identifier is analyzed and identified according to a preset white list, and when it is detected that the unique identifier is included in the device list of the preset white list, the USB data packet is allowed to communicate and transmit.

5. The method according to claim 2, It is characterized in that The analyzing and processing the USB data packet in a preset injection mode according to the audit rule includes: In the case where the audit rule is an alarm trigger management rule, unpacking and analyzing the USB data packet on the USB link to obtain the transmission content of the USB device; When it is detected that the transmission content is sensitive content, the USB data packet is modified or intercepted, and an alarm message is sent to the cloud management server.

6. The method according to claim 1, It is characterized in that After the step of detecting the illegal behavior of the USB device, the method further comprises: The USB audit device is allowed to locally issue audit rules, and analyze and process the USB data packet in a preset injection mode according to the audit rules.

7. A security audit method, It is characterized in that Applied to a cloud management server, the method comprises: Receive violations reported by USB audit devices and determine audit rules based on the violations; The audit rules are issued to the USB audit device, so that the USB audit device analyzes and processes the USB data packets in a preset injection mode according to the audit rules.

8. A security audit device, It is characterized in that Applied to a USB audit device, the USB audit device is connected to a cloud management server, the USB audit device uses a USB UDC interface and a USB Host interface to connect a host computer and a USB device, and the device includes: A transmission module, used for transmitting USB data packets on the USB link between the host computer and the USB device in a preset transparent transmission mode after the USB audit device is started, and entering a preset monitoring mode at the same time, and capturing and analyzing USB data packets transmitted by each USB interface in the preset monitoring mode; A reporting module, configured to report, when a violation of the USB device is detected, the violation to the cloud management server so that the cloud management server can determine an audit rule; The audit module is used to receive the audit rules sent by the cloud management server, and analyze and process the USB data packet in a preset injection mode according to the audit rules.

9. A security audit system, It is characterized in that The system comprises: A USB audit device, which is used to transmit USB data packets on the USB link between the host computer and the USB device in a preset transparent transmission mode after the USB audit device is started, and enter a preset monitoring mode at the same time, and capture and analyze USB data packets transmitted by each USB interface in the preset monitoring mode; The USB audit device is further used to report the illegal behavior to the cloud management server when the illegal behavior of the USB device is detected; A cloud management server, configured to receive the violation reported by the USB audit device and determine an audit rule according to the violation; The cloud management server is further used to issue audit rules to the USB audit device; The USB audit device is also used to receive the audit rules sent by the cloud management server, and analyze and process the USB data packet in a preset injection mode according to the audit rules.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which is used to implement the steps of any one of claims 1 to 7 when executed when the computer program is run.

Citation Information

Patent Citations

  • Method and device for performing malicious device detection based on USB communication data

    CN105488395A

  • Device and method for carrying out safety protection and management on USB port

    CN111783177A

  • Security auditing system and method

    CN112905548A

  • USB equipment security and secrecy auditing system and auditing method

    CN113742722A

  • Apparatus and Method for Preservation of USB Keyboard

    US20090172705A1