File detection system and method

Through the fingerprint processing module and decision-making module of the file detection system, the similarity between files and sensitive files is calculated and a processing strategy is generated, which solves the problem of being unable to calculate file similarity in the existing technology and achieves more fine-grained data protection.

CN112182604BActive Publication Date: 2024-08-23EVERSEC BEIJING TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011010077.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-23
Publication Date
2024-08-23
Estimated Expiration
2040-09-23

AI Technical Summary

Technical Problem

Existing technology cannot calculate the similarity between files and sensitive data, making it impossible to achieve more fine-grained data protection.

Method used

A file detection system is designed, including a management platform, a fingerprint processing module and a decision-making module. By generating file fingerprints and matching them with the file fingerprint database, the similarity between the files to be tested and sensitive files is calculated, and a processing strategy is generated based on the similarity.

Benefits of technology

It achieves fast and effective calculation of file similarity, provides more fine-grained data protection, and is suitable for scenarios such as enterprise data leakage prevention and file deduplication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112182604B
    Figure CN112182604B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a file detection system and method. The system includes: a management platform, a fingerprint processing module, a file fingerprint library and a decision module; the management platform is used to respond to the user's acquisition operation of the file to be tested, and issue a first processing instruction corresponding to the file to be tested to the fingerprint processing module; the fingerprint processing module is used to generate a target file fingerprint of the file to be tested according to the first processing instruction, and match the target file fingerprint with the file fingerprint library to obtain a target sensitive file similar to the file to be tested; the decision module is used to generate a processing strategy corresponding to the file to be tested according to the file parameters of the target sensitive file. The technical solution of this embodiment can quickly and effectively calculate the file similarity between the file to be tested and the sensitive file, and perform more fine-grained data protection on the file to be tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of data processing technology, and in particular to a file detection system and method. Background Art

[0002] With the development of society, security incidents such as sensitive data leakage in enterprises continue to occur, and people are paying more and more attention to the security of sensitive data. Traditional data leakage prevention methods are mostly cage-like and shackle-like strong control, that is, directly isolating all data or encrypting all data, but this brings a lot of unnecessary troubles in the actual data production, use, and circulation.

[0003] In terms of technical means to prevent sensitive data leakage, in addition to strong control, enterprises can also use basic file content detection technology to detect the content of files of various formats to determine whether the files to be tested contain sensitive data, in order to achieve the purpose of fine-grained management of internal enterprise data. However, since these basic detection technologies cannot calculate the similarity between files and sensitive data, they cannot provide more fine-grained data protection for enterprise data. Summary of the invention

[0004] The present invention provides a file detection system and method, which can quickly and effectively calculate the file similarity between a file to be tested and a sensitive file, and perform more fine-grained data protection on the file to be tested.

[0005] In a first aspect, an embodiment of the present invention provides a file detection system, including: a management platform, a fingerprint processing module, a file fingerprint library, and a decision module;

[0006] The management platform is used for sending a first processing instruction corresponding to the file to be tested to the fingerprint processing module in response to the user's acquisition operation of the file to be tested;

[0007] A fingerprint processing module, used to generate a target file fingerprint of the file to be tested according to the first processing instruction, and match the target file fingerprint with a file fingerprint library to obtain a target sensitive file similar to the file to be tested;

[0008] The decision module is used to generate a processing strategy corresponding to the file to be tested based on the file parameters of the target sensitive file.

[0009] Optionally, it also includes: a file library for storing sensitive documents;

[0010] The management platform is further used to respond to a file library update request input by a user, store the sensitive file corresponding to the update request into the file library, and issue a second processing instruction to the fingerprint processing module;

[0011] The fingerprint processing module is further used to generate a sensitive file fingerprint for each sensitive file in the file library using a target fingerprint generation algorithm according to the second processing instruction.

[0012] Optionally, the fingerprint processing module includes: a fingerprint generation unit and a fingerprint comparison unit;

[0013] A fingerprint generating unit, configured to generate a target file fingerprint of the file to be tested by adopting a target fingerprint generating algorithm according to the first processing instruction;

[0014] The fingerprint comparison unit is used to calculate the file similarity between the target file fingerprint and the sensitive file fingerprint in the file fingerprint library, and use the sensitive file corresponding to the highest file similarity as the target sensitive file similar to the file to be tested.

[0015] Optionally, it also includes: a parameter configuration module;

[0016] The management platform is further used to respond to a user's request for parameter configuration of sensitive files and send a parameter configuration instruction to the parameter configuration module;

[0017] The parameter configuration module is used to configure the file parameters for each sensitive file in the file library according to the parameter configuration instructions. The file parameters include: sensitivity level and similarity threshold.

[0018] Optional, decision module for:

[0019] Obtain the sensitivity level and similarity threshold of the target sensitive file, and determine whether the file similarity between the target sensitive file and the file to be tested is greater than the similarity threshold;

[0020] If the file similarity is greater than the similarity threshold, a deduplication strategy or data leakage prevention strategy corresponding to the file to be tested is generated according to the scenario and sensitivity level corresponding to the file to be tested; the scenarios include: file deduplication and data leakage prevention;

[0021] If the file similarity is less than the similarity threshold, a non-processing strategy corresponding to the file to be tested is generated.

[0022] Optionally, also include:

[0023] The detection result library is used to store detection information associated with the file to be tested; the detection information includes: file fingerprint of the file to be tested, file fingerprint of similar files, file similarity and processing strategy.

[0024] Optionally, also include:

[0025] The data analysis module is used to perform data analysis on the detection information in the detection result library at preset intervals, and generate an analysis report based on the analysis results and display it to the user.

[0026] In a second aspect, an embodiment of the present invention further provides a file detection method, which is applied to a file detection system provided by any embodiment of the present invention, comprising:

[0027] Through the management platform, in response to the user's acquisition operation of the file to be tested, a first processing instruction corresponding to the file to be tested is issued to the fingerprint processing module;

[0028] Generate a target file fingerprint of the file to be tested according to the first processing instruction through the fingerprint processing module, and match the target file fingerprint with the file fingerprint library to obtain a target sensitive file similar to the file to be tested;

[0029] Through the decision module, a processing strategy corresponding to the file to be tested is generated according to the file parameters of the target sensitive file.

[0030] Optionally, a target file fingerprint of the file to be tested is generated by a fingerprint processing module according to the first processing instruction, and the target file fingerprint is matched with a file fingerprint library to obtain a target sensitive file similar to the file to be tested, including:

[0031] By means of the fingerprint processing module, according to the first processing instruction, a target file fingerprint of the file to be tested is generated by using a target fingerprint generation algorithm; the target fingerprint generation algorithm is also used to generate a sensitive file fingerprint for each sensitive file in the file library;

[0032] The file similarity between the target file fingerprint and the sensitive file fingerprint in the file fingerprint library is calculated, and the sensitive file corresponding to the highest file similarity is used as the target sensitive file similar to the file to be tested.

[0033] Optionally, a decision module is used to generate a processing strategy corresponding to the file to be tested according to the file parameters of the target sensitive file, including:

[0034] The decision module is used to obtain the sensitivity level and similarity threshold of the target sensitive file, and to determine whether the file similarity between the target sensitive file and the file to be tested is greater than the similarity threshold;

[0035] If the file similarity is greater than the similarity threshold, a deduplication strategy or data leakage prevention strategy corresponding to the file to be tested is generated according to the scenario and sensitivity level corresponding to the file to be tested; the scenarios include: file deduplication and data leakage prevention;

[0036] If the file similarity is less than the similarity threshold, a non-processing strategy corresponding to the file to be tested is generated.

[0037] According to the technical solution of the embodiment of the present invention, the management platform of the file detection system responds to the user's acquisition operation of the file to be tested, and sends a first processing instruction corresponding to the file to be tested to the fingerprint processing module; the fingerprint processing module generates a target file fingerprint of the file to be tested according to the first processing instruction, and matches the target file fingerprint with the file fingerprint library to obtain a target sensitive file similar to the file to be tested; the decision module generates a processing strategy corresponding to the file to be tested according to the file parameters of the target sensitive file, which solves the problem that the similarity between the file to be tested and the sensitive file cannot be calculated in the prior art, and can quickly and effectively calculate the file similarity between the file to be tested and the sensitive file, and perform more fine-grained data protection on the file to be tested. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a structural schematic diagram of a file detection system in Embodiment 1 of the present invention;

[0039] Figure 2 This is a flow chart of a file detection method in Embodiment 2 of the present invention. DETAILED DESCRIPTION

[0040] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0041] Embodiment 1

[0042] Figure 1 Schematic diagram of the structure of a file detection system in the first embodiment of the present invention. This embodiment is applicable to the case of calculating the similarity between the file to be detected and the sensitive file. Figure 1 As shown, the file detection system includes: a management platform 110, a fingerprint processing module 120, a file fingerprint library 130 and a decision module 140;

[0043] The management platform 110 is used to send a first processing instruction corresponding to the file to be tested to the fingerprint processing module 120 in response to the user's acquisition operation on the file to be tested;

[0044] The fingerprint processing module 120 is used to generate a target file fingerprint of the file to be tested according to the first processing instruction, and match the target file fingerprint with the file fingerprint library 130 to obtain a target sensitive file similar to the file to be tested;

[0045] The decision module 140 is used to generate a processing strategy corresponding to the file to be tested according to the file parameters of the target sensitive file.

[0046] In this embodiment, the file detection system can be adapted to scenarios such as data leakage prevention for corporate files, etc., as well as scenarios such as web page deduplication and filtering for search engines, content anti-piracy and tracking for content websites such as news and novels, and text deduplication and clustering for social media. Among them, the file to be tested can be unstructured data stored in the form of documents, such as Microsoft Word PowerPoint files, PDF documents, and other sensitive or proprietary information. Sensitive files can be files containing sensitive information that needs to be protected, or reference files for text deduplication. The file fingerprint is calculated based on the file content, which is equivalent to the file identifier. Files with the same content have the same corresponding file fingerprints, and files with high content similarity have high similarity in corresponding file fingerprints.

[0047] In this embodiment, the file detection system can be divided into two major parts: the service layer and the data layer. The management platform 110 belongs to the service layer and can perform comprehensive management of the file detection system. For example, interaction management with the data layer, management of system users, role authority allocation, and human-computer interface interaction management. Therefore, when a user obtains a file to be tested through the front-end interactive page provided by the file detection system, the management platform 110 can generate a first processing instruction that matches the file to be tested in response to the user's acquisition operation of the file to be tested, and send it to the fingerprint processing module 120, so that the fingerprint processing module 120 calculates the file similarity between the file to be tested and the sensitive file according to the first processing instruction.

[0048] In this embodiment, the file fingerprint library 130 stores the file fingerprints of pre-set sensitive files, which can be used to compare whether the file to be tested is a sensitive file. The fingerprint processing module 120 can obtain the file to be tested according to the first processing instruction, and generate the target file fingerprint of the file to be tested, and then find the target sensitive file that is most similar to the file to be tested by similarity matching the target file fingerprint with the file fingerprint library 130, and then the decision module 140 obtains the file parameters of the target sensitive file, and determines whether to perform deduplication processing or data leakage prevention processing on the file to be tested according to the file parameters of the target sensitive file and the similarity between the file to be tested and the target sensitive file, and generates a corresponding processing strategy.

[0049] Optionally, it may also include: a file library 150 for storing sensitive files;

[0050] The management platform 110 is further used to respond to a file library update request input by a user, store the sensitive file corresponding to the update request into the file library 150, and issue a second processing instruction to the fingerprint processing module 120;

[0051] The fingerprint processing module 120 is further configured to generate a sensitive file fingerprint for each sensitive file in the file library by using a target fingerprint generation algorithm according to the second processing instruction.

[0052] In this embodiment, the file detection system further includes a file library 150 for storing pre-set sensitive files, such as salary documents of enterprise employees and enterprise project plans in data leakage prevention scenarios, or reference files for text deduplication in document deduplication scenarios. When a user requests the management authority of the file library from the management platform 110 through the front-end interactive page to update the file library 150, for example, to put a new sensitive file into the file library 150, or to delete or modify some sensitive files in the file library 150, the management platform 110 will store the sensitive file to be updated in the file library 150, or delete or modify the corresponding sensitive file from the file library 150, and generate a second processing instruction corresponding to the updated sensitive file, and send it to the fingerprint processing module 120. The fingerprint processing module 120 determines the updated sensitive file according to the second processing instruction, and uses a specified fingerprint generation algorithm, such as the K-Shingle algorithm, the SimHash algorithm, or the MinHash algorithm, to generate sensitive file fingerprints of each updated sensitive file, and store them in the file fingerprint library 130.

[0053] In this embodiment, the second processing instruction can be automatically generated by the management platform 110 after updating the sensitive files in the file library 150, or it can be generated by the management platform 110 in response to the user's update request for the file fingerprint library 130 for the updated sensitive files in the file library 150.

[0054] The idea of ​​the K-Shingle algorithm is to divide the file into n arbitrary character substrings of length k, and then obtain the shingle vector corresponding to the file, that is, the file fingerprint. For example, for a piece of text, the word segmentation vector is [w1,w2,w3,w4,…wn], and if k=3, the shingle vector of the text is [(w1,w2,w3),(w2,w3,w4),(w3,w4,w5),…(wn-2,wn-1,wn)].

[0055] The idea of ​​the SimHash algorithm is to first segment the file to obtain valid feature vectors, then calculate the hash value of each feature vector through the hash function, weight all feature vectors based on the hash value, and accumulate the weighted results of each feature vector. Finally, for the accumulated result, if it is greater than 0, it is set to 1, otherwise it is set to 0, so as to obtain the file fingerprint of the file.

[0056] The idea of ​​the Minhash algorithm is to first construct a feature matrix of the set, and then shuffle the constructed feature matrix by defining a minimum hash function. After the shuffle, the row number of the first non-zero element in a column is the minimum hash value of the column. After multiple shuffles, the minimum hash value of each column is calculated to form a new signature matrix, i.e., the file fingerprint.

[0057] Optionally, the fingerprint processing module 120 may include: a fingerprint generating unit 121 and a fingerprint comparing unit 122;

[0058] The fingerprint generating unit 121 is used to generate a target file fingerprint of the file to be tested by using a target fingerprint generating algorithm according to the first processing instruction;

[0059] The fingerprint comparison unit 122 is used to calculate the file similarity between the target file fingerprint and the sensitive file fingerprint in the file fingerprint library 130, and use the sensitive file corresponding to the highest file similarity as the target sensitive file similar to the file to be tested.

[0060] In this embodiment, when the fingerprint generation unit 121 generates the target file fingerprint of the file to be tested according to the first processing instruction, the fingerprint generation algorithm used by it needs to be the same as the fingerprint generation algorithm used by the sensitive files in the file library to generate the sensitive file fingerprint, otherwise, even if the subsequent fingerprint comparison unit 122 matches the target file fingerprint with the sensitive file fingerprint in the file fingerprint library, the matching result obtained is also wrong. For example, if the Simhash algorithm is used to generate the sensitive file fingerprint of each sensitive file in the file library 150, the Simhash algorithm also needs to be used to generate the target file fingerprint of the file to be tested.

[0061] In this embodiment, the fingerprint generation algorithm can also be used to calculate the similarity between files based on the file fingerprint. Therefore, the fingerprint comparison unit 122 can use the target fingerprint generation algorithm to calculate the file similarity between the target file fingerprint and the sensitive file fingerprint in the file fingerprint library 130. For example, if the target file fingerprint of the file to be tested and the sensitive file fingerprint in the file fingerprint library 130 are generated using the K-Shingle algorithm, the fingerprint comparison unit 122 can calculate the Jaccard coefficient between the target file fingerprint and the sensitive file fingerprint according to the K-Shingle algorithm to obtain the file similarity between the file to be tested and the sensitive file. Furthermore, the target sensitive file with the highest similarity to the file to be tested can be obtained from the file fingerprint library 130.

[0062] Optionally, it may also include: a parameter configuration module 160;

[0063] The management platform 110 is further configured to send a parameter configuration instruction to the parameter configuration module 160 in response to a user's request for parameter configuration of a sensitive file;

[0064] The parameter configuration module 160 is used to configure file parameters for each sensitive file in the file library 150 according to the parameter configuration instruction. The file parameters include: sensitivity level and similarity threshold.

[0065] In this embodiment, in order to achieve more fine-grained file deduplication or data leakage prevention processing, file parameters such as sensitivity level and similarity threshold can be set for each sensitive file according to the importance of the file. After the user sends a parameter configuration request to the management platform 110 through the front-end monitoring interface, the management platform 110 generates a corresponding parameter configuration instruction according to the sensitivity level and similarity threshold of each sensitive file included in the parameter configuration request, and sends it to the parameter configuration module 160. The parameter configuration module 160 configures the file parameters for the corresponding sensitive file in the file library 150 according to the parameter configuration instruction. For example, the sensitivity level is configured as high sensitivity for sensitive file A, and the similarity threshold is 70%. Among them, the similarity threshold is used to determine whether the file to be tested is similar to the sensitive file, and the sensitivity level is used to determine the degree of processing of the file to be tested.

[0066] Optionally, the decision module 140 is used to: obtain the sensitivity level and similarity threshold of the target sensitive file, and determine whether the file similarity between the target sensitive file and the file to be tested is greater than the similarity threshold; if the file similarity is greater than the similarity threshold, then generate a deduplication strategy or data leakage prevention strategy corresponding to the file to be tested according to the scenario and sensitivity level corresponding to the file to be tested; the scenarios include: file deduplication and data leakage prevention; if the file similarity is less than or equal to the similarity threshold, then generate a non-processing strategy corresponding to the file to be tested.

[0067] In this embodiment, after determining the target sensitive file similar to the file to be tested, the decision module 140 obtains the sensitivity level and similarity threshold of the target sensitive file, and compares the file similarity between the target sensitive file and the file to be tested with the similarity threshold. If the file similarity is greater than the similarity threshold, it is considered that the file to be tested is similar to the target sensitive file, and it is necessary to determine the processing strategy for the file to be tested based on the scene corresponding to the file to be tested and the sensitivity level of the target sensitive file. If the file similarity is less than or equal to the similarity threshold, it is considered that the file to be tested is not similar to the target sensitive file, and no matter what scene the file to be tested corresponds to or how high the sensitivity level of the target sensitive file is, there is no need to perform any processing on the file to be tested.

[0068] Exemplarily, assuming that the file to be tested is similar to the target sensitive file, the file to be tested is a crawler file retrieved by a search engine, corresponding to a file deduplication scenario, and the sensitivity level of the target sensitive file is high sensitivity, the decision module 140 generates a deduplication strategy for filtering the file to be tested; if the sensitivity level of the target sensitive file is low sensitivity, the decision module 140 generates a deduplication strategy for not processing. If the file to be tested is an enterprise file, corresponding to a data leakage prevention scenario, the decision module 140 can generate data leakage prevention strategies such as blocking the file to be tested, redirecting the file to be tested, encrypting the transmission of the file to be tested, and SMS alerts according to the sensitivity level of the target sensitive file.

[0069] Optionally, it may also include: a detection result library 170 for storing detection information associated with the file to be detected; the detection information includes: a file fingerprint of the file to be detected, a file fingerprint of similar files, a file similarity, and a processing strategy.

[0070] In this embodiment, after generating a processing strategy corresponding to the file to be tested, the decision module 140 stores the file fingerprint of the file to be tested, the file fingerprint of the target sensitive file similar to the file to be tested, the similarity between the file to be tested and the target sensitive file, and the processing strategy of the file to be tested in the detection result library to record the result information of fingerprint identification and query on the file to be tested.

[0071] Optionally, it may also include: a data analysis module 180, which is used to perform data analysis on the detection information in the detection result library at preset intervals, and generate an analysis report based on the analysis results and display it to the user.

[0072] In this embodiment, the data analysis module 180 can periodically obtain detection information from the detection result library for data analysis to obtain analysis results, such as the accuracy of statistical text deduplication, or the accuracy and error rate of sensitive data leakage prevention, etc., and generate an analysis report to display to the user.

[0073] According to the technical solution of the embodiment of the present invention, the management platform of the file detection system responds to the user's acquisition operation of the file to be tested, and sends a first processing instruction corresponding to the file to be tested to the fingerprint processing module; the fingerprint processing module generates a target file fingerprint of the file to be tested according to the first processing instruction, and matches the target file fingerprint with the file fingerprint library to obtain a target sensitive file similar to the file to be tested; the decision module generates a processing strategy corresponding to the file to be tested according to the file parameters of the target sensitive file, which solves the problem that the similarity between the file to be tested and the sensitive file cannot be calculated in the prior art, and can quickly and effectively calculate the file similarity between the file to be tested and the sensitive file, and perform more fine-grained data protection on the file to be tested.

[0074] Embodiment 2

[0075] Figure 2 This is a flow chart of a file detection method in the second embodiment of the present invention. This embodiment is applicable to the case where the similarity between the file to be detected and the sensitive file is calculated. The method can be executed by the file detection system, such as Figure 2 As shown, the method includes:

[0076] Step 210: In response to the user's operation of obtaining the file to be tested, the management platform sends a first processing instruction corresponding to the file to be tested to the fingerprint processing module.

[0077] This embodiment can be adapted to scenarios such as data leakage prevention for corporate files, etc., as well as web page deduplication and filtering for search engines, content anti-piracy and tracking for news and novel content websites, and text deduplication and clustering for social media. Among them, the file to be tested can be unstructured data stored in the form of documents, and the management platform can perform comprehensive management of the file detection system. When a user obtains the file to be tested through the front-end interactive page provided by the file detection system, a first processing instruction matching the file to be tested can be generated through the management platform and sent to the fingerprint processing module, so that the fingerprint processing module calculates the file similarity between the file to be tested and the sensitive file according to the first processing instruction.

[0078] Optionally, before the management platform, in response to the user's acquisition operation on the file to be tested, sends the first processing instruction corresponding to the file to be tested to the fingerprint processing module, it can also include: responding to the file library update request input by the user through the management platform, storing the sensitive file corresponding to the update request into the file library, and sending the second processing instruction to the fingerprint processing module; the fingerprint processing module is also used to generate sensitive file fingerprints for each sensitive file in the file library according to the second processing instruction and using the target fingerprint generation algorithm.

[0079] In this embodiment, when the user requests the management platform through the front-end interactive page to put new sensitive files into the file library, or delete or modify some sensitive files in the file library, the management platform can store the sensitive files to be updated in the file library, or delete or modify the corresponding sensitive files from the file library, and generate a second processing instruction corresponding to the updated sensitive file, and send it to the fingerprint processing module. The fingerprint processing module determines the updated sensitive file according to the second processing instruction, and uses a specified fingerprint generation algorithm, such as the K-Shingle algorithm, the SimHash algorithm, or the MinHash algorithm, to generate sensitive file fingerprints for each updated sensitive file and store them in the file fingerprint library.

[0080] Step 220: Generate a target file fingerprint of the file to be tested according to the first processing instruction through the fingerprint processing module, and match the target file fingerprint with the file fingerprint library to obtain a target sensitive file similar to the file to be tested.

[0081] Sensitive files can be files containing sensitive information that needs to be protected, or reference files for text deduplication. File fingerprints are calculated based on the file content, which is equivalent to the file identifier. Files with the same content have the same corresponding file fingerprints, and files with high content similarity have high corresponding file fingerprint similarity.

[0082] In this embodiment, the fingerprint processing module can obtain the file to be tested according to the first processing instruction, and use the fingerprint generation algorithm to generate a target file fingerprint of the file to be tested, and then find the target sensitive file that is most similar to the file to be tested by similarity matching the target file fingerprint with the fingerprints of each sensitive file in the file fingerprint library.

[0083] Optionally, generating a target file fingerprint of the file to be tested according to the first processing instruction through the fingerprint processing module, and matching the target file fingerprint with the file fingerprint library to obtain a target sensitive file similar to the file to be tested may include: generating a target file fingerprint of the file to be tested according to the first processing instruction through the fingerprint processing module using a target fingerprint generation algorithm; the target fingerprint generation algorithm is also used to generate sensitive file fingerprints for each sensitive file in the file library; calculating the file similarity between the target file fingerprint and the sensitive file fingerprints in the file fingerprint library, and taking the sensitive file corresponding to the highest file similarity as the target sensitive file similar to the file to be tested.

[0084] In this embodiment, when the fingerprint processing module generates the target file fingerprint of the file to be tested according to the first processing instruction, the fingerprint generation algorithm used by it needs to be the same as the fingerprint generation algorithm used by the sensitive files in the file library to generate the sensitive file fingerprint, otherwise, even if the target file fingerprint is subsequently matched with the sensitive file fingerprint in the file fingerprint library, the matching result obtained is also wrong. For example, if the Simhash algorithm is used to generate the sensitive file fingerprint of each sensitive file in the file library, the Simhash algorithm also needs to be used to generate the target file fingerprint of the file to be tested.

[0085] In this embodiment, the fingerprint generation algorithm can also be used to calculate the similarity between files based on the file fingerprint. Therefore, the fingerprint processing module can use the target fingerprint generation algorithm to calculate the file similarity between the target file fingerprint and the sensitive file fingerprint in the file fingerprint library. For example, if the target file fingerprint of the file to be tested and the sensitive file fingerprint in the file fingerprint library are generated using the K-Shingle algorithm, the fingerprint processing module can calculate the Jaccard coefficient between the target file fingerprint and the sensitive file fingerprint according to the K-Shingle algorithm to obtain the file similarity between the file to be tested and the sensitive file. Furthermore, the target sensitive file with the highest similarity to the file to be tested can be determined.

[0086] Step 230: Generate a processing strategy corresponding to the file to be tested according to the file parameters of the target sensitive file through the decision module.

[0087] In this embodiment, in order to achieve more fine-grained file deduplication or data leakage prevention processing, each sensitive file can be configured with file parameters such as sensitivity level and similarity threshold according to the importance of the file.

[0088] Optionally, generating a processing strategy corresponding to the file to be tested based on the file parameters of the target sensitive file may include: obtaining the sensitivity level and similarity threshold of the target sensitive file through a decision module, and determining whether the file similarity between the target sensitive file and the file to be tested is greater than the similarity threshold; if the file similarity is greater than the similarity threshold, generating a deduplication strategy or data leakage prevention strategy corresponding to the file to be tested based on the scenario and sensitivity level corresponding to the file to be tested; the scenarios include: file deduplication and data leakage prevention; if the file similarity is less than the similarity threshold, generating a non-processing strategy corresponding to the file to be tested.

[0089] In this embodiment, after determining the target sensitive file similar to the file to be tested, the decision module obtains the sensitivity level and similarity threshold of the target sensitive file, and compares the file similarity between the target sensitive file and the file to be tested with the similarity threshold. If the file similarity is greater than the similarity threshold, the file to be tested is considered to be similar to the target sensitive file, and a processing strategy for the file to be tested needs to be determined based on the scene corresponding to the file to be tested and the sensitivity level of the target sensitive file. If the file similarity is less than or equal to the similarity threshold, the file to be tested is considered to be dissimilar to the target sensitive file, and no matter what scene the file to be tested corresponds to or how high the sensitivity level of the target sensitive file is, no processing is required for the file to be tested.

[0090] Exemplarily, assuming that the file to be tested is similar to the target sensitive file, the file to be tested is a crawler file retrieved by a search engine, corresponding to a file deduplication scenario, and the sensitivity level of the target sensitive file is high sensitivity, then a deduplication strategy for filtering the file to be tested is generated through the decision module; if the sensitivity level of the target sensitive file is low sensitivity, then a deduplication strategy without processing is generated through the decision module. If the file to be tested is an enterprise file, corresponding to a data leakage prevention scenario, then through the decision module, data leakage prevention strategies such as blocking the file to be tested, redirecting the file to be tested, encrypting the transmission of the file to be tested, and SMS alerts can be generated according to the sensitivity level of the target sensitive file.

[0091] Optionally, before generating a processing strategy corresponding to the file to be tested according to the file parameters of the target sensitive file through the decision module, it may also include: sending a parameter configuration instruction to the parameter configuration module through the management platform in response to the user's parameter configuration request for the sensitive file; and configuring the file parameters for each sensitive file in the file library according to the parameter configuration instruction through the parameter configuration module, the file parameters including: sensitivity level and similarity threshold.

[0092] In this embodiment, after the user sends a parameter configuration request to the management platform through the front-end monitoring interface, the management platform can generate corresponding parameter configuration instructions according to the sensitivity level and similarity threshold of each sensitive file included in the parameter configuration request, and send them to the parameter configuration module. Through the parameter configuration module, according to the parameter configuration instructions, the file parameters of the corresponding sensitive files in the file library are configured. For example, the sensitivity level of sensitive file A is configured to be high sensitivity, and the similarity threshold is 70%. Among them, the similarity threshold is used to determine whether the file to be tested is similar to the sensitive file, and the sensitivity level is used to determine the degree of processing of the file to be tested.

[0093] Optionally, it may also include: storing detection information associated with the file to be tested; the detection information includes: a file fingerprint of the file to be tested, a file fingerprint of similar files, a file similarity, and a processing strategy.

[0094] In this embodiment, after generating a processing strategy corresponding to the file to be tested, the file fingerprint of the file to be tested, the file fingerprint of the target sensitive file similar to the file to be tested, the similarity between the file to be tested and the target sensitive file, and the processing strategy of the file to be tested can also be stored in the detection result library to record the result information of fingerprint identification and query of the file to be tested.

[0095] Optionally, the method may further include: performing data analysis on the detection information in the detection result library at preset time intervals, and generating an analysis report based on the analysis results and displaying it to the user.

[0096] In this embodiment, the data analysis module can also be used to periodically obtain detection information from the detection result library for data analysis to obtain analysis results, such as the accuracy of statistical text deduplication, or the correctness and error rate of sensitive data leakage prevention, etc., and generate an analysis report to display to the user.

[0097] The technical solution of the embodiment of the present invention is to issue a first processing instruction corresponding to the file to be tested to the fingerprint processing module through a management platform in response to a user's acquisition operation on the file to be tested; the fingerprint processing module generates a target file fingerprint of the file to be tested according to the first processing instruction, and matches the target file fingerprint with a file fingerprint library to obtain a target sensitive file similar to the file to be tested; and the decision module generates a processing strategy corresponding to the file to be tested according to the file parameters of the target sensitive file, which solves the problem that the similarity between the file to be tested and the sensitive file cannot be calculated in the prior art, and can quickly and effectively calculate the file similarity between the file to be tested and the sensitive file, thereby achieving more fine-grained file deduplication or data leakage prevention based on the file similarity.

[0098] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A file detection system, characterized in that: include: Management platform, fingerprint processing module, file fingerprint library and decision-making module; The management platform is used for sending a first processing instruction corresponding to the file to be tested to the fingerprint processing module in response to the user's acquisition operation of the file to be tested; The fingerprint processing module is used to generate a target file fingerprint of the file to be tested according to the first processing instruction, and match the target file fingerprint with the file fingerprint library to obtain a target sensitive file similar to the file to be tested; The decision module is used to generate a processing strategy corresponding to the file to be tested according to the file parameters of the target sensitive file; The system also includes: a parameter configuration module; The management platform is further used to send a parameter configuration instruction to the parameter configuration module in response to a user's parameter configuration request for a sensitive file; The parameter configuration module is used to configure file parameters for each sensitive file in the file library according to the parameter configuration instruction and the importance of the file, wherein the file parameters include: sensitivity level and similarity threshold; The decision module is specifically used for: Obtaining the sensitivity level and similarity threshold of the target sensitive file, and determining whether the file similarity between the target sensitive file and the file to be tested is greater than the similarity threshold; If the file similarity is greater than the similarity threshold, a deduplication strategy or data leakage prevention strategy corresponding to the file to be tested is generated according to the scenario and sensitivity level corresponding to the file to be tested; the scenario includes: file deduplication and data leakage prevention; If the file similarity is less than the similarity threshold, a non-processing strategy corresponding to the file to be tested is generated.

2. The system according to claim 1, characterized in that Also includes: A file repository for storing sensitive documents; The management platform is further used to respond to a file library update request input by a user, store the sensitive file corresponding to the update request into the file library, and issue a second processing instruction to the fingerprint processing module; The fingerprint processing module is further used to generate a sensitive file fingerprint of each sensitive file in the file library using a target fingerprint generation algorithm according to the second processing instruction.

3. The system according to claim 2, characterized in that The fingerprint processing module includes: a fingerprint generating unit and a fingerprint comparing unit; The fingerprint generating unit is used to generate a target file fingerprint of the file to be tested by adopting a target fingerprint generating algorithm according to the first processing instruction; The fingerprint comparison unit is used to calculate the file similarity between the target file fingerprint and the sensitive file fingerprint in the file fingerprint library, and use the sensitive file corresponding to the highest file similarity as the target sensitive file similar to the file to be tested.

4. The system according to claim 1, characterized in that Also includes: A test result library, used to store test information associated with the file to be tested; The detection information includes: file fingerprint of the file to be tested, file fingerprint of similar files, file similarity and processing strategy.

5. The system according to claim 4, characterized in that Also includes: The data analysis module is used to perform data analysis on the detection information in the detection result library at preset intervals, and generate an analysis report based on the analysis results to display to the user.

6. A file detection method, characterized in that: A file detection system as claimed in any one of claims 1 to 5, comprising: Through the management platform, in response to the user's acquisition operation of the file to be tested, a first processing instruction corresponding to the file to be tested is issued to the fingerprint processing module; Generate a target file fingerprint of the file to be tested according to the first processing instruction through a fingerprint processing module, and match the target file fingerprint with the file fingerprint library to obtain a target sensitive file similar to the file to be tested; Generate a processing strategy corresponding to the file to be tested according to the file parameters of the target sensitive file through a decision module; The decision module generates a processing strategy corresponding to the file to be tested according to the file parameters of the target sensitive file, including: Obtaining the sensitivity level and similarity threshold of the target sensitive file through the decision module, and determining whether the file similarity between the target sensitive file and the file to be tested is greater than the similarity threshold; If the file similarity is greater than the similarity threshold, a deduplication strategy or data leakage prevention strategy corresponding to the file to be tested is generated according to the scenario and sensitivity level corresponding to the file to be tested; the scenario includes: file deduplication and data leakage prevention; If the file similarity is less than the similarity threshold, a non-processing strategy corresponding to the file to be tested is generated.

7. The method according to claim 6, characterized in that Generate a target file fingerprint of the file to be tested according to the first processing instruction through a fingerprint processing module, and match the target file fingerprint with the file fingerprint library to obtain a target sensitive file similar to the file to be tested, including: By means of a fingerprint processing module, according to the first processing instruction, a target fingerprint generation algorithm is used to generate a target file fingerprint of the file to be tested; the target fingerprint generation algorithm is also used to generate a sensitive file fingerprint for each sensitive file in the file library; The file similarity between the target file fingerprint and the sensitive file fingerprints in the file fingerprint library is calculated, and the sensitive file corresponding to the highest file similarity is used as the target sensitive file similar to the file to be tested.