Privacy compliance management method based on firewall SDK and program product

By introducing the privacy compliance processing instructions of the firewall SDK into mobile applications, monitoring and intercepting privacy API calls solves the problem of existing technology being unable to monitor and prevent abnormal use of private data in real time, and realizes root-free and agent-less apps. Privacy compliance management reduces risks and costs and ensures the security and compliance of private data.

CN118694568APending Publication Date: 2024-09-24CTRIP TRAVEL NETWORK TECH SHANGHAI0
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410718664.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing privacy compliance detection technology cannot monitor the use of private data in mobile applications in real time, and requires root operations and additional installation of Agent Apps, which increases the complexity of user operations and device security risks, and cannot prevent abnormal use of private data in a timely manner, resulting in High maintenance costs for enterprises and inconvenience for users.

Method used

Adopting a privacy compliance management method based on the firewall SDK, by introducing privacy compliance processing instructions in the application compilation stage, monitoring and intercepting privacy API calls, monitoring and intervening in abnormal behaviors in real time, and using local and server-side caches to update compliance rules, Privacy compliance management without root and without Agent App.

Benefits of technology

Real-time monitoring of mobile application privacy data and abnormal behavior intervention are realized, reducing the risk of privacy leakage, simplifying user operations, reducing corporate compliance management costs, and ensuring that applications always comply with the latest privacy protection requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694568A
    Figure CN118694568A
Patent Text Reader

Abstract

The invention provides a privacy compliance management method based on a firewall SDK and a program product, which are used for carrying out privacy compliance monitoring on an application program at a client, and the method comprises the following steps: introducing the firewall SDK into the application program, and compiling a privacy compliance processing instruction contained in the firewall SDK into the application program in an application program compiling stage; monitoring a privacy application program interface related to the privacy data in the application program through the privacy compliance processing instruction; determining a response result according to a privacy compliance rule set in the firewall SDK in response to a request of calling the privacy application program interface of the application program, and pushing the record to the server side; and pulling the latest privacy compliance data regularly and updating the privacy compliance rule and the first-level cache in the firewall SDK. According to the scheme, calling of the privacy API by the application program can be effectively detected and monitored, and non-compliance behaviors of obtaining the privacy data of the user can be found and stopped in time; and under the condition that the original APP is not intruded, calling detection of the privacy API is automatically carried out.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and in particular to a privacy compliance management method and program product based on a firewall SDK. Background Art

[0002] With the widespread popularity of Internet applications, the protection of user privacy data has become an urgent issue to be resolved. Privacy data includes users' personal information, location information, browsing history, etc. These data are collected, stored, processed or transmitted without the user's consent, which may lead to the leakage and abuse of user privacy. Governments and relevant agencies have successively introduced a series of privacy protection laws and regulations to regulate and protect the use of user privacy data. These regulations require companies to strictly follow compliance requirements when processing user privacy data to ensure that user privacy is not leaked or abused.

[0003] Existing privacy compliance detection technologies mainly rely on static analysis tools, privacy policies and user authorization, data encryption and anonymization, and third-party privacy compliance services. However, these technologies have their own limitations. Static analysis tools detect possible privacy data collection and use issues in applications by scanning the source code or bytecode of the application. Although static analysis tools can detect problems in advance during the development phase and reduce risks after release, they cannot detect privacy compliance issues during the runtime of the application and are difficult to adapt to the dynamic changes in privacy protection needs.

[0004] Traditional privacy protection methods usually include developing detailed privacy policies and obtaining user authorization through pop-ups or terms when users use applications. This method relies on users' understanding and consent to the privacy terms, but most users have difficulty reading and understanding privacy terms, resulting in limited privacy protection effects. In order to protect user privacy data, developers usually encrypt or anonymize sensitive data. Although this technology can protect data security to a certain extent, there is still a risk of illegal acquisition and abuse during data processing and transmission. Other companies choose to introduce third-party privacy compliance services to achieve privacy protection and compliance testing through solutions provided by external services. However, this approach increases development and maintenance costs, while relying on the reliability and security of external services.

[0005] There are still some problems in the existing technologies for privacy compliance detection of mobile applications. First, many existing technologies require the mobile device to be rooted and an additional technical framework to be installed. This requirement not only increases the complexity of user operations, but may also reduce device security, thereby increasing the risk of privacy leakage. Secondly, the mobile terminal needs to install an Agent App (i.e., compliance detection program) in addition to the main application to monitor the behavior of the main application. This method increases the user's operating burden, and there is no guarantee that all users will install the Agent App as required, which limits the scope of application of the technology.

[0006] In addition, existing technologies can usually only monitor privacy and cannot effectively intervene in abnormal behaviors of the main application. For example, by monitoring logs, it is found that the main application calls an API that obtains the user's geographic location and the call is overclocked. The existing technology cannot intercept the call in real time and can only fix the problem by upgrading the code of the main application afterwards and then installing the upgraded application. This method not only fails to prevent abnormal use of privacy data in a timely manner, but also increases the maintenance costs of the enterprise and the inconvenience of users. Especially after the application is launched, since relevant laws, regulations and regulatory requirements may change at any time, the enterprise needs to frequently upgrade the code of the compliance detection program, which further increases the privacy compliance detection cost of the application. If compliance detection fails to keep up with changes in regulations in a timely manner, the application may also face the risk of being removed from the shelves, affecting the normal operation of the enterprise.

[0007] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present invention, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0008] In response to the problems in the prior art, the purpose of the present invention is to provide a privacy compliance management method and program product based on a firewall SDK, which can monitor the privacy compliance of mobile applications without the need for root devices and additional installation of monitoring programs, and can intervene in abnormal behaviors in real time.

[0009] An embodiment of the present invention provides a privacy compliance management method based on a firewall SDK, which is used to monitor the privacy compliance of an application program on a client, comprising the following steps:

[0010] Introduce the firewall SDK into the application, and compile the privacy compliance processing instructions contained in the firewall SDK into the application during the application compilation stage;

[0011] Monitor the privacy application program interface related to privacy data in the application program through privacy compliance processing instructions;

[0012] In response to the application's request to call the privacy application program interface, request data from the local first-level cache set by the firewall SDK. If the requested data is not obtained, the response result is determined according to the privacy compliance rules set in the firewall SDK, and the request call record is pushed to the server;

[0013] Periodically pull privacy compliance data from the server and update the privacy compliance rules and first-level cache in the firewall SDK.

[0014] Furthermore, the firewall SDK is introduced into the application, and the privacy compliance processing instructions contained in the firewall SDK are compiled into the application during the application compilation phase, including:

[0015] Introduce the firewall SDK dependency in the application's build configuration file;

[0016] The firewall SDK modifies the bytecode of the application through the bytecode editing tool;

[0017] During the compilation process of the application, the bytecode of the application is intercepted and modified, and the privacy compliance processing instructions of the firewall SDK are inserted into the application.

[0018] Furthermore, the bytecode editing tool adopts Javassist or ASM.

[0019] Further, the step of monitoring the privacy application program interface related to the privacy data in the application program through the privacy compliance processing instruction is implemented through the dynamic taint analysis technology, including: tainting the privacy data;

[0020] Privacy compliance processing instructions dynamically track the propagation path of tainted data, monitor and record API calls involving privacy data.

[0021] Furthermore, the step of monitoring the privacy application program interface related to the privacy data in the application program through the privacy compliance processing instruction by using the data flow analysis technology includes:

[0022] During the application compilation phase, the privacy compliance processing instructions use data flow analysis methods to statically analyze variables and methods involving privacy data in the application;

[0023] Mark variables and methods and monitor them dynamically while your application is running.

[0024] Furthermore, in response to the application's request to call the privacy application program interface, data is requested from the local first-level cache set by the firewall SDK. If the requested data is not obtained, the response result is determined according to the privacy compliance rules set in the firewall SDK, and the request call record is pushed to the server, including:

[0025] Monitor the privacy API call requests of the application;

[0026] When a call request is received, the local first-level cache is queried first, and if a hit is found, the requested data is returned to the application;

[0027] If the first-level cache does not hit, the server-side second-level cache is queried according to the privacy compliance rules. If it hits, the requested data is returned to the application;

[0028] If the requested data is not obtained, the response result is determined according to the privacy compliance rules set in the firewall SDK, and the request call record is pushed to the server.

[0029] Furthermore, the privacy compliance management method based on the firewall SDK further includes:

[0030] When an application calls a privacy API, if the release conditions of the privacy compliance rules are met, the privacy API data is directly called, and the returned request data is updated in the first-level cache or uploaded to the server to update the second-level cache according to the settings of the privacy compliance rules;

[0031] When an application calls a privacy API, if a violation of privacy compliance rules is detected, the firewall SDK’s interception mechanism is triggered to block the actual call and return an empty result.

[0032] The behavior records that violate privacy compliance rules are uploaded to the server, and the server generates alarm information records.

[0033] Furthermore, the steps of periodically pulling privacy compliance data from the server and updating the privacy compliance rules and first-level cache in the firewall SDK include:

[0034] Send requests to the server regularly to retrieve privacy compliance rule data;

[0035] Receive and parse the rules and data returned by the server, and update the privacy compliance rules and first-level cache management rules in the local firewall SDK.

[0036] Furthermore, the privacy compliance management method based on the firewall SDK further includes:

[0037] According to the received privacy compliance rule data, the privacy data in the first-level cache is rechecked and processed.

[0038] The embodiment of the present invention also provides a privacy compliance management method based on a firewall SDK, which is used by a server-side program to monitor the privacy compliance of a client application, and includes the following steps:

[0039] Receive and store privacy API call records and cache data pushed by client applications through the firewall SDK;

[0040] Analyze the received call records and generate warning information according to the preset privacy compliance rules;

[0041] Respond to requests from client applications and push privacy compliance data and rules to client applications.

[0042] Furthermore, the privacy compliance management method based on the firewall SDK further includes:

[0043] Process privacy API call records received from client applications in real time to identify and flag abnormal behaviors;

[0044] The detailed information of abnormal behavior and corresponding alarm information are stored in the database, and a visual report is generated.

[0045] Furthermore, the server-side program is provided with a second-level cache, which stores the return data of the client application calling the privacy application interface. When the server-side program receives a request for data in the second-level cache from the client application, it responds according to preset privacy compliance rules.

[0046] An embodiment of the present invention also provides a privacy compliance management program product based on a firewall SDK, including a computer program, which implements the steps of the above method when executed by a processor.

[0047] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

[0048] The privacy compliance management method and program product based on firewall SDK of the present invention have the following features:

[0049] Beneficial effects:

[0050] The present invention introduces the firewall SDK into the application program, and compiles the firewall SDK containing the privacy compliance processing instructions into the application program during the compilation stage, so as to effectively detect and monitor the application program's call to the privacy API, timely discover and prevent non-compliant behaviors of obtaining user privacy data, and automatically detect the call of the privacy API without intrusion into the original APP, thereby eliminating the need to perform root operations on the mobile device or install additional Agent Apps, simplifying user operations and improving the applicability of the technology. By monitoring the privacy application program interface related to privacy data in the application program through the privacy compliance processing instructions, the use of privacy data can be monitored in real time. For the privacy application program interface call request of the application program, data is first requested from the local first-level cache. If the requested data is not obtained, the response result is determined according to the privacy compliance rules set in the firewall SDK, and the request call record is pushed to the server. This method can not only realize real-time monitoring of privacy data, but also timely intervene in abnormal behaviors of the application program, for example, by intercepting abnormal API calls to prevent the abuse of privacy data.

[0051] In addition, by periodically pulling privacy compliance data from the server and updating the privacy compliance rules and first-level cache in the firewall SDK, the present invention can respond to changes in privacy protection regulations in a timely manner and reduce the compliance management costs of enterprises. Combined with the analysis and alarm functions on the server side, the privacy compliance status of the application can be fully monitored and evaluated to ensure that the application always meets the latest privacy protection requirements. These technical means effectively improve the protection level of user privacy data, reduce the compliance risks of enterprises, and realize the automation and intelligence of privacy compliance management. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Other features, objectives and advantages of the present invention will become more apparent from a reading of the detailed description of non-limiting embodiments made with reference to the following accompanying drawings.

[0053] Figure 1 It is a client flow chart of a privacy compliance management method based on a firewall SDK according to an embodiment of the present invention;

[0054] Figure 2 It is a server-side flow chart of a privacy compliance management method based on a firewall SDK according to an embodiment of the present invention. DETAILED DESCRIPTION

[0055] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0056] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0057] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the steps. For example, some steps may be decomposed, while some steps may be combined or partially combined. Therefore, the actual execution order may be changed according to the actual situation.

[0058] like Figure 1 As shown, an embodiment of the present invention provides a privacy compliance management method based on a firewall SDK, comprising the following steps:

[0059] S110, introducing the firewall SDK into the application, and compiling the privacy compliance processing instructions included in the firewall SDK into the application during the application compilation phase;

[0060] S120. Monitor the privacy application program interface related to the privacy data in the application program through the privacy compliance processing instruction.

[0061] S130, responding to the application's request to call the privacy application program interface, requesting data from the local first-level cache set by the firewall SDK, and if the requested data is not obtained, determining the response result according to the privacy compliance rules set in the firewall SDK, and pushing the request call record to the server;

[0062] S140. Periodically pull privacy compliance data from the server and update the privacy compliance rules and first-level cache in the firewall SDK.

[0063] In this embodiment, the firewall SDK is a software development kit. By introducing it into the application, real-time monitoring of the privacy data of the application can be achieved without rooting the mobile device or installing an additional Agent App. Privacy compliance processing instructions refer to the preset operation instructions for monitoring and managing privacy data in the firewall SDK. They can monitor the API involving privacy data in the application and process it according to the preset privacy compliance rules. The first-level cache and the second-level cache refer to the cache storage areas set locally and on the server side, respectively, for storing the request data when the application calls the privacy application interface to improve data access efficiency and response speed. Through the above technical means, the present invention can effectively monitor and manage the use of privacy data by the application, and timely intercept and handle abnormal behavior. For example, when the application calls an API to obtain the user's geographic location, if the call is overclocked, the firewall SDK can block the call through the interception mechanism and return an empty result, and record and push the abnormal behavior to the server side, generate an alarm message, and remind the developer to handle it. Pull privacy compliance data from the server side regularly and update the local cache to ensure that the application always complies with the latest privacy protection regulations.

[0064] By embedding the firewall SDK into the application and monitoring the privacy data related interfaces, real-time monitoring of the privacy data usage of the application can be achieved. At the same time, through local first-level caching and regular updating of privacy compliance data from the server, the efficiency and accuracy of privacy compliance management can be improved, changes in privacy protection regulations can be responded to in a timely manner, and the compliance management costs of enterprises can be reduced. In addition, this method decouples privacy compliance management from application development, so that the main program can introduce the firewall SDK with simple configuration, thereby simplifying the application development process. There is no need to install AgentApp or perform root operations, which significantly improves the operability and promotion scope of privacy compliance management.

[0065] Optionally, S110, introduce the firewall SDK into the application, and compile the privacy compliance processing instructions included in the firewall SDK into the application during the application compilation phase, including:

[0066] Introduce the firewall SDK dependency in the application's build configuration file;

[0067] The firewall SDK modifies the bytecode of the application through the bytecode editing tool;

[0068] During the compilation process of the application, the bytecode of the application is intercepted and modified, and the privacy compliance processing instructions of the firewall SDK are inserted into the application.

[0069] Optionally, the bytecode editing tool uses Javassist or ASM.

[0070] In this embodiment, the invention uses Java ASM plugging technology to perform privacy protection on the API. During the development process, the Java bytecode is dynamically analyzed, and deep plugging is performed on the sensitive data access path to achieve fine-grained data privacy protection. Transform API is a feature introduced by Android Gradle Plugin 1.5, which is mainly used to modify the Class bytecode at the Class→Dex node during the Android build process. Using the Transform API, all Class files involved in the build can be obtained, and bytecode editing tools such as Javassist or ASM can be used to modify and insert custom logic. The meaning of bytecode editing tool in the present invention refers to a tool that can operate on the compiled bytecode without changing the source code. Through these tools, the bytecode of the application can be plugged, and privacy compliance processing instructions can be inserted at specific locations to achieve real-time monitoring and protection of privacy data. Javassist and ASM are two commonly used bytecode editing tools. Javassist provides a simple and easy-to-use API, which is suitable for rapid development, while ASM provides more powerful functions and higher performance, which is suitable for scenarios with high performance requirements.

[0071] Optionally, the step of implementing S120 by using dynamic taint analysis technology and monitoring the privacy application program interface related to the privacy data in the application program by using the privacy compliance processing instruction includes:

[0072] Taint the private data. Tainting means marking all variables and methods involving private data with specific tags during program execution to facilitate subsequent tracking and analysis.

[0073] Privacy compliance processing instructions dynamically track the propagation path of tainted data, monitor and record API calls involving privacy data. Dynamic tracking means real-time monitoring of data flow and recording of all API calls for tagged data when the program is running, thereby ensuring compliance with data usage.

[0074] The meaning of dynamic taint analysis technology in this invention is to monitor the privacy data in real time when the application is running, to ensure that all operations involving privacy data are recorded and analyzed, so as to detect and prevent data leakage. Dynamic taint analysis technology first needs to taint the privacy data. This means that during the execution of the program, all variables and methods involving privacy data are marked with specific marks. The specific steps are as follows:

[0075] When the program starts, known privacy data sources (such as obtaining user location, reading contact information, GPS, IMEI, MAC, etc.) are marked.

[0076] During the data flow process (such as assignment, transfer and other operations), the taint mark is passed so that all variables and methods related to privacy data are marked accordingly.

[0077] Privacy compliance processing instructions need to dynamically track the data propagation path with tainted marks when the program is running. The implementation method is as follows:

[0078] When the program is running, monitoring code is inserted into all places where data flow may be involved (such as method calls, data transfers, etc.) with the help of instrumentation technology (such as Java ASM instrumentation).

[0079] These monitoring codes record the flow of tainted data in real time, including which APIs call the data, where the data is used or modified, etc.

[0080] During real-time monitoring, all API calls involving private data will be recorded. These records may include the following information: call time and caller information, specific data used and its tags, data flow and changes.

[0081] Dynamic taint analysis also includes compliance detection of data usage:

[0082] Detect data usage in real time based on preset privacy compliance rules.

[0083] If any illegal operations are found (such as unauthorized access or excessively frequent calls), an alert is immediately generated and corresponding measures are taken (such as blocking the call, recording the illegal behavior, etc.).

[0084] Optionally, the step of implementing S120 to monitor the privacy application program interface related to the privacy data in the application program through the privacy compliance processing instruction by using the data flow analysis technology includes:

[0085] During the application compilation phase, the privacy compliance processing instructions use data flow analysis methods to statically analyze variables and methods involving privacy data in the application;

[0086] Mark variables and methods and monitor them dynamically while your application is running.

[0087] The meaning of data flow analysis technology in this invention is to identify all variables and methods involving privacy data through static analysis during the application compilation phase, and dynamically monitor at runtime to ensure that data processing meets privacy compliance requirements. During the application compilation phase, all variables and methods involving privacy data are identified through static analysis technology. The specific steps include:

[0088] Scan the source code or bytecode of the application to identify all APIs and data structures that may involve private data.

[0089] Use data flow analysis algorithms (such as control flow graphs, data flow graphs) to trace the flow path of data from the source to each point of use.

[0090] Mark all variables and methods involving private data, and record their location and function in the code.

[0091] After completing static analysis and marking relevant variables and methods, you need to insert monitoring logic into the bytecode of the application:

[0092] Use bytecode editing tools (such as Javassist or ASM) to intercept and modify bytecode during application compilation.

[0093] Insert monitoring instructions before and after variables and methods involving privacy data to ensure that these data can be dynamically monitored at runtime.

[0094] When the application is running, dynamically monitor the usage of these marked variables and methods:

[0095] Through the inserted monitoring logic, operations involving privacy data are recorded in real time, including the transmission, modification and use of data.

[0096] Compare with the preset privacy compliance rules to detect whether any operations that violate compliance requirements have occurred.

[0097] During dynamic monitoring, real-time detection of data compliance:

[0098] For compliant operations, they are allowed to proceed normally and operation logs are recorded.

[0099] For non-compliant operations, the firewall mechanism is triggered in real time to block illegal operations and record detailed violation information.

[0100] In the privacy compliance management method based on the firewall SDK of this embodiment, dynamic taint analysis technology or data flow analysis technology can be used alone for monitoring, or dynamic taint analysis technology and data flow analysis technology can be used in combination to achieve fine-grained data privacy protection: in the application compilation stage, use data flow analysis technology to statically mark variables and methods of privacy data to ensure that all operations that may involve privacy data are marked; at runtime, use dynamic taint analysis technology to monitor the flow and use of these data in real time to ensure that the use of data meets privacy compliance requirements. This method can not only detect and prevent non-compliant privacy data operations in real time, but also record detailed operation logs to help developers analyze and optimize the privacy protection measures of applications.

[0101] Optionally, S130, responding to the application's request to call the privacy application program interface, requesting data from the local first-level cache set by the firewall SDK, and if the requested data is not obtained, determining the response result according to the privacy compliance rules set in the firewall SDK, and pushing the request call record to the server, including:

[0102] Monitor the privacy API call requests of applications to ensure that access to private data is monitored and restricted;

[0103] When a call request is received, the local first-level cache is queried first, and if a hit is found, the requested data is returned to the application;

[0104] If the first-level cache misses, the server-side second-level cache is queried according to the privacy compliance rules. If a hit occurs, the requested data is returned to the application to improve the efficiency and hit rate of data access.

[0105] If the requested data is not obtained, the response result is determined according to the privacy compliance rules set in the firewall SDK, and the request call record is pushed to the server, realizing comprehensive monitoring and recording of privacy data access.

[0106] Optionally, the privacy compliance management method based on the firewall SDK further includes:

[0107] When an application calls a privacy API, if the release conditions of the privacy compliance rules are met, the privacy API data is directly called, and the returned request data is updated in the first-level cache or uploaded to the server to update the second-level cache according to the settings of the privacy compliance rules;

[0108] When an application calls a privacy API, if a violation of privacy compliance rules is detected, the firewall SDK’s interception mechanism is triggered to block the actual call and return an empty result.

[0109] The behavior records that violate privacy compliance rules are uploaded to the server, and the server generates alarm information records.

[0110] Optionally, S140, the step of periodically pulling privacy compliance data from the server and updating the privacy compliance rules and the first-level cache in the firewall SDK includes:

[0111] Send requests to the server regularly to pull privacy compliance rule data to ensure that the firewall SDK obtains compliance requirements;

[0112] Receive and parse the rules and data returned by the server, and update the privacy compliance rules and first-level cache management rules in the local firewall SDK to ensure that the local SDK always follows the latest privacy compliance standards.

[0113] Optionally, the privacy compliance management method based on the firewall SDK further includes:

[0114] According to the received privacy compliance rule data, the privacy data in the first-level cache is rechecked and processed.

[0115] like Figure 2 As shown, the privacy compliance management method based on the firewall SDK provided in the embodiment of the present invention is used for the server-side program to monitor the privacy compliance of the client application program, and includes the following steps:

[0116] S210, receiving and storing the privacy application program interface call records and cache data pushed by the client application through the firewall SDK;

[0117] S220: Analyze the received call records and generate warning information according to the preset privacy compliance rules. By analyzing the call records, the server can timely discover and identify potential privacy compliance issues, collect abnormal privacy API calls in real time through the service background log collection, and generate corresponding warning information to remind relevant personnel or take further measures;

[0118] S230. Respond to the request of the client application, push privacy compliance data and rules to the client application, and push privacy compliance data and rules to the client through the server to ensure that the client application always complies with the latest privacy protection standards.

[0119] In this embodiment, the firewall SDK refers to a toolkit integrated into the client application, which contains relevant instructions and functions for privacy data protection and compliance management. Privacy application interface call record: refers to the detailed record of API calls involving privacy data during the operation of the client application, including call time, number of calls, call parameters and other information. Cached data refers to temporary data saved locally by the firewall SDK on the client, which is used to improve data access efficiency and meet compliance requirements to reduce the number of privacy interface requests. Alarm information refers to the warning information generated by the server after analyzing the data uploaded by the client according to the preset privacy compliance rules, which is used to remind users or developers of potential privacy risks or violations. By receiving, analyzing and pushing privacy data on the server side, it is ensured that the client application can obtain the latest privacy compliance rules in real time, and promptly identify and handle potential privacy violations. In this way, the compliance and security of privacy data management are significantly improved.

[0120] Optionally, the privacy compliance management method based on the firewall SDK further includes:

[0121] S240, performing real-time processing on the privacy application program interface call records received from the client application to identify and mark abnormal behaviors, wherein real-time processing refers to performing instant analysis on the data during the data reception process to identify any operations that deviate from normal behavior patterns;

[0122] S250: Store the detailed information of the abnormal behavior and the corresponding alarm information in a database and generate a visual report. By recording the identified abnormal behavior in detail and visually displaying it, it helps users or developers to understand and handle privacy compliance issues more intuitively.

[0123] In this embodiment, real-time processing refers to the immediate analysis and processing of received data in order to quickly identify and respond to abnormal behavior. Abnormal behavior refers to behavior that deviates from the normal operating mode, such as frequent calls to a privacy data interface, which may indicate potential privacy violation risks. Visual reports intuitively display data and analysis results in the form of charts, graphs, etc., which is convenient for users to understand and make decisions.

[0124] Optionally, the server-side program is provided with a second-level cache, which stores the return data of the client application calling the privacy application program interface. When the server-side program receives the data request of the client application calling the second-level cache, it responds according to the preset privacy compliance rules. The second-level cache refers to the server-side used to store commonly used user privacy data, so as to further reduce the client application's access to privacy data.

[0125] Optionally, by writing API interfaces for the server and client, you can remotely issue rules and issue them in grayscale based on user IDs. The server passes the rules to the client through the API interface, and filters and issues the rules based on user IDs to achieve personalized rule control for different users. This method allows for flexible management and update of rules, while grayscale issuance based on user IDs to ensure the accuracy and effectiveness of the rules.

[0126] Optionally, to address the challenges of efficient storage and expansion of log data, the server adopts a distributed streaming storage architecture design, which combines horizontal expansion capabilities with real-time data sharding mechanisms. The consistent hashing algorithm is used to dynamically allocate storage resources to ensure that data is evenly distributed and can seamlessly adapt to the growth of data volume. At the same time, data integrity and security are enhanced through technologies such as multi-copy redundancy and erasure coding, ensuring high data availability even in the event of partial hardware failure.

[0127] Optionally, for the effective analysis of massive logs and extraction of key events, the server uses an intelligent log parsing engine. The intelligent parsing engine can perform structured processing on log data, accurately capture key events in real-time streams, eliminate non-important information noise, and significantly improve the efficiency of threat detection and problem location. This series of technological innovations jointly empower the intelligent and precise operation of log management systems in a big data environment.

[0128] An embodiment of the present invention also provides a privacy compliance management program product based on a firewall SDK, including a computer program or instructions, which, when executed by a processor, implements the steps of the above-mentioned privacy compliance management method based on the firewall SDK.

[0129] The functions of each module of the privacy compliance management program product based on firewall SDK of the present invention can be implemented by adopting the specific implementation method of the privacy compliance management method based on firewall SDK as mentioned above, which will not be described in detail here.

[0130] The program product includes a program code, which can be executed on a terminal device, such as a personal computer, a server, or a mobile device. However, the program product of the present invention is not limited thereto. In this document, the program can be used by an instruction execution system, an apparatus, or a device or used in combination with it. In addition, the program code for performing the operation of the present invention can be written in any combination of one or more programming languages, and the programming language includes an object-oriented programming language, such as Java, C++, etc., and also includes a conventional procedural programming language, such as "C" language or similar programming language. The program code can be executed completely on a user computing device, partially on a user device, as an independent software package, partially on a user computing device, partially on a remote computing device, or completely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet). The steps of the visual logic expression management method implemented when the program is executed by the processor, therefore, the program product can also obtain the technical effect of the above-mentioned visual logic expression management method.

[0131] Compared with the prior art, the present invention can not only conduct internal self-inspection before the APP is put on the shelves, but also perform real-time monitoring on the user terminal, thereby improving the coverage of privacy monitoring; at the same time, abnormal calls can be intercepted and cached, thereby expanding the ability to handle abnormal behavior.

[0132] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A privacy compliance management method based on a firewall SDK, used to monitor the privacy compliance of an application on a client, characterized in that: The following steps are involved: Introduce the firewall SDK into the application, and compile the privacy compliance processing instructions contained in the firewall SDK into the application during the application compilation stage; Monitor the privacy application program interface related to privacy data in the application program through privacy compliance processing instructions; In response to the application's request to call the privacy application program interface, request data from the local first-level cache set by the firewall SDK. If the requested data is not obtained, the response result is determined according to the privacy compliance rules set in the firewall SDK, and the request call record is pushed to the server; Periodically pull privacy compliance data from the server and update the privacy compliance rules and first-level cache in the firewall SDK.

2. The privacy compliance management method based on firewall SDK according to claim 1 is characterized in that: The introduction of the firewall SDK into the application program and the compilation of the privacy compliance processing instructions contained in the firewall SDK into the application program during the application program compilation phase include: Introduce the firewall SDK dependency in the application's build configuration file; The firewall SDK modifies the bytecode of the application through the bytecode editing tool; During the compilation process of the application, the bytecode of the application is intercepted and modified, and the privacy compliance processing instructions of the firewall SDK are inserted into the application.

3. The privacy compliance management method based on firewall SDK according to claim 2 is characterized in that: The bytecode editing tool adopts Javassist or ASM.

4. The privacy compliance management method based on firewall SDK according to claim 1 is characterized in that: The step of implementing the step of monitoring the privacy application program interface related to the privacy data in the application program through the privacy compliance processing instruction by the dynamic taint analysis technology includes: Taint private data; Privacy compliance processing instructions dynamically track the propagation path of tainted data, monitor and record API calls involving privacy data.

5. The privacy compliance management method based on firewall SDK according to claim 1 is characterized in that: The step of implementing the step of monitoring the privacy application program interface related to the privacy data in the application program through the privacy compliance processing instruction by using the data flow analysis technology includes: During the application compilation phase, the privacy compliance processing instructions use data flow analysis methods to statically analyze variables and methods involving privacy data in the application; Mark variables and methods and monitor them dynamically while your application is running.

6. The privacy compliance management method based on firewall SDK according to claim 1 is characterized in that: The response application calls the privacy application program interface request, requests data from the local first-level cache set by the firewall SDK, and if the requested data is not obtained, determines the response result according to the privacy compliance rules set in the firewall SDK, and pushes the request call record to the server, including: Monitor the privacy API call requests of the application; When a call request is received, the local first-level cache is queried first, and if a hit is found, the requested data is returned to the application; If the first-level cache does not hit, the server-side second-level cache is queried according to the privacy compliance rules. If it hits, the requested data is returned to the application; If the requested data is not obtained, the response result is determined according to the privacy compliance rules set in the firewall SDK, and the request call record is pushed to the server.

7. The privacy compliance management method based on firewall SDK according to claim 6 is characterized in that: Also includes: When an application calls a privacy API, if the release conditions of the privacy compliance rules are met, the privacy API data is directly called, and the returned request data is updated in the first-level cache or uploaded to the server to update the second-level cache according to the settings of the privacy compliance rules; When an application calls a privacy API, if a violation of privacy compliance rules is detected, the firewall SDK’s interception mechanism is triggered to block the actual call and return an empty result. The behavior records that violate privacy compliance rules are uploaded to the server, and the server generates alarm information records.

8. The privacy compliance management method based on firewall SDK according to claim 1 is characterized in that: The step of periodically pulling privacy compliance data from the server and updating the privacy compliance rules and the first-level cache in the firewall SDK includes: Send requests to the server regularly to retrieve privacy compliance rule data; Receive and parse the rules and data returned by the server, and update the privacy compliance rules and first-level cache management rules in the local firewall SDK.

9. The privacy compliance management method based on firewall SDK according to claim 8 is characterized in that: Further including: According to the received privacy compliance rule data, the privacy data in the first-level cache is rechecked and processed.

10. A privacy compliance management method based on a firewall SDK, used by a server-side program to monitor the privacy compliance of a client application, characterized in that: The following steps are involved: Receive and store privacy API call records and cache data pushed by client applications through the firewall SDK; Analyze the received call records and generate warning information according to the preset privacy compliance rules; Respond to requests from client applications and push privacy compliance data and rules to client applications.

11. The privacy compliance management method based on firewall SDK according to claim 10 is characterized in that: Also includes: Process privacy API call records received from client applications in real time to identify and flag abnormal behaviors; The detailed information of abnormal behavior and corresponding alarm information are stored in the database, and a visual report is generated.

12. The privacy compliance management method based on firewall SDK according to claim 10, characterized in that: The server-side program is provided with a second-level cache, which stores the return data of the client application calling the privacy application interface. When the server-side program receives a request for data in the second-level cache from the client application, it responds according to preset privacy compliance rules.

13. A privacy compliance management program product based on a firewall SDK, comprising a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.