Method and system for calibrating document security classification on Linux operating system
Patent Information
- Application Number
- CN202411082338.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
[0008]针对现有技术的以上缺陷或改进需求,本发明提供了一种Linux操作系统上标定文档密级的方法和系统,其目的在于,解决现有通过COM加载项标定文档密级的方法仅仅只适配windows系统,对于Linux操作系统无法适用的技术问题,以及必须由用户输入密级信息,无法在后台标定文档密级的技术问题,以及在未安装COM加载项的终端设备打开标定密级的文档时,无法显示密级信息的技术问题
[0039](1)本发明由于采用了步骤(1)和步骤(2),其通过开发工具开发了适配Linux操作系统的js加载项,因此能够解决现有通过COM加载项标定文档密级的方法仅仅只适配windows系统,对于Linux操作系统无法适用的技术问题;
Smart Images

Figure CN118796777A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of information security technology, and more specifically, relates to a method and system for marking the confidentiality level of a document on a Linux operating system. Background Art
[0002] In the process of making, receiving, sending, delivering, using, copying, extracting, storing and destroying confidential documents, specific confidentiality measures shall be followed and corresponding treatment shall be carried out according to the marked confidentiality level. Therefore, confidential documents need to be marked with confidentiality level first.
[0003] The existing method for calibrating the confidentiality level of a document is mainly to calibrate the confidentiality level of a confidential document through a Component Object Model (COM) add-in.
[0004] However, the above existing methods for calibrating document classification have some drawbacks that cannot be ignored:
[0005] 1. This method is only applicable to Windows systems and is not applicable to Linux operating systems;
[0006] 2. This method requires the user to input confidentiality information, and the document confidentiality cannot be calibrated in the background;
[0007] 3. The confidentiality level information of this method is displayed through the COM plug-in. When a document with a calibrated confidentiality level is opened on a terminal device that does not have the COM add-in installed, the confidentiality level information cannot be displayed. Summary of the invention
[0008] In view of the above defects or improvement needs of the prior art, the present invention provides a method and system for calibrating the confidentiality of a document on a Linux operating system, which aims to solve the technical problems that the existing method for calibrating the confidentiality of a document through a COM add-in is only adapted to the Windows system and is not applicable to the Linux operating system, and the confidentiality information must be input by the user and the document confidentiality cannot be calibrated in the background, and the confidentiality information cannot be displayed when a terminal device without the COM add-in installed opens a document with a calibrated confidentiality.
[0009] To achieve the above object, according to one aspect of the present invention, a method for calibrating the confidentiality level of a document on a Linux operating system is provided, comprising:
[0010] A method for marking the confidentiality level of a document on a Linux operating system comprises the following steps:
[0011] (1) Install the js add-on in the user terminal device using the Linux operating system;
[0012] (2) When the document to be detected is saved or closed by the document editing tool, the js add-on installed in step (1) is used to determine whether the document to be detected has been classified. If the document to be detected has not been classified, proceed to step (3); otherwise, proceed to step (6);
[0013] (3) Determine through the js add-on whether the document classification information corresponding to the document to be detected input by the user is received. If not, proceed to step (4); otherwise, proceed to step (5);
[0014] (4) Generate the document classification information corresponding to the document to be detected in the background through the js add-on, and then proceed to step (5);
[0015] (5) Obtain basic information of the user's terminal device through the js add-on, and then proceed to step (6);
[0016] (6) Generate a confidentiality information watermark through a js add-on based on the document confidentiality information corresponding to the document to be detected and the basic information of the user terminal device obtained in step (5), add the generated confidentiality information watermark to the document to be detected, and display the confidentiality information watermark to the user when the user opens the document to be detected through a document editing tool.
[0017] Preferably, step (1) is to develop a js add-in of the WPS software using the Microsoft Visual Studio Code development tool, and then install the add-in in the user terminal device.
[0018] Preferably, the document classification information corresponding to the document to be detected includes the classification level, confidentiality period, and number of the document to be detected.
[0019] The basic information of the user terminal device includes the CPUID of the user terminal device, the MAC address of the network card media access control, the hard disk address, and the system user name.
[0020] Preferably, step (4) comprises the following sub-steps:
[0021] (4-1) Obtain the data of the document to be detected through the js add-on, and then proceed to step (4-2);
[0022] (4-2) Obtain the document classification information matching rules through the js add-on, and then proceed to step (4-3);
[0023] (4-3) Based on the data of the document to be detected obtained in step (4-1) and the document classification information matching rules obtained in step (4-2), the document classification information corresponding to the document to be detected is generated in the background through the js add-on.
[0024] Preferably, the document classification information corresponding to the document to be detected includes a high classification and a low classification, and the matching result between the data of the document to be detected and the document classification information matching rule determines whether the document to be detected is of a high classification or a low classification;
[0025] If the title of the document contains "Top Secret", "Confidential" or "Secret", the document to be tested corresponds to a high level of confidentiality;
[0026] If the document content contains "core", "design" or "confidential", the document to be tested corresponds to a high-level confidentiality level;
[0027] If the author of the document is a limited person, it means that the document to be tested corresponds to a high confidentiality level;
[0028] If the revision time of the document is within the specified time range, it means that the document to be detected corresponds to a high confidentiality level.
[0029] Preferably, the data of the document to be detected includes the document title, document content, document author and revision time of the document to be detected.
[0030] Preferably, step (7) is specifically as follows: first, a picture is generated according to the document classification information and the basic information of the user terminal device through the js add-on; then, the transparency of the picture is adjusted through the js add-on; subsequently, the size of the picture is adjusted to be smaller than the page size of the document to be detected through the js add-on; finally, the resized picture is added to the document to be detected through the js add-on.
[0031] According to another aspect of the present invention, a system for calibrating the confidentiality level of a document on a Linux operating system is provided, comprising:
[0032] The first module is used to install the js add-on in a user terminal device using a Linux operating system;
[0033] The second module is used to determine whether the document to be detected is marked with a confidentiality level through the js add-on installed by the first module when the document to be detected is saved or closed by the document editing tool. If the document to be detected is not marked with a confidentiality level, it will be transferred to the third module; otherwise, it will be transferred to the sixth module;
[0034] The third module is used to determine whether the document classification information corresponding to the document to be detected input by the user is received through the js add-on, if not received, it will be transferred to the fourth module; otherwise, it will be transferred to the fifth module;
[0035] The fourth module is used to generate the document classification information corresponding to the document to be detected in the background through the js add-on, and then transfer it to the fifth module;
[0036] The fifth module is used to obtain basic information of the user terminal device through the js add-on, and then transfer to the sixth module;
[0037] The sixth module is used to generate a confidentiality information watermark through a js add-on according to the document confidentiality information corresponding to the document to be detected and the basic information of the user terminal device obtained in the fifth module, add the generated confidentiality information watermark to the document to be detected, and display the confidentiality information watermark to the user when the user opens the document to be detected through a document editing tool.
[0038] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:
[0039] (1) The present invention adopts step (1) and step (2), and develops a js add-in adapted to the Linux operating system through a development tool, thereby solving the technical problem that the existing method of calibrating the confidentiality level of a document through a COM add-in is only adapted to the Windows system and cannot be applied to the Linux operating system;
[0040] (2) Since the present invention adopts step (4), the document classification information is generated in the background through the JS add-in, thereby solving the technical problem that the existing method of calibrating the document classification through the COM add-in cannot calibrate the document classification in the background;
[0041] (3) Since the present invention adopts step (6), it adds the confidentiality information watermark to the document content through the js add-in, thereby solving the technical problem that the existing method of marking the confidentiality of a document through the COM add-in cannot display the confidentiality information when the document with the marked confidentiality is opened on a terminal device without the COM add-in installed. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 The present invention provides a flowchart of a method for calibrating the confidentiality level of a document on a Linux operating system. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0044] like Figure 1 As shown, the present invention provides a method for marking the confidentiality level of a document on a Linux operating system, comprising the following steps:
[0045] (1) Install the js add-on in the user terminal device using the Linux operating system;
[0046] js add-ons are a set of solutions provided by WPS software based on Web technology to extend WPS applications. The solution provides a large number of callable function interfaces that can perform detailed operations on documents. Users can implement their own js add-ons to extend customized functions on document editing tools.
[0047] Specifically, the present invention develops a js add-in of a word editing system (Word Processing System, referred to as WPS) software through the Microsoft Visual Studio Code development tool, and then installs the add-in in a user terminal device, that is, according to the method officially provided by the WPS software, the js add-in is installed in the user terminal device by modifying the WPS configuration.
[0048] The advantage of step (1) is that the js add-on is compatible with most versions of the Linux operating system and most versions of the WPS software.
[0049] (2) When the document to be detected is saved or closed by the document editing tool, the js add-on installed in step (1) is used to determine whether the document to be detected has been classified. If the document to be detected has not been classified, proceed to step (3); otherwise, proceed to step (6);
[0050] The commonly used document editing tools in the existing Linux operating system are WPS Chinese characters, tables, presentation tools, etc., and the documents are mainly text, tables, presentation documents, etc. in the WPS system.
[0051] When the document editing tool is started, the js add-on registers callback processing functions for the AfterSave event (after-save event) and the AfterClose event (after-close event).
[0052] When the document editing tool saves a document, the AfterSave event is triggered and the AfterSave event callback processing function in the js add-in is called.
[0053] When the document editing tool closes the document, the AfterClose event is triggered and the AfterClose event callback processing function in the js add-in is called.
[0054] (3) Determine through the js add-on whether the document classification information corresponding to the document to be detected input by the user is received. If not, proceed to step (4); otherwise, proceed to step (5);
[0055] When it is determined that the document to be tested has no calibrated confidentiality level, a dialog box is popped up through the js add-on, and the document confidentiality level information input by the user is received through the dialog box. The document confidentiality level information includes the confidentiality level, confidentiality period, and number of the document to be tested.
[0056] The advantage of steps (2)-(3) is that the operation process is automatically triggered and does not require active operation by the user.
[0057] (4) Generate the document classification information corresponding to the document to be detected in the background through the js add-on, and then proceed to step (5);
[0058] This step specifically includes the following sub-steps:
[0059] (4-1) Obtain the data of the document to be detected through the js add-on, and then proceed to step (4-2);
[0060] Specifically, the data of the document to be detected includes the document title, document content, document author and revision time of the document to be detected.
[0061] (4-2) Obtain the document classification information matching rules through the js add-on, and then proceed to step (4-3);
[0062] The example of document classification information matching rules is as follows: pre-divided into high-class and low-class (three or more document classification information can also be divided in actual application). If the title of the document contains "top secret", "confidential" or "secret", the document to be detected corresponds to the high-class; if the content of the document contains "core", "design" or "confidential", the document to be detected corresponds to the high-class; if the author of the document is "author A", "author B" or "author C", the document to be detected corresponds to the high-class; if the revision time of the document is "xx year x month", the document to be detected corresponds to the high-class; the document to be detected that does not belong to the above situation corresponds to the low-class.
[0063] The document classification information corresponding to the document to be detected includes high classification and low classification, and the matching result between the data of the document to be detected and the document classification information matching rule determines whether the document to be detected belongs to high classification or low classification;
[0064] If the author of the document is a limited person (for example, users in departments that require confidentiality, such as the technical department and the financial department, have their documents to be tested corresponding to high confidentiality, while users in other departments have their documents to be tested corresponding to low confidentiality), then the document to be tested corresponds to high confidentiality;
[0065] If the revision time of the document is within the limited time range (the limited time range is determined by the user based on the time of the confidentiality project. For example, Company A is engaged in a confidentiality project from May to August 2024, then the documents revised from May to August 2024 are determined to be high-level documents, and documents revised at other times are determined to be low-level documents), then it means that the document to be tested corresponds to a high-level confidentiality level.
[0066] (4-3) Based on the data of the document to be detected obtained in step (4-1) and the document classification information matching rules obtained in step (4-2), the document classification information corresponding to the document to be detected is generated in the background through the js add-on.
[0067] The advantage of step (4) is that the document classification information can be generated in the background and then the classification level can be calibrated in the background.
[0068] (5) Obtain basic information of the user's terminal device through the js add-on, and then proceed to step (6);
[0069] Specifically, the basic information of the user terminal device includes: the CPUID of the user terminal device, the network card media access control (Media Access Control, MAC) address, the hard disk address, the system user name and other public attributes.
[0070] The advantage of step (5) is that the confidentiality information watermark will be accompanied by device information, which is convenient for later tracing.
[0071] (6) Generate a confidentiality information watermark through a js add-on based on the document confidentiality information corresponding to the document to be detected and the basic information of the user terminal device obtained in step (5), add the generated confidentiality information watermark to the document to be detected, and display the confidentiality information watermark to the user when the user opens the document to be detected through a document editing tool.
[0072] Specifically, the document classification information in this step comes from the document classification information input by the user in step (3) or the document classification information generated by the background in step (4).
[0073] Specifically, this step is as follows: first, a picture is generated according to the document classification information and the basic information of the user terminal device through the js add-on; then the transparency of the picture is adjusted through the js add-on (generally the transparency is adjusted to 30%); subsequently, the size of the picture is adjusted to be smaller than the page size of the document to be detected through the js add-on; finally, the resized picture is added to the document to be detected through the js add-on.
[0074] The document classification information is written into the content of the document to be detected, and the classification information watermark will also be displayed when the document to be detected is opened on other types of terminal devices (such as Windows operating system terminal devices).
[0075] The advantage of step (6) is that the confidentiality information watermark is written into the document content, and the confidentiality information watermark can also be displayed on a terminal device that does not have the js add-on installed.
[0076] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0077] To sum up, the embodiment of the present invention generates a confidentiality information watermark through a js add-in according to the document confidentiality information input by the user and the collected basic information of the terminal device, and saves the confidentiality information watermark and the confidentiality information to the document. It can automatically detect whether the document is calibrated with a confidentiality level, and automatically force the confidentiality level of various documents in the WPS series to be calibrated.
[0078] The present invention can assist in achieving the mandatory policy requirements of confidentiality management work and provide auxiliary functions for the document confidentiality management work of confidential units.
[0079] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for marking the confidentiality level of a document on a Linux operating system, characterized in that: The following steps are involved: (1) Install the js add-on in the user terminal device using the Linux operating system; (2) When the document to be detected is saved or closed by the document editing tool, the js add-on installed in step (1) is used to determine whether the document to be detected has been classified. If the document to be detected has not been classified, proceed to step (3); otherwise, proceed to step (6); (3) Determine through the js add-on whether the document classification information corresponding to the document to be detected input by the user is received. If not, proceed to step (4); otherwise, proceed to step (5); (4) Generate the document classification information corresponding to the document to be detected in the background through the js add-on, and then proceed to step (5); (5) Obtain basic information of the user's terminal device through the js add-on, and then proceed to step (6); (6) Generate a confidentiality information watermark through a js add-on based on the document confidentiality information corresponding to the document to be detected and the basic information of the user terminal device obtained in step (5), add the generated confidentiality information watermark to the document to be detected, and display the confidentiality information watermark to the user when the user opens the document to be detected through a document editing tool.
2. The method for marking the confidentiality level of a document on a Linux operating system according to claim 1, characterized in that: Step (1) is to develop a js add-on for the WPS software using the Microsoft Visual Studio Code development tool, and then install the js add-on in the user terminal device.
3. The method for marking the confidentiality level of a document on a Linux operating system according to claim 1 or 2, characterized in that: The document classification information corresponding to the document to be detected includes the classification level, confidentiality period, and number of the document to be detected. The basic information of the user terminal device includes the CPUID of the user terminal device, the MAC address of the network card media access control, the hard disk address, and the system user name.
4. The method for marking the confidentiality level of a document on a Linux operating system according to any one of claims 1 to 3, characterized in that: Step (4) includes the following sub-steps: (4-1) Obtain the data of the document to be detected through the js add-on, and then proceed to step (4-2); (4-2) Based on the data of the document to be detected obtained in step (4-1), the document classification information matching rules of the document to be detected are obtained through the js add-on, and then the process proceeds to step (4-3); (4-3) Based on the data of the document to be detected obtained in step (4-1) and the document classification information matching rules obtained in step (4-2), the document classification information corresponding to the document to be detected is generated in the background through the js add-on.
5. The method for marking the confidentiality level of a document on a Linux operating system according to claim 4, characterized in that: The document classification information corresponding to the document to be detected includes high classification and low classification, and the matching result between the data of the document to be detected and the document classification information matching rule determines whether the document to be detected belongs to high classification or low classification; If the author of the document is a limited person, it means that the document to be tested corresponds to a high confidentiality level; If the revision time of the document is within the specified time range, it means that the document to be detected corresponds to a high confidentiality level.
6. The method for marking the confidentiality level of a document on a Linux operating system according to claim 5, characterized in that: The data of the document to be detected includes the document title, document content, document author and revision time of the document to be detected.
7. The method for marking the confidentiality level of a document on a Linux operating system according to claim 6, characterized in that: Step (7) is specifically as follows: first, a picture is generated according to the document classification information and the basic information of the user terminal device through the js add-on; then, the transparency of the picture is adjusted through the js add-on; subsequently, the size of the picture is adjusted to be smaller than the page size of the document to be detected through the js add-on; finally, the resized picture is added to the document to be detected through the js add-on.
8. A system for marking the confidentiality level of documents on a Linux operating system, characterized in that: include: The first module is used to install the js add-on in a user terminal device using a Linux operating system; The second module is used to determine whether the document to be detected is marked with a confidentiality level through the js add-on installed by the first module when the document to be detected is saved or closed by the document editing tool. If the document to be detected is not marked with a confidentiality level, it will be transferred to the third module; Otherwise, proceed to the sixth module; The third module is used to determine whether the document classification information corresponding to the document to be detected input by the user is received through the js add-on, and if not, it is transferred to the fourth module; otherwise, it is transferred to the fifth module; The fourth module is used to generate the document classification information corresponding to the document to be detected in the background through the js add-on, and then transfer it to the fifth module; The fifth module is used to obtain basic information of the user terminal device through the js add-on, and then transfer to the sixth module; The sixth module is used to generate a confidentiality information watermark through a js add-on according to the document confidentiality information corresponding to the document to be detected and the basic information of the user terminal device obtained in the fifth module, add the generated confidentiality information watermark to the document to be detected, and display the confidentiality information watermark to the user when the user opens the document to be detected through a document editing tool.
Citation Information
Patent Citations
Electronic document safety management system and method
CN103530570A
Document traceability method and device based on electronic file security classification identifier
CN110674477A
System and method for preventing file from being tampered and leaked through watermark encryption
CN113704828A
Auxiliary secret setting system based on JS loading item technology of WPS
CN114372279A
Watermark adding method and device, storage medium and electronic equipment
CN116051348A
