File access control system and control method
By classifying, grading and adding watermarks to files, and formulating access control strategies, the problem of time-consuming and high computing resources in the existing technology is solved, timely and effective file access control is achieved, and the data leakage protection engine is alleviated. pressure.
Patent Information
- Application Number
- CN202410955540.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-15
AI Technical Summary
Existing data leakage protection technology is time-consuming and has high computing resources when identifying and accessing document content, resulting in the inability to timely and effectively control file access.
Through the data security management module, files are classified and graded, watermarks are added, and access control policies are formulated to reduce the processing pressure of the data leakage protection engine and achieve timely control of user access.
It realizes timely and effective control of user file access, alleviates the processing pressure of the data leakage protection engine, and improves the security and efficiency of file access.
Smart Images

Figure CN118965420A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data security technology, and in particular to a file access control system and control method. Background Art
[0002] The current demand for data security is showing a strong trend, and the security protection of non-structured data assets such as documents is a very important demand. Currently, Data Leakage Prevention (DLP) technology is usually used to detect document leakage incidents.
[0003] The protection technology implemented by the DLP engine is roughly as follows: identify the content of the document, and match the policies and rules. When it identifies unsafe situations, the DLP engine will execute corresponding blocking measures, such as interrupting the network connection, deleting files, or prohibiting data transmission, etc. In other words, DLP needs to identify the content of the document, and document identification is extremely time-consuming and occupies a high amount of computing resources, resulting in the inability to effectively and timely control access to files accessed by users. Summary of the invention
[0004] In view of this, the present application provides a file access control system and control method, which are used to perform timely and effective access control on users when they access files.
[0005] Specifically, the present application is implemented through the following technical solutions:
[0006] According to a first aspect of the present application, a file access control system is provided, including a data security management module, a file server and a data leakage protection engine, wherein:
[0007] The data security management module is used to read files from the file server; classify and grade the read files to obtain the classification and classification of the files; perform watermarking processing on the files to add the classification and classification as the watermark of the files to the files to obtain target files; and write the target files to the file server;
[0008] The data security management module is further used to formulate an access control policy for accessing the target file according to the target file;
[0009] The data leakage protection engine is used to perform access control on the user's access request for accessing the target file according to the access control policy of the target file obtained from the data management module after receiving the user's access request for accessing the target file.
[0010] According to a second aspect of the present application, a file access control method is provided, comprising:
[0011] Read files from the file server;
[0012] Classifying and grading the read files to obtain classification and grading of the files;
[0013] Performing watermarking processing on the file to add the classification and grading as a watermark of the file to the file, thereby obtaining a target file;
[0014] Writing the target file into the file server;
[0015] According to the target file, formulate an access control policy for accessing the target file;
[0016] The access control policy of the target file is sent to the data leakage protection engine, so that after receiving the access request of the user to access the target file, the data leakage protection engine performs access control on the access request of the user according to the access control policy.
[0017] According to the third aspect of the present application, an electronic device is provided, including a processor and a machine-readable storage medium, the machine-readable storage medium storing a computer program that can be executed by the processor, and the processor is prompted by the computer program to execute the method provided in the second aspect of the embodiment of the present application.
[0018] According to the fourth aspect of the present application, a machine-readable storage medium is provided, which stores a computer program. When called and executed by a processor, the computer program prompts the processor to execute the method provided in the second aspect of the embodiment of the present application.
[0019] Beneficial effects of the embodiments of the present application:
[0020] In the file access control system and control method provided by the embodiment of the present application, the data security management module reads files from the file server; classifies and classifies the read files to obtain the classification and classification of the files; performs watermarking processing on the files to add the classification and classification as the watermark of the files to the files to obtain the target files; writes the target files to the file server; then the data security management module can formulate an access control policy for accessing the target files according to the target files; in this way, after receiving the access request of the user to access the target files, the data leakage protection engine can perform access control on the user's access request according to the access control policy of the target files obtained from the data management module. Thus, timely and effective access control is achieved when the user accesses the files, and since the file identification and access control policy do not need to be set by the data leakage protection engine itself, the processing pressure of the data leakage protection engine is alleviated. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a structural diagram of a file access control system provided by an embodiment of the present application;
[0022] Figure 2 It is a structural diagram of another file access control provided by an embodiment of the present application;
[0023] Figure 3 It is a flowchart of a file access control method provided by an embodiment of the present application;
[0024] Figure 4 It is a structural diagram of a file access device provided in an embodiment of the present application;
[0025] Figure 5 It is a hardware structure diagram of an electronic device for implementing a file access control method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application.
[0027] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more corresponding listed items.
[0028] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0029] The file access control system provided by this application is described in detail below.
[0030] See also Figure 1 As shown, Figure 1This is a schematic diagram of the structure of a file access control system provided by the present application; the system may include a data security management module, a file server and a data leakage protection engine DLP, wherein:
[0031] The data security management module is used to read files from a file server; classify and grade the read files to obtain the classification and classification of the files; perform watermarking on the files to add the classification and classification as the watermark of the files to the files to obtain target files; and write the target files to the file server;
[0032] The data security management module is further used to formulate an access control policy for accessing the target file according to the target file;
[0033] The data leakage protection engine is used to perform access control on the user's access request according to the access control policy of the target file obtained from the data management module after receiving the user's access request to access the target file.
[0034] Specifically, the data security management module can scan the file server remotely, and then classify and grade the files on the file server, thereby obtaining the classification and grading of each file. In this way, in order to facilitate the access control of the file, this embodiment proposes that the above-mentioned data security management module has the file watermarking capability, that is, the classification and grading of the file is added to the file as a watermark, thereby obtaining the target file. On this basis, the data security management module writes the target file back to the file server to update the above-mentioned file in the file server.
[0035] On this basis, in order to facilitate the data leakage protection engine DLP to control access to files on the file server and reduce the processing pressure of the DLP engine, this embodiment proposes that after the data security management module obtains the classification and grading of the file, it can formulate an access control policy for accessing the file based on the classification and grading. In this way, after receiving the user's access request to access the target file, the DLP can perform access control on the file according to the access control policy obtained from the data security management module. Specifically, the above-mentioned access control policy can be sent to the DLP by the data security management module when it is generated, or it can be requested and obtained from the data security management module when the DLP receives the user's access request.
[0036] In the above-mentioned file access control system, the data security management module reads files from the file server; classifies and classifies the read files to obtain the classification and classification of the files; performs watermarking processing on the files to add the classification and classification as the watermark of the files to the files to obtain the target files; writes the target files to the file server; then the data security management module can formulate an access control policy for accessing the target files according to the target files; in this way, after receiving the access request of the user to access the target files, the data leakage protection engine can perform access control on the user's access request according to the access control policy of the target files obtained from the data management module. In this way, timely and effective access control is achieved when the user accesses the files, and since the file identification and access control policy do not need to be set by the data leakage protection engine itself, the processing pressure of the data leakage protection engine is alleviated.
[0037] Optionally, based on the above embodiment, in this embodiment, the above data security management module is specifically used to obtain the metadata of the file, use a pre-set document classification strategy to identify the metadata, and obtain the classification of the file; use a pre-trained document classification model to perform semantic recognition processing on the file to obtain the classification of the file;
[0038] The metadata is used to represent the attribute information of the file.
[0039] Specifically, combined Figure 2 As shown, when the data security management platform remotely scans a file server, it can obtain a file asset list, which may include file details of each file, such as the file name and the file metadata, which is used to represent the attribute information of the file.
[0040] The metadata of each of the above files can be added to the file by the operation and maintenance personnel when the file is created on the file server. Specifically, in the process of file classification and grading, documents need to be marked and metadata added. The above marking can be done manually or using automated tools. The purpose of marking is to add file type, keywords, author, creation date and other related information to the file for subsequent retrieval and management. At the same time, metadata can also perform version control and permission management on files to ensure the compliance and security of files. In this way, the metadata of each file can uniquely identify the file, and the attribute information of the file can include but is not limited to basic information such as file name, file size, file extension, and the department to which the file belongs.
[0041] After obtaining the metadata of the file, the metadata can be analyzed and identified using the pre-configured document classification strategy to obtain the classification of the file. The above document classification strategy can include multiple factors, such as the type, content, importance, confidentiality, etc. of the document. Based on this, each factor can be comprehensively considered to set the classification strategy. For example, when setting the classification strategy, the corresponding evaluation criteria can be set based on each factor, and the evaluation results can be comprehensively processed to obtain the classification result of each file. It should be noted that the above classification strategy can be defined manually, or the classification and identification of files can be achieved using technologies such as machine learning.
[0042] When grading files, text analysis and semantic understanding of texts are important technologies for measuring file levels. Therefore, this embodiment can use pre-trained natural language processing (NLP) to analyze and understand files, thereby identifying information such as the subject, keywords, and context of the files, and then process the subject, keywords, and context of the files based on a machine learning model to output the file classification.
[0043] Optionally, when classifying and grading files, the classification of files may include multiple classifications, such as primary classification, secondary classification, tertiary classification, etc. For ease of understanding, reference may be made to the classification and grading of each file shown in Table 1. Optionally, the classification and grading of each file may be continuously updated and iterated, and there may be a situation where the subsequent classification and grading changes. Based on this, this embodiment proposes that the classification and grading algorithm may be continuously optimized and improved, and then the files on the file server are classified and graded regularly.
[0044] Table 1
[0045]
[0046]
[0047] On this basis, after the files are classified and graded, the access rights of each file can be controlled and managed. For example, according to the classification and grading of files, corresponding access control policies can be formulated to ensure that only users with access rights can access and modify the file. The above access control policies can be implemented through access control lists, role management, etc.
[0048] Optionally, the access control policy for each file may include, but is not limited to, the levels and categories of access allowed to the file, etc.
[0049] Optionally, based on any of the above embodiments, in this embodiment, the above data security management module is further used to execute the step of adding a watermark to the file after obtaining a permission indication allowing the file to be watermarked.
[0050] Specifically, in actual applications, there may be some files that do not need to add watermarks (files are not important) or are prohibited (files are very important but more formal), so the operation and maintenance personnel can mark these files or do other processing to indicate that these files do not need to add watermarks. Based on this, when reading a file, the data security management module can confirm with the file server or the operation and maintenance personnel whether to allow the addition of watermarks. If it is allowed, it is determined that the permission indication for allowing the addition of watermarks to the file is obtained, and then the watermark addition process is performed on the file.
[0051] It should be noted that, for files that are not allowed to add watermarks, the data security management module can also classify and grade these files, and send the classification and grade to the file server so that the file server can maintain the classification and grade of these files separately, for example, record the correspondence between the file identification of the file and the classification and grade, etc.
[0052] Optionally, based on any of the above embodiments, in this embodiment, the above data leakage protection engine is specifically used to obtain user information of the user from the access request; send the user information to the data security management module; receive the access rights of the user fed back by the data security management module, the access rights including the target classification of the files that the user can access and the target classification of the files that can be accessed;
[0053] The data leakage protection engine is also used to extract classification and classification from the target file to be accessed by the user, and to match the extracted classification and classification with the access rights of the user; when the match is successful, the user is allowed to access the target file.
[0054] Specifically, combined with Figure 2 For example, when any user wants to access a file in a file server, an access request for the file can be triggered. Based on this, in order to ensure the security of access to the file, DLP can first capture the access request, and then extract the file identifier and user information of the user from the access request; then send the user information of the user to the data security management module. The data security management module determines the access rights to the files that the user can access, and the access rights can include the target classification and target classification of the files that the user can access. The above target classification can include multiple classifications, and the above target classification can be the highest level of files that the user can access. For example, the user has access rights to files at the highest level and below the highest level.
[0055] On this basis, DLP can match the user's access rights with the classification and grading of the target file. When the match is successful, the access request can be processed according to the execution action in the access control policy. For example, if the target classification in the access rights matches the classification of the target file, and the target grading in the access rights is not lower than the grading of the target file, it is determined that the user has the access rights to access the target file, and the user's access request is released to allow the user to access the target file. Otherwise, the user is not allowed to access the target file, that is, the user's access request is blocked.
[0056] It is worth noting that when the data security management platform configures access control policies based on file classification and grading, it can set up policy groups to group the access control policies of each file. Then, in order to uniquely characterize the access control policy of each file, each access control policy can be set with a policy name. The policy name can be set based on the file name to facilitate subsequent search for access control policies based on the file name.
[0057] In addition, each access control policy may include not only policy rules but also execution actions. When the execution action matches the policy rules, the user's access request is processed according to the execution action included in the access control policy. The execution action may include blocking or releasing, etc.
[0058] In addition to executing the above access control policies, when DLP also has other built-in detection rules, it will process access requests according to these detection rules to further ensure the security of file access. Figure 2 To illustrate, the access control policy for each file can be adjusted dynamically. For example, DLP will generate some security logs when processing the traffic for accessing files. When an alarm or leakage threat is found in the security log, the file leakage alarm log can be reported to the data security management platform so that the data security management platform can adjust the classification and / or grading of the file based on the log, and then adjust the access control policy of the file to better ensure the access security of the file.
[0059] Optionally, when the data security management module performs watermarking processing, it may include the following implementation process: obtaining the watermark type, and after obtaining the watermark type, obtaining the watermark position and the watermark adding method; according to the selected watermark embedding technology, the classification and grading of the files are added to the above-mentioned watermark position in the above-mentioned watermark adding method.
[0060] Specifically, when selecting the watermark type, the above-mentioned file watermark can contain various types of information, such as digital signatures, copyright information, confidentiality levels, access rights, etc. Before implementing the file watermark, it is possible to clearly identify what information needs to be embedded, and select the appropriate watermark type and form based on this information. In this application, the watermark is the classification and grading label of the file after it is identified.
[0061] On this basis, determine the watermark position and method. Specifically, when embedding a watermark in a file, it is necessary to determine the watermark position and method. The above watermark method can include visible or invisible forms. Visible watermarks are usually directly displayed on the file content, while invisible watermarks are three-dimensional or can only be observed through specific tools. In this application, the watermark method and watermark position can be pre-set, and the best embedding method and watermark position can be selected according to actual needs.
[0062] When embedding watermarks, a series of embedding technologies can be used, including digital watermark technology, spatial watermark technology, and frequency domain watermark technology. Digital watermark technology usually uses encryption algorithms and digital signature technology when embedding watermarks to ensure the security and non-tamperability of watermarks. Spatial watermarks embed watermarks by modifying the content and format of the document, while frequency domain watermarks embed watermarks by using the spectral characteristics of images and audio. Based on this, the appropriate watermark embedding technology can be selected according to the characteristics of the watermark embedding technology and the watermark characteristics of the file.
[0063] Optionally, when selecting a watermark embedding technology, this embodiment also proposes that the most suitable watermark embedding technology can be selected in combination with the file type and security requirements. In view of this, in this embodiment, the above-mentioned data security management module is specifically used to obtain the file type and security requirements of the file; use the watermark embedding technology that meets the file type and the security requirements to add a watermark to the file, so as to add the classification and grading as the watermark of the file to the file.
[0064] Specifically, when choosing a watermark embedding technique, it is very important to consider the file type and specific security requirements. In addition, when embedding a watermark into a file, it is necessary to ensure that the embedded watermark does not affect the integrity and readability of the file, while also ensuring the security and concealment of the watermark embedding. The following is an example and its detailed explanation:
[0065] **File Type**: PDF file
[0066] **Security requirements**: Prevent unauthorized copying and distribution, while ensuring that the watermark can still be detected when the file is slightly changed.
[0067] ###Suitable watermark embedding technology:
[0068] **Technology selection**: Digital watermarking technology based on discrete cosine transform (DCT)
[0069] Specifically, PDF files are a widely used document format, often used to distribute formal reports, research papers, multimedia e-books, etc. PDF files usually contain multiple content elements such as text, images, charts, etc., with a fixed format and good cross-platform compatibility.
[0070] In addition, the security requirements in the above example are: (1) prevent unauthorized copying and distribution; (2) ensure that the watermark is difficult to detect and remove directly; (3) be embedded in an invisible area so that the content and appearance of the file are not significantly affected; (4) still be detectable when slightly changed. Usually, the file may be compressed, transcoded or otherwise slightly edited, and the watermark needs to remain detectable in this case.
[0071] The above-mentioned DCT-based digital watermarking technology has the following characteristics: (1) Robustness: DCT can convert the entire file into the frequency domain and embed the watermark into the mid-frequency domain. This embedding method can maintain the detectability of the watermark after file compression, slight modification and other operations. (2) Invisibility: The human visual system is not sensitive to some areas in the frequency domain. Therefore, the DCT-based digital watermarking technology can maintain the visual quality of the file when embedding the watermark without affecting the user experience. (3) Applicability: DCT technology is widely used in images and videos, but it can also be used for the image part of PDF. Combined with the structural characteristics of PDF files, DCT-based digital watermarking technology can be used for PDF files.
[0072] When implementing the DCT-based digital watermarking technology, the general process is: first, preprocessing to decompose the PDF file and extract the image data in the PDF file; second, transform, that is, perform DCT transform on the extracted image data belonging to the spatial domain to convert the image data into image data in the frequency domain; then, embed, that is, select the intermediate frequency subband and embed the classification and grading into these frequency domain image data; third, inverse transform, perform inverse DCT transform on the image data embedded with the watermark to restore it to the target image data in the spatial domain; finally, re-embed the target image data into the PDF file to obtain a PDF file with watermark (classification and grading). Through the above steps, digital watermarks can be safely and covertly embedded in PDF files, which not only meets the requirements of anti-copying, but also ensures the detectability of watermarks when slight changes occur.
[0073] It should be noted that the above-mentioned PDF file and security requirements are only an example, and do not constitute a specific limitation on the file type and security requirements, and further do not constitute a specific limitation on the selection of watermark embedding technology. In actual applications, other methods can also be used, which can be determined according to actual conditions.
[0074] Furthermore, in order to further protect the file, this embodiment proposes that digital signature, encryption and other technologies can also be used to protect the confidentiality and integrity of the file. Based on this, the above-mentioned data security management module is also used to encrypt the classification and classification, and add watermarks to the file, so as to add the encrypted classification and classification as the watermark of the file to the file.
[0075] Specifically, in order to ensure the uniqueness and non-forgeability of the watermark and improve the reliability of the watermark, this embodiment proposes that the following strategies and technologies can be adopted: (1) encrypting the classification and grading; (2) digitally signing the classification and grading.
[0076] When encrypting the classification and grading, the encryption technology used may include symmetric encryption (such as AES) and asymmetric encryption (such as RSA), wherein the symmetric encryption technology mentioned above is a method of using one key for encryption and decryption, and the key needs to be securely stored and managed; the asymmetric encryption technology mentioned above is a method of using a pair of keys (public key and private key) for encryption and decryption, the public key can be publicly released, and the private key needs to be securely stored. The classification and grading are protected by encryption technology, and then added to the file as a watermark, so that even if the watermark is extracted, its content cannot be easily understood, thereby preventing the watermark from being tampered with and causing a security threat to the file.
[0077] In addition, digital signatures can also ensure the uniqueness and reliability of watermarks, and the recipient can verify the authenticity and source of the watermark information. For example, generate a hash value (digest) of the watermark; use the private key of the document sender to encrypt the hash value to generate a digital signature; in this way, the recipient can use the sender's public key to decrypt the signature and verify the hash value, thereby ensuring the authenticity and source reliability of the watermark.
[0078] Furthermore, UUID (Universally Unique Identifier) can be used to ensure the uniqueness and reliability of the watermark. UUID is a 128-bit globally unique identifier that is almost impossible to duplicate and can generate a unique identifier for each embedded watermark. When generating a watermark, a UUID is attached to ensure the uniqueness of each watermark. UUID can be generated through standard libraries, such as the uuid module in Python, or the java.util.UUID class in Java.
[0079] After the watermark is generated, the file can also be verified to confirm the effect of the watermark embedding. The verification of the watermark can be done through a dedicated watermark verification tool to ensure that the watermark can be accurately and reliably identified and is not easily deleted or tampered with.
[0080] After the watermark in the above-mentioned target file is encrypted, DLP will execute the following decryption and verification process when extracting the target file: extract the watermark from the target file; decrypt the watermark, and when the decryption is successful, obtain the classification and grade of the target file; obtain the classification and grade of the target file from the data security management module; when the classification and grade obtained by decryption is consistent with the obtained classification and grade, the target file is verified to be qualified.
[0081] Specifically, when DLP receives an access request triggered by a user for a target file, it will obtain the target file from the file server and then extract the watermark from the target file. Specifically, a dedicated digital watermark extraction tool or algorithm can be used to ensure that the watermark in the target file is accurately and completely obtained.
[0082] On this basis, since the extracted watermark is encrypted, DLP can use the decryption algorithm corresponding to the encryption algorithm to decrypt the watermark, so as to obtain the classification and grading of the target file; and in order to ensure the security of the file, the classification and grading obtained by decryption can also be verified to ensure the legality and authenticity of the watermark. Specifically, when the user requests the target file, he generally carries the file identification, and the encryption operation is performed by the data security management module, so the data security management module can record the correspondence between the file identification and classification and grading of each file. Based on this, DLP can send a request carrying the file identification of the target file to the data security management module to request the classification and grading of the target file, and then compare the obtained classification and grading with the decrypted classification and grading. When the comparison is consistent, it indicates that the watermark of the target file has not been tampered with or forged, and further indicates that the target file is safe and reliable.
[0083] In the above-mentioned file access control system, files are classified and graded, and the classification and grading are used as watermarks of the files as they flow, so that DLP can perform file access control based on the access control policy of the watermarked files. Compared with DLP's identification of sensitive data of files, it greatly improves the monitoring efficiency of files.
[0084] See also Figure 3 , Figure 3 This is a flowchart of a file access control method provided by the present application. The method can be applied to a data security management module in a file access control system. The data security management module can be an independent physical device, etc. The method may include the following steps:
[0085] Step 301: Read a file from a file server.
[0086] Step 302: classify and grade the read files to obtain the classification and grade of the files.
[0087] Step 303: Perform watermarking processing on the file to add the classification and grading as the watermark of the file to the file to obtain a target file.
[0088] Step 304: Write the target file into the file server.
[0089] Step 305: formulate an access control policy for accessing the target file according to the target file.
[0090] Step 306: Send the access control policy of the target file to the data leakage protection engine, so that after receiving the access request of the user to access the target file, the data leakage protection engine performs access control on the access request of the user according to the access control policy.
[0091] The implementation of this embodiment may refer to the relevant description of the above-mentioned data security management module, which will not be described in detail here.
[0092] In implementing the file access control method provided in the present application, timely and effective access control is achieved when users access files. Moreover, since file identification and access control policies do not need to be set by the data leakage protection engine itself, the processing pressure of the data leakage protection engine is alleviated.
[0093] Optionally, in this embodiment, step 303 may be performed according to the following process: after obtaining a permission indication allowing the file to be watermarked, performing watermarking processing on the file.
[0094] It should be noted that the implementation of this embodiment may refer to the corresponding description of the above-mentioned data security management module in the relevant embodiments, and will not be described in detail here.
[0095] Optionally, in this embodiment, step 302 can be performed according to the following process: obtaining metadata of the file, using a pre-set document classification strategy to identify the metadata to obtain the classification of the file; using a pre-trained document classification model to semantically identify the file to obtain the classification of the file; wherein the metadata is used to characterize the attribute information of the file.
[0096] It should be noted that the implementation of this embodiment may refer to the corresponding description of the above-mentioned data security management module in the relevant embodiments, and will not be described in detail here.
[0097] Optionally, in this embodiment, step 303 can be performed according to the following process: obtaining the file type and security requirements of the file; using a watermark embedding technology that meets the file type and the security requirements to add a watermark to the file, so as to add the classification and grade as the watermark of the file to the file.
[0098] It should be noted that the implementation of this embodiment may refer to the corresponding description of the above-mentioned data security management module in the relevant embodiments, and will not be described in detail here.
[0099] Optionally, in this embodiment, step 303 may be performed according to the following process: encrypting the classification and grading; and watermarking the file to add the encrypted classification and grading as the watermark of the file to the file.
[0100] It should be noted that the implementation of this embodiment may refer to the corresponding description of the above-mentioned data security management module in the relevant embodiments, and will not be described in detail here.
[0101] Based on the same inventive concept, the present application also provides a file access control device corresponding to the above file access control method. The implementation of the file access control device can refer to the above description of the file access control method, which will not be discussed here one by one.
[0102] See also Figure 4 , Figure 4 A file access control device provided by an exemplary embodiment of the present application can be applied to a data security management module in a file access control system. The device includes:
[0103] The reading unit 401 is used to read files from a file server;
[0104] The identification unit 402 is used to classify and grade the read files to obtain the classification and grade of the files;
[0105] The processing unit 403 is used to perform watermarking processing on the file, so as to add the classification and grading as the watermark of the file to the file, thereby obtaining a target file;
[0106] A writing unit 404, used for writing the target file into the file server;
[0107] A formulation unit 405, configured to formulate an access control policy for accessing the target file according to the target file;
[0108] The sending unit 406 is used to send the access control policy of the target file to the data leakage protection engine, so that after receiving the access request of the user to access the target file, the data leakage protection engine performs access control on the access request of the user according to the access control policy.
[0109] This achieves timely and effective access control for users when accessing files, and because file identification and access control policies do not need to be set by the data leakage protection engine itself, the processing pressure of the data leakage protection engine is alleviated.
[0110] Optionally, in this embodiment, the processing unit 403 is specifically configured to perform watermark adding processing on the file after obtaining a permission indication allowing the file to be watermarked.
[0111] Optionally, in this embodiment, the above-mentioned identification unit 402 is specifically used to obtain the metadata of the file, use a pre-set document classification strategy to identify the metadata, and obtain the classification of the file; use a pre-trained document classification model to perform semantic recognition processing on the file to obtain the classification of the file; wherein the metadata is used to characterize the attribute information of the file.
[0112] Optionally, in this embodiment, the above-mentioned processing unit 403 is specifically used to obtain the file type and security requirements of the file; use the watermark embedding technology that meets the file type and the security requirements to add the watermark to the file, so as to add the classification and grade as the watermark of the file to the file.
[0113] Optionally, in this embodiment, the processing unit 403 is specifically used to encrypt the classification and grading; and perform watermarking on the file to add the encrypted classification and grading as the watermark of the file to the file.
[0114] Based on the same inventive concept, an embodiment of the present application provides an electronic device, which can be a device where the above-mentioned data security management module is located, a file server or a device where the DLP is located. Figure 5 As shown, the electronic device includes a processor 501 and a machine-readable storage medium 502, the machine-readable storage medium 502 stores a computer program that can be executed by the processor 501, and the processor 501 is prompted by the computer program to execute the file access control method provided by any embodiment of the present application. In addition, the electronic device also includes a communication interface 503 and a communication bus 504, wherein the processor 501, the communication interface 503, and the machine-readable storage medium 502 communicate with each other through the communication bus 504.
[0115] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0116] The communication interface is used for communication between the above electronic device and other devices.
[0117] The machine-readable storage medium 502 may be a memory, which may include a random access memory (RAM), a DDR SRAM (Double Data Rate Synchronous Dynamic Random Access Memory), or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor.
[0118] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0119] In addition, this embodiment also provides a machine-readable storage medium, which stores a computer program. When called and executed by a processor, the computer program prompts the processor to execute the method provided by any embodiment of the present application.
[0120] As for the electronic device and machine-readable storage medium embodiments, since the method contents involved are basically similar to the aforementioned method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0121] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0122] The implementation process of the functions and effects of each unit / module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0123] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are merely schematic, wherein the units / modules described as separate components may or may not be physically separated, and the components displayed as units / modules may or may not be physical units / modules, that is, they may be located in one place, or they may be distributed on multiple network units / modules. Some or all of the units / modules may be selected according to actual needs to achieve the purpose of the present application. A person of ordinary skill in the art can understand and implement it without creative work.
[0124] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A file access control system, It is characterized in that It includes data security management module, file server and data leakage protection engine, including: The data security management module is used to read files from the file server; classify and grade the read files to obtain the classification and classification of the files; perform watermarking processing on the files to add the classification and classification as the watermark of the files to the files to obtain target files; and write the target files to the file server; The data security management module is further used to formulate an access control policy for accessing the target file according to the target file; The data leakage protection engine is used to perform access control on the user's access request for accessing the target file according to the access control policy of the target file obtained from the data management module after receiving the user's access request for accessing the target file.
2. The system according to claim 1, It is characterized in that Also includes: The data security management module is also used to execute the step of adding a watermark to the file after obtaining a permission indication allowing the file to be watermarked.
3. The system according to claim 1, It is characterized in that The data security management module is specifically used to obtain metadata of the file, identify and process the metadata using a pre-set document classification strategy to obtain the classification of the file; and perform semantic recognition processing on the file using a pre-trained document classification model to obtain the classification of the file; The metadata is used to represent the attribute information of the file.
4. The system according to claim 1, It is characterized in that The data leakage protection engine is specifically used to obtain user information of the user from the access request; and send the user information to the data security management module; receiving the access rights of the user fed back by the data security management module, the access rights including the target classification of files accessible to the user and the target classification of files accessible to the user; The data leakage protection engine is also used to extract classification and classification from the target file that the user wants to access, and match the extracted classification and classification with the user's access rights; when the match is successful, the user is allowed to access the target file.
5. The system according to claim 1, It is characterized in that The data security management module is specifically used to obtain the file type and security requirements of the file; use the watermark embedding technology that meets the file type and the security requirements to add the classification and grade as the watermark of the file to the file.
6. The system according to claim 1, It is characterized in that The data security management module is also used to encrypt the classification and grading, and to add a watermark to the file, so as to add the encrypted classification and grading as the watermark of the file to the file.
7. The system according to claim 6, It is characterized in that The data leakage protection engine is also used to extract the watermark from the target file; decrypt the watermark, and when the decryption is successful, obtain the classification and grading of the target file; Obtaining the classification and grading of the target file from the data security management module; When the decrypted classification and grade are consistent with the acquired classification and grade, the target file is verified to be qualified.
8. A file access control method, It is characterized in that include: Read files from the file server; Classifying and grading the read files to obtain classification and grading of the files; Performing watermarking processing on the file to add the classification and grading as a watermark of the file to the file, thereby obtaining a target file; Writing the target file into the file server; According to the target file, formulate an access control policy for accessing the target file; The access control policy of the target file is sent to the data leakage protection engine, so that after receiving the access request of the user to access the target file, the data leakage protection engine performs access control on the access request of the user according to the access control policy.
9. The method according to claim 8, It is characterized in that Performing watermarking processing on the file, specifically including: After obtaining the permission indication that allows the file to be watermarked, the file is processed for adding the watermark.
10. The method according to claim 8, It is characterized in that Classifying and grading the read files to obtain the classification and grading of the files includes: Obtaining metadata of the file, and using a preset document classification strategy to identify and process the metadata to obtain a classification of the file; Using a pre-trained document classification model to perform semantic recognition processing on the document to obtain a classification of the document; The metadata is used to represent the attribute information of the file.
11. The method according to claim 8, It is characterized in that Performing watermarking processing on the file, specifically including: Obtaining the file type and security requirements of the file; The file is watermarked using a watermark embedding technology that meets the file type and the security requirements, so as to add the classification and grade as the watermark of the file to the file.
12. The method according to claim 8, It is characterized in that Performing watermarking processing on the file, specifically including: Encrypting the classification and grading; The file is subjected to watermark adding processing to add the encrypted classification grade to the file as a watermark of the file.
Citation Information
Cited By
File signature method, verification method and device based on anti-counterfeiting image
CN119397610A
A file signature method, verification method and device based on anti-counterfeiting image
CN119397610B
