Component library security function detection method and device, computer equipment and storage medium

Through the component library security function detection method, threat evaluation, risk assessment and data encryption components are used to identify the security risks of the component library, solving the problem of insufficient security function detection in traditional technologies and improving security and reliability.

CN118916876APending Publication Date: 2024-11-08SHENZHEN POWER SUPPLY BUREAU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410957905.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-11-08

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

The invention relates to a component library security function detection method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring component verification data of a verification component library; determining safety evaluation data corresponding to the component verification data according to a safety function component in the target component library; wherein the security function component comprises at least one of a threat evaluation component, a risk assessment component and a data encryption component; and determining whether the safety function component is normal according to the safety evaluation data. By adopting the method, the safety function in the component library can be detected more accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a component library security function detection method, device, computer equipment and storage medium. Background Art

[0002] The security of the component library is a key issue of concern. The application of security technologies includes identity authentication, access control, data encryption, data transmission security, etc. At the same time, security management measures such as vulnerability repair, security updates and incident response of the component library should be considered.

[0003] In traditional technologies, methods lack a comprehensive understanding of security threats in specific fields and scenarios, and are unable to fully identify and evaluate the security risks faced by component libraries, which will lead to security vulnerabilities and potential security risks being ignored or underestimated, and easily make component libraries vulnerable to security incidents such as malicious attacks and data leaks, thereby reducing credibility and reliability.

[0004] Therefore, conventional technologies lack a method for accurately detecting the security functions of component libraries. Summary of the invention

[0005] Based on this, it is necessary to provide a component library safety function detection method, device, computer equipment and storage medium that can accurately detect whether the safety function is normal in response to the above technical problems.

[0006] In a first aspect, the present application provides a component library security function detection method, comprising:

[0007] Obtain component verification data of the verification component library;

[0008] Determine, according to the security function components in the target component library, security evaluation data corresponding to the component verification data; wherein the security function components include at least one of a threat evaluation component, a risk assessment component, and a data encryption component;

[0009] Based on the safety evaluation data, determine whether the safety function components are normal.

[0010] In one embodiment, if the security function component includes a threat assessment component, determining the security assessment data corresponding to the component verification data according to the security function component in the target component library includes:

[0011] Based on the threat assessment component, the component verification data is evaluated under different threat assessment dimensions to obtain a first evaluation result under the corresponding dimension; wherein the different threat assessment dimensions include at least one of a potential loss dimension, a threat recurrence dimension, a threat utilization dimension, a threat impact dimension, and a threat discovery dimension;

[0012] The first evaluation results under different threat dimensions are integrated to obtain threat level data corresponding to the component verification data;

[0013] Among them, the security assessment data includes threat level data.

[0014] In one embodiment, if the safety function component includes a risk assessment component, determining the safety evaluation data corresponding to the component verification data according to the safety function component in the target component library includes:

[0015] Based on the risk assessment component, the component verification data is evaluated under different risk assessment dimensions to obtain a second evaluation result under the corresponding dimension; wherein the different risk assessment dimensions include a basic risk dimension and an environmental risk dimension;

[0016] The second evaluation results under different risk dimensions are integrated to obtain risk evaluation data corresponding to the component verification data;

[0017] Among them, safety assessment data includes risk assessment data.

[0018] In one embodiment, the second evaluation results under different risk dimensions are fused to obtain risk evaluation data corresponding to the component verification data, including:

[0019] Based on the preset weight data, the second evaluation results under different risk dimensions are weighted, and the weighted sum value is used as the reference evaluation data corresponding to the component verification data;

[0020] According to the preset influencing factors, the reference evaluation data is updated to obtain the risk assessment data corresponding to the component verification data.

[0021] In one embodiment, if the security function component includes a data encryption component, determining the security evaluation data corresponding to the component verification data according to the security function component in the target component library includes:

[0022] Encrypt the component verification data based on the data encryption component to obtain the verification data ciphertext;

[0023] Sending the data to be transmitted including the verification data ciphertext to the verification participant, so that the verification participant decrypts the verification data ciphertext based on the data decryption component corresponding to the data encryption component to obtain the verification data plaintext;

[0024] Obtain the plain text of the verification data fed back by the verification participant, and determine the encryption evaluation data of the data encryption component based on the consistency between the plain text of the verification data and the component verification data;

[0025] Among them, the security evaluation data includes encrypted evaluation data.

[0026] In one embodiment, the data encryption component includes a symmetric encryption component and an asymmetric encryption component; encrypting the component verification data based on the data encryption component to obtain the verification data ciphertext includes:

[0027] Based on the symmetric encryption component in the data encryption component, encrypt the component verification data according to the first random key plaintext to obtain the verification data ciphertext;

[0028] The method sends the data to be transmitted including the verification data ciphertext to the verification participant, so that the verification participant decrypts the verification data ciphertext based on the data decryption component corresponding to the data encryption component to obtain the verification data plaintext, including:

[0029] Based on the asymmetric encryption component in the data encryption component, the random key plaintext is encrypted according to the preset public key to obtain the random key ciphertext;

[0030] The data to be transmitted including the verification data ciphertext and the random key ciphertext is sent to the verification participant, so that the verification participant decrypts the random key ciphertext based on the asymmetric decryption component corresponding to the asymmetric encryption component and the private key corresponding to the preset public key to obtain the reference key plaintext, and decrypts the verification data ciphertext based on the symmetric decryption component corresponding to the symmetric encryption component and the reference key plaintext to obtain the verification data plaintext.

[0031] In a second aspect, the present application also provides a component library safety function detection device, including:

[0032] A data acquisition module, used to acquire component verification data of a verification component library;

[0033] A data determination module, used to determine the security evaluation data corresponding to the component verification data according to the security function components in the target component library; wherein the security function components include at least one of a threat evaluation component, a risk assessment component and a data encryption component;

[0034] The function inspection module is used to determine whether the safety function component is normal according to the safety evaluation data.

[0035] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0036] Obtain component verification data of the verification component library;

[0037] Determine, according to the security function components in the target component library, security evaluation data corresponding to the component verification data; wherein the security function components include at least one of a threat evaluation component, a risk assessment component, and a data encryption component;

[0038] Based on the safety evaluation data, determine whether the safety function components are normal.

[0039] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0040] Obtain component verification data of the verification component library;

[0041] Determine, according to the security function components in the target component library, security evaluation data corresponding to the component verification data; wherein the security function components include at least one of a threat evaluation component, a risk assessment component, and a data encryption component;

[0042] Based on the safety evaluation data, determine whether the safety function components are normal.

[0043] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0044] Obtain component verification data of the verification component library;

[0045] Determine, according to the security function components in the target component library, security evaluation data corresponding to the component verification data; wherein the security function components include at least one of a threat evaluation component, a risk assessment component, and a data encryption component;

[0046] Based on the safety evaluation data, determine whether the safety function components are normal.

[0047] The above-mentioned component library security function detection method, device, computer equipment and storage medium obtain component verification data of the verification component library; determine the security evaluation data corresponding to the component verification data according to the security function components in the target component library; wherein the security function components include at least one of threat evaluation components, risk assessment components and data encryption components; determine whether the security function components are normal according to the security evaluation data. The present application can more accurately detect the security functions in the component library through the security function components in the target component library. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0049] Figure 1 An application environment diagram of a component library safety function detection method provided in this embodiment;

[0050] Figure 2 A schematic diagram of the process flow of the first component library safety function detection method provided in this embodiment;

[0051] Figure 3 A structural block diagram of a component library safety function detection device provided in this embodiment;

[0052] Figure 4 A structural block diagram of a data determination module provided in this embodiment;

[0053] Figure 5 An internal structure diagram of a first computer device provided in this embodiment;

[0054] Figure 6 This is a diagram of the internal structure of the second computer device provided in this embodiment. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0056] The component library security function detection method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the computer device obtains the component verification data of the verification component library; according to the security function component in the target component library, the security evaluation data corresponding to the component verification data is determined; wherein the security function component includes at least one of a threat evaluation component, a risk assessment component and a data encryption component; according to the security evaluation data, it is determined whether the security function component is normal. Among them, the computer device can be both a terminal and a server. Terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0057] In an exemplary embodiment, Figure 2 As shown, a component library security function detection method is provided, and the method is applied to Figure 1 The computer device in the example is used to illustrate, including the following steps 201 to 203. Among them:

[0058] Step 201, obtaining component verification data of a verification component library.

[0059] The verification component library may be a component library for generating component verification data. The component verification data may be data for verifying whether the safety function of the safety function component is normal.

[0060] Specifically, the computer device obtains verification data in the verification component library and uses the data as component verification data.

[0061] Step 202: Determine the safety evaluation data corresponding to the component verification data according to the safety function components in the target component library.

[0062] Among them, the security function component includes at least one of a threat assessment component, a risk evaluation component and a data encryption component.

[0063] Specifically, the component verification data is processed through the safety function components in the target component library to obtain the safety evaluation data.

[0064] Step 203: Determine whether the safety function component is normal based on the safety evaluation data.

[0065] Specifically, based on the security evaluation data, a security function score corresponding to the security evaluation data is determined, and when the security function score is greater than a preset score threshold, it is determined whether the security function component is normal.

[0066] The above-mentioned component library security function detection method obtains component verification data of the verification component library; determines the security evaluation data corresponding to the component verification data according to the security function components in the target component library; wherein the security function components include at least one of threat evaluation components, risk assessment components and data encryption components; determines whether the security function components are normal according to the security evaluation data. The present application can more accurately detect the security functions in the component library through the security function components in the target component library.

[0067] In some embodiments, if the security function component includes a threat assessment component, the security assessment data corresponding to the component verification data is determined based on the security function component in the target component library, including: performing data evaluation on the component verification data under different threat assessment dimensions based on the threat assessment component to obtain a first evaluation result under the corresponding dimension; and performing data fusion on the first evaluation results under different threat dimensions to obtain threat level data corresponding to the component verification data.

[0068] The different threat assessment dimensions include at least one of a potential loss dimension, a threat recurrence dimension, a threat exploitation dimension, a threat impact dimension, and a threat discovery dimension. The security assessment data includes threat level data. The threat assessment component may be a threat rating model (Microsoft SDL-DREAD, DREAD).

[0069] Specifically, the component verification data is input into the threat assessment component, and the threat assessment component performs data evaluation on the component verification data under different threat assessment dimensions (i.e., potential loss dimension, threat reproduction dimension, threat utilization dimension, threat impact dimension, and threat discovery dimension), and obtains the first evaluation results under the corresponding dimensions, i.e., potential loss evaluation, threat reproduction evaluation, threat utilization evaluation, threat impact evaluation, and threat discovery evaluation, determines the sum value between the potential loss evaluation, threat reproduction evaluation, threat utilization evaluation, threat impact evaluation, and threat discovery evaluation, and determines the threat level corresponding to the sum value, and uses the level as the threat level data corresponding to the component verification data.

[0070] This embodiment can identify potential threats and vulnerabilities in the target component library through the threat assessment component.

[0071] In some embodiments, if the safety function component includes a risk assessment component, the safety evaluation data corresponding to the component verification data is determined based on the safety function component in the target component library, including: performing data evaluation on the component verification data under different risk assessment dimensions based on the risk assessment component to obtain a second evaluation result under the corresponding dimension; and performing data fusion on the second evaluation results under different risk dimensions to obtain risk assessment data corresponding to the component verification data.

[0072] Among them, different risk assessment dimensions include basic risk dimension and environmental risk dimension; security assessment data includes risk assessment data. The risk assessment component can be a Common Vulnerability Scoring System (CVSS).

[0073] Among them, the basic risk dimensions include attack vectors (indicating the methods and locations where attackers can exploit vulnerabilities); attack complexity vectors (indicating the ease of exploiting vulnerabilities); and privilege requirement vectors (indicating the level of access rights required by attackers to exploit vulnerabilities). Environmental risk dimensions include remote vectors (indicating whether the vulnerability can be attacked through a remote network); user interaction vectors (indicating the extent to which exploiting the vulnerability requires the attacker to interact with the target); and scope impact vectors (indicating the extent to which the vulnerability affects resources, components, or other entities outside the system).

[0074] Specifically, the component verification data is processed by the risk assessment component to obtain the second evaluation results under different risk assessment dimensions. The second evaluation results under different risk dimensions are fused by the following formula (1-1) to obtain the risk assessment data corresponding to the component verification data.

[0075] (1-1)

[0076] Among them, BaseScore represents risk assessment data; round_to_one_decimal represents rounding to one decimal place; Impact represents the value of the impact indicator (ranging from 0 to 10), Exploitability represents the weighted average of the three sub-indicators of attack vector, attack complexity and privilege requirement (ranging from 0 to 10), and f(Impact) is an impact correction factor.

[0077] In some embodiments, the second evaluation results under different risk dimensions are fused to obtain risk evaluation data corresponding to the component verification data, including: weighting the second evaluation results under different risk dimensions based on preset weight data, and using the weighted sum as reference evaluation data corresponding to the component verification data; updating the reference evaluation data according to preset influencing factors to obtain risk evaluation data corresponding to the component verification data.

[0078] This embodiment can help components evaluate and understand the severity of security vulnerabilities and threats through risk assessment components, support decision-making, enhance system security, and meet compliance requirements.

[0079] In some embodiments, if the security function component includes a data encryption component, the security evaluation data corresponding to the component verification data is determined based on the security function component in the target component library, including: encrypting the component verification data based on the data encryption component to obtain the verification data ciphertext; sending the data to be transmitted including the verification data ciphertext to the verification participant, so that the verification participant decrypts the verification data ciphertext based on the data decryption component corresponding to the data encryption component to obtain the verification data plaintext; obtaining the verification data plaintext feedback from the verification participant, and determining the encrypted evaluation data of the data encryption component based on the consistency between the verification data plaintext and the component verification data.

[0080] Among them, the security evaluation data includes encrypted evaluation data.

[0081] In some embodiments, a data encryption component includes a symmetric encryption component and an asymmetric encryption component; based on the data encryption component, component verification data is encrypted to obtain verification data ciphertext, including: based on the symmetric encryption component in the data encryption component, the component verification data is encrypted according to a first random key plaintext to obtain verification data ciphertext; the method sends the data to be transmitted including the verification data ciphertext to the verification participant, so that the verification participant decrypts the verification data ciphertext based on a data decryption component corresponding to the data encryption component to obtain verification data plaintext, including: based on the asymmetric encryption component in the data encryption component, the random key plaintext is encrypting according to a preset public key to obtain random key ciphertext; the data to be transmitted including the verification data ciphertext and the random key ciphertext is sent to the verification participant, so that the verification participant decrypts the random key ciphertext based on the asymmetric decryption component corresponding to the asymmetric encryption component according to the private key corresponding to the preset public key to obtain a reference key plaintext, and decrypts the verification data ciphertext based on the symmetric decryption component corresponding to the symmetric encryption component according to the reference key plaintext to obtain verification data plaintext.

[0082] The symmetric encryption component may be an Advanced Encryption Standard (AES); and the asymmetric encryption component may be an asymmetric encryption algorithm (RSA algorithm, RSA).

[0083] Exemplarily, the encryption method of the symmetric encryption component is specifically to select a suitable AES key length (128 bits, 192 bits or 256 bits); select an initial vector (IV); pad the random key plaintext (e.g., PKCS7 padding); use the AES key and the initial vector to perform an encryption operation; and obtain the random key ciphertext. The decryption method of the symmetric encryption component is specifically to perform a decryption operation using the AES key and the initial vector; perform padding removal; and obtain the plaintext data.

[0084] Exemplarily, the encryption method of the asymmetric encryption component is specifically to select a suitable RSA public key exponent (e) and modulus (n); convert the random key plaintext into an integer form; calculate the random key ciphertext = (random key plaintext ^ e) mod n (where mod n is the modulus for obtaining the modulus n); and obtain the ciphertext. The decryption method of the asymmetric encryption component is specifically to select a suitable RSA private key exponent (d) and modulus (n); calculate the random key plaintext = (random key ciphertext ^ d) mod n; and convert the obtained integer form into plaintext data.

[0085] This embodiment uses the AES algorithm to encrypt sensitive data to ensure data confidentiality, uses the RSA algorithm for key exchange to ensure secure communication and identity authentication, and designs a key management solution suitable for the system as needed to ensure the secure generation, storage, and update of keys.

[0086] In summary, by adopting threat modeling and risk assessment methods, we can comprehensively and systematically identify various threats and risks faced by the system. Threat modeling methods help to identify and evaluate potential threats and determine their threat level to the system, while the CVSS method can provide a standardized method for evaluating and comparing different security vulnerabilities and threats. Based on the results of threat modeling and risk assessment, the threats and risks existing in the system can be prioritized. By considering the potential impact and possibility of different threats and risks, security resources can be reasonably allocated and those threats with the highest risk can be prioritized. At the same time, threat modeling and risk assessment can help identify and solve potential security issues in the system, take corresponding security control measures, and improve the system. The security strength of the system can be improved, and better adaptability can be provided to deal with potential security threats and risks, effectively improving the strength and flexibility of the system. By introducing AES and RSA complementary encryption algorithms in the security architecture, the data confidentiality of the method can be improved when it is used. By using encryption algorithms, the security of data during transmission can be ensured. The data is encrypted using the AES algorithm and then transmitted through a secure channel (HTTPS), thereby protecting the data from man-in-the-middle attacks and eavesdropping. At the same time, the combination of AES and RSA algorithms provides flexibility, and the appropriate encryption scheme can be selected according to needs. For encryption of large-capacity data, the AES algorithm can be used; and for key exchange and digital signatures, the RSA algorithm can be used.

[0087] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0088] Based on the same inventive concept, the embodiment of the present application also provides a component library safety function detection device for implementing the component library safety function detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more component library safety function detection device embodiments provided below can refer to the limitations of the component library safety function detection method above, and will not be repeated here.

[0089] In an exemplary embodiment, Figure 3 As shown, a component library safety function detection device is provided, comprising: a data acquisition module 10, a data determination module 11 and a function verification module 12, wherein:

[0090] A data acquisition module 10 is used to acquire component verification data of a verification component library;

[0091] The data determination module 11 is used to determine the security evaluation data corresponding to the component verification data according to the security function components in the target component library; wherein the security function components include at least one of threat evaluation components, risk assessment components and data encryption components;

[0092] The function inspection module 12 is used to determine whether the safety function component is normal according to the safety evaluation data.

[0093] In some embodiments, Figure 4 As shown, Figure 3 The data determination module in the embodiment further includes:

[0094] The threat assessment unit 110 is used to perform data evaluation on component verification data under different threat assessment dimensions based on the threat assessment component to obtain a first evaluation result under the corresponding dimension; wherein the different threat assessment dimensions include at least one of a potential loss dimension, a threat reproduction dimension, a threat utilization dimension, a threat impact dimension and a threat discovery dimension; the first evaluation results under different threat dimensions are data-fused to obtain threat level data corresponding to the component verification data; wherein the security evaluation data includes threat level data.

[0095] In some embodiments, Figure 4 As shown, Figure 3 The data determination module in the embodiment further includes:

[0096] The risk assessment unit 111 is used to perform data evaluation on the component verification data under different risk assessment dimensions based on the risk assessment component to obtain a second evaluation result under the corresponding dimension; wherein the different risk assessment dimensions include a basic risk dimension and an environmental risk dimension; the second evaluation results under different risk dimensions are data-fused to obtain risk assessment data corresponding to the component verification data; wherein the safety assessment data includes risk assessment data.

[0097] In some embodiments, Figure 4 The risk assessment unit 111 is also used to weight the second evaluation results under different risk dimensions based on preset weight data, and use the weighted sum value as reference evaluation data corresponding to the component verification data; according to the preset influencing factor, the reference evaluation data is updated to obtain the risk assessment data corresponding to the component verification data.

[0098] In some embodiments, Figure 4 As shown, Figure 3 The data determination module in the embodiment further includes:

[0099] The data encryption unit 112 is used to encrypt the component verification data based on the data encryption component to obtain the verification data ciphertext; send the data to be transmitted including the verification data ciphertext to the verification participant, so that the verification participant decrypts the verification data ciphertext based on the data decryption component corresponding to the data encryption component to obtain the verification data plaintext; obtain the verification data plaintext fed back by the verification participant, and determine the encrypted evaluation data of the data encryption component based on the consistency between the verification data plaintext and the component verification data; wherein the security evaluation data includes the encrypted evaluation data.

[0100] In some embodiments, Figure 4 The data encryption unit 112 in the data encryption component is also used to encrypt the component verification data according to the first random key plaintext based on the symmetric encryption component in the data encryption component to obtain the verification data ciphertext; the method sends the data to be transmitted including the verification data ciphertext to the verification participant, so that the verification participant decrypts the verification data ciphertext based on the data decryption component corresponding to the data encryption component to obtain the verification data plaintext, including: based on the asymmetric encryption component in the data encryption component, encrypting the random key plaintext according to the preset public key to obtain the random key ciphertext; sending the data to be transmitted including the verification data ciphertext and the random key ciphertext to the verification participant, so that the verification participant decrypts the random key ciphertext according to the private key corresponding to the preset public key based on the asymmetric decryption component corresponding to the asymmetric encryption component to obtain the reference key plaintext, and decrypts the verification data ciphertext according to the reference key plaintext based on the symmetric decryption component corresponding to the symmetric encryption component to obtain the verification data plaintext.

[0101] Each module in the above-mentioned component library safety function detection device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0102] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 5As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store safety evaluation data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a component library safety function detection method is implemented.

[0103] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a component library security function detection method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0104] Those skilled in the art will understand that Figure 5 and Figure 6The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0105] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0106] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0107] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0108] It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0109] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0110] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0111] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A component library safety function detection method, characterized in that: The method comprises: Obtain component verification data of the verification component library; Determine the security evaluation data corresponding to the component verification data according to the security function components in the target component library; wherein the security function components include at least one of a threat evaluation component, a risk assessment component and a data encryption component; According to the safety evaluation data, it is determined whether the safety function component is normal.

2. The method according to claim 1, characterized in that If the security function component includes the threat assessment component, determining the security assessment data corresponding to the component verification data according to the security function component in the target component library includes: Based on the threat assessment component, the component verification data is evaluated under different threat assessment dimensions to obtain a first evaluation result under the corresponding dimension; wherein the different threat assessment dimensions include at least one of a potential loss dimension, a threat recurrence dimension, a threat utilization dimension, a threat impact dimension, and a threat discovery dimension; Performing data fusion on the first evaluation results under different threat dimensions to obtain threat level data corresponding to the component verification data; Wherein, the security evaluation data includes the threat level data.

3. The method according to claim 1, characterized in that: If the safety function component includes a risk assessment component, then determining the safety evaluation data corresponding to the component verification data according to the safety function component in the target component library includes: Based on the risk assessment component, the component verification data is evaluated under different risk assessment dimensions to obtain a second evaluation result under the corresponding dimension; wherein the different risk assessment dimensions include a basic risk dimension and an environmental risk dimension; Performing data fusion on the second evaluation results under different risk dimensions to obtain risk evaluation data corresponding to the component verification data; Wherein, the safety assessment data includes the risk assessment data.

4. The method according to claim 3, characterized in that The step of fusing the second evaluation results under different risk dimensions to obtain risk evaluation data corresponding to the component verification data includes: Based on the preset weight data, weight the second evaluation results under different risk dimensions, and use the weighted sum value as the reference evaluation data corresponding to the component verification data; The reference evaluation data is updated according to the preset influencing factors to obtain risk evaluation data corresponding to the component verification data.

5. The method according to any one of claims 1 to 4, characterized in that: If the security function component includes a data encryption component, then determining the security evaluation data corresponding to the component verification data according to the security function component in the target component library includes: Encrypting the component verification data based on the data encryption component to obtain verification data ciphertext; Sending the data to be transmitted including the verification data ciphertext to the verification participant, so that the verification participant decrypts the verification data ciphertext based on the data decryption component corresponding to the data encryption component to obtain the verification data plaintext; Obtaining the plaintext verification data fed back by the verification participant, and determining the encrypted evaluation data of the data encryption component according to the consistency between the plaintext verification data and the component verification data; Wherein, the security evaluation data includes encrypted evaluation data.

6. The method according to claim 5, characterized in that The data encryption component includes a symmetric encryption component and an asymmetric encryption component; the encrypting the component verification data based on the data encryption component to obtain the verification data ciphertext includes: Based on the symmetric encryption component in the data encryption component, encrypt the component verification data according to the first random key plaintext to obtain the verification data ciphertext; The method sends the data to be transmitted including the verification data ciphertext to the verification participant, so that the verification participant decrypts the verification data ciphertext based on the data decryption component corresponding to the data encryption component to obtain the verification data plaintext, including: Based on the asymmetric encryption component in the data encryption component, the random key plaintext is encrypted according to the preset public key to obtain the random key ciphertext; The data to be transmitted including the verification data ciphertext and the random key ciphertext is sent to the verification participant, so that the verification participant decrypts the random key ciphertext according to the private key corresponding to the preset public key based on the asymmetric decryption component corresponding to the asymmetric encryption component to obtain the reference key plaintext, and decrypts the verification data ciphertext according to the reference key plaintext based on the symmetric decryption component corresponding to the symmetric encryption component to obtain the verification data plaintext.

7. A component library safety function detection device, characterized in that: The device comprises: A data acquisition module, used to acquire component verification data of a verification component library; A data determination module, configured to determine the security evaluation data corresponding to the component verification data according to the security function components in the target component library; wherein the security function components include at least one of a threat evaluation component, a risk assessment component and a data encryption component; The function verification module is used to determine whether the safety function component is normal according to the safety evaluation data.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

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

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.