Cross-process vulnerability analysis method and device based on code vaccine IAST probe

By installing probes in the program under test, establishing a request call link table and performing vulnerability detection, it solves the problem that traditional IAST tools are difficult to track vulnerability links across processes, and achieves efficient vulnerability analysis.

CN117951709BActive Publication Date: 2024-09-03BEIJING ANPRO INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311659859.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-05
Publication Date
2024-09-03
Estimated Expiration
2043-12-05

AI Technical Summary

Technical Problem

It is difficult for traditional IAST tools to track vulnerability links between multiple services across processes during the request-response processing process, and cannot perform vulnerability analysis efficiently.

Method used

By installing probes in the program under test, monitoring request call service events, establishing a request call link table, intercepting the taint information of the called service nodes, performing vulnerability detection, and combining vulnerability data and cross-process data to trace the initial request information.

Benefits of technology

It realizes cross-process tracking of vulnerability links during multi-service collaborative processing, improving vulnerability analysis efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117951709B
    Figure CN117951709B
Patent Text Reader

Abstract

The embodiment of the present invention provides a cross-process vulnerability analysis method and device based on a code vaccine IAST probe, which relates to the field of network security technology. The method includes: installing a probe in the program under test, and pre-inserting the probe; when a request to call a service event is monitored, a request call link table is established, and the taint information of each called service node is intercepted; vulnerability detection is performed according to the taint information of each called service node, and the called service node with a vulnerability is used as the target service node; the upstream service node of the target service node is determined according to the request call link table, and the call information of the upstream service node is used as the cross-process vulnerability data of the target service node; the initial request information of the request is traced back in combination with the vulnerability data and cross-process vulnerability data of the target service node. The embodiment of the present invention can track vulnerability links across processes during multi-service collaborative processing and improve the efficiency of vulnerability analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security technology, and in particular to a cross-process vulnerability analysis method and device based on code vaccine IAST probe. Background Art

[0002] As the number of applications continues to increase and their functions continue to enrich, the requests obtained by application servers such as browsers from any application may be called and circulated among multiple services. The calling relationship between each service is usually more complicated, and it is necessary to wait for each service to collaboratively process the request before returning a response.

[0003] Code vaccine technology injects code security capabilities into the application server like a vaccine, clearly sees the parsed traffic inside, perceives the context of the application running process, and can diagnose the location of vulnerabilities and causes of defects in the application itself while the application is running, realize autonomous detection and response, and actively defend against external dangers. Among them, code vaccine technology includes IAST (Interactive Application Security Testing) technology.

[0004] However, when a vulnerability is detected in at least one node during the request-response processing, traditional IAST tools can only track the taint propagation path of the node based on a single service. They cannot determine the calling relationship between multiple services across processes to fully track the vulnerability link, making it difficult to trace the request that caused the vulnerability, making it impossible to perform vulnerability analysis efficiently. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a cross-process vulnerability analysis method and device based on the code vaccine IAST probe, so as to achieve the technical effect of cross-process tracing of vulnerability links in the process of multi-service collaborative processing and improve the efficiency of vulnerability analysis.

[0006] In a first aspect, an embodiment of the present invention provides a cross-process vulnerability analysis method based on a code vaccine IAST probe, comprising:

[0007] Installing a probe in the program under test and pre-inserting the program through the probe;

[0008] When a request to call a service event is monitored, a request call link table is established and the taint information of each called service node is intercepted;

[0009] Perform vulnerability detection according to the taint information of each of the called service nodes, and use the called service nodes with vulnerabilities as target service nodes;

[0010] Determining an upstream service node of the target service node according to the request call link table, and using call information of the upstream service node as cross-process vulnerability data of the target service node;

[0011] Combine the vulnerability data and cross-process vulnerability data of the target service node to trace back the initial request information of the request.

[0012] In the above implementation process, when a request call service event is monitored, a request call link table is established. Based on the request call link table, the vulnerability data of the called service node with a vulnerability is associated with the call information of its upstream service node, and the initial request information of the request is traced back. This makes it possible to track the vulnerability link across processes during the collaborative processing of multiple services, thereby improving the efficiency of vulnerability analysis.

[0013] Further, the pre-insertion by the probe specifically includes:

[0014] Pre-inserting the span call service trigger function in the program under test by the probe to monitor the request call service event;

[0015] The taint source function, taint propagation function and taint aggregation function in each of the called service nodes are pre-inserted by the probe to intercept the taint information of each of the called service nodes.

[0016] In the above implementation process, by using the probes in the program under test to pre-insert the span call service trigger function in the program under test, as well as the taint source function, taint propagation function and taint aggregation function in each called service node, it is possible to ensure real-time monitoring of request call service events and interception of taint information of each called service node during the running of the program under test.

[0017] Furthermore, the establishment of the request call link table specifically includes:

[0018] According to the calling relationship between the request and the called service nodes, acquiring the calling link information of the request in each of the called service nodes;

[0019] The request call link table is established by combining the call link information of the request at each of the called service nodes.

[0020] In the above implementation process, by obtaining the call link information of the request in each called service node according to the call relationship between the requests in each called service node to establish the request call link table, it can be ensured that the request call link table is established completely and accurately.

[0021] Further, acquiring the call link information of the request in each of the called service nodes according to the call relationship between the request and each of the called service nodes specifically includes:

[0022] Assigning a globally unique tracking identifier to the request;

[0023] When the request calls the first called service node, the first called service node is used as the current called service node, so that the current called service node allocates a unique span identification code to the request, and combines the tracking identification code of the request and the span identification code of the request at the current called service node to generate the call link information of the request at the current called service node;

[0024] When the request calls the next called service node, the current called service node is updated to the next called service node, so that the current called service node allocates a unique span identification code to the request, and combines the tracking identification code of the request, the span identification code of the request at the current called service node, and the span identification code of the request at the previous called service node to generate the call link information of the request at the current called service node;

[0025] When the request finishes calling all the called service nodes, the calling link information of the request in each of the called service nodes is obtained.

[0026] In the above implementation process, by obtaining the call link information of the request in each called service node in sequence according to the calling order of the request between each called service node, it is possible to ensure that the call link information of the request between each called service node is obtained completely and accurately.

[0027] Further, the combining the tracking identification code of the request, the span identification code of the request at the currently called service node and the span identification code of the request at the last called service node to generate the call link information of the request at the currently called service node specifically includes:

[0028] Using the span identification code of the request at the last called service node as the parent span identification code of the request at the current called service node;

[0029] The call link information of the request at the currently called service node is generated by combining the tracking identification code of the request, the span identification code of the request at the currently called service node and the parent span identification code of the request at the currently called service node.

[0030] In the above implementation process, by using the span identification code of the request at the last called service node as the parent span identification code of the request at the current called service node, the call link information of the request at the current called service node is generated, so that the called service node of the current call is linked to the called service node of the last call, and the entire request call link is connected in series, which can further ensure that the request call link table is established completely and accurately.

[0031] Further, when the request calls the next called service node, the current called service node is updated to the next called service node, so that the current called service node allocates a unique span identification code to the request, and combines the tracking identification code of the request, the span identification code of the request at the current called service node, and the span identification code of the request at the previous called service node to generate the call link information of the request at the current called service node, and further includes:

[0032] When the request calls the next called service node, the call link information of the request at the previous called service node is added to the request packet of the request.

[0033] In the above implementation process, when requesting to call the next called service node, the call link information of the request at the previous called service node is added to the request packet of the request and passed to the next called service node, so that the next called service node can quickly obtain the tracking identification code of the request and the span identification code of the request at the previous called service node to generate the call link information, thereby improving the efficiency of establishing the request call link table.

[0034] Further, the tracking identification code of the request is generated in combination with the IP address of the application server, the generation time of the tracking identification code, and the current process number;

[0035] The span identification code of the request at the currently called service node is generated by combining the node number of the request sending and receiving node, the node number of the currently called service node, and the node numbers of all the called service nodes upstream of the currently called service node.

[0036] In the above implementation process, the tracking identification code of the request is generated by combining the IP address of the application server, the generation time of the tracking identification code, and the current process number, and the node number of the request sending and receiving node, the node number of the current called service node, and the node numbers of all called service nodes upstream of the current called service node are combined to generate the span identification code of the request at the current called service node. This can effectively ensure that the tracking identification code of the request is globally unique, and that the span identification codes of the request at each called service node are unique under the same request.

[0037] Furthermore, the intercepting of the taint information of each called service node specifically includes:

[0038] For each of the called service nodes, function information of the taint source function, function information of the taint propagation function and function information of the taint aggregation function in the called service node are intercepted to obtain the taint information of the called service node.

[0039] In the above implementation process, by intercepting the function information of the taint source function, the function information of the taint propagation function and the function information of the taint aggregation function in the called service node as the taint information of the called service node, it can be ensured that the taint information of the called service node is completely obtained.

[0040] Further, the performing vulnerability detection according to the taint information of each of the called service nodes and taking the called service nodes with vulnerabilities as target service nodes specifically includes:

[0041] For each of the called service nodes, storing the hash value of the parameter of the taint source function in the called service node in the taint pool of the called service node;

[0042] Continue to determine whether there is a hash value of the parameter of the taint propagation function in the called service node in the taint pool of the called service node;

[0043] If yes, the hash value of the return value of the taint propagation function in the called service node is stored in the taint pool of the called service node;

[0044] Continue to determine whether there is a hash value of the parameter of the taint aggregation function in the called service node in the taint pool of the called service node;

[0045] If yes, it is determined that the called service node has a vulnerability, and the called service node is used as the target service node.

[0046] In the above implementation process, by performing vulnerability detection on the called service node based on the taint pool of the called service node, the efficiency of vulnerability detection can be improved.

[0047] Furthermore, the performing vulnerability detection according to the taint information of each of the called service nodes and taking the called service nodes with vulnerabilities as target service nodes also includes:

[0048] The vulnerability data of the target service node is obtained by combining the parameters and return value of the taint source function, the parameters and return value of the taint propagation function, and the parameters and return value of the taint aggregation function in the target service node.

[0049] In the above implementation process, by combining the parameters and return value of the taint source function in the target service node, the parameters and return value of the taint propagation function, and the parameters and return value of the taint aggregation function, the vulnerability data of the target service node is obtained, which can fully record the key value information in the taint propagation process and provide reliable data for subsequent cross-process vulnerability analysis.

[0050] Further, determining the upstream service node of the target service node according to the request call link table, and using the call information of the upstream service node as the cross-process vulnerability data of the target service node specifically includes:

[0051] Extracting the call link information of the request at the target service node from the request call link table;

[0052] Determine all upstream service nodes of the target service node according to the call link information of the request at the target service node;

[0053] The call information of all the upstream service nodes is used as the cross-process vulnerability data of the target service node.

[0054] In the above implementation process, by requesting the call link information of the target service node in the request call link table, all upstream service nodes of the target service node are determined, and the call information of all upstream service nodes is used as the cross-process vulnerability data of the target service node. This can quickly and accurately locate all upstream service nodes of the target service node and obtain the cross-process vulnerability data of the target service node.

[0055] Furthermore, the initial request information of the tracing request is specifically traced back to the vulnerability data and cross-process vulnerability data of the target service node, including:

[0056] Combining the vulnerability data and cross-process vulnerability data of the target service node, tracing back to the initial service node;

[0057] The initial request information of the request is obtained according to the calling information of the initial service node.

[0058] In the above implementation process, by combining the vulnerability data of the target service node and the cross-process vulnerability data, tracing the initial service node, and obtaining the initial request information of the request, it is possible to associate the taint propagation paths between and within each service during the collaborative processing of multiple services to track the vulnerability link across processes and accurately trace the request that caused the vulnerability.

[0059] In a second aspect, an embodiment of the present invention provides a cross-process vulnerability analysis device based on a code vaccine IAST probe, comprising:

[0060] A probe pre-insertion module is used to install a probe in the program under test and perform pre-insertion through the probe;

[0061] A monitoring processing module is used to establish a request call link table and intercept the taint information of each called service node when monitoring a request call service event;

[0062] A vulnerability detection module, used to perform vulnerability detection according to the taint information of each of the called service nodes, and take the called service nodes with vulnerabilities as target service nodes;

[0063] A data integration module, used to determine the upstream service node of the target service node according to the request call link table, and use the call information of the upstream service node as the cross-process vulnerability data of the target service node;

[0064] The vulnerability analysis module is used to combine the vulnerability data of the target service node and the cross-process vulnerability data to trace back the initial request information of the request.

[0065] In the third aspect, an embodiment of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor; the memory is coupled to the processor, and when the processor executes the computer program, the cross-process vulnerability analysis method based on the code vaccine IAST probe as described above is implemented.

[0066] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the cross-process vulnerability analysis method based on the code vaccine IAST probe as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments of the present invention are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0068] Figure 1 A schematic diagram of a cross-process vulnerability analysis method based on a code vaccine IAST probe provided in the first embodiment of the present invention;

[0069] Figure 2 A schematic diagram of a request call link according to an example of an optional embodiment of the first embodiment of the present invention;

[0070] Figure 3 A schematic diagram of a taint pool of a called service node according to an example of an optional embodiment of the first embodiment of the present invention;

[0071] Figure 4 A schematic diagram of the structure of a cross-process vulnerability analysis device based on a code vaccine IAST probe provided in the second embodiment of the present invention;

[0072] Figure 5 A schematic structural diagram of an electronic device provided in the third embodiment of the present invention. DETAILED DESCRIPTION

[0073] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0074] It should be noted that in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance. At the same time, the step numbers in the text are only for the convenience of explaining the embodiments of the present invention and do not serve to limit the order of execution of the steps. The method provided in the embodiments of the present invention can be executed by the relevant terminal device, and the following description will be taken as an example of the server as the execution subject.

[0075] Please see Figure 1 , Figure 1 A schematic diagram of a cross-process vulnerability analysis method based on a code vaccine IAST probe provided in the first embodiment of the present invention. The first embodiment of the present invention provides a cross-process vulnerability analysis method based on a code vaccine IAST probe, comprising steps S101 to S105:

[0076] S101, installing a probe in the program under test, and pre-inserting the program through the probe;

[0077] S102, when a request to call a service event is monitored, a request to call link table is established, and the taint information of each called service node is intercepted;

[0078] S103, performing vulnerability detection according to the taint information of each called service node, and taking the called service node with vulnerability as the target service node;

[0079] S104, determining the upstream service node of the target service node according to the request call link table, and using the call information of the upstream service node as the cross-process vulnerability data of the target service node;

[0080] S105: Combine the vulnerability data and cross-process vulnerability data of the target service node to trace back the initial request information of the request.

[0081] As an example, according to actual detection needs, before the program under test is run, a probe is installed in the program under test, and at least one bytecode is pre-inserted by the probe to monitor functions related to triggering span call services, functions related to taint analysis in each service node under the service architecture, and other functions.

[0082] Instrumentation refers to the method of inserting bytecode, that is, detecting logic code, through probes in the program under test on the basis of ensuring the original logical integrity of the program under test, so that the detection logic code can be executed in the subsequent running process of the program under test to capture the program running data, analyze the program running data to obtain the control flow and data flow of the program under test, and then obtain dynamic information such as logic coverage, thereby achieving the detection purpose.

[0083] In practical applications, for the tested program written in Java (an object-oriented programming language), from source code to bytecode compilation and then to loading into JVM (Java Virtual Machine) at runtime, after compiling the bytecode, the bytecode of the class is modified to achieve bytecode enhancement. By not directly modifying the source code and inserting bytecode that does not affect the logic of the source code, the monitoring logic of the stub is implemented, thus ensuring the logical integrity of the source code.

[0084] During the running of the program under test, the bytecode pre-inserted for the function related to the trigger span call service is used to monitor the request call service event in real time, and the bytecode pre-inserted for the function related to the taint analysis in each service node is used to intercept the taint information of each service node in real time.

[0085] When a request to call a service event is monitored, the service nodes of the request call, that is, the called service nodes, can be determined. The call and flow of the request between the called service nodes can also be determined. Based on the call and flow of the request between the called service nodes, a request call link table is established, and the taint information of each called service node is intercepted.

[0086] For each called service node, vulnerability detection is performed based on the taint information of the called service node to detect whether the called service node has a vulnerability. If it is detected that the called service node has a vulnerability, the called service node is used as the target service node to obtain the vulnerability data of the target service node.

[0087] According to the request call link table, all called service nodes upstream of the target service node, that is, all upstream service nodes, are determined, and the call information of all upstream service nodes is obtained, and the call information of all upstream service nodes is used as the cross-process vulnerability data of the target service node.

[0088] Combined with the vulnerability data and cross-process vulnerability data of the target service node, the initial request information of the request is traced back, so that the vulnerability existing in the target service node can be subsequently analyzed based on the initial request information of the request to see whether it can be exploited externally. Specifically, it can be determined whether the request is an external input request based on the initial request information of the request. If so, it is determined that the vulnerability existing in the target service node is a vulnerability caused by an external input request, which can be exploited externally and poses a network security threat. Otherwise, it is determined that the vulnerability existing in the target service node is not a vulnerability caused by an external input request, cannot be exploited externally, and poses no network security threat.

[0089] The embodiment of the present invention establishes a request call link table when monitoring a request call service event. Based on the request call link table, the vulnerability data of the called service node with a vulnerability is associated with the call information of its upstream service node, and the initial request information of the request is traced back. It can track the vulnerability link across processes during the collaborative processing of multiple services, thereby improving the efficiency of vulnerability analysis.

[0090] In an optional embodiment, the pre-insertion by the probe specifically includes: pre-inserting the span call service trigger function in the tested program by the probe to monitor the request call service event; pre-inserting the taint source function, taint propagation function and taint aggregation function in each called service node by the probe to intercept the taint information of each called service node.

[0091] As an example, according to actual detection needs, in order to monitor whether the request has a service call and whether the current service call can generate a downstream service call, it is necessary to set the insertion point at the span call service trigger function in the program under test, that is, the trigger span call service-related function. The function related to the trigger span call service is mainly set by the service architecture, usually the span call service trigger function of the request sending and receiving node under the service architecture. By pre-inserting the span call service trigger function in the program under test through the probe in the program under test, the request call service event can be monitored in real time during the running of the program under test.

[0092] For example, Apache Dubbo is a Java RPC (Remote Procedure Call) service development framework. In the Apache Dubbo service architecture, probes in the program under test can be used to pre-insert methods related to monitoring service calls, such as the org.apache.dubbo.monitor.support.MonitorFilter#invoke(org.apache.dubbo.rpc.Invoker,org.apache.dubbo.rpc.Invocation) method, and the pre-inserted bytecode can be used to intercept the call information, thereby monitoring the request call service event.

[0093] According to the actual detection requirements, in order to perform taint propagation analysis on each called service node, it is necessary to set the insertion point at the taint analysis related functions in each called service node. The taint analysis related functions in the called service node mainly include the taint source function, taint propagation function and taint aggregation function in the called service node. By pre-inserting the taint source function, taint propagation function and taint aggregation function in each called service node through the probe in the tested program, the taint information of each called service node can be intercepted in real time during the running of the tested program.

[0094] Among them, the tainted source function in the called service node is pre-inserted to monitor the incoming tainted source. The tainted source function in the called service node includes the entry method of Http (HyperText Transfer Protocol) request processing, the related methods of Request object to obtain external parameters, and the related methods of Response object to set the returned data, such as ServletRequest.getParameter().

[0095] Pre-insert the taint propagation function in the called service node and monitor the taint propagation. The taint propagation function includes the taint cleaning function. Pre-insert the taint cleaning function in the called service node and monitor the taint purification. The taint propagation function in the called service node includes string operations such as string concatenation, string interception, and string reversal, Java collection type operations, file IO (Input / Output) operations, network IO operations, and other Java IO operations, Base64 encryption and decryption, AES / DES encryption and decryption, RSA encryption and decryption, and other encryption and decryption methods, such as CommandExec.change().

[0096] Pre-insert the tainted aggregation function in the called service node to monitor whether the tainted function is passed in. The tainted aggregation functions in the called service node include SMTP operation methods, methods related to sending HTTP requests, methods related to XML decoding, methods related to executing system commands, methods related to executing LDAP queries, methods related to executing XPATH queries, methods related to file operations, methods related to JSON deserialization, etc., such as Runtime.getRuntime().exec().

[0097] The embodiment of the present invention uses probes in the program under test to pre-insert the span call service trigger function in the program under test, as well as the taint source function, taint propagation function and taint aggregation function in each called service node, thereby ensuring real-time monitoring of request call service events and interception of taint information of each called service node during the running of the program under test.

[0098] In an optional embodiment, the establishment of the request call link table specifically includes: obtaining the call link information of the request at each called service node based on the call relationship between the requests at each called service node; and establishing the request call link table in combination with the call link information of the request at each called service node.

[0099] As an example, when a request to call a service event is monitored, each service node of the request call, that is, each called service node, can be determined, and the call and flow of the request between each called service node can also be determined, and then the call relationship between the request and each called service node can be determined. According to the call relationship between the request and each called service node, the call link information of the request in each called service node is obtained, and combined with the call link information of the request in each called service node, a request call link table is established.

[0100] The embodiment of the present invention obtains the call link information of the request at each called service node according to the call relationship between the requests at each called service node to establish a request call link table, thereby ensuring that the request call link table is established completely and accurately.

[0101] In an optional embodiment, the method of obtaining the call link information of the request at each called service node based on the call relationship between each called service node specifically includes: assigning a globally unique tracking identification code to the request; when the request calls the first called service node, taking the first called service node as the current called service node, so that the current called service node assigns a unique span identification code to the request, and combining the tracking identification code of the request and the span identification code of the request at the current called service node to generate the call link information of the request at the current called service node; when the request calls the next called service node, updating the current called service node to the next called service node, so that the current called service node assigns a unique span identification code to the request, and combining the tracking identification code of the request, the span identification code of the request at the current called service node and the span identification code of the request at the previous called service node to generate the call link information of the request at the current called service node; when the request ends calling all called service nodes, obtaining the call link information of the request at each called service node.

[0102] As an exemplary embodiment, when a request to call a service event is monitored, a globally unique tracking identification code is assigned to the request.

[0103] When the request calls the first called service node, the first called service node is used as the current called service node, so that the current called service node assigns a unique span identification code to the request. Among them, the current called service node can only ensure that the span identification code assigned to the request for this service call is unique under the same request. Combine the tracking identification code of the request and the span identification code of the request at the current called service node to generate the call link information of the request at the current called service node, such as (tracking identification code of the request, span identification code of the request at the current called service node).

[0104] When the request continues to call the second called service node, the current called service node is updated to the second called service node, and the first called service node becomes the last called service node, so that the current called service node assigns a unique span identification code to the request. Combined with the tracking identification code of the request, the span identification code of the request at the current called service node, and the span identification code of the request at the last called service node, the call link information of the request at the current called service node is generated, such as (the tracking identification code of the request, the span identification code of the request at the current called service node, and the span identification code of the request at the last called service node).

[0105] Similarly, when the request continues to call the next called service node, the current called service node is updated to the next called service node, and the called service node that the request last called becomes the last called service node, so that the current called service node assigns a unique span identification code to the request. Combined with the tracking identification code of the request, the span identification code of the request at the current called service node, and the span identification code of the request at the last called service node, the call link information of the request at the current called service node is generated, such as (the tracking identification code of the request, the span identification code of the request at the current called service node, and the span identification code of the request at the last called service node).

[0106] When the request ends calling all called service nodes, the call link information of the request in each called service node is sorted out.

[0107] The embodiment of the present invention can ensure that the call link information of the request between each called service node is completely and accurately obtained by sequentially obtaining the call link information of the request between each called service node according to the calling order of the request between each called service node.

[0108] In an optional embodiment, the tracking identification code of the request, the span identification code of the request at the currently called service node and the span identification code of the request at the previously called service node are combined to generate the call link information of the request at the currently called service node, specifically including: taking the span identification code of the request at the previously called service node as the parent span identification code of the request at the currently called service node; combining the tracking identification code of the request, the span identification code of the request at the currently called service node and the parent span identification code of the request at the currently called service node to generate the call link information of the request at the currently called service node.

[0109] As an example, when requesting to call the next called service node, the current called service node is updated to the next called service node, and the called service node that was last called by the request becomes the last called service node, and the span identification code of the request at the last called service node is obtained, and the span identification code of the request at the last called service node is used as the parent span identification code of the request at the current called service node, and at the same time, the current called service node is assigned a unique span identification code for the request. Combined with the tracking identification code of the request, the span identification code of the request at the current called service node, and the parent span identification code of the request at the current called service node, the call link information of the request at the current called service node is generated, such as (the tracking identification code of the request, the span identification code of the request at the current called service node, and the parent span identification code of the request at the current called service node).

[0110] For example, request call link such as Figure 2 As shown, in Figure 2 In the traceId, traceId represents the trace identification code of the request, and spanId represents the span identification code of the request in each called service node. In the entire request call chain, traceId remains unchanged, and the request will always carry traceId to all downstream called service nodes. When the request reaches each called service node, each called service node will also generate spanId to generate its own internal call view, and pass it to all downstream called service nodes together with traceId, and the spanId passed from the previous called service node along with the request will be recorded as parent-spanId.

[0111] The embodiment of the present invention generates the call link information of the request at the current called service node by using the span identification code of the request at the last called service node as the parent span identification code of the request at the current called service node, so that the called service node of the request for this call is linked with the called service node of the request for the last call, and the entire request call link is connected in series, which can further ensure the complete and accurate establishment of the request call link table.

[0112] In an optional embodiment, when the request calls the next called service node, the current called service node is updated to the next called service node, so that the current called service node assigns a unique span identification code to the request, and combines the tracking identification code of the request, the span identification code of the request at the current called service node, and the span identification code of the request at the previous called service node to generate the call link information of the request at the current called service node, and also includes: when the request calls the next called service node, the call link information of the request at the previous called service node is added to the request packet of the request.

[0113] As an example, when requesting to call the next called service node, the current called service node is updated to the next called service node, and the called service node that was called last time becomes the last called service node, and the call link information of the request at the last called service node is obtained, and the call link information of the request at the last called service node is added to the request packet of the request and passed to the current called service node. The call link information of the request at the last called service node can be added to the HTTP request header of the request or the metadata of the RPC call.

[0114] When the currently called service node obtains the request packet of the request, it can directly extract the tracking identification code of the request and the span identification code of the request at the last called service node from the request packet of the request, and assign a unique span identification code to the request.

[0115] Combined with the tracking identification code of the request, the span identification code of the request at the currently called service node, the span identification code of the request at the previously called service node / the parent span identification code of the request at the currently called service node, the call link information of the request at the currently called service node is generated, such as (the tracking identification code of the request, the span identification code of the request at the currently called service node, the span identification code of the request at the previously called service node / the parent span identification code of the request at the currently called service node).

[0116] The embodiment of the present invention adds the call link information of the request at the previous called service node to the request packet of the request and passes it to the next called service node when requesting to call the next called service node, so that the next called service node can quickly obtain the tracking identification code of the request and the span identification code of the request at the previous called service node to generate the call link information, thereby improving the efficiency of establishing the request call link table.

[0117] In an optional embodiment, the tracking identification code of the request is generated in combination with the IP address of the application server, the generation time of the tracking identification code, and the current process number; the span identification code of the request at the currently called service node is generated in combination with the node number of the request sending and receiving node, the node number of the currently called service node, and the node numbers of all called service nodes upstream of the currently called service node.

[0118] As an example, according to actual detection needs, the requested tracking identification code can be generated in combination with the IP address of the application server, the generation time of the tracking identification code, and the current process number. The requested tracking identification code can also be generated in combination with the IP address of the application server, the generation time of the tracking identification code, a pre-set auto-increment sequence, and the current process number.

[0119] For example, the requested tracking identification code is "0ad1348f1403169275002100356696", where "0ad1348f" is the hexadecimal IP address of the application server, and each two digits represent a segment of the decimal IP address of the application server, which is converted into the common decimal IP address "10.209.52.143"; "1403169275002" is the generation time of the tracking identification code; "1003" is the auto-increment sequence value, assuming that the preset auto-increment sequence is [1000, 9000], which increases from 1000 to 9000, and then increases from 1000 to 9000 again after reaching 9000; "56696" is the current process number. Adding the current process number can prevent the conflict of tracking identification codes among multiple processes on a single machine.

[0120] According to actual detection needs, the request sending and receiving nodes and each called service node can be numbered in the process of requesting to call all called service nodes. The span identification code of the request at the current called service node is generated by combining the node number of the request sending and receiving node, the node number of the current called service node, and the node numbers of all called service nodes upstream of the current called service node.

[0121] For example, suppose that system A receives a request for the first time. System A is the request sending and receiving node, and its node number is 0, representing the root node of the entire request call; system A needs to call system B, system C, and system D to process the request. System B, system C, and system D are all called service nodes of the first-level call. The node numbers of system B, system C, and system D are 1, 2, and 3 respectively. Then the span identification codes of the request in system B, system C, and system D are 0.1, 0.2, and 0.3 respectively; system C needs to call system E and system F to process the request. System E and system F are all called service nodes of the second-level call. The node numbers of system E and system F are 1 and 2 respectively. Then the span identification codes of the request in system E and system F are 0.2.1 and 0.2.2 respectively. Collect the span identification codes of the request in each called service node in the calling order, and you can form a complete link tree to establish a request call link table.

[0122] The embodiment of the present invention generates the tracking identification code of the request by combining the IP address of the application server, the generation time of the tracking identification code, and the current process number, and generates the span identification code of the request at the current called service node by combining the node number of the request sending and receiving node, the node number of the current called service node, and the node numbers of all called service nodes upstream of the current called service node. This can effectively ensure that the tracking identification code of the request is globally unique, and that the span identification codes of the request at each called service node are unique under the same request.

[0123] In an optional embodiment, the intercepting of the taint information of each called service node specifically includes: for each called service node, intercepting the function information of the taint source function, the function information of the taint propagation function and the function information of the taint aggregation function in the called service node to obtain the taint information of the called service node.

[0124] As an example, for each called service node, the bytecode of the taint source function, taint propagation function, and taint aggregation function inserted by the probe in the tested program in the called service node is used to intercept the function information of the taint source function, the function information of the taint propagation function, and the function information of the taint aggregation function in the called service node to obtain the taint information of the called service node.

[0125] Among them, the function information of the taint source function includes the parameters and return value of the taint source function, the function information of the taint propagation function includes the parameters and return value of the taint propagation function, and the function information of the taint aggregation function includes the parameters and return value of the taint aggregation function.

[0126] The embodiment of the present invention can ensure complete acquisition of the taint information of the called service node by intercepting the function information of the taint source function, the function information of the taint propagation function and the function information of the taint aggregation function in the called service node as the taint information of the called service node.

[0127] In an optional embodiment, the vulnerability detection is performed according to the taint information of each called service node respectively, and the called service node with the vulnerability is used as the target service node, which specifically includes: for each called service node, the hash value of the parameters of the taint source function in the called service node is stored in the taint pool of the called service node; it is continuously determined whether there is the hash value of the parameters of the taint propagation function in the called service node in the taint pool of the called service node; if so, the hash value of the return value of the taint propagation function in the called service node is stored in the taint pool of the called service node; it is continuously determined whether there is the hash value of the parameters of the taint aggregation function in the called service node in the taint pool of the called service node; if so, it is determined that the called service node has a vulnerability, and the called service node is used as the target service node.

[0128] As an example, when a request is made to call any called service node, the called service node will establish a taint pool. For example, the taint pool of the called service node is as follows: Figure 3 shown.

[0129] The probe in the program under test is used to insert the bytecode at the taint source function in the called service node, and the taint source function in the called service node is monitored in real time. Once the parameters of the taint source function are obtained, it is considered that there are tainted parameters passed to the called service node and there is a taint source. The parameters of the taint source function are hashed, and the hash values ​​of the parameters of the taint source function are stored in the taint pool of the called service node to complete the taint source marking. The probe in the program under test is used to insert the bytecode at the taint propagation function in the called service node to monitor the taint propagation function in real time, obtain the parameters of the taint propagation function, and perform hash calculation on the obtained parameters of the taint propagation function. The taint pool of the called service node is queried to see whether the hash value of the parameters of the taint propagation function exists. If it exists, it is considered that the taint is propagated inside the called service node, and the return value of the taint propagation function is hashed, and the hash value of the return value of the taint propagation function is stored in the taint pool of the called service node to complete the taint propagation marking. Continue to use the probe in the tested program to insert the bytecode at the taint aggregation function in the called service node, monitor the taint aggregation function inside the called service node in real time, obtain the parameters of the taint aggregation function, perform hash calculation on the obtained parameters of the taint aggregation function, and query whether the hash value of the parameters of the taint aggregation function exists in the taint pool of the called service node. If so, it is determined that the called service node has a vulnerability, and the called service node is used as the target service node.

[0130] The embodiment of the present invention can improve the efficiency of vulnerability detection by performing vulnerability detection on the called service node based on the taint pool of the called service node.

[0131] In an optional embodiment, vulnerability detection is performed based on the taint information of each called service node, and the called service node with vulnerability is used as the target service node. It also includes: combining the parameters and return value of the taint source function in the target service node, the parameters and return value of the taint propagation function, and the parameters and return value of the taint aggregation function to obtain the vulnerability data of the target service node.

[0132] As an example, after taking the called service node with a vulnerability as the target service node, the bytecode of the taint source function, taint propagation function, and taint aggregation function inserted by the probe in the tested program in the target service node is used to intercept the function information of the taint source function, the function information of the taint propagation function, and the function information of the taint aggregation function in the target service node, extract the parameters and return value of the taint source function from the function information of the taint source function, extract the parameters and return value of the taint propagation function from the function information of the taint propagation function, extract the parameters and return value of the taint aggregation function from the function information of the taint aggregation function, integrate the parameters and return value of the taint source function, the parameters and return value of the taint propagation function, and the parameters and return value of the taint aggregation function, and obtain the vulnerability data of the target service node.

[0133] For example, Apache Dubbo is an easy-to-use, high-performance WEB (World Wide Web, network / Internet) and RPC framework. When a vulnerability is detected in the called service node Apache Dubbo Provider, context information is obtained from the taint pool of the called service node ApacheDubbo Provider (tracing the taint propagation function from the taint aggregation function to the taint source function), and the taint source is determined to be the table_prefix field in the DubboRequest request object, and its parameter value is "order".

[0134] The embodiment of the present invention obtains the vulnerability data of the target service node by combining the parameters and return value of the taint source function, the parameters and return value of the taint propagation function, and the parameters and return value of the taint aggregation function in the target service node. It can fully record the key value information in the taint propagation process and provide reliable data for subsequent cross-process vulnerability analysis.

[0135] In an optional embodiment, the upstream service node of the target service node is determined according to the request call link table, and the call information of the upstream service node is used as the cross-process vulnerability data of the target service node, specifically including: extracting the call link information of the request at the target service node from the request call link table; determining all upstream service nodes of the target service node according to the call link information of the request at the target service node; and using the call information of all upstream service nodes as the cross-process vulnerability data of the target service node.

[0136] As an example, when the called service node with a vulnerability is used as the target service node, the call link information of the request at the target service node is extracted from the request call link table, such as (the tracking identification code of the request, the span identification code of the request at the target service node, and the parent span identification code of the request at the target service node).

[0137] The parent span identification code of the request at the target service node is extracted from the call link information of the request at the target service node, and the previous called service node of the target service node is determined according to the parent span identification code of the request at the target service node, and then the call link information of the previous called service node of the request at the target service node is extracted from the request call link table, such as (the tracking identification code of the request, the span identification code of the previous called service node of the request at the target service node, and the parent span identification code of the previous called service node of the request at the target service node).

[0138] By analogy, all called service nodes upstream of the target service node, ie, all upstream service nodes, are determined according to the call link information of the request at the target service node.

[0139] Get the call information of all upstream service nodes, and use the call information of all upstream service nodes as the cross-process vulnerability data of the target service node. Among them, the call information of the upstream service node includes the request packet of the request received by the upstream service node, and the application information of the upstream service node. The request packet of the request received by the upstream service node includes the call link information of the request at the upstream service node and the request information of the request. The application information of the upstream service node includes the name of the program under test, the name of the service framework, the IP address of the caller service, the name of the service node called this time, the start time of the call, the end time of the call, the cumulative time consumed by the call, and whether the call generates exceptions, errors and other detailed information.

[0140] The embodiment of the present invention determines all upstream service nodes of the target service node by requesting the call link information of the target service node in the request call link table, and uses the call information of all upstream service nodes as the cross-process vulnerability data of the target service node. It can quickly and accurately locate all upstream service nodes of the target service node and obtain the cross-process vulnerability data of the target service node.

[0141] In an optional embodiment, the initial request information of the request is traced back by combining the vulnerability data and cross-process vulnerability data of the target service node, specifically including: tracing back the initial service node by combining the vulnerability data and cross-process vulnerability data of the target service node; and obtaining the initial request information of the request based on the call information of the initial service node.

[0142] As an example, in combination with the vulnerability data and cross-process vulnerability data of the target service node, the taint key-value information such as the parameters and return value of the taint source function of the target service node, the parameters and return value of the taint propagation function, the parameters and return value of the taint aggregation function, and the call information of all its upstream service nodes can be obtained to determine the propagation path of the taint between and within each called service node, thereby tracing back to the first called service node, i.e., the initial service node, and obtaining the initial request information of the request based on the call information of the initial service node.

[0143] The embodiment of the present invention combines the vulnerability data of the target service node and the cross-process vulnerability data to trace the initial service node to obtain the initial request information. It can associate the taint propagation paths between and within each service during the collaborative processing of multiple services to track the vulnerability link across processes and accurately trace the request that caused the vulnerability.

[0144] Please see Figure 4 , Figure 4 A schematic diagram of the structure of a cross-process vulnerability analysis device based on a code vaccine IAST probe provided for the second embodiment of the present invention. The second embodiment of the present invention provides a cross-process vulnerability analysis device based on a code vaccine IAST probe, including: a probe pre-insertion module 201, which is used to install the probe in the program under test and pre-insert the probe; a monitoring processing module 202, which is used to establish a request call link table when monitoring a request call service event, and intercept the taint information of each called service node; a vulnerability detection module 203, which is used to perform vulnerability detection according to the taint information of each called service node, and use the called service node with vulnerabilities as the target service node; a data integration module 204, which is used to determine the upstream service node of the target service node according to the request call link table, and use the call information of the upstream service node as the cross-process vulnerability data of the target service node; a vulnerability analysis module 205, which is used to combine the vulnerability data of the target service node and the cross-process vulnerability data to trace the initial request information of the request.

[0145] In an optional embodiment, the pre-insertion by the probe specifically includes: pre-inserting the span call service trigger function in the tested program by the probe to monitor the request call service event; pre-inserting the taint source function, taint propagation function and taint aggregation function in each called service node by the probe to intercept the taint information of each called service node.

[0146] In an optional embodiment, the establishment of the request call link table specifically includes: obtaining the call link information of the request at each called service node based on the call relationship between the requests at each called service node; and establishing the request call link table in combination with the call link information of the request at each called service node.

[0147] In an optional embodiment, the method of obtaining the call link information of the request at each called service node based on the call relationship between each called service node specifically includes: assigning a globally unique tracking identification code to the request; when the request calls the first called service node, taking the first called service node as the current called service node, so that the current called service node assigns a unique span identification code to the request, and combining the tracking identification code of the request and the span identification code of the request at the current called service node to generate the call link information of the request at the current called service node; when the request calls the next called service node, updating the current called service node to the next called service node, so that the current called service node assigns a unique span identification code to the request, and combining the tracking identification code of the request, the span identification code of the request at the current called service node and the span identification code of the request at the previous called service node to generate the call link information of the request at the current called service node; when the request ends calling all called service nodes, obtaining the call link information of the request at each called service node.

[0148] In an optional embodiment, the tracking identification code of the request, the span identification code of the request at the currently called service node and the span identification code of the request at the previously called service node are combined to generate the call link information of the request at the currently called service node, specifically including: taking the span identification code of the request at the previously called service node as the parent span identification code of the request at the currently called service node; combining the tracking identification code of the request, the span identification code of the request at the currently called service node and the parent span identification code of the request at the currently called service node to generate the call link information of the request at the currently called service node.

[0149] In an optional embodiment, when the request calls the next called service node, the current called service node is updated to the next called service node, so that the current called service node assigns a unique span identification code to the request, and combines the tracking identification code of the request, the span identification code of the request at the current called service node, and the span identification code of the request at the previous called service node to generate the call link information of the request at the current called service node, and also includes: when the request calls the next called service node, the call link information of the request at the previous called service node is added to the request packet of the request.

[0150] In an optional embodiment, the tracking identification code of the request is generated in combination with the IP address of the application server, the generation time of the tracking identification code, and the current process number; the span identification code of the request at the currently called service node is generated in combination with the node number of the request sending and receiving node, the node number of the currently called service node, and the node numbers of all called service nodes upstream of the currently called service node.

[0151] In an optional embodiment, the intercepting of the taint information of each called service node specifically includes: for each called service node, intercepting the function information of the taint source function, the function information of the taint propagation function and the function information of the taint aggregation function in the called service node to obtain the taint information of the called service node.

[0152] In an optional embodiment, the vulnerability detection is performed according to the taint information of each called service node respectively, and the called service node with the vulnerability is used as the target service node, which specifically includes: for each called service node, the hash value of the parameters of the taint source function in the called service node is stored in the taint pool of the called service node; it is continuously determined whether there is the hash value of the parameters of the taint propagation function in the called service node in the taint pool of the called service node; if so, the hash value of the return value of the taint propagation function in the called service node is stored in the taint pool of the called service node; it is continuously determined whether there is the hash value of the parameters of the taint aggregation function in the called service node in the taint pool of the called service node; if so, it is determined that the called service node has a vulnerability, and the called service node is used as the target service node.

[0153] In an optional embodiment, vulnerability detection is performed based on the taint information of each called service node, and the called service node with vulnerability is used as the target service node. It also includes: combining the parameters and return value of the taint source function in the target service node, the parameters and return value of the taint propagation function, and the parameters and return value of the taint aggregation function to obtain the vulnerability data of the target service node.

[0154] In an optional embodiment, the upstream service node of the target service node is determined according to the request call link table, and the call information of the upstream service node is used as the cross-process vulnerability data of the target service node, specifically including: extracting the call link information of the request at the target service node from the request call link table; determining all upstream service nodes of the target service node according to the call link information of the request at the target service node; and using the call information of all upstream service nodes as the cross-process vulnerability data of the target service node.

[0155] In an optional embodiment, the initial request information of the request is traced back by combining the vulnerability data and cross-process vulnerability data of the target service node, specifically including: tracing back the initial service node by combining the vulnerability data and cross-process vulnerability data of the target service node; and obtaining the initial request information from the call information of the initial service node.

[0156] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

[0157] Please see Figure 5, Figure 5 A schematic diagram of the structure of an electronic device provided in the third embodiment of the present invention. The third embodiment of the present invention provides an electronic device 30, including a processor 301, a memory 302, and a computer program stored in the memory 302 and configured to be executed by the processor 301; the memory 302 is coupled to the processor 301, and when the processor 301 executes the computer program, the cross-process vulnerability analysis method based on the code vaccine IAST probe as described in the first embodiment of the present invention is implemented, and the same beneficial effects can be achieved.

[0158] Among them, when the processor 301 reads the computer program from the memory 302 through the bus 303 and executes the computer program, it can implement the method of any embodiment included in the cross-process vulnerability analysis method based on the code vaccine IAST probe as described in the first embodiment of the present invention.

[0159] Processor 301 can process digital signals and can include various computing structures, such as complex instruction set computer structure, reduced instruction set computer structure, or a structure that implements a combination of multiple instruction sets. In some examples, processor 301 can be a microprocessor.

[0160] The memory 302 can be used to store instructions executed by the processor 301 or data related to the execution of instructions. These instructions and / or data may include code to implement some or all functions of one or more modules described in the embodiments of the present invention. The processor 301 of the disclosed embodiment can be used to execute instructions in the memory 302 to implement the cross-process vulnerability analysis method based on the code vaccine IAST probe as described in the first embodiment of the present invention. The memory 302 includes a dynamic random access memory, a static random access memory, a flash memory, an optical memory, or other memory known to those skilled in the art.

[0161] The fourth embodiment of the present invention provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the cross-process vulnerability analysis method based on the code vaccine IAST probe as described in the first embodiment of the present invention, and can achieve the same beneficial effects.

[0162] In summary, the embodiment of the present invention provides a cross-process vulnerability analysis method and device based on the code vaccine IAST probe, the method comprising: installing a probe in the program under test, and pre-inserting the probe; when a request to call a service event is monitored, a request call link table is established, and the taint information of each called service node is intercepted; vulnerability detection is performed according to the taint information of each called service node, and the called service node with a vulnerability is used as the target service node; the upstream service node of the target service node is determined according to the request call link table, and the call information of the upstream service node is used as the cross-process vulnerability data of the target service node; the initial request information of the request is traced back in combination with the vulnerability data and the cross-process vulnerability data of the target service node. The embodiment of the present invention establishes a request call link table when a request to call a service event is monitored, and based on the request call link table, the vulnerability data of the called service node with a vulnerability is associated with the call information of its upstream service node, and the initial request information of the request is traced back, so that the vulnerability link can be tracked across processes in the process of multi-service collaborative processing, thereby improving the efficiency of vulnerability analysis.

[0163] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0164] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0165] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling 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 methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0166] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A cross-process vulnerability analysis method based on code vaccine IAST probe, characterized in that: include: Installing a probe in the program under test and pre-inserting the program through the probe; When a request to call a service event is monitored, a globally unique tracking identification code is assigned to the request; when the request calls the first called service node, the first called service node is used as the current called service node, so that the current called service node assigns a unique span identification code to the request, and combines the tracking identification code of the request and the span identification code of the request at the current called service node to generate the call link information of the request at the current called service node; When the request calls the next called service node, the current called service node is updated to the next called service node, so that the current called service node allocates a unique span identification code to the request, and generates the call link information of the request at the current called service node by combining the tracking identification code of the request, the span identification code of the request at the current called service node, and the span identification code of the request at the previous called service node; when the request ends calling all the called service nodes, the call link information of the request at each called service node is combined to establish the request call link table; For each of the called service nodes, intercept function information of the taint source function, function information of the taint propagation function and function information of the taint aggregation function in the called service node to obtain the taint information of the called service node; For each of the called service nodes, storing the hash value of the parameter of the taint source function in the called service node in the taint pool of the called service node; Continue to determine whether there is a hash value of the parameter of the taint propagation function in the called service node in the taint pool of the called service node; If yes, the hash value of the return value of the taint propagation function in the called service node is stored in the taint pool of the called service node; Continue to determine whether there is a hash value of the parameter of the taint aggregation function in the called service node in the taint pool of the called service node; If yes, it is determined that the called service node has a vulnerability, and the called service node is used as the target service node; Determining an upstream service node of the target service node according to the request call link table, and using call information of the upstream service node as cross-process vulnerability data of the target service node; Combine the vulnerability data and cross-process vulnerability data of the target service node to trace back the initial request information of the request.

2. The cross-process vulnerability analysis method based on code vaccine IAST probe according to claim 1 is characterized in that: The pre-insertion by the probe specifically includes: Pre-inserting the span call service trigger function in the program under test by the probe to monitor the request call service event; The taint source function, taint propagation function and taint aggregation function in each of the called service nodes are pre-inserted by the probe to intercept the taint information of each of the called service nodes.

3. The cross-process vulnerability analysis method based on code vaccine IAST probe according to claim 1 is characterized in that: The combining the tracking identification code of the request, the span identification code of the request at the current called service node and the span identification code of the request at the previous called service node to generate the call link information of the request at the current called service node specifically includes: Using the span identification code of the request at the last called service node as the parent span identification code of the request at the current called service node; The call link information of the request at the currently called service node is generated by combining the tracking identification code of the request, the span identification code of the request at the currently called service node and the parent span identification code of the request at the currently called service node.

4. The cross-process vulnerability analysis method based on code vaccine IAST probe according to claim 1 or 3, characterized in that: When the request calls the next called service node, the current called service node is updated to the next called service node, so that the current called service node allocates a unique span identification code to the request, and combines the tracking identification code of the request, the span identification code of the request at the current called service node, and the span identification code of the request at the previous called service node to generate the call link information of the request at the current called service node, and further includes: When the request calls the next called service node, the call link information of the request at the previous called service node is added to the request packet of the request.

5. The cross-process vulnerability analysis method based on code vaccine IAST probe according to claim 1 is characterized in that: The tracking identification code of the request is generated by combining the IP address of the application server, the generation time of the tracking identification code, and the current process number; The span identification code of the request at the currently called service node is generated by combining the node number of the request sending and receiving node, the node number of the currently called service node, and the node numbers of all the called service nodes upstream of the currently called service node.

6. The cross-process vulnerability analysis method based on code vaccine IAST probe according to claim 1 is characterized in that: Performing vulnerability detection according to the taint information of each of the called service nodes respectively, and taking the called service nodes with vulnerabilities as target service nodes, further comprising: The vulnerability data of the target service node is obtained by combining the parameters and return value of the taint source function, the parameters and return value of the taint propagation function, and the parameters and return value of the taint aggregation function in the target service node.

7. The cross-process vulnerability analysis method based on code vaccine IAST probe according to claim 1 is characterized in that: The determining the upstream service node of the target service node according to the request call link table, and using the call information of the upstream service node as the cross-process vulnerability data of the target service node, specifically includes: Extracting the call link information of the request at the target service node from the request call link table; Determine all upstream service nodes of the target service node according to the call link information of the request at the target service node; The call information of all the upstream service nodes is used as the cross-process vulnerability data of the target service node.

8. The cross-process vulnerability analysis method based on code vaccine IAST probe according to claim 1 is characterized in that: The initial request information of the tracing request in combination with the vulnerability data and the cross-process vulnerability data of the target service node specifically includes: Combining the vulnerability data and cross-process vulnerability data of the target service node, tracing back to the initial service node; The initial request information of the request is obtained according to the calling information of the initial service node.

9. A cross-process vulnerability analysis device based on code vaccine IAST probe, characterized in that: include: A probe pre-insertion module is used to install a probe in the program under test and perform pre-insertion through the probe; A monitoring processing module, configured to allocate a globally unique tracking identification code to the request when monitoring a request to call a service event; when the request calls the first called service node, use the first called service node as the current called service node, so that the current called service node allocates a unique span identification code to the request, and generates call link information of the request at the current called service node by combining the tracking identification code of the request and the span identification code of the request at the current called service node; When the request calls the next called service node, the current called service node is updated to the next called service node, so that the current called service node allocates a unique span identification code to the request, and generates the call link information of the request at the current called service node by combining the tracking identification code of the request, the span identification code of the request at the current called service node, and the span identification code of the request at the previous called service node; when the request ends calling all the called service nodes, the call link information of the request at each called service node is combined to establish the request call link table; The monitoring processing module is further used to intercept the function information of the taint source function, the function information of the taint propagation function and the function information of the taint aggregation function in each of the called service nodes to obtain the taint information of the called service node; A vulnerability detection module, configured to store, for each of the called service nodes, a hash value of a parameter of a tainted source function in the called service node in a taint pool of the called service node; Continue to determine whether there is a hash value of the parameter of the taint propagation function in the called service node in the taint pool of the called service node; If yes, the hash value of the return value of the taint propagation function in the called service node is stored in the taint pool of the called service node; Continue to determine whether there is a hash value of the parameter of the taint aggregation function in the called service node in the taint pool of the called service node; If yes, it is determined that the called service node has a vulnerability, and the called service node is used as the target service node; A data integration module, used to determine the upstream service node of the target service node according to the request call link table, and use the call information of the upstream service node as the cross-process vulnerability data of the target service node; The vulnerability analysis module is used to combine the vulnerability data of the target service node and the cross-process vulnerability data to trace back the initial request information of the request.

10. An electronic device, characterized in that: It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor; the memory is coupled to the processor, and when the processor executes the computer program, it implements the cross-process vulnerability analysis method based on the code vaccine IAST probe according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the cross-process vulnerability analysis method based on the code vaccine IAST probe according to any one of claims 1 to 8.