Update detection method, device, equipment and storage medium based on privacy security

By using gateway redirection technology and privacy verification services during software updates, the problem of excessive privacy detection resources and time consumption in software updates is solved, and fast and accurate privacy and security detection is achieved.

CN114036068BActive Publication Date: 2024-11-05CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111519271.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-13
Publication Date
2024-11-05
Estimated Expiration
2041-12-13

AI Technical Summary

Technical Problem

During the software update process, the prior art requires a lot of manpower and computing resources to detect whether the privacy protocol has changed, resulting in wasting resources and time.

Method used

By obtaining the execution use cases of the target microservice from the prebuilt execution use case database and using gateway redirection technology to send requested data to the original program and update program in parallel, obtaining response data records to generate a privacy exemption list, leveraging prebuilt privacy Verify that the updater discloses privacy.

Benefits of technology

It realizes rapid discovery of privacy issues during the software development process, reduces resource and time consumption, and improves the accuracy and efficiency of privacy security detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114036068B_ABST
    Figure CN114036068B_ABST
Patent Text Reader

Abstract

The present invention relates to security detection technology, and discloses an update detection method based on privacy security, including: obtaining an execution case of a target microservice from an execution case database, and running the execution case; obtaining request data generated by the execution case, and redirecting the request data to an original program and an update program corresponding to the target microservice, respectively; obtaining a first request response data record generated by the original program, and a second request response data record generated by the update program; obtaining a privacy exemption list corresponding to the original program according to the first request response data record; and determining whether the update program leaks privacy using a pre-built privacy verification service according to the privacy exemption list and the second request response data record. The present invention also proposes an update detection device, an electronic device, and a storage medium based on privacy security. The present invention can reduce resource consumption of software applications during privacy security detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of security detection technology, and in particular to an update detection method, device, electronic device and computer-readable storage medium based on privacy security. Background Art

[0002] In order to meet people's increasingly diverse needs, the update and replacement of various applications are gradually accelerating. When updating the product, it is very important to detect whether the privacy agreement between the updated program and the original program has changed. When the privacy changes are too large, there is often a risk that the newly developed functions cannot be launched due to security and privacy issues.

[0003] At present, the main method in the industry is to conduct a comprehensive self-inspection of the updated application products, find the detection problems, and then use the technical experience of relevant technicians to determine the scope of the detection problems, and make rectifications and repairs. Therefore, the discovery of each problem requires a lot of manpower and computing resources. Therefore, there is an urgent need for a privacy security testing method that consumes less resources and can discover privacy problems during the development process. Summary of the invention

[0004] The present invention provides a privacy-safe update detection method, device and computer-readable storage medium, the main purpose of which is to solve the problem of excessive resource and time consumption during the privacy testing process.

[0005] To achieve the above object, the present invention provides an update detection method based on privacy security, comprising:

[0006] Obtain the execution case corresponding to the target microservice from the pre-built execution case database, and run the execution case;

[0007] Obtain request data generated during the execution of the use case, and send the request data in parallel to the original program and the update program corresponding to the target microservice through a gateway redirection operation;

[0008] Acquire a first request response data record generated by the original program according to the request data, and acquire a second request response data record generated by the update program according to the request data;

[0009] Obtaining a privacy exemption list corresponding to the original program according to the first request response data record;

[0010] According to the privacy exemption list and the second request response data record, a pre-built privacy verification service is used to determine whether the update program leaks privacy.

[0011] Optionally, the step of sending the request data in parallel to an original program and an update program corresponding to the target microservice through a gateway redirection operation includes:

[0012] Using a pre-built gateway, importing the request data into the original program according to a destination field parameter in the request data;

[0013] Obtaining a program interface address corresponding to the update program;

[0014] Using the redirection function in the standard input and output header file package, the destination field parameter in the request data is modified to the program interface address to obtain redirection request data, and using the gateway, the redirection request data is imported into the update program according to the program interface address in the redirection request data.

[0015] Optionally, obtaining a first request response data record generated by the original program according to the request data includes:

[0016] When monitoring that the request data is imported into the original program, acquiring and parsing the request data to obtain a request resource identifier set;

[0017] When monitoring that the original program generates response data, acquiring and parsing the response data to obtain a response resource identifier set;

[0018] Each request resource identifier in the request resource identifier set is used as a key field, and each response resource identifier in the response resource identifier set is used as a value field, and each key field and each value field are correspondingly formed into a key-value pair to obtain a first request response data record.

[0019] Optionally, obtaining a privacy exemption list corresponding to the original program according to the first request response data record includes:

[0020] Querying the protocol field of the key field in the first request response data record to obtain a user-defined privacy configuration set;

[0021] Querying the protocol field of the value field in the first request response data record to obtain a system default privacy configuration set;

[0022] The user-defined privacy configuration set and the system default privacy configuration set are combined using an intersection-union method to obtain a privacy exemption list.

[0023] Optionally, determining whether the update program leaks privacy by using a pre-built privacy verification service according to the privacy exemption list and the second request response data record includes:

[0024] Convert each key-value pair in the second request response data record into a regular expression;

[0025] Identify the information category of the regular expression, and obtain the verification method corresponding to the information category;

[0026] Verifying the regular expression using the verification method and the privacy exemption list;

[0027] When the verification is passed, it is determined that the update program does not leak privacy;

[0028] When the verification fails, it is determined that the update program has leaked privacy.

[0029] Optionally, after determining whether the update program leaks privacy by using a pre-built privacy verification service, the method further includes:

[0030] When it is determined that the update program leaks privacy, a preset warning message is issued, and the content corresponding to the regular expression that fails the verification is output;

[0031] When it is determined that the updated program does not leak privacy, the original program is replaced by the updated program.

[0032] Optionally, the running of the execution use case includes:

[0033] An initialization operation is performed on the execution use case.

[0034] Use the test tool to run the execution case.

[0035] In order to solve the above problem, the present invention also provides an update detection device based on privacy security, the device comprising:

[0036] A use case execution module is used to obtain the execution use case corresponding to the target microservice from the pre-built execution use case database and run the execution use case;

[0037] A redirection module is used to obtain the request data generated during the execution of the use case, and send the request data in parallel to the original program and the update program corresponding to the target microservice through a gateway redirection operation;

[0038] An operation record acquisition module is used to acquire a first request response data record generated by the original program according to the request data, acquire a second request response data record generated by the update program according to the request data, and acquire a privacy exemption list corresponding to the original program according to the first request response data record;

[0039] A privacy verification module is used to determine whether the update program leaks privacy based on the privacy exemption list and the second request response data record using a pre-built privacy verification service.

[0040] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0041] at least one processor; and,

[0042] a memory communicatively connected to the at least one processor; wherein,

[0043] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned privacy-based update detection method.

[0044] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned privacy-based update detection method.

[0045] The embodiment of the present invention first uses the redirection technology to run the original program and the update program at the same time, so that the original program and the update program can be executed in the same execution use case environment, reducing test vulnerabilities; then, according to the first request response data record of the original program, the privacy exemption list in the original program is obtained, wherein the privacy exemption list contains user-defined privacy configurations and system default privacy configurations, increasing the scope of privacy security detection; then, the embodiment of the present invention can verify a separate function, without the need to re-verify privacy security after the overall application is generated, increasing the accuracy of privacy security positioning, and reducing resource consumption during detection. Therefore, the update detection method, device, electronic device and computer-readable storage medium based on privacy security proposed in the present invention can solve the problem of excessive resource and time consumption during the privacy testing process of software applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A schematic diagram of a process flow of a privacy-safe update detection method provided by an embodiment of the present invention;

[0047] Figure 2 A flowchart of a step in a privacy-safe update detection method provided by an embodiment of the present invention;

[0048] Figure 3 A flowchart of a step in a privacy-safe update detection method provided by an embodiment of the present invention;

[0049] Figure 4 A functional module diagram of a privacy-safe update detection device provided by an embodiment of the present invention;

[0050] Figure 5 A schematic diagram of the structure of an electronic device for implementing the update detection method based on privacy security provided by an embodiment of the present invention.

[0051] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0052] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0053] The embodiment of the present application provides an update detection method based on privacy and security. The execution subject of the update detection method based on privacy and security includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the update detection method based on privacy and security can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0054] Reference Figure 1 FIG. 1 is a flow chart of a privacy-safe update detection method according to an embodiment of the present invention. In this embodiment, the privacy-safe update detection method includes:

[0055] S1. Obtain the execution use case corresponding to the target microservice from the pre-built execution use case database, and run the execution use case.

[0056] In an embodiment of the present invention, the execution case database is a database constructed by the enterprise of the software application to store pre-built execution cases, wherein the execution case is a set of test inputs and execution conditions compiled for a special purpose and used to execute a specific function point.

[0057] In detail, in the embodiment of the present invention, the running of the execution use case includes:

[0058] Performing initialization operation on the execution use case;

[0059] Use the test tool to run the execution case.

[0060] In the embodiment of the present invention, since the impact of the execution results of other execution use cases on the execution environment is uncertain, it is necessary to initialize the relevant data related to the execution use case. For example, when creating a file, it is necessary to delete all existing files, and then create a corresponding number of files through the execution use case. If the initialization operation is not performed, it is possible that the files generated by the previous execution use case still exist, and it is impossible to determine whether the execution of the execution use case is successful.

[0061] This application utilizes the initialized execution use case to limit the data involved in the use case execution process to the area responsible for the target microservice, thereby increasing the accuracy of privacy detection.

[0062] Among them, the embodiment of the present application can execute the initialized execution use case through a testing tool, such as the open source PingCode test management tool.

[0063] S2. Obtain request data generated during the execution of the use case, and send the request data in parallel to the original program and the update program corresponding to the target microservice through a gateway redirection operation.

[0064] The original program is a microservice program in an online software application, and the updated program is a microservice program that is updated based on the original program and is not online;

[0065] The gateway redirection operation is a method of changing the destination of data transmission through a gateway.

[0066] Furthermore, an embodiment of the present invention observes the execution process of the execution use case through the Chrome browser, for example, by sequentially using the developer tools, Network, XHR and other service programs in the Chrome browser to obtain request data between the client where the execution use case is located and the background server of the application.

[0067] For more details, please refer to Figure 2 As shown, in the embodiment of the present invention, the gateway redirection operation is used to send the request data in parallel to the original program and the update program corresponding to the target microservice, including:

[0068] S21, using a pre-built gateway, importing the request data into the original program according to a destination field parameter in the request data;

[0069] S22, obtaining a program interface address corresponding to the update program;

[0070] S23. Using the redirection function in the standard input and output header file package, the destination field parameter in the request data is modified to the program interface address to obtain redirection request data, and using the gateway, according to the program interface address in the redirection request data, the redirection request data is imported into the update program.

[0071] It should be known that the data will have a file stream during the transmission process through the gateway. The embodiment of the present invention uses the standard input and output header file package (<stdio.h> ) in the redirection function (freopen()), modifies the stdout field of the file stream in the request data to the program interface address corresponding to the update program, and obtains the redirection request data.

[0072] The embodiment of the present invention imports the request data into the original program and imports the redirected request data into the update program at the same time through parallel operation, so that the original program and the update program can run in the same execution use case environment.

[0073] S3. Obtain a first request response data record generated by the original program according to the request data, and obtain a second request response data record generated by the update program according to the request data.

[0074] In detail, in an embodiment of the present invention, obtaining the first request response data record generated by the original program according to the request data includes:

[0075] When monitoring that the request data is imported into the original program, acquiring and parsing the request data to obtain a request resource identifier set;

[0076] When monitoring that the original program generates response data, acquiring and parsing the response data to obtain a response resource identifier set;

[0077] Each request resource identifier in the request resource identifier set is used as a key field, and each response resource identifier in the response resource identifier set is used as a value field, and each key field and each value field are correspondingly formed into a key-value pair to obtain a first request response data record.

[0078] The embodiment of the present invention can use preset tracking points to monitor whether the original program generates response data. The embodiment of the present invention uses each request data as a key and the response data corresponding to each request data as a value to construct a key-value pair and store them sequentially to obtain a first request response data record.

[0079] Furthermore, the embodiment of the present invention obtains the second request response data record generated by the update program according to the request data in the same manner as the above-mentioned method of obtaining the first request response data record generated by the original program according to the request data.

[0080] S4. Obtain a privacy exemption list corresponding to the original program according to the first request response data record.

[0081] In the embodiment of the present invention, the privacy exemption list is the privacy data that is kept confidential by default according to the policy and the privacy data required by the user. For example, if the user does not authorize certain content, the privacy protection of the certain content is required.

[0082] For more details, please refer to Figure 3 As shown, in the embodiment of the present invention, obtaining the privacy exemption list corresponding to the original program according to the first request response data record includes:

[0083] S41, querying the protocol field of the key field in the first request response data record to obtain a user-defined privacy configuration set;

[0084] S42, querying the protocol field of the value field in the first request response data record to obtain a system default privacy configuration set;

[0085] S43: Combine the user-defined privacy configuration set and the system default privacy configuration set using an intersection-union method to obtain a privacy exemption list.

[0086] In the embodiment of the present invention, the user-defined privacy configuration set needs to be obtained from the request data, and the system default privacy configuration set needs to be obtained from the response data fed back by the background server.

[0087] When the present invention parses the privacy protocol of request data and response data, it obtains privacy configurations of various categories (the user-defined privacy configuration set and the system default privacy configuration set), and removes duplicate elements through the intersection and union method to obtain a privacy exemption list of a single element.

[0088] S5. According to the privacy exemption list and the second request response data record, use a pre-built privacy verification service to determine whether the update program leaks privacy.

[0089] In detail, in the embodiment of the present invention, S5 includes:

[0090] Convert each key-value pair in the second request response data record into a regular expression;

[0091] Identify the information category of the regular expression, and obtain the verification method corresponding to the information category;

[0092] Verifying the regular expression using the verification method and the privacy exemption list;

[0093] When the verification is passed, it is determined that the update program does not leak privacy;

[0094] When the verification fails, it is determined that the update program has leaked privacy.

[0095] Among them, the embodiment of the present invention has different verification methods for different information categories, such as privacy verification at the interface, privacy verification during storage, and privacy verification during calculation.

[0096] The input and output parameters of the update program in the embodiment of the present invention are saved in the second request response data record, which may include personal basic information required by the policy, device access information, and customized personal health and physiological information.

[0097] Specifically, when the privacy exemption list involves user-defined protection requests, such as personal health and physiological information privacy requests, the data involving the personal health and physiological information in the second request response data is checked to obtain personal basic information. The embodiment of the present invention can detect whether the corresponding sensitive text is contained at the interface through a pre-built regular detection method. If so, it means that there is privacy leakage at the interface.

[0098] Furthermore, according to the privacy requirements for protecting device access information contained by default in the privacy exemption list, the data related to the device access information in the second request response data is queried. The device access information can be regularized and checked through fuzzy matching. If a match is found, it means that the update program involves privacy leakage.

[0099] The regular detection and the fuzzy matching method can be completed by conventional detection tools, which will not be elaborated here.

[0100] Furthermore, in another embodiment of the present invention, after determining whether the update program leaks privacy by using the pre-built privacy verification service, the method further includes:

[0101] When it is determined that the update program leaks privacy, a preset warning message is issued, and the content corresponding to the regular expression that fails the verification is output;

[0102] When it is determined that the updated program does not leak privacy, the updated program may be used to replace the original program.

[0103] In the embodiment of the present invention, the update program can be connected to the online application through the API interface, so that the original program and the update program can exist at the same time. When the update program leaks privacy, an alarm can be directly reported to the relevant department, and the content of "privacy leaks at the interface" as shown above can be output. When the update program does not leak privacy, the original program is directly deleted and the update program is retained, so that the application can be quickly updated.

[0104] The embodiment of the present invention first uses the redirection technology to run the original program and the update program at the same time, so that the original program and the update program can be executed in the same execution use case environment, reducing test vulnerabilities; then, according to the first request response data record of the original program, the privacy exemption list in the original program is obtained, wherein the privacy exemption list contains user-defined privacy configurations and system default privacy configurations, increasing the scope of privacy security detection; then, the embodiment of the present invention can verify a separate function, without the need to re-verify privacy security after the overall application is generated, increasing the accuracy of privacy security positioning, and reducing resource consumption during detection. Therefore, the update detection method based on privacy security proposed in the present invention can solve the problem of excessive resource and time consumption in the privacy testing process of software applications.

[0105] like Figure 4 , which is a functional module diagram of a privacy-safe update detection device provided by an embodiment of the present invention.

[0106] The update detection device 100 based on privacy security of the present invention can be installed in an electronic device. According to the functions implemented, the update detection device 100 based on privacy security can include a use case execution module 101, a redirection module 102, a running record acquisition module 103 and a privacy verification module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0107] In this embodiment, the functions of each module / unit are as follows:

[0108] The use case execution module 101 is used to obtain the execution use case corresponding to the target microservice from the pre-built execution use case database and run the execution use case;

[0109] The redirection module 102 is used to obtain the request data generated during the execution of the use case, and send the request data in parallel to the original program and the update program corresponding to the target microservice through the gateway redirection operation;

[0110] The operation record acquisition module 103 is used to acquire a first request response data record generated by the original program according to the request data, and to acquire a second request response data record generated by the update program according to the request data, and to acquire a privacy exemption list corresponding to the original program according to the first request response data record;

[0111] The privacy verification module 104 is used to determine whether the update program leaks privacy by using a pre-built privacy verification service according to the privacy exemption list and the second request response data record.

[0112] In detail, each module described in the privacy-based update detection device 100 in the embodiment of the present invention is used in the same manner as described above. Figures 1 to 3 The same technical means are used as the privacy-based update detection method described in , and can produce the same technical effects, which will not be repeated here.

[0113] like Figure 5 , is a schematic diagram of the structure of an electronic device for implementing a privacy-safety-based update detection method provided by an embodiment of the present invention.

[0114] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a privacy-based update detection program.

[0115] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes various functions and processes data of the electronic device by running or executing programs or modules stored in the memory 11 (for example, executing an update detection program based on privacy security, etc.), and calling data stored in the memory 11.

[0116] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of the update detection program based on privacy security, but also be used to temporarily store data that has been output or is to be output.

[0117] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0118] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0119] Figure 5 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 5The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0120] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0121] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0122] The privacy-safety-based update detection program stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, the following can be achieved:

[0123] Obtain the execution case corresponding to the target microservice from the pre-built execution case database, and run the execution case;

[0124] Obtain request data generated during the execution of the use case, and send the request data in parallel to the original program and the update program corresponding to the target microservice through a gateway redirection operation;

[0125] Acquire a first request response data record generated by the original program according to the request data, and acquire a second request response data record generated by the update program according to the request data;

[0126] Obtaining a privacy exemption list corresponding to the original program according to the first request response data record;

[0127] According to the privacy exemption list and the second request response data record, a pre-built privacy verification service is used to determine whether the update program leaks privacy.

[0128] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.

[0129] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0130] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:

[0131] Obtain the execution case corresponding to the target microservice from the pre-built execution case database, and run the execution case;

[0132] Obtain request data generated during the execution of the use case, and send the request data in parallel to the original program and the update program corresponding to the target microservice through a gateway redirection operation;

[0133] Acquire a first request response data record generated by the original program according to the request data, and acquire a second request response data record generated by the update program according to the request data;

[0134] Obtaining a privacy exemption list corresponding to the original program according to the first request response data record;

[0135] According to the privacy exemption list and the second request response data record, a pre-built privacy verification service is used to determine whether the update program leaks privacy.

[0136] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

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

[0138] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0139] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0140] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0141] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0142] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0143] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A privacy-safe update detection method, characterized in that: The method comprises: Obtain the execution case corresponding to the target microservice from the pre-built execution case database, and run the execution case; Obtain request data generated during the execution of the use case, and send the request data in parallel to the original program and the update program corresponding to the target microservice through a gateway redirection operation; Acquire a first request response data record generated by the original program according to the request data, and acquire a second request response data record generated by the update program according to the request data; Obtaining a privacy exemption list corresponding to the original program according to the first request response data record; Determining whether the update program leaks privacy using a pre-built privacy verification service according to the privacy exemption list and the second request response data record; Wherein, the obtaining of the first request response data record generated by the original program according to the request data comprises: when monitoring that the request data is imported into the original program, obtaining and parsing the request data to obtain a request resource identifier set; when monitoring that the original program generates response data, obtaining and parsing the response data to obtain a response resource identifier set; using each request resource identifier in the request resource identifier set as a key field, and each response resource identifier in the response resource identifier set as a value field, and forming a key-value pair corresponding to each key field and each value field to obtain the first request response data record; The step of obtaining the privacy exemption list corresponding to the original program according to the first request response data record includes: querying the protocol field of the key field in the first request response data record to obtain a user-defined privacy configuration set; querying the protocol field of the value field in the first request response data record to obtain a system default privacy configuration set; and combining the user-defined privacy configuration set and the system default privacy configuration set using an intersection-union method to obtain a privacy exemption list; The method of determining whether the update program leaks privacy based on the privacy exemption list and the second request response data record using a pre-built privacy verification service includes: converting each key-value pair in the second request response data record into a regular expression; identifying the information category of the regular expression and obtaining the verification method corresponding to the information category; verifying the regular expression using the verification method and the privacy exemption list; when the verification passes, determining that the update program does not leak privacy; when the verification fails, determining that the update program does leak privacy.

2. The update detection method based on privacy security as claimed in claim 1, characterized in that: The gateway redirection operation is used to send the request data in parallel to the original program and the update program corresponding to the target microservice, including: Using a pre-built gateway, importing the request data into the original program according to a destination field parameter in the request data; Obtaining a program interface address corresponding to the update program; Using the redirection function in the standard input and output header file package, the destination field parameter in the request data is modified to the program interface address to obtain redirection request data, and using the gateway, the redirection request data is imported into the update program according to the program interface address in the redirection request data.

3. The update detection method based on privacy security according to any one of claims 1 to 2, characterized in that: After determining whether the update program leaks privacy by using the pre-built privacy verification service, the method further includes: When it is determined that the update program leaks privacy, a preset warning message is issued, and the content corresponding to the regular expression that fails the verification is output; When it is determined that the updated program does not leak privacy, the original program is replaced by the updated program.

4. The update detection method based on privacy security as claimed in claim 1, characterized in that: The running of the execution use case includes: Performing initialization operation on the execution use case; Use the test tool to run the execution case.

5. An update detection device based on privacy security, used to implement the update detection method based on privacy security as claimed in any one of claims 1 to 4, characterized in that: The device comprises: A use case execution module is used to obtain the execution use case corresponding to the target microservice from the pre-built execution use case database and run the execution use case; A redirection module is used to obtain the request data generated during the execution of the use case, and send the request data in parallel to the original program and the update program corresponding to the target microservice through a gateway redirection operation; An operation record acquisition module is used to acquire a first request response data record generated by the original program according to the request data, acquire a second request response data record generated by the update program according to the request data, and acquire a privacy exemption list corresponding to the original program according to the first request response data record; A privacy verification module is used to determine whether the update program leaks privacy based on the privacy exemption list and the second request response data record using a pre-built privacy verification service.

6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the privacy-security-based update detection method as described in any one of claims 1 to 4.

7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the update detection method based on privacy security as described in any one of claims 1 to 4 is implemented.