Web-based process dynamic untrusted test method and system
By adopting a web-based method for testing dynamic untrusted processes, the testing process is simplified, testing efficiency and quality are improved, remote visual operation and real-time status monitoring are realized, and the system's flexibility and manageability are enhanced.
Patent Information
- Application Number
- CN202410930443.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-05
AI Technical Summary
Traditional untrusted process dynamic testing methods are cumbersome to operate, consume a lot of time, affect the testing progress and quality, and are difficult to achieve efficient testing of batch processes.
This paper provides a web-based method for dynamic untrusted process testing. It displays the detailed memory address range and trust status of a process through a web environment, allows users to select an address range and modify it according to the program's built-in rules, and displays the operation results and trust status after a dynamic trust verification cycle. It also supports audit log recording.
It simplifies the operation process, improves testing speed and quality, reduces testing costs, supports remote visual operation and real-time status monitoring, and enhances the flexibility and manageability of the testing system.
Smart Images

Figure CN118897796A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of industrial control software testing, and relates to a Web-based process dynamic untrustworthy testing method and system. Background Art
[0002] The dynamic trusted verification function in the trusted computing module can configure dynamic trusted policies for executable files on the system. When the executable file is executed and runs in the memory as a process, the code segment and read-only data segment of the process can be periodically dynamically verified for trustedness. When any code segment or read-only data segment of the process is tampered with to become untrustworthy, the system can terminate the process or allow the process to continue running, and periodically record an audit log of the process being untrustworthy.
[0003] The traditional verification of dynamic trusted policy function is to enter a command in the system to obtain the process ID of the process, then enter a command based on the process ID to obtain the virtual memory space corresponding to the process, select a certain address segment to execute the gdb attach PID command to debug the running process, enter the command to modify the address segment and exit, and then execute the dynamic trusted verification command to confirm whether the modified address segment has become untrusted and whether the system has generated a corresponding alarm.
[0004] This method requires entering several commands to tamper with a process, and requires a lot of information to be checked and remembered, which is prone to input errors and is cumbersome to operate. If you want to test batch processes to be dynamically untrustworthy, repetitive operations will take up a lot of time and affect the progress and quality of the test. Summary of the invention
[0005] In order to solve the above problems, save manpower and improve testing efficiency, the present invention proposes a Web-based process dynamic untrustworthy testing method and system.
[0006] To achieve the above purpose, the present invention adopts the following technical means:
[0007] The first aspect of the present invention is to provide a Web-based process dynamic untrustworthy testing method, comprising:
[0008] Get all running processes on the operating system, and display the detailed memory address segment range and corresponding memory permissions, address segment trust status, and dynamic trust verification cycle of the process in the Web environment;
[0009] Based on the memory permissions and the trusted status of the address segment, select any memory address segment and modify the address segment according to the built-in rules of the program;
[0010] After waiting for the dynamic trust verification cycle configured by the dynamic trust policy, the operation result and the trust status prompt of the process are displayed;
[0011] Refresh the process list to view the trusted status of the address segment and verify whether the untrusted process has been successfully modified.
[0012] As a further improvement of the present invention, the Web environment is pre-deployed on the operating system.
[0013] As a further improvement of the present invention, information displayed in a Web environment includes: process number, process name, and detailed address segment information of the process.
[0014] As a further improvement of the present invention, the displaying in a Web environment includes:
[0015] Use the browser to enter the IP address and port to access the Web environment, and use the table to visualize the process number, process name, and detailed address segment information of all running processes.
[0016] As a further improvement of the present invention, the rules built into the program are:
[0017] Get the value of the current memory address. If the last digit is a non-zero number or a letter af, it will become 0. If the last digit is 0, it will be randomly changed to any number from 0 to 9 or letter af.
[0018] As a further improvement of the present invention, the display of the operation result and the trust status prompt of the process includes:
[0019] The operation result and the trust status of the process are displayed in a pop-up window.
[0020] As a further improvement of the present invention, after the terminal processes the operation request of the trusted function, the terminal further includes:
[0021] The audit log of all dynamic operation processes is recorded in the log file of the trusted function, including the operator, operation time, measurement process, and measurement results.
[0022] The second aspect of the present invention is to provide a process dynamic untrustworthy testing system based on a Web, comprising:
[0023] The acquisition module is used to obtain all running processes on the operating system and display the detailed memory address segment range and corresponding memory permissions, address segment trust status and dynamic trust verification cycle of the process in the Web environment;
[0024] The modification module is used to select any memory address segment based on memory permissions and address segment trust status, and modify the address segment according to the program's built-in rules;
[0025] A display module, used for displaying the operation result and the trusted status prompt of the process after waiting for the dynamic trusted verification cycle configured by the dynamic trusted policy;
[0026] The verification module is used to refresh the process list to check the trust status of the address segment and verify whether the untrusted process has been successfully modified.
[0027] The third aspect of the present invention is to provide an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the Web-based process dynamic untrustworthy testing method when executing the computer program.
[0028] A fourth aspect of the present invention is to provide 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, the Web-based process dynamic untrustworthy testing method is implemented.
[0029] Compared with the prior art, the present invention has the following beneficial effects:
[0030] Through this method, a visual graphical interface helps testers to intuitively see the process number, process name, and process address segment information running under the operating system, which is convenient for batch modification of address segments, and tampering with the process is untrustworthy, reducing a large number of repetitive input commands to verify whether the strategy is effective, improving the test speed and test quality, and can significantly reduce the test cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A flow chart of a Web-based process dynamic untrustworthy testing method provided by the present invention;
[0032] Figure 2 It is a flowchart of a dynamic untrustworthy test of a process based on a Web according to an embodiment of the present invention;
[0033] Figure 3 A Web-based process dynamic untrustworthy testing system provided by the present invention;
[0034] Figure 4 A schematic diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.
[0037] In addition, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, product, or apparatus.
[0038] JavaWeb is the sum of technologies that use Java technology to solve related web Internet fields. The Web consists of two parts: the Web server and the Web client. Java is rarely used on the client side, but is widely used on the server side, such as Servlet, JSP, and third-party frameworks. These technologies have injected strong impetus into the development of the Web field.
[0039] like Figure 1 As shown, the first object of the present invention is to provide a process dynamic untrustworthy testing method based on a Web, comprising the following steps:
[0040] S1, obtains all running processes on the operating system, and displays the detailed memory address segment range and corresponding memory permissions, address segment trust status, and dynamic trust verification cycle of the process in the Web environment;
[0041] S2, based on memory permissions and address segment trust status, select any memory address segment and modify the address segment according to the program's built-in rules;
[0042] S3, after waiting for the dynamic trust verification cycle configured by the dynamic trust policy, the operation result and the trust status prompt of the process are displayed;
[0043] S4, refresh the process list to check the trust status of the address segment and verify whether the untrusted process has been successfully modified.
[0044] The present invention is a process of managing, monitoring and modifying the memory address segment of a process on a trusted DCS (distributed control system) system, and involves the display of a Web environment and the verification of a dynamic trusted policy. The process enhances the test flexibility and manageability of the DCS system by providing detailed process information and memory address segment management functions.
[0045] The principle of the present invention is as follows:
[0046] S1: Get and display processes: The system first scans all running processes on the DCS and collects relevant information. This information is then transmitted to the Web environment and displayed to the user in some form (such as a table or list).
[0047] Display detailed information of the process; in addition to basic process information, the system also provides the process's memory address segment range, permissions (such as read / write / execute), the trusted status of the address segment (such as trusted, untrusted), and the latest configured dynamic trusted verification cycle. These detailed information help users understand the running status and security of the process.
[0048] S2: Select and modify memory address segments; users can select specific memory address segments based on memory permissions and the trusted status of the address segments. According to the system's preset rules, users can modify these address segments. This may involve changing permissions, status, or data content.
[0049] S3: Wait for verification and display the result; after modification, the system waits for the dynamic trust verification cycle configured by the dynamic trust policy. After the verification is completed, the system displays the operation result (such as whether the modification is successful) and the current trust status prompt of the process.
[0050] For example, if the policy configuration period is 90 seconds, the dynamic trusted module checks whether the process status is trusted at an interval of 90 seconds.
[0051] S4: Refresh and verify the status: Users can refresh the process list to view the modified address segment trust status. By comparing the status before and after the modification, users can verify whether the process has become untrustworthy as expected.
[0052] This process allows users to select and modify memory address segments based on memory permissions and the trusted status of the address segments, providing a high degree of flexibility and customizability. Users can formulate different management policies based on specific needs. This method provides real-time operation results and process trusted status prompts, allowing users to immediately understand the effects of the modifications. At the same time, refreshing the process list can view the latest trusted status to ensure the success of the modification.
[0053] Optionally, the Web environment is pre-deployed on the operating system. The Web environment is pre-deployed on the operating system. This deployment method enables the test system to be directly integrated into the target operating system without the need for additional hardware or virtual machine support. It simplifies the process of setting up the test environment and improves the test efficiency. At the same time, because the Web environment runs directly on the operating system, it can more accurately reflect the actual response of the system to the process dynamic untrusted test.
[0054] Furthermore, the following information is displayed in the Web environment: process number, process name, and detailed address segment information of the process. By displaying these detailed information, users can fully understand the status of all processes running on the current operating system. This helps users quickly locate the target process and conduct in-depth analysis on it. At the same time, the detailed address segment information provides users with an accurate basis for modification and verification.
[0055] Furthermore, the display in the Web environment includes: using a browser to input an IP address and a port to access the Web environment, and visually displaying the process numbers, process names, and detailed address segment information of all running processes in a table.
[0056] This method enables remote users to easily access the test system through a Web browser to view and analyze process information. The visual display of the table makes the information more intuitive and easy to understand, improving the user experience.
[0057] As a preferred solution, the program has built-in rules: get the value of the current memory address, and if the last digit is a non-zero number or a letter of af, it becomes 0, and if the last digit is 0, it is randomly changed to any number from 0 to 9 or a letter of af. This rule design is flexible and has a certain degree of randomness, and can simulate various types of memory modification behaviors. It helps to test the responsiveness of the system in different situations and improve the comprehensiveness and effectiveness of the test.
[0058] As an example, the displaying of the operation result and the trusted status prompt of the process includes: displaying the operation result and the trusted status of the process in a pop-up window.
[0059] Pop-up prompts can immediately attract the user's attention and ensure that the user will not miss important operation results and process status information. This method improves the real-time nature of the test and the convenience of user interaction.
[0060] As a further example, after the terminal processes the operation request of the trusted function, it also includes: recording the audit log of all dynamic operation processes in the log file of the trusted function, including the operator, operation time, measurement process, and measurement results. The audit log records all the details of the operation, including key information such as the operator, operation time, measurement process, and measurement results. This provides an important basis for subsequent security analysis, troubleshooting, and compliance review. At the same time, the audit log is also an important guarantee for system security and traceability.
[0061] like Figure 2 As shown, this embodiment proposes a Web-based process dynamic untrustworthiness testing method, including the following steps:
[0062] By deploying the JavaWeb environment on the operating system, you can obtain all running processes on the system, display the process number, process name, detailed address segment information of the process, and customize the system port.
[0063] Use a browser to access the JavaWeb environment, and intuitively display the process number, process name, and detailed address segment information of all running processes in a table format;
[0064] After clicking to select a process number, the detailed memory address segment range of the process and the corresponding memory permissions, whether the address segment is trustworthy, and if a dynamic trustworthy verification policy is configured, the dynamic trustworthy verification cycle will also be displayed;
[0065] Select any memory address segment and click the Modify button to modify the address segment according to the built-in rules of the program;
[0066] The built-in rules of the program are: get the value of the current memory address, and if the last digit is a non-zero number or a letter af, it will become 0. If the last digit is 0, it will be randomly changed to any number from 0 to 9 or a letter af;
[0067] After waiting for the measurement cycle configured by the dynamic trust policy, the above operation will display the operation result and the trust status of the process in a pop-up window. Refresh the list to view the trust status of the address segment to verify whether the untrusted process has been successfully modified.
[0068] Detailed address segment information includes: memory address segment range, memory permissions, and address segment trusted status.
[0069] The steps in the terminal include:
[0070] Run the test program;
[0071] Receiving an operation request of a trusted function;
[0072] Processing operation requests of trusted functions;
[0073] Record operation audit logs.
[0074] The operations in the browser web terminal include:
[0075] The browser page opens;
[0076] Select the process PID;
[0077] Select the memory address segment to modify;
[0078] Pop-up window displays operation results and error prompts;
[0079] Obtain trusted functional verification conclusions.
[0080] Through this method, a visual graphical interface helps testers to intuitively see the process number, process name, and process address segment information running under the operating system. The button operation is convenient for batch modification of address segments. Tampering with the process is untrustworthy, and a large number of repetitive input commands to verify whether the strategy is effective are reduced, thereby improving the test speed and test quality, and can significantly reduce the test cost.
[0081] A specific embodiment is given below as a detailed description of the method of the present invention:
[0082] Steps of the whole method Figure 2 As shown:
[0083] Deploy a JavaWeb environment based on Springboot+SpringMVC on the operating system, customize an unused port on the system, run the JavaWeb service program in any directory, enter the IP address and port in the browser to access the JavaWeb environment, and a visual table shows the process numbers and process names corresponding to all running processes on the system; testers can perform operations to verify whether the dynamic trust function of the process is normal:
[0084] After clicking to select a process number, the detailed memory address segment range of the process and the corresponding memory permissions, as well as whether the address segment is trustworthy, are displayed in a table.
[0085] Select any memory address segment and click the Modify button to modify the address segment according to the built-in rules of the program; the built-in rules of the program are: get the value of the current memory address, and the last digit value is a non-0 number or a letter af, which becomes 0; when the last digit value is 0, it is randomly changed to any number from 0 to 9 or a letter af;
[0086] After waiting for the measurement cycle configured by the dynamic trusted policy, the above operation will display the operation result and the trusted status of the process in a pop-up window. Refresh the list to view the trusted status of the address segment to verify whether the untrusted process has been successfully modified. This function supports page turning to display the process number, process name, and detailed address segment information of the process on the system.
[0087] The trusted function log file will record the audit log of all dynamic operation processes. The trusted audit record includes the operator, operation time, measurement process, and measurement results.
[0088] like Figure 3 As shown, the present invention also provides a process dynamic untrustworthy testing system based on Web, comprising:
[0089] The acquisition module is used to obtain all running processes on the operating system and display the detailed memory address segment range and corresponding memory permissions, address segment trust status and dynamic trust verification cycle of the process in the Web environment;
[0090] The modification module is used to select any memory address segment based on memory permissions and address segment trust status, and modify the address segment according to the program's built-in rules;
[0091] A display module, used for displaying the operation result and the trusted status prompt of the process after waiting for the dynamic trusted verification cycle configured by the dynamic trusted policy;
[0092] The verification module is used to refresh the process list to check the trust status of the address segment and verify whether the untrusted process has been successfully modified.
[0093] The principle of the process dynamic untrustworthy testing system based on Web of the present invention is to monitor, modify and verify the memory status of the process running on the operating system through the Web interface. The system is mainly composed of four parts: acquisition module, modification module, display module and verification module. Each module works together to achieve the goal of process dynamic untrustworthy testing.
[0094] Among them, the acquisition module is responsible for collecting detailed information of all running processes from the operating system, including the memory address segment range of the process, the corresponding memory permissions (such as read, write, execute, etc.), the trusted state of the address segment, and the dynamic trusted verification cycle. This information is crucial for subsequent analysis and modification. Displaying this information in the Web environment allows users to remotely access and operate through a browser, improving the availability and flexibility of the system.
[0095] Further, modify the module: users can select a specific memory address segment based on the information provided by the acquisition module, and modify the address segment according to the program's built-in rules based on the memory permissions and trusted status of the address segment. This modification may be to test the behavior of the process under specific conditions, or to simulate malicious attacks to evaluate the system's defense capabilities.
[0096] Furthermore, the display module: after the verification cycle of the dynamic trust policy configuration, the display module will display the results of the modification operation and the trusted status prompt of the process. This helps users intuitively understand the impact of the modification operation on the process status and the system's detection and response capabilities to untrusted behavior.
[0097] Further, verify the module:
[0098] Users can refresh the process list to check whether the trusted state of the address segment has changed, thereby verifying whether the modification operation has successfully put the process into an untrusted state. The verification module is also responsible for ensuring the stability and security of the system and preventing system crashes or data leaks caused by improper operations.
[0099] As an example, the present invention implements remote operation and monitoring through a Web interface, so that users can perform dynamic untrusted testing on processes without direct contact with physical devices, thereby improving test efficiency and security. The system can display the memory status and operation results of the process in real time, and provide an intuitive visual interface to help users quickly understand and analyze problems. The system supports modification of memory address segments according to the built-in rules of the program, and users can customize test scenarios and rules according to actual needs, thereby improving the flexibility and scalability of the system. The system ensures the stability and security of the system during the test process through mechanisms such as dynamic trusted verification cycles and refreshing process lists, and prevents system crashes or data leaks caused by improper operations. The automated testing and verification process reduces the need for manual intervention and improves test efficiency and accuracy. At the same time, the system supports concurrent testing and load testing, which can more comprehensively evaluate the performance and stability of the system.
[0100] The embodiment of the present invention provides a Web-based process dynamic untrustworthiness testing system based on the above-mentioned Web-based process dynamic untrustworthiness testing method.
[0101] like Figure 4 As shown, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the Web-based process dynamic untrustworthy testing method when executing the computer program.
[0102] The present invention also 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, the Web-based process dynamic untrustworthy testing method is implemented.
[0103] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0104] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0105] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A Web-based process dynamic untrustworthiness testing method, characterized in that: include: Get all running processes on the operating system, and display the detailed memory address segment range and corresponding memory permissions, address segment trust status, and dynamic trust verification cycle of the process in the Web environment; Based on the memory permissions and the trusted status of the address segment, select any memory address segment and modify the address segment according to the built-in rules of the program; After waiting for the dynamic trust verification cycle configured by the dynamic trust policy, the operation result and the trust status prompt of the process are displayed; Refresh the process list to view the trusted status of the address segment and verify whether the untrusted process has been successfully modified.
2. A Web-based process dynamic untrustworthiness testing method according to claim 1, characterized in that: The Web environment is pre-deployed on the operating system.
3. A Web-based process dynamic untrustworthiness testing method according to claim 1, characterized in that: In the Web environment, the following information is displayed: process number, process name, and detailed address segment information of the process.
4. A Web-based process dynamic untrustworthiness testing method according to claim 1, characterized in that: The display in the web environment includes: Use the browser to enter the IP address and port to access the Web environment, and use the table to visualize the process number, process name, and detailed address segment information of all running processes.
5. A Web-based process dynamic untrustworthiness testing method according to claim 1, characterized in that: The rules built into the program are: Get the value of the current memory address. If the last digit is a non-zero number or a letter af, it will become 0. If the last digit is 0, it will be randomly changed to any number from 0 to 9 or letter af.
6. A Web-based process dynamic untrustworthiness testing method according to claim 1, characterized in that: The display of the operation result and the trusted status prompt of the process includes: The operation result and the trust status of the process are displayed in a pop-up window.
7. A Web-based process dynamic untrustworthiness testing method according to claim 1, characterized in that: After the terminal processes the operation request of the trusted function, the method further includes: The audit log of all dynamic operation processes is recorded in the log file of the trusted function, including the operator, operation time, measurement process, and measurement results.
8. A Web-based process dynamic untrustworthy testing system, characterized in that: include: The acquisition module is used to obtain all running processes on the operating system and display the detailed memory address segment range and corresponding memory permissions, address segment trust status and dynamic trust verification cycle of the process in the Web environment; The modification module is used to select any memory address segment based on memory permissions and address segment trust status, and modify the address segment according to the program's built-in rules; A display module, used for displaying the operation result and the trusted status prompt of the process after waiting for the dynamic trusted verification cycle configured by the dynamic trusted policy; The verification module is used to refresh the process list to check the trust status of the address segment and verify whether the untrusted process has been successfully modified.
9. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the Web-based process dynamic untrustworthy testing method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the Web-based process dynamic untrustworthy testing method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Method and related device for testing dynamic credible verification function of credible DCS (Distributed Control System) controller
CN119718960A
