Web-based static trusted verification function test method and system

Through the static trusted verification function test method based on the Web, the static trusted policy configuration and verification are used to use the Web environment to solve the problem of inefficient traditional command line operations, efficient and accurate testing is achieved, and user experience and testing efficiency are improved. .

CN118897795APending Publication Date: 2024-11-05XIAN THERMAL POWER RES INST CO LTD +1
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410930442.X
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

Technical Problem

Traditional command-line operations are inefficient in static trusted verification function testing, time-consuming and unfavorable to junior testers, especially when there are thousands of directories and files on the operating system, it is difficult to fully verify static trust. Functional normality and vulnerability to hacking.

Method used

Adopt the web-based static trusted verification functional testing method to obtain and display all directories and files on the operating system through the web environment, configure and verify static trusted policies, support batch operations and real-time verification, reduce manual testing workload, and improve testing Efficiency and accuracy.

Benefits of technology

Through the web interface operation, the testing efficiency and accuracy are significantly improved, the testing process is simplified, manual operations are reduced, problems can be discovered in the first time, user experience is improved, and subsequent optimization and improvement are provided strong support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897795A_ABST
    Figure CN118897795A_ABST
Patent Text Reader

Abstract

The invention discloses a Web-based static trusted verification function test method and system, and belongs to the field of industrial control software testing, and the Web-based static trusted verification function test method comprises the following steps: obtaining all directories and files on an operating system, and displaying file directories and file names and file types under each directory in a Web environment; selecting a directory or a file as a marking object to configure a static credible verification strategy, and setting strategy configuration parameters according to test requirements; after the configuration is completed, verifying whether the static credible function is normal or not: carrying out modification, renaming and deletion operation on a file in a directory, and deleting a static credible verification strategy of the directory or the file; and obtaining a credible function verification conclusion and displaying a verification result. According to the Web-based static credible verification function test method, the test efficiency and accuracy can be effectively improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of industrial control software testing, and relates to a Web-based static trusted verification function testing method and system. Background Art

[0002] Files on an operating system with integrated trusted computing functions can be read and executed after static trusted verification policies are configured, but cannot be modified, deleted, or renamed. If a file is untrusted, it cannot be read, executed, modified, deleted, or renamed. This function can effectively prevent malicious tampering and program execution by attackers, thereby protecting the file integrity of the operating system.

[0003] After the static trusted verification function is deployed, it needs to be tested. There are thousands of directories on the operating system, and each directory may have thousands of files. The traditional command line operation configures the static trusted verification policy for the applications and configuration files in each directory one by one, and then verifies whether the static trusted function is normal, which will be slow. If there is a Web service running on the system, hackers may attack the system by accessing the web and maliciously modify the files on the operating system. In addition, the command line has high technical requirements, which is not conducive to junior testers to be familiar with the functions and conduct tests. If comprehensive verification is required, repetitive operations will take a lot of time and affect the test progress and quality. Summary of the invention

[0004] In order to solve the above problems, the present invention proposes a Web-based static trusted verification function testing method and system. The Web-based static trusted verification function testing method can effectively improve test efficiency and accuracy, optimize functional performance, and enhance user experience.

[0005] To achieve the above purpose, the present invention adopts the following technical means:

[0006] The first aspect of the present invention is to provide a Web-based static trusted verification function testing method, comprising:

[0007] Get all directories and files on the operating system, and display the file directory, file name and file type in each directory in the Web environment;

[0008] Select a directory or file as the tag object to configure the static trusted verification policy, and then set the policy configuration parameters according to the test requirements;

[0009] After the configuration is complete, verify whether the static trusted function is normal: modify, rename, or delete the files in the directory, and delete the static trusted verification policy for the directory or file;

[0010] Obtain the trusted function verification conclusion and display the verification result.

[0011] As a further improvement of the present invention, the Web environment is pre-deployed and started on the operating system.

[0012] As a further improvement of the present invention, the obtaining of all directories and files on the operating system includes:

[0013] Use a browser to access the Web environment and enter the test page of the static trusted verification function module.

[0014] As a further improvement of the present invention, the displaying of the file directory, the file name and the file type under each directory in the Web environment includes:

[0015] The system's file directory and the file names in each directory are intuitively displayed in a table. If the file has been configured with a static trusted verification policy, the detailed configuration information of the file's static trusted policy is also displayed: trusted status, measurement method, measurement algorithm, backup method, and control method.

[0016] As a further improvement of the present invention, the method of selecting a directory or a file as a marking object to configure a static trusted verification strategy, and then setting the strategy configuration parameters according to the test requirements, includes the following:

[0017] 1) Select the entire current directory, set policy parameters, and configure a static trusted verification policy for the directory. Then, all files in the subdirectories of the directory will be marked with the static trusted verification policy, and no file can be deleted, renamed, or modified.

[0018] 2) Select a subdirectory under the current directory, set policy parameters, and configure a static trusted verification policy for the subdirectory. Then all files under the subdirectory are marked with the static trusted verification policy, and no file can be deleted, renamed, or modified.

[0019] 3) Select any file in a directory, set policy parameters, and configure a static trusted verification policy for the file, so that the file can be deleted, renamed, or modified;

[0020] 4) Select any number of files in a directory, set policy parameters, and configure static trusted verification policies for the files. Then, these files cannot be deleted, renamed, or modified.

[0021] As a further improvement of the present invention, the step of selecting a directory or a file as a marking object to configure a static trusted verification strategy further includes the step of uploading a file:

[0022] File upload supports uploading single and multiple files. When uploading files, the trusted computing module will mark the files with static trusted verification policies. After the files are successfully uploaded, the files can be modified, deleted, and renamed to verify the static trusted policy function.

[0023] As a further improvement of the present invention, the verification of whether the static trusted function is normal includes:

[0024] Select a root directory on the operating system, and use the Modify, Delete, and Rename buttons to batch modify, delete, and rename sub-files in the entire directory;

[0025] Select a subdirectory under a directory on the operating system, and use the Modify, Delete, and Rename buttons to batch modify, delete, and rename files in the subdirectory;

[0026] Select a file and use the Modify, Delete, and Rename buttons to modify, delete, or rename the file;

[0027] The directories and files have been configured with static trusted policies, and all operations should return execution results.

[0028] As a further improvement of the present invention, the static trusted verification strategy for deleting directories or files includes:

[0029] Delete the static trusted verification policy of a single file or multiple files. Select a single file or multiple files to delete the policy of the corresponding files. A pop-up window will return the execution result: operation success or failure and the reason for failure. After the operation is successful, the file list will be refreshed. If the policy configuration parameters of the measurement method, measurement algorithm, backup method, and control method of the row where the file is located have been cleared, only the file name will be displayed.

[0030] The second aspect of the present invention is to provide a Web-based static trusted verification function testing system, comprising:

[0031] The display module is used to obtain all directories and files on the operating system and display the file directory, the file name and file type under each directory in the Web environment;

[0032] The configuration module is used to select directories or files as tag objects to configure static trusted verification policies, and then set policy configuration parameters according to test requirements;

[0033] The verification module is used to verify whether the static trusted function is normal after the configuration is completed: modify, rename, and delete the files in the directory, and delete the static trusted verification policy of the directory or file;

[0034] The conclusion module is used to obtain the trusted function verification conclusion and display the verification result.

[0035] 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 static trusted verification function testing method when executing the computer program.

[0036] 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 static trusted verification function testing method is implemented.

[0037] Compared with the prior art, the present invention has the following beneficial effects:

[0038] The present invention reduces the workload of manual testing and improves testing efficiency through Web interface display and operation, which helps to find problems in the first place. Through comprehensive testing of static trusted functions, functional deficiencies and bottlenecks can be found, providing strong support for subsequent optimization and improvement. The static trusted verification function testing method based on the Web can effectively improve testing efficiency and accuracy and enhance user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A flow chart of a Web-based static trusted verification function testing method provided by the present invention;

[0040] Figure 2 It is a flow chart of a Web-based static trusted verification function test provided in an embodiment of the present invention;

[0041] Figure 3 A Web-based static trusted verification function testing system provided by the present invention;

[0042] Figure 4 A schematic diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0043] 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.

[0044] 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.

[0045] 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.

[0046] Terminology Note:

[0047] 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.

[0048] like Figure 1 As shown, the first object of the present invention is to provide a Web-based static trusted verification function testing method, comprising the following steps:

[0049] S1, obtain all directories and files on the operating system, and display the file directory, the file name and file type under each directory in the Web environment;

[0050] S2, select a directory or file as a tag object to configure a static trusted verification policy, and then set policy configuration parameters according to test requirements;

[0051] S3, after the configuration is completed, verify whether the static trust function is normal: modify, rename, and delete the files in the directory, and delete the static trust verification policy of the directory or file;

[0052] S4, obtain the trusted function verification conclusion and display the verification result.

[0053] This method enables testers to intuitively view and manage the file system by displaying file directories, file names, and file types in a Web environment, thereby improving the convenience and accuracy of the test. It allows users to select specific directories or files as tag objects to configure static trusted verification policies, and can flexibly set policy configuration parameters according to different test requirements to meet a variety of test scenarios. After the configuration is completed, the static trusted function can be verified immediately. By modifying, renaming, deleting operations, and deleting policies, the function performance can be observed in real time and problems can be discovered in a timely manner. This enables testers to clearly understand the static trusted function, providing a basis for subsequent improvement and optimization of the test method.

[0054] The principles include: This test method is carried out through the Web environment, making full use of the advantages of Web technology, such as cross-platform, easy access, real-time interaction, etc., making the test process more efficient and convenient. It can fully obtain all directories and files on the operating system and display them in the Web environment, providing users with powerful file management functions, which is convenient for users to operate and test the file system. It allows users to configure static trusted verification strategies according to test requirements, including selecting marking objects, setting policy parameters, etc., which reflects the flexibility and customizability of the method. After the configuration is completed, the method can verify the static trusted function in real time, and verify the reliability and stability of the function by simulating operations in real scenarios. Through Web interface display and operation, the workload of manual testing is reduced and the test efficiency is improved.

[0055] In addition, real-time verification and clear verification conclusions make the test results more accurate and reliable, which helps to find potential problems and defects. Through comprehensive testing of static trusted functions, functional deficiencies and bottlenecks can be found, providing strong support for subsequent optimization and improvement.

[0056] The various steps of the present invention are described in detail below in conjunction with specific embodiments and drawings.

[0057] like Figure 2 As shown, the present invention proposes a Web-based static trusted verification function testing method, comprising the following steps:

[0058] Deploy and start the Web environment (such as Java Web environment) on the operating system, and obtain all directories and files on the system;

[0059] Use a browser to access the JavaWeb environment and enter the test page of the static trusted verification function module. There are four major functions in total: view the static trusted policies configured on the system, configure static trusted policies, delete static trusted policies, and verify the specific business of the static trusted module. The clickable buttons on the page include configuring policies, deleting policies, modifying, deleting, renaming, and uploading files.

[0060] View strategy: The system's file directory and the file names in each directory are intuitively displayed in a table. If the file has been configured with a static trusted verification strategy, the detailed configuration information of the file's static trusted strategy is also displayed: trusted status, measurement method, measurement algorithm, backup method, and control method.

[0061] Optionally, the trusted state is divided into trusted and untrusted, the measurement method is divided into Hash method and Sign method, the measurement algorithm is divided into sm3 algorithm and sha256 algorithm, the backup method is divided into backup and no backup, and the control method is all displayed as preventing file tampering.

[0062] Configure the policy: First, select the directory or file as the tag object to configure the static trusted verification policy, and then set the policy configuration parameters according to the test requirements. In the measurement method column, select hash or sign through the drop-down box, in the measurement algorithm column, select sm3 or sha256 through the drop-down box, and in the backup method column, select yes or no through the drop-down box. There is only one control method option: prevent tampering.

[0063] The default rule-based configuration policy has the following situations:

[0064] 1) Select the entire current directory, set policy parameters, and configure a static trusted verification policy for the directory. Then, all files in the subdirectories of the directory are marked with the static trusted verification policy, and no file can be deleted, renamed, or modified.

[0065] 2) Select a subdirectory under the current directory, set policy parameters, and configure a static trusted verification policy for the subdirectory. Then all files under the subdirectory are marked with the static trusted verification policy, and no file can be deleted, renamed, or modified.

[0066] 3) Select any file in a directory, set policy parameters, and configure a static trusted verification policy for the file, so that the file cannot be deleted, renamed, or modified;

[0067] 4) Select any number of files in a directory, set policy parameters, and configure static trusted verification policies for the files. Then, these files cannot be deleted, renamed, or modified.

[0068] Upload files: supports uploading single and multiple files. When uploading files, the trusted computing module will mark the files with static trusted verification policies. After the files are successfully uploaded, the files can be modified, deleted, or renamed to verify the static trusted policy function.

[0069] Verify policy function: After the static trust policy is configured, perform the following operations to verify whether the static trust function is normal:

[0070] 1) Select a root directory on the operating system, and use the Modify, Delete, and Rename buttons to batch modify, delete, and rename sub-files in the entire directory;

[0071] 2) Select a subdirectory under a directory on the operating system, and use the Modify, Delete, and Rename buttons to batch modify, delete, and rename files in the subdirectory;

[0072] 3) Select a file and use the Modify, Delete, or Rename buttons to modify, delete, or rename the file;

[0073] 4) The directories and files have been configured with static trusted policies, and all operations should return execution results: execution failed, operation not allowed. The execution results are displayed in a pop-up window.

[0074] Deletion policy: supports deleting static trusted verification policies for single or multiple files. Select single or multiple files and click the Delete button to delete the policies for the corresponding files. A pop-up window will return the execution result: operation success or failure and the reason for failure. After the operation is successful, refresh the file list and you can see that the policy configuration parameters such as measurement method, measurement algorithm, backup method, and control method of the file row have been cleared, and only the file name is displayed.

[0075] like Figure 3 As shown, the present invention also provides a Web-based static trusted verification function testing system, comprising:

[0076] The display module is used to obtain all directories and files on the operating system and display the file directory, the file name and file type under each directory in the Web environment;

[0077] The configuration module is used to select directories or files as tag objects to configure static trusted verification policies, and then set policy configuration parameters according to test requirements;

[0078] The verification module is used to verify whether the static trusted function is normal after the configuration is completed: modify, rename, and delete the files in the directory, and delete the static trusted verification policy of the directory or file;

[0079] The conclusion module is used to obtain the trusted function verification conclusion and display the verification result.

[0080] 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 static trusted verification function testing method when executing the computer program.

[0081] 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 static trusted verification function testing method is implemented.

[0082] 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.

[0083] 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.

[0084] 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.

[0085] 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.

[0086] 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 static trusted verification function testing method, It is characterized in that include: Get all directories and files on the operating system, and display the file directory, file name and file type in each directory in the Web environment; Select a directory or file as the tag object to configure the static trusted verification policy, and then set the policy configuration parameters according to the test requirements; After the configuration is complete, verify whether the static trusted function is normal: modify, rename, or delete the files in the directory, and delete the static trusted verification policy for the directory or file; Obtain the trusted function verification conclusion and display the verification result.

2. According to claim 1, a Web-based static trusted verification function testing method, It is characterized in that The method of obtaining all directories and files on the operating system includes: Use a browser to access the Web environment and enter the test page of the static trusted verification function module.

3. According to claim 1, a Web-based static trusted verification function testing method, It is characterized in that The display of the file directory, the file name and the file type in each directory in the Web environment includes: The system's file directory and the file names in each directory are intuitively displayed in a table. If the file has been configured with a static trusted verification policy, the detailed configuration information of the file's static trusted policy is also displayed: trusted status, measurement method, measurement algorithm, backup method, and control method.

4. According to claim 1, a Web-based static trusted verification function testing method, It is characterized in that The method of selecting a directory or file as a tag object to configure a static trusted verification strategy and then setting strategy configuration parameters according to test requirements includes the following: 1) Select the entire current directory, set policy parameters, and configure a static trusted verification policy for the directory. Then, all files in the subdirectories under the directory will be marked with the static trusted verification policy, and no file can be deleted, renamed, or modified. 2) Select a subdirectory under the current directory, set policy parameters, and configure a static trusted verification policy for the subdirectory. Then all files under the subdirectory are marked with the static trusted verification policy, and no file can be deleted, renamed, or modified. 3) Select any file in a directory, set policy parameters, and configure a static trusted verification policy for the file, so that the file can be deleted, renamed, or modified; 4) Select any number of files in a directory, set policy parameters, and configure static trusted verification policies for the files. Then, these files cannot be deleted, renamed, or modified.

5. A Web-based static trusted verification function testing method according to claim 1, It is characterized in that After selecting a directory or file as a tag object to configure a static trusted verification strategy, the following step is also included: File upload supports uploading single and multiple files. When uploading files, the trusted computing module will mark the files with static trusted verification policies. After the file is successfully uploaded, the file can be modified, deleted, and renamed to verify the static trusted policy function.

6. A Web-based static trusted verification function testing method according to claim 1, It is characterized in that Verifying whether the static trusted function is normal includes: Select a root directory on the operating system, and use the Modify, Delete, and Rename buttons to batch modify, delete, and rename sub-files in the entire directory; Select a subdirectory under a directory on the operating system, and use the Modify, Delete, and Rename buttons to batch modify, delete, and rename files in the subdirectory; Select a file and use the Modify, Delete, and Rename buttons to modify, delete, or rename the file; The directories and files have been configured with static trusted policies, and all operations should return execution results.

7. A Web-based static trusted verification function testing method according to claim 1, It is characterized in that The static trusted verification strategy for deleting directories or files includes: Delete the static trusted verification policy of a single file or multiple files. Select a single file or multiple files to delete the policy of the corresponding files. A pop-up window will return the execution result: operation success or failure and the reason for failure. After the operation is successful, the file list will be refreshed. The policy configuration parameters of the measurement method, measurement algorithm, backup method, and control method of the file row have been cleared, and only the file name is displayed.

8. A Web-based static trusted verification function testing system, It is characterized in that include: The display module is used to obtain all directories and files on the operating system and display the file directory, the file name and file type under each directory in the Web environment; The configuration module is used to select directories or files as tag objects to configure static trusted verification policies, and then set policy configuration parameters according to test requirements; The verification module is used to verify whether the static trusted function is normal after the configuration is completed: modify, rename, and delete the files in the directory, and delete the static trusted verification policy of the directory or file; The conclusion module is used to obtain the trusted function verification conclusion and display the verification result.

9. An electronic device, It is characterized in that The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the Web-based static trusted verification function testing method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, It is 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 static trusted verification function testing method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Method and system for automatically testing static credible verification function of DCS (Distributed Control System) controller

    CN119690055A

  • A DCS controller static trusted verification function automated testing method and system

    CN119690055B

  • Static trusted verification function test method for trusted controller and related device

    CN120196092A

  • Static Trusted Verification Function Testing Method and Related Devices for a Trusted Controller

    CN120196092B