A method, device and computer-readable storage medium for identifying security functions

By obtaining and identifying relevant data information of the security function, and using the security function learning algorithm to identify and detect the input parameter data, the problem of being unable to identify the custom security function in the existing technology is solved, automatic identification is achieved, the process is simplified and the accuracy is improved. sex.

CN114417352BActive Publication Date: 2024-09-13SECZONE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111602804.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-09-13
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

Existing technology cannot recognize customized security functions, resulting in tedious manual settings and configuration work for users.

Method used

By obtaining relevant data information of the dangerous data identification function, the safe function learning algorithm is used to identify and detect the input parameter data, determine the function type, including safe functions and suspicious functions, and reduce manual intervention.

Benefits of technology

The security function identification process is simplified, the cost is reduced, and the identification accuracy is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114417352B
    Figure CN114417352B
Patent Text Reader

Abstract

According to the security function identification method, device and computer-readable storage medium provided by the present application, relevant data information of the dangerous data identification function is obtained, and the relevant data information is stored in a data set; the relevant data information in the data set is identified according to the security function learning algorithm; the input parameter data corresponding to the dangerous data identification function is detected according to the detection model corresponding to the security function learning algorithm; and the function type of the calling function corresponding to the calling function name is determined according to the detection result. Through the implementation of the present application, when the security function learning algorithm identifies the input parameter data corresponding to the dangerous data identification function in the data set, the input parameter data corresponding to the dangerous data identification function is checked, and the function type of the calling function is determined according to the detection result, without the need for manual intervention, making the identification process simpler and more convenient, reducing costs, and improving the accuracy of identifying security functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a security function identification method, device and computer-readable storage medium. Background Art

[0002] Data flow vulnerability tracking refers to tracking the input stage, propagation stage, and execution stage of tainted data in a request, and determining whether the tainted data has gone through the complete three stages and has not passed through any security methods. In other words, the tainted data is considered to have a vulnerability, and is usually used to detect SQL injection, command line injection, etc.

[0003] With the continuous development of IAST technology, the vulnerability detection method based on tainted data + data flow tracking has the following problems: some customized security functions cannot be identified, and users are often required to set them manually, which makes the configuration work cumbersome. Summary of the invention

[0004] The embodiments of the present application provide a security function identification method, device and computer-readable storage medium, which can at least solve the problem that some customized security functions cannot be identified in the related art, and often require users to manually set up and the configuration work is cumbersome.

[0005] A first aspect of an embodiment of the present application provides a security function identification method, including:

[0006] Acquire relevant data information of a dangerous data identification function, and store the relevant data information in a data set; wherein the dangerous data identification function includes a character search function and a character replacement function; the relevant data information includes a calling function name and input parameter data corresponding to the dangerous data identification function;

[0007] Identify the relevant data information in the data set according to a security function learning algorithm;

[0008] According to the detection model corresponding to the safety function learning algorithm, the input parameter data corresponding to the dangerous data identification function is detected;

[0009] The function type of the calling function corresponding to the calling function name is determined according to the detection result; wherein the function type includes a safe function and a suspicious function, and the safe function is a function for identifying or processing dangerous data.

[0010] A second aspect of an embodiment of the present application provides a security function identification device, including:

[0011] A storage module, used to obtain relevant data information of a dangerous data identification function and store the relevant data information in a data set; wherein the dangerous data identification function includes a character search function and a character replacement function; the relevant data information includes a calling function name and input parameter data corresponding to the dangerous data identification function;

[0012] An identification module, used for identifying the relevant data information in the data set according to a security function learning algorithm;

[0013] A detection module, used to detect the input parameter data corresponding to the dangerous data identification function according to the detection model corresponding to the safety function learning algorithm;

[0014] A determination module is used to determine the function type of the calling function corresponding to the calling function name according to the detection result; wherein the function type includes a safe function and a suspicious function, and the safe function is a function for identifying or processing dangerous data.

[0015] A third aspect of an embodiment of the present application provides an electronic device, comprising: a memory, a processor and a bus, wherein the bus is used to realize connection and communication between the memory and the processor; the processor is used to execute a computer program stored in the memory, and when the processor executes the computer program, each step of the security function identification method provided in the first aspect of the embodiment of the present application is performed.

[0016] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the security function identification method provided in the first aspect of the embodiments of the present application are implemented.

[0017] As can be seen from the above, according to the security function identification method, device and computer-readable storage medium provided by the scheme of the present application, the relevant data information of the dangerous data identification function is obtained, and the relevant data information is stored in a data set; the relevant data information in the data set is identified according to the security function learning algorithm; the input parameter data corresponding to the dangerous data identification function is detected according to the detection model corresponding to the security function learning algorithm; and the function type of the calling function corresponding to the calling function name is determined according to the detection result. Through the implementation of the scheme of the present application, when the security function learning algorithm identifies the input parameter data corresponding to the dangerous data identification function in the data set, the input parameter data corresponding to the dangerous data identification function is checked, and the function type of the calling function is determined according to the detection result, without the need for manual intervention, making the identification process simpler and more convenient, reducing costs, and improving the accuracy of identifying security functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1A schematic diagram of the basic flow of the security function identification method provided in the first embodiment of the present application;

[0019] Figure 2 A detailed flowchart of the security function identification method provided in the second embodiment of the present application;

[0020] Figure 3 A schematic diagram of a program module of a security function identification device provided in the third embodiment of the present application;

[0021] Figure 4 A schematic diagram of the structure of an electronic device provided in the fourth embodiment of the present application.

[0022] Specific implementation content

[0023] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0024] In order to solve the problem in the related art that some customized security functions cannot be identified and often require users to manually set up and the configuration work is cumbersome, the first embodiment of the present application provides a security function identification method.

[0025] The following is a code diagram of the context information of a character search function or a character replacement function:

[0026]

[0027] like Figure 1 This is a basic flow chart of the security function identification method provided in this embodiment. The security function identification method includes the following steps:

[0028] Step 101: Obtain relevant data information of a dangerous data identification function, and store the relevant data information in a data set.

[0029] Specifically, in this embodiment, the dangerous data identification function includes a character search function and a character replacement function; the relevant data information is represented as the context information of the character search function or the character replacement function, including the calling function name and the input parameter data corresponding to the dangerous data identification function. In this embodiment, the IAST technology is used to obtain the context information of the character search function or the character replacement function executed in the request, and the calling function name, the function name of the character search function or the character replacement function and the corresponding input parameter data are parsed through the context information. For example, taking the above function as an example, the function name of the character search function or the character replacement function is replaceAll, the input parameter data is "<", "<;", and the calling function name is cleanXSS. The parsed function name of the character search function or the character replacement function, the input parameter data corresponding to the character search function or the character replacement function and the calling function name are encapsulated into {"cleanXSS":["replaceAll":""<","<;""]} and stored in the corresponding data set. When there are multiple character search functions or character replacement functions in the called function, the function name, input parameter data, and data encapsulated by the called function name are as shown in {“cleanXSS”:[{“replaceAll”:”"<","<;"”},{“replaceAll”:”">",">;"”},{“replaceAll”:”"%3C","<;"”},{“replaceAll”:”"%3E",">;"”},{“replaceAll”:”"\\(","(;”},{“replaceAll”:”"\\)",");"”},{“replaceAll”:”"'","';"”},{“replaceAll”:””},{“replaceAll”:”"eval\\((.*)\\)",""”}]}.

[0030] It should be noted that IAST technology refers to a comprehensive analysis of the security risks of an application based on requests, code data flow / control flow. This technology can be used to obtain contextual information about requests, code data flow / control flow; character replacement refers to the operation of escaping and replacing some dangerous characters in Java in order to defend against vulnerabilities such as XSS and SQL injection; character search refers to the operation of determining whether there are some dangerous characters in the parameters in Java in order to defend against vulnerabilities such as command line injection and arbitrary file upload.

[0031] In an optional implementation of this embodiment, the step of storing relevant data information in a data set includes: using the calling function name as a key and the input parameter data corresponding to the dangerous data identification function as a value, and storing them in the data set in an associated manner.

[0032] Specifically, in this embodiment, after parsing the function name of the calling function, the function name of the character search function or the character replacement function and the corresponding input parameter data, the calling function name is used as the key and the input parameter data corresponding to the character search function or the character replacement function is used as the value, and the key-value pairs are associated and stored in the data set, so as to facilitate technical personnel to retrieve relevant data.

[0033] It should be understood that before the step of obtaining the relevant data information of the dangerous data identification function, it also includes: using the plug-in technology to insert the data flow tracking method and the component for identifying the safe function into the application. When it is detected that the calling function undergoes character search or character replacement, the step of obtaining the relevant data information of the dangerous data identification function is executed.

[0034] Specifically, the insertion technology refers to the use of Java virtual machine technology to insert data flow tracking methods and components for identifying safe functions into an application. According to the data flow tracking method and components for identifying safe functions, when it is detected that a character search or character replacement occurs in a calling function, relevant data information of the dangerous data identification function is obtained.

[0035] Step 102: Identify relevant data information in the data set according to the security function learning algorithm.

[0036] Specifically, in this embodiment, after the function name of the character search function or the character replacement function, the input parameter data corresponding to the character search function or the character replacement function, and the calling function name are stored in the data set, the security function learning algorithm, i.e., the security function learning module, identifies the function name of the character search function or the character replacement function, the input parameter data corresponding to the character search function or the character replacement function, and the calling function name from the data set, for subsequent detection of the input parameter data corresponding to the character search function or the character replacement function. It should be noted that the security function learning module refers to the use of machine learning to quickly identify whether there is a security function after obtaining the information of the above-mentioned dangerous data identification function. The security function refers to some functions for identifying or replacing dangerous characters written in Java to defend against some vulnerabilities such as XSS, SQL injection, command line injection, and arbitrary file upload.

[0037] Step 103: Detect the input parameter data corresponding to the dangerous data identification function according to the detection model corresponding to the safety function learning algorithm.

[0038] Specifically, in this embodiment, after identifying the function name of the character search function or character replacement function, the input parameter data corresponding to the character search function or character replacement function, and the calling function name, the input parameter data corresponding to the character search function or character replacement function is detected according to the detection model generated by the security function learning module to identify whether the input parameter data corresponding to the character search function or character replacement function in the calling function is the input parameter data corresponding to the character search function or character replacement function in the vulnerability security function.

[0039] In an optional implementation of the present embodiment, the step of detecting the input parameter data corresponding to the dangerous data identification function according to the detection model corresponding to the security function learning algorithm includes: comparing the input parameter data corresponding to the dangerous data identification function with the input parameter data set corresponding to the preset security function set; when the input parameter data corresponding to the dangerous data identification function exists in the input parameter data set, determining that the input parameter data of the dangerous data identification function that exists in the input parameter data set is dangerous data; when the input parameter data corresponding to the dangerous data identification function does not exist in the input parameter data set, determining that the input parameter data of the dangerous data identification function that does not exist in the input parameter data set is suspicious data.

[0040] Specifically, in the present embodiment, the system will preset the input parameters of the character search or character replacement functions involved in some common vulnerability security functions as the input parameter data set. For example, to defend against XSS vulnerabilities, it is common to replace "<" with "<;". Then, based on the input parameter data preset by the system, the input parameter data corresponding to the character search function or the character replacement function is subjected to basic data cleaning and marked with corresponding data features. When the input parameter data corresponding to the character search function or the character replacement function exists in the input parameter data set, the input parameter data existing in the input parameter data set is determined to be dangerous data. When the input parameter data corresponding to the character search function or the character replacement function does not exist in the input parameter data set, the input parameter data not existing in the input parameter data set is determined to be suspicious data, thereby effectively improving the detection efficiency of the input parameter data.

[0041] In an optional implementation of the present embodiment, after the step of comparing the input data corresponding to the dangerous data identification function with the input data set of the preset security function, it also includes: when it is determined that the input data of the dangerous data identification function exists in the input data set is dangerous data, identifying a trusted label and corresponding security function characteristics for the dangerous data; when it is determined that the input data of the dangerous data identification function does not exist in the input data set is suspicious data, identifying a suspicious label for the suspicious data.

[0042] Specifically, in the present embodiment, after determining that the input data of the character search function or the character replacement function existing in the input data set is dangerous data, a trusted label is identified for the dangerous data in the input data corresponding to the character search function or the character replacement function, and a security function feature is identified for the input data according to the security function feature of the input data in the corresponding preset vulnerability security function. For example, if one of the input data corresponds to the input data for defending against XSS vulnerabilities in the input data set of the preset vulnerability security function, an XSS security function is identified for the input data; when a certain input data does not exist in the input data set of the preset vulnerability security function, a suspicious label is identified for the input data, thereby effectively improving the recognition efficiency of the security function learning algorithm for the input data.

[0043] Step 104: Determine the function type of the calling function corresponding to the calling function name according to the detection result.

[0044] Specifically, in this embodiment, the function types include safe functions and suspicious functions. The safe function is a function for identifying or processing dangerous data. The safe function learning module identifies dangerous input data based on trusted labels, identifies suspicious input data based on suspicious labels, and determines the function type of the called function based on the number of times the suspicious label appears in the called function.

[0045] In an optional implementation of the present embodiment, the step of determining the function type of the calling function corresponding to the calling function name according to the detection result includes: when the number of occurrences of the suspicious label in the calling function is greater than a preset threshold, determining that the calling function is a suspicious function; when the number of occurrences of the suspicious label in the calling function is less than the preset threshold, determining that the calling function is a safe function.

[0046] Specifically, in actual applications, when suspicious labels only exist in a small number of input parameter data among a large number of input parameter data, it cannot be determined that the calling function is a suspicious function. For example, there are 10 input parameter data in the calling function, of which the trusted label appears 9 times and the suspicious label appears only once. At this time, it cannot be determined that the calling function is a suspicious function. In this embodiment, only when the security function learning module detects that the number of times the suspicious label appears in the calling function is greater than the preset threshold, the calling function is determined to be a suspicious function. When the number of times the suspicious label appears in the calling function is less than the preset threshold, the calling function is determined to be a safe function, thereby improving the accuracy of identifying safe functions.

[0047] In an optional implementation of the present embodiment, after the step of determining that the calling function is a safe function, it also includes: determining the function characteristics of the calling function based on the safe function characteristics; obtaining the number of occurrences of different types of safe function characteristics; when the number of occurrences of the target type safe function characteristics is greater than a preset first number threshold, determining that the function characteristics of the calling function are target type safe function characteristics; or, when the number of occurrences of the target type safe function characteristics is less than the first number threshold and greater than the preset second number threshold, and the number of occurrences of other types of safe function characteristics is less than the second number threshold, determining that the function characteristics are target type safe function characteristics.

[0048] Specifically, in actual applications, when there are multiple security function features in a calling function, the manual identification operation is not only labor-intensive but also complex, which makes it easy for the manual identification operation to make incorrect judgments. In this embodiment, the number of occurrences of different types of security function features is obtained in the dangerous data of the calling function, and the function features of the calling function are determined according to the number of occurrences of different types of security function features. For example, when security input data appears 10 times in the calling function and the XSS security function appears 8 times, the calling function is determined to be an XSS security function. Alternatively, when the XSS security function appears more than 5 times and less than 8 times, and the number of occurrences of other types of security function features is less than 5 times, the calling function is determined to be an XSS security function. A variety of algorithm logics are used to improve the accuracy of identifying security functions.

[0049] In an optional implementation of this embodiment, after the step of determining the function characteristics of the calling function according to the number of occurrences of different types of security function characteristics, it also includes: analyzing the training data according to the security function learning algorithm, and generating an inference function for mapping out new instances.

[0050] Specifically, in this embodiment, when the function characteristics of the calling function are uncertain, it is determined that there is no algorithm logic in the preset algorithm logic that corresponds to the number of occurrences of the security function characteristics in the calling function, and an inference function is generated according to the preset algorithm logic, and a new algorithm logic is mapped according to the inference result.

[0051] In an optional implementation of the present embodiment, after the step of determining the function type of the calling function corresponding to the calling function name according to the detection result, it also includes: when the function type is a suspicious function, obtaining a manual verification result of the suspicious function; when the manual verification result indicates that the suspicious function is a safe function, updating the suspicious label to a trusted label; after the updated safe function is learned by the safe function learning algorithm, adding the updated safe function to the safe function set.

[0052] Specifically, in this embodiment, the calling function identified with a suspicious label is manually verified according to the manual verification module, and the manual verification result is obtained. When the result indicates that the suspicious function is a safe function, the suspicious label in the calling function is updated to a trusted label. After the updated safe function is subjected to several rounds of iterative learning by the security function learning algorithm, the updated safe function is added to the security function set, and the detection model in the security function learning algorithm is further optimized to achieve a stable test detection model. It should be noted that the manual verification module refers to the verification and optimization of the learning model combined with manual secondary confirmation after obtaining the security function generated by the learning module to achieve higher accuracy.

[0053] Based on the scheme of the above-mentioned embodiment of the present application, relevant data information of the dangerous data identification function is obtained, and the relevant data information is stored in a data set; the relevant data information in the data set is identified according to the safety function learning algorithm; the input parameter data corresponding to the dangerous data identification function is detected according to the detection model corresponding to the safety function learning algorithm; and the function type of the calling function corresponding to the calling function name is determined according to the detection result. Through the implementation of the scheme of the present application, when the safety function learning algorithm identifies the input parameter data corresponding to the dangerous data identification function in the data set, the input parameter data corresponding to the dangerous data identification function is checked, and the function type of the calling function is determined according to the detection result, without the need for manual intervention, making the identification process simpler and more convenient, reducing costs, and improving the accuracy of identifying safety functions.

[0054] Figure 2 The method in is a refined security function identification method provided in the second embodiment of the present application, and the security function identification method includes:

[0055] Step 201: Obtain the calling function name of the dangerous data identification function and the input parameter data corresponding to the dangerous data identification function, and store the calling function name and the input parameter data corresponding to the dangerous data identification function in a data set.

[0056] Step 202: Identify input parameter data corresponding to a dangerous data identification function in a data set according to a safety function learning algorithm.

[0057] Step 203: compare the input parameter data corresponding to the dangerous data identification function with the input parameter data set corresponding to the preset safety function set.

[0058] Step 204: When the input parameter data corresponding to the dangerous data identification function does not exist in the input parameter data set, the input parameter data for which the dangerous data identification function does not exist in the input parameter data set is determined to be suspicious data.

[0059] Step 205: Mark suspicious data with suspicious tags.

[0060] Step 206: When the number of occurrences of the suspicious label in the calling function corresponding to the calling function name is less than a preset threshold, the calling function is determined to be a safe function.

[0061] Specifically, in this embodiment, the input parameter data corresponding to the dangerous data identification function is compared with the input parameter data set corresponding to the preset security function set, and the corresponding non-existent input parameter data in the character search function or the character replacement function is determined to be suspicious data based on the comparison result, and a suspicious label is identified for the suspicious data. When the number of occurrences of the suspicious label in the calling function is less than a preset threshold, the calling function is determined to be a safe function.

[0062] It should be understood that the size of the serial number of each step in this embodiment does not mean the order of execution of the steps. The execution order of each step should be determined by its function and internal logic, and should not constitute a sole limitation on the implementation process of the embodiment of this application.

[0063] According to the security function identification method provided by the scheme of the present application, the calling function name of the dangerous data identification function and the input parameter data corresponding to the dangerous data identification function are obtained, and the calling function name and the input parameter data corresponding to the dangerous data identification function are stored in a data set; the input parameter data corresponding to the dangerous data identification function in the data set are identified according to the security function learning algorithm; the input parameter data corresponding to the dangerous data identification function is compared with the input parameter data set corresponding to the preset security function set; when the input parameter data corresponding to the dangerous data identification function does not exist in the input parameter data set, the input parameter data of the dangerous data identification function that does not exist in the input parameter data set is determined to be suspicious data; suspicious labels are identified for suspicious data; when the number of occurrences of the suspicious label in the calling function corresponding to the calling function name is less than a preset threshold, the calling function is determined to be a safe function. Through the implementation of the scheme of the present application, the input parameter data corresponding to the dangerous data identification function is compared with the input parameter data set corresponding to the preset security function set, and the calling function is determined to be a safe function according to the number of occurrences of the suspicious label of the suspicious data is less than the preset threshold, without the need for manual intervention, making the identification process simpler and more convenient, reducing costs, and improving the accuracy of identifying security functions.

[0064] Figure 3 A security function identification device is provided in the third embodiment of the present application, and the security function identification device can be used to implement the security function identification method in the above embodiments. Figure 3 As shown, the security function identification device mainly includes:

[0065] The storage module 301 is used to obtain relevant data information of the dangerous data identification function and store the relevant data information in a data set; wherein the dangerous data identification function includes a character search function and a character replacement function; the relevant data information includes a calling function name and input parameter data corresponding to the dangerous data identification function;

[0066] An identification module 302, configured to identify relevant data information in a data set according to a security function learning algorithm;

[0067] A detection module 303 is used to detect the input parameter data corresponding to the dangerous data identification function according to the detection model corresponding to the safety function learning algorithm;

[0068] The determination module 304 is used to determine the function type of the calling function corresponding to the calling function name according to the detection result; wherein the function type includes a safe function and a suspicious function, and the safe function is a function for identifying or processing dangerous data.

[0069] In an optional implementation of the present embodiment, the storage module is specifically used to: use the calling function name as a key and the input parameter data corresponding to the dangerous data identification function as a value, and store them in a data set in an associated manner.

[0070] In an optional implementation of the present embodiment, the detection module is specifically used to: compare the input parameter data corresponding to the dangerous data identification function with the input parameter data set corresponding to the preset security function set; when the input parameter data corresponding to the dangerous data identification function exists in the input parameter data set, determine that the input parameter data in which the dangerous data identification function exists in the input parameter data set is dangerous data; when the input parameter data corresponding to the dangerous data identification function does not exist in the input parameter data set, determine that the input parameter data in which the dangerous data identification function does not exist in the input parameter data set is suspicious data.

[0071] In an optional implementation of the present embodiment, the security function identification device further includes: an identification module. The identification module is used to: when the input data of the dangerous data identification function that exists in the input data set is dangerous data, identify a trusted label and a corresponding security function feature for the input data corresponding to the dangerous data identification function; when the input data of the dangerous data identification function that does not exist in the input data set is suspicious data, identify a suspicious label for the input data corresponding to the dangerous data identification function.

[0072] In an optional implementation of the present embodiment, the determination module is specifically used to: when the number of occurrences of suspicious labels in the calling function is greater than a preset threshold, determine that the calling function is a suspicious function; when the number of occurrences of suspicious labels in the calling function is less than the preset threshold, determine that the calling function is a safe function.

[0073] In an optional implementation of this embodiment, the acquisition module is also used to: obtain the number of occurrences of different types of security function features. The determination module is also used to: determine the function feature of the calling function according to the security function feature; when the number of occurrences of the target type security function feature is greater than the preset first number threshold, determine that the function feature of the calling function is the target type security function feature; or, when the number of occurrences of the target type security function feature is less than the first number threshold and greater than the preset second number threshold, and the number of occurrences of other types of security function features is less than the second number threshold, determine that the function feature is the target type security function feature.

[0074] In an optional implementation of this embodiment, the security function identification device further includes: an update module and an adding module. The acquisition module is also used to: when the function type is a suspicious function, obtain the manual verification result of the suspicious function. The update module is used to: when the manual verification result indicates that the suspicious function is a safe function, update the suspicious label to a trusted label. The adding module is used to: after the updated security function is learned by the security function learning algorithm, add the updated security function to the security function set.

[0075] It should be noted that the security function identification methods in the first and second embodiments can be implemented based on the security function identification device provided in this embodiment. Ordinary technical personnel in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the security function identification device described in this embodiment can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0076] According to the security function identification device provided by the present application, relevant data information of the dangerous data identification function is obtained, and the relevant data information is stored in a data set; the relevant data information in the data set is identified according to the security function learning algorithm; the input parameter data corresponding to the dangerous data identification function is detected according to the detection model corresponding to the security function learning algorithm; and the function type of the calling function corresponding to the calling function name is determined according to the detection result. Through the implementation of the present application, when the security function learning algorithm identifies the input parameter data corresponding to the dangerous data identification function in the data set, the input parameter data corresponding to the dangerous data identification function is checked, and the function type of the calling function is determined according to the detection result, without the need for manual intervention, making the identification process simpler and more convenient, reducing costs, and improving the accuracy of identifying security functions.

[0077] Figure 4 An electronic device is provided in the fourth embodiment of the present application. The electronic device can be used to implement the security function identification method in the above-mentioned embodiment. Figure 4 As shown, the electronic device mainly includes:

[0078] Memory 401, processor 402, bus 403, and a computer program stored in memory 401 and executable on processor 402, memory 401 and processor 402 are connected via bus 403. When processor 402 executes the computer program, the security function identification method in the aforementioned embodiment is implemented. The number of processors may be one or more.

[0079] The memory 401 may be a high-speed random access memory (RAM) memory, or a non-volatile memory, such as a disk memory. The memory 401 is used to store executable program codes, and the processor 402 is coupled to the memory 401 .

[0080] Furthermore, the present application also provides a computer-readable storage medium, which may be disposed in the electronic device in the above embodiments. Figure 4 Memory in the illustrated embodiment.

[0081] The computer readable storage medium stores a computer program, and when the program is executed by the processor, the security function identification method in the aforementioned embodiment is implemented. Furthermore, the computer storable medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a RAM, a magnetic disk or an optical disk, and other media that can store program codes.

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

[0083] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0084] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0085] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a readable storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned readable storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0086] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

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

[0088] The above is a description of the security function identification method, device and computer-readable storage medium provided in the present application. For technicians in this field, according to the ideas of the embodiments of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A security function identification method, comprising: Obtain relevant data information of the dangerous data identification function, and store the relevant data information in a data set; wherein the safety function is a function for identifying or processing dangerous data, and the safety function includes a plurality of dangerous data identification functions; the dangerous data identification function includes a character search function and a character replacement function; the relevant data information includes the name of the calling function to be identified as the safety function and the input parameter data corresponding to the dangerous data identification function; Identify the relevant data information in the data set according to a security function learning algorithm; According to the detection model corresponding to the safety function learning algorithm, the input parameter data corresponding to the dangerous data identification function is detected; The function type of the calling function corresponding to the calling function name is determined according to the detection result; wherein the function type includes a safe function and a suspicious function.

2. The security function identification method according to claim 1, characterized in that: The step of storing the relevant data information in a data set comprises: The calling function name is used as a key, and the input parameter data corresponding to the dangerous data identification function is used as a value, and they are associated and stored in the data set.

3. The security function identification method according to claim 1, characterized in that: The step of detecting the input parameter data corresponding to the dangerous data identification function according to the detection model corresponding to the safety function learning algorithm includes: Comparing the input parameter data corresponding to the dangerous data identification function with the input parameter data set corresponding to the preset safety function set; When the input parameter data corresponding to the dangerous data identification function exists in the input parameter data set, determining that the input parameter data in the input parameter data set where the dangerous data identification function exists is dangerous data; When the input parameter data corresponding to the dangerous data identification function does not exist in the input parameter data set, it is determined that the input parameter data for which the dangerous data identification function does not exist in the input parameter data set is suspicious data.

4. The security function identification method according to claim 3, characterized in that: After the step of comparing the input parameter data corresponding to the dangerous data identification function with the input parameter data set of the preset safety function, the method further includes: When it is determined that the input data in the input data set where the dangerous data identification function exists is dangerous data, identifying a trusted label and a corresponding security function feature for the dangerous data; When it is determined that the input data in which the dangerous data identification function does not exist in the input data set is suspicious data, a suspicious label is marked for the suspicious data.

5. The security function identification method according to claim 4, characterized in that: The step of determining the function type of the calling function corresponding to the calling function name according to the detection result comprises: When the number of occurrences of the suspicious tag in the calling function is greater than a preset threshold, determining that the calling function is a suspicious function; When the number of occurrences of the suspicious tag in the calling function is less than a preset threshold, the calling function is determined to be a safe function.

6. The security function identification method according to claim 5, characterized in that: After the step of determining that the calling function is a safe function, the method further includes: Obtaining the number of occurrences of the security function features of different types; Determining a function characteristic of the calling function according to the security function characteristic; When the number of occurrences of the security function feature of the target type is greater than a preset first number threshold, determining that the function feature of the calling function is the security function feature of the target type; Or, when the number of occurrences of the security function feature of the target type is less than the first number threshold and greater than a preset second number threshold, and the number of occurrences of the security function feature of other types is less than the second number threshold, the function feature is determined to be the security function feature of the target type.

7. The security function identification method according to claim 5, characterized in that: After the step of determining the function type of the calling function corresponding to the calling function name according to the detection result, the method further includes: When the function type is the suspicious function, obtaining a manual verification result of the suspicious function; When the manual verification result indicates that the suspicious function is the safe function, updating the suspicious label to a trusted label; After the updated security function is learned by the security function learning algorithm, the updated security function is added to the security function set.

8. A safety function detection device, comprising: A storage module, used to obtain relevant data information of a dangerous data identification function, and store the relevant data information in a data set; wherein a safe function is a function for identifying or processing dangerous data, and the safe function includes a plurality of dangerous data identification functions; the dangerous data identification function includes a character search function and a character replacement function; the relevant data information includes a calling function name to be identified as a safe function and input parameter data corresponding to the dangerous data identification function; An identification module, configured to identify the relevant data information in the data set according to a security function learning algorithm; A detection module, used to detect the input parameter data corresponding to the dangerous data identification function according to the detection model corresponding to the safety function learning algorithm; A determination module is used to determine the function type of the calling function corresponding to the calling function name according to the detection result; wherein the function type includes a safe function and a suspicious function.

9. An electronic device comprising: A memory, a processor and a bus, wherein the bus is used to realize connection and communication between the memory and the processor; the processor is used to execute a computer program stored in the memory, and when the processor executes the computer program, the steps in the method described in any one of claims 1 to 7 are implemented.

10. 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 in the method according to any one of claims 1 to 7 are implemented.