Determining security risks in binary software code using software relationship models
Through the software relationship model, the security risks in binary software code are identified and evaluated, and the problem of difficult to identify binary code security risks in the existing technology is solved, and more accurate and comprehensive risk assessment is achieved, which improves the security and resource utilization of computer systems. efficiency.
Patent Information
- Application Number
- CN202380027776.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-15
- Filing Date
- 2023-03-07
- Publication Date
- 2024-11-01
AI Technical Summary
现有技术难以有效识别和评估二进制软件代码中的安全风险,尤其是由于二进制代码的复杂性和编译后难以解析的特性,导致安全风险难以被准确识别和预防。
Using software relationship model to identify software components and their communication interfaces in the software system, generate risk assessments, identify possible security risks, and conduct risk analysis based on communication interfaces and statistical characteristics associated with target software components to generate more comprehensive and Accurate risk assessment.
Through the software relationship model, security risks in binary software code can be more effectively identified and evaluated, security improvement of computer systems can be promoted, damages and operational failure events caused by security risks can be reduced, and the utilization of computer resources can be optimized.
Smart Images

Figure HDA0005043027520000011 
Figure HDA0005043027520000021 
Figure HDA0005043027520000031
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. Application No. 17 / 695,473, filed on March 15, 2022. The disclosure of the prior application is considered part of (and incorporated by reference into) the disclosure of the present application. Technical Field
[0003] The present disclosure relates to determining security risks in binary software code using a software relationship model. Background Art
[0004] In some cases, software services may be provided by executable binary software code. Binary software code is computer software in binary format. Computer software may be application software, system software (e.g., an operating system or a device driver), or components thereof. Binary software code may also be referred to as binary program code, executable code, or object code. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] Figure 1 is a schematic diagram illustrating an example communication system that uses a software relationship model to determine security risks of binary software code.
[0006] Figure 2 is a diagram of a sample software relationship model.
[0007] Figure 3 is a flow chart illustrating an example process for determining security risks of binary software code using a software relationship model.
[0008] Figure 4 is a block diagram of an example architecture of a computer.
[0009] Like reference numbers and designations in the various drawings indicate like elements. DETAILED DESCRIPTION
[0010] A software developer may submit software code to a software service platform operated by a software provider. The software code may be executed on the software service platform to provide software services to client devices. Alternatively or additionally, the software code may be downloaded to the client device. The software service platform may be implemented on one or more servers or on a cloud computing platform.
[0011] The software service platform can process the software code to determine the security risks of the software code. Security risks can include malicious software code that can damage client devices, expose user information, or a combination of both. Security risks can also include code that is vulnerable to malicious attacks.
[0012] However, the software code may be, for example, binary software code submitted without source code, and therefore, examining the binary software code to identify security risks may be difficult. The binary software code may include a byte stream generated by compiling the source code of the software. Therefore, the binary software code is not easily parsed or analyzed.
[0013] Software service platforms can use software relationship models to determine the security risks of software codes.
[0014] The software relationship model defines the architecture of a software system (ie, a collection of software). More specifically, the software relationship model identifies: (i) a set of software components of the software system and (ii) communication interfaces between the software components of the software system.
[0015] A software component can represent a discrete software unit in a software system, for example, a software unit that performs a specific operation or task in a software system, and a software unit that can be implemented by a software code set such as binary software code. The software component set in the software relationship model can include any suitable number of software components, for example, 10, 100 or 1000 software components.
[0016] A communication interface exists between a pair of software components if the pair is configured to communicate with each other. A first software component is said to "communicate" with a second software component if, during operation of the software components (e.g., during execution of software code that implements the software components), the first software component transmits data to, or receives data from, the second software component.
[0017] The software component pair may communicate via any suitable communication channel, such as a wired communication channel, a wireless communication channel, or a combination of the two. The communication between the software component pair via the communication channel may be performed in accordance with the provisions of an appropriate communication protocol, such as the Hypertext Transfer Protocol Secure (HTTPS) protocol, the File Transfer Protocol (FTP), the Secure Shell (SSH) protocol, or the Wi-Fi protocol. In some cases, the communication protocol may include one or more security methods, such as a security method that specifies that data communicated in accordance with the communication protocol is encrypted or protected. In addition to identifying the communication interfaces of the software components and the software system, the software relationship model may further identify a corresponding communication protocol for each of one or more of the communication interfaces of the software system.
[0018] To generate a risk assessment for a binary software code set, the software service platform may identify a software component from a software relationship model that corresponds to the binary software code. (If the binary software code implements the software component, i.e., the binary software code set performs the operations of the software component when executed, then the binary software code set may be said to "correspond" to the software component.) That is, the software service platform may map the binary software code set to a corresponding software component from the software relationship model.
[0019] For convenience, throughout this specification, the set of binary software codes (i.e., for which the software service platform generates risk assessments) may be referred to as the "target" binary software codes, and the software components corresponding to the target binary software codes may be referred to as the "target" software components.
[0020] The software security platform can use the software relationship model to identify one or more communication interfaces associated with the target software component. The software security platform can then determine a risk assessment for the target binary software code based on the communication interfaces associated with the target software component.
[0021] For example, the software security platform may identify possible security risks based on a communication protocol of a communication interface associated with a target software component and then scan the target binary software code to assess the possible security risks.
[0022] As another example, the software security platform can identify security risks caused by, for example, quality or process issues of the target binary code by performing statistical analysis of the target binary software code based on the communication protocol of the communication interface of the target software component. In particular, the software security platform can compare the statistical characteristics of (i) the target binary software code and (ii) other binary software codes associated with the communication interface sharing one or more of the same communication protocols, and determine a risk assessment based in part on the results of the comparison. In this example, when the target binary software code is compared with other binary software codes associated with the communication interface sharing one or more of the same communication protocols, large deviations in the expected statistical characteristics of the target binary software code can indicate possible security risks.
[0023] As another example, the software security platform can generate a risk assessment for a target binary software code based at least in part on security risks identified for binary software code corresponding to "neighboring" software components. Neighboring software components can refer to software components that share a communication interface with the target software component. Thus, the software security platform can generate a risk assessment that reflects that a security risk can propagate along an "exploited path," e.g., a sequence of software components connected via a communication interface that share a related security risk.
[0024] These and other implementations of the software security platform are described below according to Figures 1 to 3 is described in more detail.
[0025] The technology described herein produces one or more technical impacts. A software service platform can generate a more comprehensive and accurate risk assessment for binary software code, for example, than a risk assessment generated without using a software relationship model, by using a software relationship model. For example, a software service platform can use a software relationship model to generate a risk assessment that reflects the propagation of security risks along an exploitable path. Therefore, the software service platform can facilitate improved operation of a computer system, for example, by generating a comprehensive and accurate risk assessment so that security risks can be identified and mitigated before causing damage to or malfunction of the computer system. In particular, the software security platform can more effectively use computer resources, such as memory and computing power, by reducing the likelihood that these resources are underutilized in the event that a computer system is damaged or malfunctions due to security risks in software code.
[0026] Figure 1 1 is a schematic diagram illustrating an example communication system 100 for determining security risks of binary software code using a software relationship model. The example communication system 100 includes a client device 102 , a software developer device 104 , a server 108 , and a software service platform 110 communicatively coupled to a network 106 .
[0027] The software developer device 104 represents an application, a set of applications, software, a software module, hardware, or any combination thereof, which can be configured to submit a binary software code set and a software relationship model to the software service platform 110. This binary software code set can be downloaded to the client device 102 to be executed on the client device 102. This binary software code set can also be executed on the software service platform 110 to provide software services to the client device 102. Examples of software services may include software as a service (SaaS) applications, such as SALESFORCE, OFFICE365, or other software application services.
[0028] The software service platform 110 includes a software security analyzer 116 , a communication protocol risk database 120 , a code feature database 122 , and a software component risk database 124 .
[0029] The software security analyzer 116 represents an application, a set of applications, software, a software module, hardware, or any combination thereof, which can be configured to process: (i) a binary software code set 112 and (ii) a software relationship model 114 to generate a risk assessment 118. The risk assessment 118 identifies security risks in the binary software code 112. The software security analyzer 116 can generate the risk assessment, for example, by identifying a software component in the software relationship model 114 corresponding to the binary software code set 112, and determining the risk assessment based on a communication interface associated with the software component. An example technique for generating the risk assessment 118 for the binary software code set 112 using the software relationship model 114 is described below according to Figure 3 is described in more detail.
[0030] The communication protocol risk database 120 represents an application, a set of applications, software, a software module, hardware, or any combination thereof, which may be configured to store data defining one or more possible security risk sets corresponding to the communication protocol for each communication protocol in the communication protocol set. In operation, the software security analyzer 116 may query the communication protocol risk database 120 based on the communication protocol implemented by the communication interface of the software component to identify possible security risks for the software component. An example technique for generating a risk assessment for a set of binary software code using the communication protocol risk database 120 is described below according to Figure 3 is described in more detail.
[0031] The code signature database 122 represents an application, a set of applications, software, a software module, hardware, or any combination thereof, which can be configured to store data defining statistical characteristics of other binary software code associated with a communication interface that implements the communication protocol for each communication protocol. In operation, the software security analyzer 116 can query the code signature database 122 to determine statistical characteristics of historical binary software code associated with the same communication protocol as the software component. The software security analyzer 116 can then compare the statistical characteristics of the binary software code that implements the software component with the statistical characteristics of the historical binary software code, and identify one or more security risks based on the comparison. An example technique for generating a risk assessment for a set of binary software code using the code signature database 122 is described below according to Figure 3 is described in more detail.
[0032] The software component risk database 124 represents an application, a set of applications, software, a software module, hardware, or any combination thereof, which can be configured to store data defining one or more security risk sets previously identified (e.g., by the software security analyzer 116) for the binary software code that implements the software component for each of one or more software components in the software relationship model. In operation, in order to identify the security risks of the binary software code that implements the target software component, the software security analyzer 116 can query the software component risk database 124 to determine the security risks identified by "neighboring" software components. (A "neighboring" software component can refer to a software component that shares a communication interface with the target software component). The software security analyzer 116 can then identify the security risks of this set of binary software code that implements the target software component based on the security risks corresponding to the neighboring software components. An example technique for generating a risk assessment for a set of binary software code using the software component risk database 124 is described below according to Figure 3 is described in more detail.
[0033] Software security analyzer 116 may use one or more of the following: communication protocol risk database 120, code feature database 122, or software component risk database 124 to generate risk assessment 118, also according to Figure 3 is described in more detail.
[0034] In some cases, as shown, the communication protocol risk database 120, the code signature database 122, and the software component risk database 124 can be implemented on the same platform as the software security analyzer 116. Alternatively or additionally, the communication protocol risk database 120, the code signature database 122, and the software component risk database 124 can be implemented on different hardware platforms accessible to the software security analyzer 116.
[0035] The software service platform 110 may be implemented using one or more computers, computer servers, or cloud computing platforms.
[0036] The server 108 represents an application, a set of applications, software, a software module, hardware, or any combination thereof, which can be accessed by a binary software code set when executed. The server 108 can be an application server, a service provider, or any other network entity, for example, which can be accessed at one or more network addresses included in the binary software code set 112. The server 108 can be implemented using one or more computers, computer servers, or cloud computing platforms.
[0037] The client device 102 represents a device that can use the binary software code set 112. In some cases, the binary software code set can be installed on the client device 102, such as by downloading over the network 106 or copying locally to the client device 102. Alternatively, the client device 102 can access software services provided by the binary software code set 112. In one example, a browser or client application can be executed on the client device 102 to communicate service requests and service replies with the software service platform 110 to obtain software services.
[0038] Turning to a general description, the client device 102 may include, without limitation, any of the following: a terminal, a computing device, a mobile device, a mobile electronic device, a user device, a mobile site, a subscriber site, a portable electronic device, a mobile communication device, a wireless modem, or other electronic device. Examples of terminals may include mobile devices, IoT (Internet of Things) devices, EoT (Enterprise of Things) devices, cellular phones, personal digital assistants (PDAs), smart mobile phones, notebook computers, tablet computers, personal computers (PCs), pagers, portable computers, portable gaming devices, wearable electronic devices, health / medical / fitness devices, cameras, vehicles, or other mobile communication devices having components for communicating sound or data via a wireless communication network. The means of transport may include motor vehicles (e.g., cars, sedans, trucks, buses, motorcycles, etc.), aircraft (e.g., airplanes, drones, drone systems, unmanned aircraft, helicopters, etc.), spacecraft (e.g., winged spacecraft, space shuttles, space capsules, space stations, satellites, etc.), watercraft (e.g., ships, boats, hovercraft, submarines, etc.), rail vehicles (e.g., trains, trams, etc.), and other types of vehicles, including any combination of any of the foregoing, whether currently existing or appearing in the future. The wireless communication network may include a wireless connection on at least one of a licensed channel and an unlicensed channel. The term "mobile device" may also refer to any hardware or software component that can terminate a user's communication session. In addition, the terms "user equipment", "UE", "user equipment device", "user agent", "UA", "user device" and "mobile device" are used interchangeably herein.
[0039] The example communication system 100 includes a network 106. The network 106 represents an application, a set of applications, software, a software module, hardware, or any combination thereof, which can be configured to transmit data information between entities in the system. The network 106 may include a wireless network, a wired network, the Internet, or any combination thereof. For example, the network 106 may include one or a large number of radio access networks (RANs), core networks (CNs), and the Internet. The RAN may include one or more radio access technologies. In some implementations, the radio access technology may be a global mobile communication network (GSM), Interim Standard 95 (IS-95), a universal mobile telecommunications system (UMTS), CDMA2000 (code division multiple access), an evolved universal mobile telecommunications system (E-UMTS), a long-term evaluation (LTE), advanced LTE, a fifth generation (5G), or any other wireless access technology. In some cases, the core network may be an evolved packet core (EPC).
[0040] RAN is part of a wireless telecommunication system that implements radio access technologies such as UMTS, CMDA2000, 3GPP LTE, 3GPP LTE-A and 5G. In many applications, RAN includes at least one base station. A base station can be a radio base station that can control all or at least some radio-related functions in the fixed part of the system. A base station can provide a radio interface for mobile devices to communicate within their coverage area or within a cell. Base stations can be distributed across cellular networks to provide a wide coverage area. A base station communicates directly with one or more mobile devices, other base stations, and one or more core network nodes.
[0041] Although Figure 1 The elements are shown as various components, parts or modules that implement various features and functions, but these elements may instead include multiple sub-modules, third-party services, components, libraries, etc. as appropriate. In addition, the features and functions of various components may be combined into fewer components as appropriate.
[0042] Figure 2 An example of a software relationship model 200 is depicted. The software relationship model identifies: (i) Figure 2 The set of software components represented visually by the shaded box 202 in FIG. 1 and (ii) in FIG. Figure 2 The communication interfaces between the software components in the software component set are intuitively represented by arrows 204. The software relationship model can also define the corresponding communication protocols implemented by each communication interface in the communication interface 204.
[0043] In one example, Figure 2The software relationship model 200 may represent a software system of a vehicle. In this example, the software components of the software relationship model may represent one or more of the following: software of an autonomous driving system of a vehicle, software of a steering system of a vehicle, software of a braking system of a vehicle, software of an in-vehicle entertainment system of a vehicle, software of a temperature control system of a vehicle, and so on. The communication interface of the software relationship model may implement a communication protocol, such as a controller area network (CAN) bus protocol, a FlexRay protocol, an inter-process communication (IPC) protocol, an on-board diagnostic (OBD) communication protocol. The software safety analyzer described herein may be used, for example, to generate a risk assessment of binary software code for an in-vehicle software system using a software relationship model, also described below according to Figure 3 is described in more detail.
[0044] Figure 3 is a flow chart of an example process 300 for generating a risk assessment for a set of binary software code based on a software relationship model. A software security analyzer appropriately programmed according to the present specification, for example, Figure 1 The software security analyzer 116 in may perform process 300 . Figure 3 The illustrated example process 300 may be implemented using additional, fewer, or different operations, which may be performed in the order illustrated or in a different order.
[0045] Process 300 begins at step 302, where a software security analyzer receives a software relationship model that defines an architecture of a software system. The software relationship model identifies: (i) a set of software components of the software system and (ii) communication interfaces between software components in the set of software components. Optionally, the software relationship model may further identify, for each communication interface, a corresponding communication protocol implemented by the communication interface. In some implementations, the software relationship model includes a corresponding unique label (e.g., represented by an alphanumeric sequence) corresponding to each software in the set of software components, such that each software component is uniquely identified by its corresponding label.
[0046] The software security analyzer may receive a software relationship model from a software developer (e.g., via software developer device 104) via a network (e.g., network 106). The software relationship model may be generated by any suitable manual or automated process. For example, the software relationship model may be generated by one or more users of a software development device, such as as part of a software development workflow.
[0047] At step 304, the software security analyzer receives a set of binary software codes, referred to herein for convenience as "target" binary software codes. Binary software codes are computer software in binary form. In one example, the software security analyzer receives the target binary software codes from a software developer (e.g., via software developer device 104) via a network (e.g., network 106). The target binary software codes may represent application software, system software (e.g., an operating system or a device driver), or a component thereof. In some cases, the software security analyzer receives the target binary software codes instead of receiving the corresponding source code of the software.
[0048] Along with the target binary software code, the system may receive a tag (e.g., represented as an alphanumeric sequence) identifying a software component corresponding to the target binary software code. A set of binary software codes may be said to correspond to a software component if the binary software code implements the software component, i.e., causes the binary software code to perform the operation of the software component when executed.
[0049] At step 306, the software security analyzer generates a risk assessment for the target binary software code based on the software relationship model. The risk assessment of the target binary software code identifies one or more security risks of the binary software code set.
[0050] To generate the risk assessment, the software security analyzer may identify a software component corresponding to the target binary software code, i.e., from the set of software components included in the software relationship model. (For convenience, the software component corresponding to the target binary software code may be referred to herein as the "target" software component). For example, the software security analyzer may identify the target software component corresponding to the set of binary software codes by matching a tag included in the target binary software code with a tag of the target software component.
[0051] After identifying the target software component, the software security analyzer may determine one or more communication interfaces associated with the target software component from the software relationship model. If a software component communicates with one or more other software components via a communication interface, the communication interface in the software relationship model is referred to as being "associated" with the software component. The software security analyzer may then determine a risk assessment for the target binary software code based on the communication interface associated with the target software component.
[0052] Several example techniques by which a software security analyzer may determine a risk assessment for a target binary software code are described below.
[0053] In some implementations, to determine a risk assessment for the target binary software code, the software security analyzer may access a communication protocol risk database, such as the communication protocol risk database 120. The communication protocol risk database 120 stores data defining, for each communication protocol in a set of communication protocols, one or more possible security risk sets corresponding to the communication protocol. The software security analyzer may access the communication protocol risk database to identify, for each communication protocol implemented by a communication interface associated with the target software component, a possible security risk set corresponding to the communication protocol.
[0054] After determining the possible security risks corresponding to the communication protocol implemented by the communication interface associated with the target software component, the software security analyzer can generate a risk assessment for the target binary software code based at least in part on the possible security risks. For example, the software security analyzer can scan the target binary software code to evaluate each of the possible security risks. Generally, scanning a binary software code set to evaluate possible security risks can refer to processing the binary software code set to determine whether one or more predetermined risk assessment criteria specific to the possible security risks are met. In response to determining that the security risk criteria for the possible security risks as a result of scanning the target binary software code are met, the software risk analyzer can specify that the possible security risks are included in the risk assessment.
[0055] Several examples of possible security risks of the communication protocol are described next.
[0056] In one example, a communication protocol may have a memory corruption security risk, e.g., based on an erroneous (e.g., malicious) modification of the contents of the memory address due at least in part to use of the communication protocol. A software security analyzer may scan a set of binary software code to assess the memory corruption security risk, e.g., by processing the code to determine whether the code uses an unsafe application program interface (API) or implements an unsafe cache management operation.
[0057] In another example, a communication protocol may have a packet tampering security risk, e.g., based on a packet (i.e., a block of data) being erroneously (e.g., maliciously) modified, e.g., when the packet is transmitted between software components over a communication interface. A software security analyzer may scan a set of binary software code to assess the packet tampering security risk, e.g., by processing the code to determine whether the code operates on data packets that are subject to the packet tampering security risk, e.g., exposing the code to possible logic problems and unsafe behavior.
[0058] In another example, a communication protocol may have an information leakage security risk, for example, sensitive (protected) information may be exposed based on data transmitted as specified by the communication protocol. The software security analyzer may scan a set of binary software code to assess the information leakage security risk, for example, by processing the code to determine whether the code implements erroneous processing logic that may lead to the exposure of sensitive information when operating on data transmitted as specified by the communication protocol.
[0059] In another example, a communication protocol may have a denial of service security risk, e.g., based on data transmitted as specified by the communication protocol may cause certain services or operations associated with the software component to become unavailable, e.g., until a reboot occurs. The software security analyzer may scan a set of binary software code to assess the denial of service security risk, e.g., by processing the code to determine whether the code implements defenses that cause the code to be robust to the denial of service security risk.
[0060] In some implementations, the software security analyzer may access a code signature database, such as the code signature database 122 , to determine a risk assessment for the target binary software code.
[0061] The code feature database 122 stores data defining the distribution of values of "code features" corresponding across multiple "historical" binary software code sets for each communication protocol in the communication protocol set, each of which is associated with a communication interface that implements the communication protocol. The value of the code feature of the binary software code can define, for example, the number of times a specific software instruction call (e.g., related to the communication protocol) is included in the binary software code. A "historical" binary software code set can refer to any existing binary software code set associated with a communication interface that implements the communication protocol and stored in the database. For example, a historical binary software code set may include a previous version of a binary software code for a software component in a software system. Each historical binary software code set has a corresponding code feature value, and the distribution of the code feature values can be defined by, for example, the mean and standard deviation of the code feature values across multiple historical binary software code sets.
[0062] The software security analyzer can access the code feature database 122 to identify the distribution of corresponding code feature values for each communication protocol implemented by the communication interface associated with the target software component. The software security analyzer can also scan the target binary software code to determine the code feature value for the target binary software code. Then, the software security analyzer can evaluate the existence of possible security risks by measuring the deviation of the code feature value of the target binary software code from the distribution of the code feature value. Generally, when compared with historical binary software code associated with the same communication protocol, a large deviation from the expected value of the code feature for the target binary software code can indicate the existence of a security risk, for example, a security risk caused by code quality or process problems. For example, if the feature value for the target binary software code deviates from the mean value of the code feature value distribution by at least one standard deviation, the software security analyzer can determine that a security risk exists.
[0063] After identifying security risks of the target binary software code using the code signature database 122, as described above, the software security analyzer may generate a risk assessment for the target binary software code based at least in part on the identified security risks. For example, the software security analyzer may generate a risk assessment that includes each identified security risk.
[0064] In some implementations, the software security analyzer may access a software component risk database, such as the software component risk database 124, to determine a risk assessment for the target binary software code. The software component risk database 124 stores data defining one or more security risk sets that have been previously identified (e.g., by the software security analyzer) for each of one or more software components in the software relationship model for the binary software code that implements the software component. Some software components in the software relationship model may not have any associated security risks, for example, because the binary code that implements the software component has not yet been provided to the software security analyzer.
[0065] The software security analyzer may access a software component risk database to determine identified security risks for a "neighboring" software component, i.e., the "neighboring" software component shares a communication interface with a target software component. The software security analyzer may then identify security risks for a target binary software code based on the security risks corresponding to the neighboring software components. For example, the software security analyzer may identify possible security risks for a target binary software component based on: (i) security risks for the neighboring software component and (ii) a communication protocol implemented at a communication interface between the neighboring software component and the target software component. For example, the software security analyzer may map: (i) security risks for the neighboring software component and (ii) a communication protocol implemented at a communication interface to possible security risks for a current software component according to manually defined or machine-learned rules.
[0066] For example, the software security analyzer may map: (i) a denial of service security risk for a neighboring software component and (ii) a communication protocol associated with a packet tampering security risk to a memory corruption security risk for a target software component.
[0067] In this example, the neighboring software component may be configured to provide certain data to the target software component, e.g., by writing the data into a buffer of the target software component. However, the neighboring software component may be associated with a denial of service security risk, e.g., such that if the denial of service security risk is exploited, the neighboring software component may not be able to properly perform the function of writing the appropriate data into the buffer of the target software component. The communication protocol of the communication interface between the neighboring software component and the target software component that is associated with the packet tampering security risk may cause the neighboring software component to be unable to properly perform its undetected function.
[0068] Therefore, the combination of the denial of service security risk of the neighboring software component and the packet tampering security risk of the communication protocol may lead to the memory corruption security risk of the target software component, for example, caused by incorrect data that may be written to the buffer / memory of the target software component by the neighboring software component. It can be understood that in this example, the identification of the memory corruption security risk of the target software component is achieved through the software relationship model, that is, the software security analyzer may not be able to identify the memory corruption risk of the target software component without the software relationship model.
[0069] After identifying possible security risks for the current software component by "propagating" security risks from neighboring software components, as described above, the software security analyzer can evaluate the possible security risks by scanning the binary software code set that implements the current software component. In response to determining that security risks exist in the binary software code set based on the results of the scan, the software security analyzer can include the identified security risks in the risk assessment.
[0070] At step 308, the security analyzer system generates a notification based on the risk assessment of the target binary software code, which indicates the security risk of the target binary software code. In some cases, the security notification can be output at the software service platform, for example, displayed on a graphical user interface on the software service platform. This method enables an enterprise operating a software service platform to be informed of the security risks of the software submitted to the platform. In some cases, the enterprise operating the software service platform may implement a policy regarding the software security of the code on the platform. For example, the software service platform may include or be coupled to an application (APP) store for downloading software code on a device, or a software as a service (SaaS) server that uses software code to provide software services. If the security notification indicates that the target binary software code is unsafe, the software service platform may prevent the binary software code set from being available to the device for use or downloading.
[0071] Alternatively or additionally, the security notification can be transmitted to a software development device that submits the binary software code. This method enables the software developer to make modifications accordingly, for example, to mitigate the security risks of the software.
[0072] Figure 4 A high-level block diagram of a computer 400 according to one implementation is depicted. The computer 400 may be implemented as Figure 1 The software developer device 104, client device, server 108 or software service platform 110 in the embodiment of the present invention. The illustrated diagram is only one possible implementation of the described subject matter and is not intended to limit the present disclosure to a single described implementation. Those of ordinary skill in the art will appreciate the fact that the described components can be connected, combined, and / or used in alternative ways consistent with the present disclosure.
[0073] The computer 400 includes a computer system configured to implement the creation of a secure code package for a browser plug-in and to generate information communications when the plug-in is executed in a browser. In some cases, the computer 400 may include a computer system configured to implement Figures 1 to 3 In some cases, the processing algorithm established by the code package can be implemented in an executable computing code, for example, C / C++ executable code. In some cases, the computer 400 may include a stand-alone Linux system running a batch processing program. In some cases, the computer 400 may include a mobile or personal computer.
[0074] The computer 400 may include a computer that includes input devices, such as a keypad, a keyboard, a touch screen, a microphone, a voice identification device, other devices that can receive user information, and / or output devices that transmit information associated with the operation of the computer, including digital data, visual and / or audio information or a graphical user interface.
[0075] The computer 400 may act as a client, a network component, a server, a database or other firmware, and / or any other component. In some implementations, one or more components of the computer 400 may be configured to operate in a cloud computing-based environment.
[0076] At a high level, the computer 400 is an electronic computing device operable to receive, transmit, manipulate, store or manage data. According to some implementations, the computer 400 may also include or be communicatively coupled to an application server, an email server, a web server, a cache server, a streaming data server, a business intelligence (BI) server and / or other servers.
[0077] The computer 400 can collect data of network events or mobile application usage events from a web browser or client application, such as an installed plug-in, over a network. In addition, data can be collected by the computer 400 from internal users (e.g., from a command console or through another suitable access method), external or third parties, other automated applications, and any other suitable entity, person, system or computer.
[0078] Each of the components of the computer 400 can communicate using a system bus 414. In some implementations, any and / or all of the components of the computer 400, hardware and / or software, can interface with each other and / or interface 412 through the system bus 414 using an application programming interface (API) 406 and / or a service layer 408. The API 406 may include specifications for routines, data structures, and object classes. The API 406 may be computer language independent or dependent and refer to a complete interface, a single function, or even a set of APIs. The service layer 408 provides software services to the computer 400. The functions of the computer 400 can be accessed by all service consumers using this service layer. Software services, such as those provided through the service layer 408, provide reusable, defined business functions through defined interfaces. For example, the interface may be software written in JAVA, C++, or other suitable languages that provide data in extensible markup language (XML) or other suitable forms. Although depicted as an integrated component of the computer 400, alternative implementations may depict the API 406 and / or service layer 408 as independently functioning components relative to other components of the computer 400. Furthermore, any or all portions of the API 406 and / or service layer 408 may be implemented as sub- or sub-modules of other software modules, enterprise applications, or hardware modules without departing from the scope of the present disclosure.
[0079] The computer 400 includes an interface 412. Although Figure 4 A single interface 412 is described as being shown in the computer 400, but two or more interfaces 412 may be used depending on the specific needs, expectations, or specific implementation of the computer 400. The interface 412 is used by the computer 400 to communicate with other systems in a distributed environment connected to a network (whether or not described). Typically, the interface 412 includes a suitable combination of software and / or hardware encoding and logic for operating to communicate with the network. More specifically, the interface 412 may include software that supports one or more communication protocols associated with the communication so that the network or the hardware of the interface can be used to operate to communicate physical signals within and outside the computer 400.
[0080] The computer 400 includes at least one processor 402. Although Figure 4 A single processor 402 is depicted in the computer 400 , but two or more processors may be used depending on the particular need, desire, or particular implementation of the computer 400 . Generally, the processor 402 executes commands and operates on data to perform operations of the computer 400 .
[0081] The computer 400 also includes a memory 410 for processing data for the computer 400. Figure 4Depicted as a single memory 410, two or more memories may be used depending on the particular need, desire, or particular implementation of computer 400. Although memory 410 is depicted as an essential component of computer 400, in alternative implementations, memory 410 may be external to computer 400.
[0082] Application 404 is an algorithmic software engine that provides functionality based on a specific need, desire, or specific implementation of computer 400. Figure 4 Depicted as a single application 404, the application 404 may be implemented as multiple applications 404 on the computer 400. Furthermore, while described as integral to the computer 400, in alternative implementations, the application 400 may be external to the computer 400.
[0083] There may be any number of computers 400 associated with the network or external to the network and in communication with the network. Furthermore, the present disclosure contemplates that many users may use one computer 400 or one user may use multiple computers 400.
[0084] The implementation of the subject matter and functional operations described in this specification can be implemented in digital circuits, in tangible embodied computer software or firmware, in computer hardware, including the structures disclosed in this specification and their structural equivalents, or in a combination of one or more thereof. The implementation of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded in a tangible, non-temporary computer storage medium for data processing devices to execute or control their operations. In addition, program instructions can be encoded on artificially generated propagation signals, such as electrical, optical or electromagnetic signals generated by machines, which are generated to encode information for transmission to suitable receiving devices for data processing devices to execute. Computer storage media can be machine-readable storage devices, machine-readable storage substrates, random or serial access storage devices, or one or more combinations thereof.
[0085] The terms "data processing apparatus", "computer" or "electronic computer equipment" (or equivalents understood by those of ordinary skill in the art) refer to data processing hardware and include all kinds of apparatus, devices and machines for processing data, including, for example, a programmed processor, a computer, or multiple processors or computers. The apparatus may also be or further include a dedicated logic circuit, such as a central processing unit (CPU), an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). In some implementations, the data processing apparatus and / or the dedicated logic circuit may be hardware-based and / or software-based. The apparatus may optionally include code that creates an execution environment for a computer program, such as code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more thereof. The current disclosure contemplates the use of a data processing apparatus with or without a conventional operating system, such as LINUX, UNIX, WINDOWS, MAC OS, ADNROID, IOS or other suitable conventional operating systems.
[0086] A computer program, which may also be referred to or described as a program, software, software application, module, script, code, may be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages, and it may be deployed in any form, including separate programs or as modules, components, subroutines, or other suitable units for use in a computer environment. A computer program may, but need not, correspond to a file in a file system. A program may be stored in a portion of a file that stores other programs or data, for example, one or more scripts stored in a markup language document, in a single file dedicated to the program in question, or in multiple collaborative files, for example, a file storing a portion of one or more modules, subroutines, or codes. A computer program may be deployed to execute on a single computer or on multiple computers located in one location or distributed across multiple locations and connected by a communication network. Although portions of the program described in the various figures are shown as separate modules that implement various features and functions through various objects, methods, or other processes, the program may instead appropriately include several submodules, third-party services, components, libraries, etc. On the contrary, the features and functions of various components may be appropriately combined into a single component.
[0087] The processes and logic flows described in this specification can be performed by one or more programmable computers, which execute one or more computer programs to perform functions by operating input data and generating output. The processes and logic flows can also be performed by special purpose logic circuits, such as CPUs, FPGAs, ASICs, and devices can also be implemented as these special purpose logic circuits.
[0088] The computer that is suitable for the execution of computer program can be based on general or special microprocessor, both together or any other kind of CPU.Usually, CPU will receive instruction and data from ROM or RAM or both.The essential element of computer is CPU and one or more memory devices storing instruction and data that execute or implement instruction.Usually, computer will also include, or be operably coupled to receive data or transmit data or both together to one or more mass storage devices for storing data, for example, disk, magneto-optical disk or optical disk.However, computer need not have such device.In addition, computer can be embedded into another kind of equipment, for example, mobile phone, PDA, mobile audio or video player, game controller, GPS receiver or portable storage device, for example, USB flash drive, just give a few examples.
[0089] Computer-readable media suitable for storing computer program instructions and data (transitory or non-transitory, as the case may be) include all forms of non-volatile memory, media and memory devices, including, for example, semiconductor memory devices, such as erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) and flash disks; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CD ROM, DVD+ / -R, DVD-RAM and DVD-ROM disks. The memory may store a variety of objects or data, including caches, categories, architectures, applications, backup data, tasks, web pages, web page templates, database tables, repositories of stored and / or dynamic information, and any other appropriate information including any parameters, variables, algorithms, instructions, rules, restrictions, or other references. In addition, the memory also includes any other appropriate data, such as logs, policies, security or access data, report files, and others. The processor and memory may be supplemented or incorporated by special purpose logic circuits.
[0090] To provide interaction with a user, implementations of the subject matter described herein may be implemented on a computer having a display device (e.g., a CRT (cathode ray tube), LCD, LED, or plasma display) for displaying information to the user and a keyboard and pointer device, such as a mouse, trackball, or trackpad, through which the user can provide input to the computer. Input may also be provided to the computer using a touch screen, such as a tablet computer surface with pressure sensors, a multi-touch screen using capacitive or electrical detection, or other types of touch screens. Other types of devices may also be used to provide interaction to the user; for example, feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any form, including auditory, verbal, tactile input. In addition, the computer may interact with the user by sending and receiving files with a device used by the user; for example, by sending a web page to a web browser on the user's client device in response to a request received from the web browser.
[0091] The term "graphical user interface" or "GUI" may be used in the singular or plural to describe one or more graphical user interfaces and each display of a particular graphical user interface. Thus, a GUI may refer to any graphical user interface that processes information and efficiently presents the information results to a user, including, but not limited to, a web browser, a touch screen, or a command line interface (CLI). Typically, a GUI may include a plurality of user interface (UI) elements, some or all of which are associated with a web browser, such as interactive areas, drop-down lists, and buttons that can be operated by a business suite user. These and other UI elements may relate to or represent the functionality of a web browser.
[0092] The implementation of the subject matter described in this specification can be implemented on a computer system, which includes a back-end component such as a data server, or includes a middleware component such as an application server, or includes a front-end component such as a client computer with a graphical user interface or a web browser, through which a user can interact with the implementation of the subject matter described in this specification, or any combination of one or more of these back-end, middleware, and front-end components. System components can be interconnected by any form or medium of wired and / or wireless digital data communication, such as a communication network. Examples of communication networks include local area networks (LANs), radio access networks (RANs), metropolitan area networks (MANs), wide area networks (WANs), global interoperability for microwave access (WIMAX), WLANs using, for example, 802.11a / b / g / n and / or 802.20, all or part of the Internet, and / or any other communication system or communication system at one or more locations. The network can communicate, for example, Internet Protocol (IP) packets, frame relay frames, asynchronous transfer mode (ATM) cells, voice, video, data, and / or other suitable information between network addresses.
[0093] A computing system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
[0094] In some implementations, any or all components of a computing system, both hardware and / or software, may interface and / or interface with each other using an API and / or software layer. An API may include specifications for routines, data structures, and object classes. An API may be computer language independent or dependent and refers to a complete interface, a single function, or even a set of APIs. A service layer provides software services to a computing system. The functions of various components of a computing system may be accessed by all service consumers using this service layer. Software services provide reusable, defined business functions through defined interfaces. For example, the interface may be software written in JAVA, C++, or other suitable languages that provide data in XML or other suitable forms. The API and / or service layer may be a required and / or independently running component relative to other components of the computing system. Moreover, any or all parts of the service layer may be implemented as sub- or sub-modules of other software modules, enterprise applications, or hardware modules that do not depart from the scope of this disclosure.
[0095] Although this specification contains many specific implementation details, these should not be interpreted as limitations on the scope of any invention or the scope of what is claimed, but rather as descriptions of features specific to a particular implementation of a particular invention. Certain features of the corresponding implementations described in the context of this specification may also be implemented in combination in a single implementation. Conversely, various features of a single implementation described in the context may also be implemented separately in multiple implementations or in any suitable sub-combination. In addition, although features may be described above as working in certain combinations, or even initially claimed as such, one or more features from the claimed combination may, in some cases, be deleted from the combination, and the claimed combination may be directed to a sub-combination or a variant of a sub-combination.
[0096] Specific implementations of the subject matter have been described. Other implementations, permutations, and permutations of the described implementations are within the scope of the appended claims, which will be clear to those skilled in the art. Although the operations are depicted in the drawings and claims in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order, or that all of the described operations (some operations may be considered optional) be performed to achieve the desired results. Under certain conditions, multitasking and parallel processing may be advantageous.
[0097] In addition, the separation and / or integration of various system modules and components in the implementations described above should not be understood as requiring such separation and / or integration in all implementations, and it should be understood that the program components and systems described can generally be integrated together into a single software product or packaged into multiple software products.
[0098] Therefore, the example implementations described above do not define or limit the present disclosure. Other changes, substitutions and alterations are also possible without departing from the spirit and scope of the present disclosure.
Claims
1. A computer-implemented method comprising: receiving a software relationship model, the software relationship model identifying: (i) a set of software components and (ii) communication interfaces between software components in the set of software components; receiving a binary software code set; generating a risk assessment for the set of binary software code based on the software relationship model; as well as A notification is generated based on the risk assessment for the set of binary software code, the notification indicating a security risk associated with the set of binary software code.
2. The method of claim 1 , wherein generating the risk assessment for the set of binary software code based on the software relationship model comprises: identifying a software component corresponding to the set of binary software codes; determining one or more communication interfaces associated with the identified software component based on the software relationship model; as well as A risk assessment for the set of binary software code is determined based on the communication interface associated with the identified software component.
3. The method of claim 2, wherein determining the risk assessment for the set of binary software code based on the communication interface associated with the identified software component comprises: identifying a set of possible security risks based on the communication interface associated with the identified software component; Scanning the binary software code set to assess the security risk set; as well as The risk assessment for the set of binary software code is determined based at least in part on an assessment of the set of possible security risks.
4. The method of claim 3, wherein identifying a set of possible security risks based on the communication interface associated with the identified software component comprises: For each communication interface associated with the identified software component: Identifying, by the software relationship model, a communication protocol implemented by the communication interface; as well as One or more possible security risks corresponding to the communication protocol are determined.
5. The method of claim 2, wherein determining the risk assessment for the set of binary software code based on the communication interface associated with the identified software component comprises: determining a value of a characteristic of the binary software code set; as well as The risk assessment for the set of binary software code is determined based at least in part on the value of the characteristic of the set of binary software code and a distribution of values of the characteristic for binary software code associated with a communication interface that implements a same communication protocol as a communication interface associated with the identified software component. 6 . The method of claim 5 , wherein the value of the characteristic of the binary software code set represents a number of times a particular software instruction is included in the binary software code set.
7. The method of claim 2, wherein determining the risk assessment of the set of binary software code based on the communication interface associated with the identified software component comprises: identifying security risks for binary software code corresponding to different software components, the different software components communicating with the identified software component via a communication interface; as well as The risk assessment for the binary software code corresponding to the identified software component is determined based at least in part on the security risk identified for the binary software code corresponding to the different software component.
8. The method of claim 7, wherein determining the risk assessment for the binary software code corresponding to the identified software component based at least in part on the security risk identified for the binary software code corresponding to the different software component comprises: A possible security risk for the binary software code corresponding to the identified software component is determined based on the security risk identified for the binary software code corresponding to the different software component and a communication protocol implemented by the communication interface between the identified software component and the different software component.
9. A system comprising: one or more computers; as well as One or more storage devices communicatively coupled to the one or more computers, wherein the one or more storage devices store instructions that, when executed by the one or more computers, cause the one or more computers to perform operations, including: receiving a software relationship model, the software relationship model identifying: (i) a set of software components and (ii) communication interfaces between software components in the set of software components; receiving a binary software code set; generating a risk assessment for the set of binary software code based on the software relationship model; and A notification is generated based on the risk assessment for the set of binary software code, the notification indicating a security risk associated with the set of binary software code.
10. The system of claim 9, wherein generating the risk assessment for the set of binary software code based on the software relationship model comprises: identifying a software component corresponding to the set of binary software codes; determining one or more communication interfaces associated with the identified software component based on the software relationship model; as well as A risk assessment for the set of binary software code is determined based on the communication interface associated with the identified software component.
11. The system of claim 10, wherein determining the risk assessment of the set of binary software code based on the communication interface associated with the identified software component comprises: identifying a set of possible security risks based on the communication interface associated with the identified software component; Scanning the binary software code set to assess the security risk set; as well as The risk assessment for the set of binary software code is determined based at least in part on the assessment of the set of possible security risks.
12. The system of claim 11, wherein identifying a set of possible security risks based on the communication interfaces associated with the identified software components comprises, for each communication interface associated with the identified software component: identifying, by the software relationship model, a communication protocol implemented by the communication interface; and One or more possible security risks corresponding to the communication protocol are determined.
13. The system of claim 10, wherein determining the risk assessment for the set of binary software code based on a communication interface associated with the identified software component comprises: determining a value of a characteristic of the binary software code set; as well as The risk assessment of the set of binary software code is determined based at least in part on the value of the characteristic of the set of binary software code and a distribution of values of the characteristic for binary software code associated with a communication interface that implements the same communication protocol as the communication interface associated with the identified software component.
14. The system of claim 13, wherein the value of the characteristic of the binary software code set represents a number of times a particular software instruction is included in the binary software code set.
15. The system of claim 10, wherein determining the risk assessment of the set of binary software code based on the communication interface associated with the identified software component comprises: identifying security risks for binary software code corresponding to different software components, the different software components communicating with the identified software component via a communication interface; as well as The risk assessment for the binary software code corresponding to the identified software component is determined based at least in part on the security risk identified for the binary software code corresponding to the different software component.
16. The system of claim 15, wherein determining the risk assessment for the binary software code corresponding to the identified software component based at least in part on the security risk identified for the binary software code corresponding to the different software component comprises: A possible security risk for the binary software code corresponding to the identified software component is determined based on the security risk identified for the binary software code corresponding to the different software component and a communication protocol implemented by the communication interface between the identified software component and the different software component.
17. One or more non-transitory computer storage media storing instructions that, when executed by one or more computers, cause the one or more computers to perform operations comprising: receiving a software relationship model, the software relationship model identifying: (i) a set of software components and (ii) communication interfaces between software components in the set of software components; receiving a binary software code set; generating a risk assessment for the set of binary software code based on the software relationship model; as well as A notification is generated based on the risk assessment for the set of binary software code, the notification indicating a security risk associated with the set of binary software code.
18. The non-transitory computer storage medium of claim 17, wherein generating the risk assessment for the set of binary software codes based on the software relationship model comprises: identifying a software component corresponding to the set of binary software codes; determining one or more communication interfaces associated with the identified software component based on the software relationship model; as well as A risk assessment for the set of binary software code is determined based on the communication interface associated with the identified software component.
19. The non-transitory computer storage medium of claim 18, wherein determining the risk assessment of the set of binary software codes based on the communication interface associated with the identified software component comprises: identifying a set of possible security risks based on the communication interface associated with the identified software component; Scanning the binary software code set to assess the security risk set; as well as The risk assessment for the set of binary software code is determined based at least in part on the assessment of the set of possible security risks.
20. The non-transitory computer storage medium of claim 19, wherein identifying a set of possible security risks based on the communication interfaces associated with the identified software components comprises, for each communication interface associated with the identified software component: identifying, by the software relationship model, a communication protocol implemented by the communication interface; and One or more possible security risks corresponding to the communication protocol are determined.
