Security Screening of Universal Serial Bus Devices
The method analyzes USB devices for security threats by examining descriptors and ROM information, assigning scores, and triggering appropriate security actions to block malicious devices, effectively preventing keystroke injection attacks.
Patent Information
- Application Number
- JP2022525176
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-10-31
- Filing Date
- 2020-10-28
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-10-28
AI Technical Summary
Existing technologies fail to effectively identify and prevent keystroke injection attacks from USB devices, particularly those disguised as common peripherals like USB rubber ducky, which exploit the USB HID class to inject malicious keystrokes into computers.
A method and system that analyze USB devices for security threats by examining descriptors and ROM information, assigning security scores based on comparisons with historical data, and triggering appropriate security actions to block or allow access based on these scores.
Prevents unauthorized keystroke injection by proactively identifying and blocking malicious USB devices, thereby enhancing computer security without disabling USB ports.
Smart Images

Figure 0007557533000002 
Figure 0007557533000003 
Figure 0007557533000001
Abstract
Description
[Technical field]
[0001] The present invention relates generally to the field of computer security, and more particularly to securing computers against keystroke injection tools. [Background technology]
[0002] Keystroke injection tools are often used to mimic a keyboard connection to a Universal Serial Bus (USB) port. The USB Rubber Ducky is a well-known keystroke injection tool disguised as a common flash drive. The computer recognizes it as a normal keyboard and automatically accepts its pre-programmed keystroke payload. The USB Rubber Ducky is simply plugged in and recognized by the computer as a keyboard, and modern operating systems will accept the pre-programmed keystrokes from the device.
[0003] The USB protocol allows certain devices to be configured at startup or at run-time when they are plugged in. USB devices are divided into various device classes for quick handling. Each USB class specifies a common behavior, or protocol, or both, for devices that provide similar functionality. Example and corresponding classes include (i) video monitors (display class); (ii) modems (communications class); (iii) speakers (audio class); (iv) hard drives (mass storage class); and (v) data gloves (Human Interface Device (HID) class). The USB HID class primarily comprises devices used by humans to control the operation of computer systems. Examples of typical USB HID class devices include (i) keyboards, computer mice, pointing devices, trackballs, and joysticks; (ii) remote controllers, gaming, and simulation devices (data gloves, throttles, steering wheels, and pedals); and (iii) other input devices including barcode readers, thermometers, or voltmeters. Thus, there is a need in the art to address the above-mentioned problems. Summary of the Invention
[0004] Viewed generally from a first aspect, the invention provides a computer-implemented method for a security operation, the method including: identifying a set of digital objects on a Universal Serial Bus (USB) device to identify a security record; assigning a security score to the USB device based on the determined security record; and performing a security operation in response to the assigned security score.
[0005] Viewed from a further aspect, the present invention provides a system for security operations comprising: a processor; and a computer readable medium storing program instructions that, when executed by the processor, cause the processor to perform a method including identifying a set of digital objects on a Universal Serial Bus (USB) device and determining a security record; and assigning a security score to the USB device based on the determined security record.
[0006] Viewed from a further aspect, the invention provides a computer-implemented method for identifying a set of descriptors from a descriptor field of a USB device; comparing each of the set of descriptors to a set of historical descriptors having individually assigned security scores; reading read-only memory (ROM) information on the USB device; analyzing the ROM information for compatibility, where non-compliance is assigned a predefined security score; and assigning a security score to the USB device based on a comparison of each of the descriptors to the ROM information, where a highest individual security score is used as a basis for the assigned security score; and performing a security action in response to the assigned security score.
[0007] Viewed from a further aspect, the invention provides a computer-implemented method for performing a security action for the security score, the method comprising: reading read-only memory (ROM) information on a Universal Serial Bus (USB) device; identifying in the ROM information a set of signatures of a configuration file; identifying a set of suspicious identifiers including predefined signatures of a configuration file; and determining that signatures of the set of signatures match predefined signatures in the set of suspicious identifiers.
[0008] Viewed from a further aspect, the invention provides a computer-implemented method for identifying a set of device drivers stored on a Universal Serial Bus (USB) device; identifying a set of microcontroller device drivers; determining that a device driver of the set of device drivers on the USB device matches a microcontroller device driver of the set of microcontroller device drivers; assigning a security score; identifying a security score associated with the matched microcontroller device driver; and performing a security operation corresponding to the security score.
[0009] Viewed from a further aspect, the present invention provides a computer program product for security operations, the computer program product comprising a computer readable recording medium readable by a processing circuit and storing instructions for execution by a processor for performing the method of the present invention.
[0010] Viewed from a further aspect, the present invention relates to a computer program stored on a computer readable medium and loadable into the internal memory of a digital computer, comprising software code portions for performing the method of the present invention when said program is run on the computer.
[0011] In one aspect of the invention, a computer-implemented method includes: (i) identifying a set of descriptors from a descriptor field on a Universal Serial Bus (USB) device; (ii) comparing each descriptor in the set of descriptors to a set of historical descriptors, where the set of historical descriptors is assigned an individual security score; (iii) reading read-only memory (ROM) information on the USB device; (iv) analyzing the ROM information for suitability, where non-compliance is assigned a predefined security score; (v) assigning a security score for the USB device based on a comparison of each descriptor and the analysis of the ROM information, where the highest individual security score is used as a basis for the assigned security score; and (vi) performing a security action in response to the security score.
[0012] In another aspect of the invention, a computer-implemented method includes: (i) reading read-only memory (ROM) information on a Universal Serial Bus (USB) device; (ii) identifying in the ROM information a set of configuration file signatures; (iii) identifying a set of suspicious identifiers including predefined signatures of configuration files; (iv) determining that the set of signatures matches a predefined signature in the set of suspicious identifiers; (v) identifying a security score associated with the predefined signature; and (vi) performing a security action in response to the security score. In yet another aspect of the invention, a computer-implemented method includes (i) identifying a set of device drivers stored on a Universal Serial Bus (USB) device; (ii) identifying a set of microcontroller device drivers; (iii) determining that a device driver in the set of device drivers on the USB device matches a microcontroller device driver in the set of microcontroller device drivers, (iv) identifying a security score associated with the matched microcontroller device driver; and performing a security action corresponding to the security score.
[0013] The invention will now be described with reference to preferred embodiments, by way of example only, as illustrated in the following drawings: [Brief description of the drawings]
[0014] [Figure 1] FIG. 1 is a schematic diagram of a first embodiment of a system according to the invention. [Diagram 2] FIG. 2 is a flow chart illustrating a method performed, at least in part, by a first embodiment. [Diagram 3] FIG. 3 is a schematic diagram of part of the machine logic (eg, software) of the system of the first embodiment. [Figure 4] FIG. 4 is a flow chart of a second embodiment according to the present invention. [Diagram 5] FIG. 5 is a flow chart of a third embodiment of the method according to the invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Universal Serial Bus (USB) devices are evaluated for access by features including descriptors and ROM information. The descriptors are cross-referenced to historical descriptors known to be associated with malicious or authenticated USB devices. The ROM information is analyzed to determine suitability of the data. Device drivers and configuration files on the USB device are reviewed for suspicious or threatening identifiers and assigned corresponding security scores. Security actions are taken according to the security scores assigned by matching descriptors and the analyzed ROM information. The invention may be a system, method, or computer program product, or combinations thereof. The computer program product may include a computer-readable recording medium (or media) having computer-readable program instructions thereon for causing a processor to perform aspects of the invention.
[0016] A computer readable recording medium may be any tangible device capable of holding and storing a plurality of instructions for use by an instruction execution device. A computer readable medium may be, for example, but not limited to, an electrical recording device, a magnetic recording device, an optical recording device, an electro-magnetic recording device, a semiconductor recording device, or any suitable combination thereof. A non-exhaustive list of more specific examples of computer readable recording media includes the following: portable computer diskettes, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROMs or flash memories), static random access memories (SRAMs), portable compact disk read-only memories (CD-ROMs), digital versatile diskettes (DVDs), memory sticks, floppy disks, punch cards, or mechanically encoded devices having protruding structures within grooves that record instructions, and any suitable combination thereof. As used herein, a computer-readable recording medium is not to be construed as a transitory signal per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves such as wave guides or other communications media (e.g., light pulses passing through fiber optic cable), or electrical signals communicated through wires.
[0017] The computer program instructions described herein can be downloaded from a computer readable recording medium into each computing / processing device, or can be downloaded to an external computer or external recording device via a network, such as the Internet, a local area network, a wide area network, or a wireless network, and combinations thereof. The network can include copper cables, fiber optics, wireless networks, routers, firewalls, switches, gateway computers, and edge servers, and combinations thereof. A network adapter card or network interface in each computing / processing device receives the computer readable program instructions from the network and transfers the computer readable program instructions into a computer readable recording medium in each computing / processing device for storage.
[0018] The computer readable program instructions for carrying out the operations of the present invention may be either source code or object code written in any combination of programming languages, including assembler instructions, instruction set architecture (ISA) instructions, machine language instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or one or more conventional procedural programming languages, such as Smalltalk®, object oriented programming languages such as C++, the “C” programming language, or similar programming languages. The computer readable program instructions may be executed entirely on the user computer, partially on the user computer as a stand-alone software package, partially on the user computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user computer through any type of network, including a local area network (LAN), a wide area network (WAN), or the connection may be to an external computer (e.g., through an Internet service provider). In some embodiments, computer readable program instructions may be executed by electrical circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), and state information of the computer readable program instructions may be used to personalize the electrical circuitry to perform features of the present invention.
[0019] Aspects of the invention described herein will be described with reference to flowchart instructions and / or block diagrams of methods, apparatus (systems), and computer readable media and computer program products according to embodiments of the invention.
[0020] The computer-readable program instructions can be provided to a general purpose computer, a special purpose computer, or other processor or other programmable data processing device to produce a machine, which when executed by the processor of the computer or other programmable data processing device produces means for implementing the functions / operations specified in the block or blocks of the flowcharts and block diagrams, or a combination thereof. These computer-readable program instructions that direct a computer, programmable data processing device, and other device, or a combination thereof, to function in a particular manner can also be stored on a computer-readable recording medium, and the computer-readable recording medium having instructions stored therein constitutes an article of manufacture containing instructions that implement the functional / operational features specified in the block or blocks of the flowcharts and block diagrams, or a combination thereof.
[0021] The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device and cause a computer implemented process to perform a series of operational steps on the computer, other programmable apparatus, or other device to implement the functions / acts specified in the blocks of the flowcharts and block diagrams or in a combination thereof.
[0022] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and possible implementations of systems, methods, and computer programs according to various embodiments of the present invention. In this respect, the flowcharts or block diagrams may represent modules, segments, or portions of instructions, which include one or more executable instructions for implementing a particular logical function(s) (or functions). In some alternative implementations, the functions described in the blocks may be performed other than as illustrated. For example, two blocks shown in succession may be executed in actual or substantially simultaneous execution, or the blocks may be executed in reverse order, depending on the functionality involved. It is also noted that the illustration of the blocks in the block diagrams and / or the illustration of the flowcharts or combinations thereof may be implemented by a system based on special purpose hardware that performs a particular function or operation or executes specific purpose hardware and computer instructions.
[0023] The present invention will now be described in detail with reference to the drawings. Figure 1 is a functional block diagram illustrating various portions of a computer system 100 in one embodiment of the present invention, including a secure subsystem 102, a security subsystem 104, a historical descriptor store 105, client subsystems 106, 108, 110, 112, a communication network 114, a computing device 200, a communication unit 202, a processor set 204, an input / output (I / O) interface set 206, a memory device 208, a persistent storage device 210, a display device 212, an external device set 214, a USB memory device 216, a USB descriptor store 218, a ROM 220, a random access memory (RAM) device 230, a cache memory device 232, a security program 300, and a security operation store 302.
[0024] Subsystem 102 is in many ways representative of the various computer subsystem(s) of the present invention, and therefore, several portions of subsystem 102 will now be discussed in the following paragraphs.
[0025] Subsystem 102 can be a laptop computer, a tablet computer, a netbook computer, a personal computer (PC), a desktop computer, a personal data assistant (PDA), a smart phone, or any electronic device that is programmable and can communicate with a client subsystem over network 114. Program 300 is a collection of machine-readable instructions or data, or a combination thereof, that creates, manages, and controls certain software functions that will be discussed in more detail below.
[0026] Subsystem 102 can communicate with other computer subsystems via network 114. Network 114 can be, for example, a local area network (LAN), a wide area network (WAN) such as the Internet, or a combination of the two, and can include wired, wireless, or fiber optic connections. In general, network 114 can be any combination of connections and protocols that support communication between server and client subsystems.
[0027] Subsystem 102 is shown as a block diagram with many bidirectional arrows. These bidirectional arrows (not separately labeled) indicate communication functions that provide communication between various components of subsystem 102. This communication function may be implemented in any architecture designed for data transfer, or information control, or both, between processors (such as microprocessors, communication and network processors, etc.), system memory, peripheral devices, and any other hardware components in the system. For example, the communication function may be implemented, at least in part, with one or more buses.
[0028] Memory 208 and persistent storage 210 are computer-readable storage media. Typically, memory 208 can include any suitable volatile or non-volatile computer-readable storage media. Additionally, it should be noted that it may be possible, now or in the near future, or both, that (i) external device(s) 214 may be able to provide some or all of the memory for the subsystem 102, or (ii) that devices external to the subsystem 102 may be able to provide the memory of the subsystem 102.
[0029] The program 300 is typically stored in persistent storage 210 for access and / or execution by one or more respective computer processors 204 through memory in one or more memories 208. Persistent storage 210: (i) is at least more persistent than transient signals; (ii) stores the program (soft logic, or data, or both) on a tangible medium; and (iii) is substantially less persistent than persistent storage. Alternatively, data storage may be more persistent, or persistent, or both, than the type of storage provided by persistent storage 210.
[0030] The program 300 may include both machine-readable and executable instructions, or tangible data (i.e., the type of data stored in a database), or a combination thereof. In this particular embodiment, the persistent storage 210 includes a magnetic hard disk. Among other possible variations, the persistent storage 210 may include a solid-state hard disk drive, a semiconductor storage device, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, or any other computer-readable recording medium capable of storing program instructions or digital information.
[0031] The media used by persistent storage 210 may also be removable. For example, a removable hard drive may be used as persistent storage 210. Other examples include optical and magnetic disks, thumb drives, and smart cards that are inserted into a drive for transfer to another computer readable storage medium that is also part of persistent storage 210.
[0032] Communications unit 202, in these examples, is provided for communicating with other data processing systems or devices external to subsystem 102. In these examples, communications unit 202 includes one or more network interface cards. Communications unit 202 can provide communications through the use of either or both physical and wireless communications links. Any of the software modules discussed herein can be downloaded to a persistent storage device (such as persistent storage device 210) through a communications unit (such as communications unit 202).
[0033] The I / O interface 206 allows input and output of data to and from other devices that may be locally connected in data communication with the computer 200. For example, the I / O interface set 206 provides a connection to an external device set 214. The external device set 214 typically includes devices such as a keyboard, a keypad, a touch screen, or some other suitable input device, or a combination thereof. The USB memory device 216 may typically be a portable computer-readable recording medium, such as a thumb drive, a portable optical or magnetic disk, or a memory card. Software and data, such as the program 300, used to implement embodiments of the present invention may be stored on a portable computer-readable storage medium, such as the USB descriptor store 218. In these embodiments, the relevant software may be loaded, in whole or in part (or not) onto the persistent storage device 210 via the I / O interface set 206. The I / O interface set 206 also connects in data communication with the display device 212.
[0034] The display device 212 provides the ability to display data to a user, and may be, for example, a computer monitor or a smart phone display screen.
[0035] The programs described herein are identified based on the application in which they are implemented in aspects of a particular embodiment of the invention, however, it should be recognized that terminology of any particular program of the invention is used merely for convenience and thus the invention should not be limited to use with only any particular application identified and / or implied by such terminology.
[0036] The security program 300 operates to identify USB threats when a USB device is plugged into a USB interface of a computer. A lookup is made to include certain characteristics of a USB device that may be legitimate, malicious, or both. Upon matching of at least one target characteristic of the USB device, a determination is made as to the likelihood that the USB device is safe to allow access to the computer system.
[0037] Some embodiments of the present invention recognize the following facts, potential problems, or potential areas for improvement with the current state of the art, or a combination thereof: (i) USB Rubber Ducky has a single scripting language, specialized hardware, and conversion design; (ii) nearly all computing devices, from desktops to smartphones, accept input from keyboards; (iii) the ubiquitous USB HID standard allows for near universal use; (iv) the traditional approach to addressing the threat from USB HID simulation is to disable the USB ports and revert to a hardwired computer mouse and keyboard, or (v) it is extremely easy to convert a traditional USB storage device into a keystroke injection tool, or a combination thereof.
[0038] Some embodiments of the present invention are directed to providing systems and methods that remediate certain vulnerabilities on the Human Interface Device (HID) class of devices.
[0039] Some embodiments of the present invention introduce an extended set of HID class devices that resists attacks from non-HID devices, such as USB Rubber Duckies, while maintaining the availability of the USB ports on the computing device.
[0040] Security screening can be performed in conjunction with various descriptors stored on the USB device and read when plugged into a USB port of a computing device. Some embodiments of the present invention use the descriptors to identify USB HID threats. Descriptors for standard USB devices can include, for example: (i) class; (ii) subclass; (iii) vendor; (iv) product, or (v) version, or any combination thereof.
[0041] Some embodiments of the invention compare the USB descriptor of the new USB device to a list of potentially dangerous USB descriptors historically found on malicious devices. Descriptors such as "USB Rubber Ducky" or "Bad USB" allow the system to determine that the inserted device is a dangerous USB device. If the descriptor field "bCountryCode" is often identical to that on USB devices used as keystroke injection tools, that descriptor field would be a good parameter to identify those malicious devices. Additionally, some embodiments of the invention are configured to include or exclude some descriptor fields as required by the administrator, for example to reduce false positives.
[0042] Some embodiments of the present invention consider functional characteristics related to classes of devices. The HID standard uses descriptors, or classes, to determine the capabilities of a device. Descriptors that indicate capabilities include: audio devices, input devices, and mass storage devices. Additionally, the HID standard uses multiple protocols to handle different classes of devices, e.g., protocol 1 may apply to keyboard devices and protocol 2 may apply to mouse devices.
[0043] Some embodiments of the present invention are directed to determining the likelihood that a HID class device is simulated by another malicious device. By collecting information from any newly connected USB device, the information can be cross-referenced against a database having descriptors or information that identify known malicious USB devices. If a match is made in the database, a security score is applied. In some embodiments, the security score is a numeric value and is applied individually to each match made. In some embodiments, for each identified matching descriptor, a corresponding trust score is provided to the device. The aggregated trust score is used to determine a response action. For example: (i) if trust level=100, block the port and trigger an alert (user, admin, security); (ii) if trust level=100, block the user; (iii) if trust level>75, trigger an alert to the user; or (iv) if trust level>75, send a security event (Security Information and Event Management (SI EM) product). In this manner, the sum of the individual security scores provides a trust level determination for the newly connected USB device. Additionally, some embodiments of the present invention are configured to include or exclude certain descriptor fields, for example, to reduce false positives.
[0044] Some embodiments of the present invention are directed to identifying malicious USB devices by checking for signatures on USB read-only memory (ROM). Information is read from the ROM to generate a set of associations to determine if the USB device has been modified or hacked to convert it into a "bad USB" or any other type of malicious code injector. For example: (i) if the field "Manufacturer" is Acme and Acme only manufactures mass storage USBs, but the installed device is configured as an input device (keyboard); and (ii) if the code in the ROM relates to mass storage USBs, but the installed device is configured as an input device (keyboard).
[0045] When any alteration of the USB device is detected, an action path is initiated that includes: (i) analyzing possible threats to form a trust level of the possible risk of the USB device; and (ii) performing a given set of security actions based on the trust level.
[0046] Some embodiments of the present invention perform security tasks prior to loading drivers or executing code on the firmware of a USB device, or both. By enforcing this path of operation, some embodiments of the present invention prevent malicious code from being introduced into a computing device.
[0047] Some embodiments of the present invention proactively resist receipt of unwanted code injection, including: (i) using a trust level to determine the appropriate security actions to be performed; (ii) using the HID class to determine the native functionality of a USB device when inserted into a USB port; (iii) correlating metadata obtained from a USB HID class device to actions performed by the device; (iv) scanning for threat signatures in known configuration files of the USB device; or (v) scanning for signatures from the device's ROM (device manufacturer) to correlate the data obtained to the functionality of the USB device.
[0048] Figure 2 shows a flow chart 250 illustrating a first method according to the present invention. Figure 3 shows a program 300 for performing at least some of the method steps of flow chart 250. The method and associated software are described herein with broad reference to Figure 2 (method step blocks) and Figure 3 (software blocks) along with the following paragraphs.
[0049] Processing begins at step S255, where detection module (“mod”) 355 detects that a USB device has been inserted into a USB port. In this embodiment, USB device 215 is inserted into I / O interface 206 of computing device 200 (FIG. 1). Upon detecting the insertion of the USB device into the USB port, the detection mod stops any automatic reading or processing of the USB device and triggers a series of subsequent evaluation steps. The evaluation is performed to determine whether to allow access to the USB device for operation on the computing device. In that manner, the USB device is effectively cleared for access.
[0050] Processing continues at step S260 where the descriptor mod 360 identifies the descriptor data on the USB device. The descriptor data includes data stored, for example, in the USB descriptor store 218 (FIG. 1) and distributed to identify the USB device. Data fields for the descriptor include, but are not limited to: (i) class; (ii) subclass; (iii) vendor; (iv) product; or (v) version, or any combination thereof.
[0051] Processing continues to step S265 where ROM info mod 365 reads information from the ROM on the USB device. In this embodiment, ROM 220 contains ROM information about USB device 216. Information of interest on the ROM may include, but is not limited to: (i) manufacturer; (ii) program code; (iii) configuration data; or (iv) modification evidence data, or any combination thereof.
[0052] The process proceeds to step S270 where a comparison modulus 370 compares the descriptor data to historical descriptor data. In this embodiment, the historical descriptor data is stored in the descriptor store 105 of the security subsystem 104 (FIG. 1). The historical descriptor data is associated with either a pass or a fail identifier. A pass identifier indicates that the associated USB device is not a suspicious device. A fail identifier indicates that the associated USB device is a suspicious device. For each descriptor stored in the database, a security score is assigned. If a matching descriptor is found, the associated security score can be used to calculate the security score of the USB device. The historical descriptor data is based on known malicious and non-malicious USB devices. Certain descriptors are often found associated with malicious USB devices recorded in the database. Additionally, in some embodiments, certain descriptors found on valid USB devices are registered in association with a security score indicating a positive result, or a secure device.
[0053] Processing proceeds to step S275 where the analysis module 375 analyzes the ROM information for association errors. An association error may refer to one piece of ROM information not matching another, such as a manufacturer identified as not manufacturing the class of USB device represented by the descriptor data collected in step S260 or represented in the ROM information. Another association error is found when the analysis indicates that the program code is not associated with the descriptor data collected in step S260 or the class of USB represented in the ROM information. An association error may also be indicated by a level of conformance in the ROM information. This level reflects a simple two-part test of conformance or non-conformance. Alternatively, a degree of conformance is considered, and a corresponding security score reflects the degree of conformance.
[0054] The process proceeds to step S280 where security score mod 380 assigns a security score to the USB device based on the matching and association errors of the descriptors. For each matching descriptor, a corresponding security score is associated with the USB device. In this embodiment, since the security scores are numerical, multiple security scores can be summed or aggregated to generate a security score. Alternatively, a security score can be obtained for each matching descriptor alone, with the highest ranked security score being the basis for granting or denying access to the computing system. Association errors are also associated with a security score. If an association error generates a security score, the score is included in the sum to determine an aggregate security score. Alternatively, any association errors result in a particular security score being ranked with other security scores identified from the matching descriptors and actions, followed by the highest ranked security score being obtained.
[0055] Processing continues at step S285 where security actions mod 385 identifies the security actions for the specified security score. In this example, the security actions are associated with the security scores in security actions store 302 (FIG. 1). In some embodiments, a range, or a relatively low score, results in a set of security actions and a relatively high range results in another set of security actions. In some embodiments, each possible score is associated with a set of security actions. Such an embodiment would work well if the highest ranked score is the security score and would accurately associate to a particular set of security actions. If aggregated security scores are used, the application of value ranges may be found to be easier to implement.
[0056] The process ends at step S290 where action mod 390 performs the set of identified security actions. Various security actions may be grouped together within a set of security actions, so that one or more actions are performed. Security actions include, but are not limited to: (i) blocking the USB port; (ii) sending an alert to the user; (iii) sending an alert to a designated security office; (iv) blocking the user's access to the USB device; (v) generating a security event via the SI EM product; (vi) allowing access to the computing system; and (vii) allowing limited access to certain functions / operations of the computing system.
[0057] 4 shows a flowchart 400 illustrating a second method according to an embodiment of the present invention. The method may be implemented on network computer system 100 (FIG. 1) or other computing system known in the art.
[0058] Processing begins at step 402, where a USB device is inserted into a USB port. When a USB device is inserted, a computing system operating in accordance with some embodiments of the invention detects the insertion and begins a process to determine whether to load a driver or allow an operation or actions that may be performed by the USB device.
[0059] Processing continues to step 404 where information is read from the ROM on the inserted USB device.
[0060] Processing continues to step 406 where the read information is correlated with other ROM information and with the descriptors of any USB device. Failure to correlate the read information within itself and within the device's descriptors strongly suggests that the USB device has been alerted.
[0061] Processing continues to step 408 where a determination is made as to whether there is a match or exact match with the information available on the USB device. If there is an exact match, processing continues to step 410. If there is an exact match, processing continues to step 410.
[0062] Following the "yes" branch, processing proceeds to step 410 where the retrieved information is correlated against a database of known configuration files, suspect morphing identifiers, of USB devices to which the computing system should not be granted access. Example files include: a "script.bin" file; an "ino" file; an "h" file; and a "cpp" file.
[0063] Processing continues to step 412 where a determination is made whether an association to a known threat has been determined or detected. If yes, processing continues to step 416. If not, processing continues to step 414.
[0064] Following the "no" branch, processing ends at step 414 where the computing system continues loading drivers and other operations to allow the USB device to function properly and not pose a security threat.
[0065] Now, referring to the "no" branch from step 408, processing proceeds to step 416. Note that the "yes" branch from step 412 also proceeds to step 416. In step 416, the computing system generates a trust level for the USB device based on the mismatch data. In some embodiments of the invention, the trust level is adjusted depending on the degree of mismatch. Alternatively, any degree of mismatch may result in one trust level being received, and the absence of a mismatch may result in another trust level being received.
[0066] Processing ends at step 418, where a requested action is triggered according to the trust level generated at step 416. Some embodiments of the invention apply predefined actions for each trust level. In this manner, the trust level is matched to a particular requested action so that the action is taken automatically depending on the trust level determination. Alternatively, the trust level is reported to the user for corrective action.
[0067] FIG. 5 shows a flow chart 500 illustrating a Human Interface Device (HID) descriptor-based process for determining if an inserted USB device is in fact a HID device and the threat-free trust level. A USB storage device that emulates a HID device will be detected by reference to the descriptor and will be blocked from accessing the computing system. Note that a USB device may have only one or many configurations on the configuration descriptor. The class of the USB device is defined on the interface descriptor.
[0068] Processing begins at step 502 where a device descriptor is retrieved from the USB device.
[0069] Processing continues to step 504 where a configuration descriptor is retrieved from the USB device.
[0070] Processing continues at step 506 where an interface descriptor is retrieved from the USB device. The interface descriptor may be useful in identifying the type of device inserted into a USB port in addition to disclosing the class of the device.
[0071] Processing continues at step 510 where a Human Interface Descriptor (HID) is identified from the interface descriptor data retrieved in step 506. The HID descriptor is a hard-coded byte array that describes the data packet. The data in the data packet includes: how many packets the device supports, how big the packets are, and the purpose of each byte and bit in the packet.
[0072] Processing continues at step 512, which is now a report descriptor for the HID. The HID device uses reports to send data to the host computing device. The report descriptor tells the host computing device how to interpret the data sent by the HID.
[0073] Processing continues at step 514, which is now the physical descriptor of the HID. The usage of the HID is organized into usage pages for the associated control. The usage page and usage ID define unique constants that describe the particular control type, identify whether the device is a physical input device (PID) or not.
[0074] The process ends at step 508, where an endpoint descriptor is retrieved from the USB device. Endpoint descriptor information may include: endpoint address, type, command, and amount of data the endpoint can handle. Data transfers to the endpoint are based on that information.
[0075] Some embodiments of the present invention are directed to detecting alerted or hacked USB devices. These alerted devices are deemed suspicious and are not allowed access to the computing system. Some embodiments of the present invention use functional features and classes of USB devices to detect suspicious USB devices. Some embodiments of the present invention use non-volatile data in a ROM to determine if a USB device has been hacked and modified. If deemed hacked, the USB device is not allowed access to the computing system. Some embodiments of the present invention are directed to using a USB device's descriptor stored in a ROM to determine if a connected USB device is a suspicious code injector that should not be allowed access. Some embodiments of the present invention are directed to generating a trust score to determine the likelihood of a threat from an installed USB device. Some embodiments of the present invention use the trust score to determine a security action to be triggered. An association between the trust score and the security action is stored to automatically perform a pre-determined security action upon determining the trust score. Alternatively, some embodiments allow for the inclusion or exclusion or both of certain factors in determining the trust score.
[0076] Some embodiments of the present invention are directed to a method for determining whether a microcontroller is used to emulate a keyboard, the method including: detecting that a USB device has been connected to a computer system; and triggering a predefined security action if one or more of the following occurs: (i) the USB device is determined to have a certain number (or percentage) of USB descriptors that do not match known USB descriptors for keyboards; (ii) the USB device is determined to have a device driver that matches known device drivers for microcontroller devices (e.g., Arduino devices such as CH3430, FT232RL, ATMEGA16u2, and ATMega32U4); and (iii) a keyboard device driver is detected to have been connected to the computer system within a predefined time window (e.g., 10 seconds) after the USB device is detected. The time window period is such that the USB device supports an interface that is a keyboard. Alternatively, the time window delay before allowing access to the USB device presents itself as a keyboard device and provides an opportunity for one of the two additional keyboard devices to be detected to simply be a simulation of a keyboard and interface for further analysis of the device to be performed.
[0077] Some embodiments of the present invention are directed to a method for determining whether a USB device has been tampered with, the method including: detecting, by a computer, that a USB device has been inserted into a USB port of the computer; reading, by the computer, a USB device descriptor of the USB device and USB device read-only memory (ROM) information; in response to determining that the USB device descriptor and the ROM information are consistent with each other, comparing the USB device descriptor to a database of descriptors of dangerous USB devices; and in response to determining that the USB device descriptor does not match any of the descriptors of known dangerous USB devices, loading, by the computer, a device driver for the USB device to allow the USB device to be accessed by a user of the computer.
[0078] Some embodiments of the present invention are directed to a method for determining whether a USB device has been tampered with, the method including: in response to determining that a descriptor and ROM information of the USB device are inconsistent with each other, determining a confidence level of malicious activity based on differences between the descriptor and ROM information of the USB device; and in response to the trust level exceeding a threshold, triggering a security action before the computer loads a device driver for the USB device.
[0079] Some embodiments of the present invention are directed to a method for determining that a USB device has been tampered with, the method including: in response to determining that a descriptor of the USB device matches a descriptor of a known risky USB device, determining a confidence level of malicious activity based on an amount of match between the descriptor of the USB device and the descriptor of the known risky USB device; and in response to determining that the confidence level exceeds a threshold, triggering a security action before the computer loads a device driver for the USB device.
[0080] Some embodiments of the present invention may include one or more of the following features, properties, or advantages, or a combination thereof: (i) stopping code injection before the injection begins, effectively eliminating the risk of infecting a computing device; or (ii) acting against any known threat that turns a standard USB thumb drive into a code injection tool, or both.
[0081] Some embodiments of the present invention are directed to a computer program product including a computer-readable storage medium having a set of instructions therein that, when executed by a processor, causes the processor to perform a security action according to the security score by: identifying a set of descriptors from a descriptor field of a Universal Serial Bus (USB) device; comparing each of the set of descriptors to a set of historical descriptors, where the set of historical descriptors are individually assigned a security score based on the security score; reading read-only memory (ROM) information on the USB device; analyzing the ROM information for suitability, where non-compliance is designated by a predefined security score; assigning a security score for the USB device based on the comparison of each of the descriptors and the analysis of the ROM information, where the highest individual security score is based on the assigned security score; and performing the security action in response to the assigned security score.
[0082] Some embodiments of the present invention perform security operations by detecting a USB device inserted into a USB port and by a security score.
[0083] Some embodiments of the present invention are directed to security operations for granting access to a computing system.
[0084] Some embodiments of the present invention are directed to a security action of blocking USB ports from being used by USB devices.
[0085] Some embodiments of the present invention are directed to assigning a security score to a USB device, which includes aggregating the security scores assigned for each historical descriptor and matching descriptors within the set of descriptors to generate a combined security score for the USB device.
[0086] Some embodiments of the present invention are directed to determining a security action and performing the security action according to the security score by referencing a table that is associated with a set of security actions and includes the security actions, a range of values for the combined security score, and the combined security score.
[0087] Some embodiments of the present invention are directed to a computer system including: a set of processor(s); and a computer-readable storage medium having program instructions therein, the computer-readable storage medium executing program instructions that cause the set of processors to: identify a set of descriptors from fields of a descriptor of a Universal Serial Bus (USB) device according to a security score; compare each of the set of descriptors to a set of historical descriptors, where the set of historical descriptors have been individually assigned a security score based on the security score; read read-only memory (ROM) information on the USB device; analyze the ROM information for suitability, where non-compliance is designated based on a predefined security score; assign a security score for the USB device based on the comparison of each of the descriptors and the analysis of the ROM information, where a highest individual security score is based on the assigned security score; and perform a security action according to the assigned security score.
[0088] Some useful definitions are: The present invention: The term "the present invention" should not be understood as an absolute indication that the subject matter described is protected by any of the claims filed or by any claims that may result after patent prosecution; the term "the present invention" is used to assist the reader in gaining a general feel for the disclosures herein that are believed to be novel, but this understanding is understood as being transitional, predictive, and subject to change throughout patent prosecution as relevant information evolves and the claims are subject to revision. Embodiment See definition of "the present invention" above - a similar note applies to the term "embodiments". and / or is inclusive or; illustratively A, B, or C, or any combination thereof, means that at least A, or B, or C is true and applicable. Users / Subscribers: These include, but are not limited to: (i) a single individual human being; (ii) a knowledgeable artificial intelligence entity that acts as a user or subscriber; or (iii) a group of related users or subscribers, or any combination of these. Modules / Submodules: A module is any set of hardware, firmware, or software, or any combination thereof, that operatively acts to perform a number of functions, whether or not the module is: (i) single and locally contiguous; (ii) distributed over a wide area; (iii) single and locally contiguous within a larger piece of software code; (iv) localized within a single piece of software code; (v) localized within a single storage device; (vi) mechanically coupled; (vii) electrically coupled; or (viii) coupled in data communication, or any combination thereof. computer: Any device that has significant data processing or the ability to read machine-readable instructions, or the benefits thereof, including, but not limited to, desktop computers, mainframe computers, laptop computers, devices based on field programmable gate arrays (FPGAs), smart phones, personal digital assistants (PDAs), body-mounted or insertable computers, embedded device style computers, and even devices based on application-specific integrated circuits (ASICs).
Claims
1. 1. A computer-implemented method for security operations, comprising: Identifying a set of digital objects on a Universal Serial Bus (USB) device to identify security records; assigning a security score to the USB device based on the determined security record; performing a security action in response to the assigned security score; identifying a set of digital objects on the Universal Serial Bus (USB) device to determine a security record; identifying a set of descriptors from a field of the descriptors of the USB device; comparing each of the set of descriptors to a set of historical descriptors each of which has been individually assigned a security score; Reading read only memory (ROM) information on the USB device; and analyzing the ROM information for suitability, where non-suitability is assigned to a predefined security score; Assigning a security score includes assigning a security score to the USB device based on a comparison of each of the descriptors to the ROM information, the highest individual security score being a basis for the assigned security score. Computer-implemented method.
2. The security action is to grant access to a computing system.
10. The computer-implemented method of claim 1.
3. Further, detecting the USB device inserted into a USB port. Includes 3. A computer-implemented method according to claim 1 or 2.
4. The security action is to block the USB device from using the USB port.
4. The computer-implemented method of claim 3.
5. and determining the security actions by referencing a table including the security actions, ranges of security scores, and the security scores associated with a set of security actions. A computer implemented method according to any one of claims 1 to 4.
6. Assigning the security score to the USB device includes aggregating the assigned security scores for each historical descriptor that matches a descriptor in the set of descriptors to generate a combined security score for the USB device.
6. The computer-implemented method of claim 5.
7. and determining the security action by referencing a table relating to a set of security actions including the security action, a range of combined security scores, and the combined security scores.
7. The computer-implemented method of claim 6.
8. Identifying a set of digital objects on a Universal Serial Bus (USB) device and determining a security record, Reading read-only memory (ROM) information on a Universal Serial Bus (USB) device; identifying a set of configuration file signatures within the ROM information; identifying a set of suspicious identifiers that includes predefined signatures of configuration files; and determining that a signature of the set of signatures matches a predefined signature in the set of suspicious identifiers; Including, assigning a security score includes identifying a security score associated with the predefined signature; A computer implemented method according to any one of claims 1 to 5.
9. Identifying a set of digital objects on a Universal Serial Bus (USB) device to identify security records; Identifying a set of device drivers stored on a Universal Serial Bus (USB) device and identifying a set of device drivers for a microcontroller; determining that a device driver of the set of device drivers on the USB device matches a microcontroller device driver of the set of microcontroller device drivers; and assigning a security score to identify a security score associated with a matching device driver of the microcontroller. The computer-implemented method of any one of claims 1 to 5, comprising:
10. 1. A system for security operations, the system comprising: A processor, and When executed by the processor, it causes the processor to: Identifying a set of digital objects on a Universal Serial Bus (USB) device to determine a security record; and assigning a security score to the USB device based on the determined security record; a computer-readable medium storing program instructions for performing a security action in response to a designated security score; identifying a set of digital objects on the Universal Serial Bus (USB) device to determine a security record; identifying a set of descriptors from a field of the descriptors of the USB device; comparing each of the set of descriptors to a set of historical descriptors each of which has been individually assigned a security score; Reading read only memory (ROM) information on the USB device; and analyzing the ROM information for suitability, where non-suitability is assigned to a predefined security score; The system, wherein assigning a security score includes assigning a security score to the USB device based on a comparison of each descriptor with the ROM information, the highest individual security score being the basis of the assigned security score.
11. The security action is to allow access to a computer system. The system of claim 10.
12. 12. The system of claim 10 or 11, further comprising: determining when the USB device has been inserted into a USB port.
13. Additionally, the security action is to block the USB device from using the USB port. The system of claim 12.
14. determining the security actions by referencing a table including the security actions, ranges of combined security scores, and the combined security scores associated with a set of security actions. A system according to any one of claims 10 to 13.
15. Assigning the security score to the USB device includes aggregating the assigned security scores for each historical descriptor that matches a descriptor in the set of descriptors to generate a combined security score for the USB device. The system of claim 14.
16. and determining the security action by referencing a table relating to a set of security actions including the security action, a range of combined security scores, and the combined security scores. The system of claim 15.
17. Identifying a set of digital objects on a Universal Serial Bus (USB) device and determining a security record, Reading read-only memory (ROM) information on a Universal Serial Bus (USB) device; identifying a set of configuration file signatures within the ROM information; identifying a set of suspicious identifiers that includes predefined signatures of configuration files; and determining that an indicator of the set of indicators matches a predefined indicator in the set of suspicious identifiers; Including, Assigning a security score includes identifying a security score associated with the predefined signature. A system according to any one of claims 10 to 15.
18. Identifying a set of digital objects on a Universal Serial Bus (USB) device to identify security records; Identifying a set of device drivers stored on a Universal Serial Bus (USB) device and identifying a set of device drivers for a microcontroller; determining that a device driver of the set of device drivers on the USB device matches a microcontroller device driver of the set of microcontroller device drivers; and assigning a security score to identify a security score associated with a matching device driver of the microcontroller. The system according to any one of claims 10 to 15, comprising:
19. A computer program for security operations, the computer program being readable by a processing circuit and stored on a computer-readable recording medium as instructions to be executed by a processor to perform the methods described in claims 1 to 9.
20. A computer program stored on a computer readable medium and loadable into the internal memory of a digital computer, said program comprising software code portions for carrying out the method according to any one of claims 1 to 9 when said program is run on a computer. Computer program.
Citation Information
Patent Citations
Program, limiting method and computer
JP2010182335A
Security measures for the extended USB protocol stack of USB host systems
JP2014509421A
System and method for prventing the activation of bad USB
KR101769714B1
Behavioral authentication of universal serial bus (USB) devices
US10169567B1
Method for preventing badusb attack
US20180324179A1
