File information desensitization method, system and all-in-one machine based on AIGC

By using the sensitive information detection model and user interaction to adjust the annotation area in a trusted environment, combined with file slicing and OCR technology, the problem of inaccurate desensitization of file information in the existing technology is solved, and comprehensive identification and protection of sensitive information is achieved. The accuracy and effectiveness of desensitization behavior are ensured.

CN118504039BActive Publication Date: 2024-09-13SHANGHAI FARILUAN INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410961340.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-09-13
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

In the existing technology, the file information desensitization algorithm based on AIGC is difficult to achieve 100% reliable identification and desensitization of sensitive information in the files of different enterprises, and lacks a user intervention mechanism to ensure the accuracy and effectiveness of the desensitization behavior.

Method used

Use a trained sensitive information detection model in a trusted environment to detect sensitive information in files and draw annotated areas, allowing users to adjust the location and size of the annotated areas to ensure accurate identification and desensitization of sensitive information. File information is sliced ​​into preset lengths and summarized using multiple detections, combined with OCR technology and the storage mechanism of the information security house to achieve comprehensive identification and protection of sensitive information.

Benefits of technology

Through user intervention and model adjustment, the accuracy and completeness of sensitive information identification are improved, ensuring the effectiveness of desensitization behavior, and the desensitization model is optimized through a reinforcement learning mechanism to adapt to the business needs of different enterprises.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118504039B
    Figure CN118504039B
Patent Text Reader

Abstract

The present invention relates to the field of information security technology, and specifically provides a file information desensitization method, system and all-in-one machine based on AIGC, the method comprising: obtaining a file that needs to be transmitted to an untrusted environment in a trusted environment; detecting sensitive information in the file from the information recorded in the file through a trained sensitive information detection model in the trusted environment, and drawing a marked area covering the sensitive information in the file to indicate that the information covered by the marked area is sensitive information in the file; in response to an instruction input by a user, adjusting the position and / or size of the marked area; updating the sensitive information in the file according to the adjusted position and / or size of the marked area; forming a new file after desensitizing the sensitive information in the file, and sending the new file from the trusted environment to the untrusted environment. The present invention realizes manual intervention in the process of automatically desensitizing files through a model to ensure that the desensitization behavior is accurate and effective.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and specifically provides a file information desensitization method and system based on AIGC, and an all-in-one machine for file information desensitization. Background Art

[0002] There are three deployment modes for AI (Artificial Intelligence) desensitization processing of enterprise files: pure privatization, privatization + public cloud, and pure public cloud mode, among which the public cloud mode includes cross-border and non-cross-border. In the privatization + public cloud and pure public cloud modes, enterprise internal files often need to be processed by AI across the intranet or across borders (when the AI ​​processing capacity of the intranet or the country is insufficient). At this time, different levels of desensitization processing of files are required before sending the request. Existing technology, there is currently no complete desensitization processing mechanism in the industry. The problem in the existing technology is that enterprise file information is related to its business situation, operation situation, etc., and the sensitivity of file information of different enterprises varies. The current AI desensitization algorithm based on AIGC (generative artificial intelligence) is applied to files of different enterprises to automatically identify and desensitize sensitive information, which is generally not 100% reliable.

[0003] Therefore, a new technical solution for desensitizing file information is needed, which can allow users to intervene in the process of desensitizing sensitive information to ensure that the desensitization behavior is accurate and effective. Summary of the invention

[0004] The present invention aims to solve the above technical problem, that is, to solve the problem of allowing user intervention in the process of desensitizing sensitive information to ensure that the desensitization behavior is accurate and effective.

[0005] In a first aspect, the present invention provides a file information desensitization method based on AIGC, comprising: obtaining a file that needs to be transmitted to an untrusted environment in a trusted environment; detecting sensitive information in the file from information recorded in the file through a trained sensitive information detection model in the trusted environment, and drawing a marked area covering the sensitive information in the file to indicate that the information covered by the marked area is sensitive information in the file; adjusting the position and / or size of the marked area in response to an instruction input by a user; updating the sensitive information in the file according to the adjusted position and / or size of the marked area; and forming a new file after the sensitive information in the file is desensitized. , sending the new file from the trusted environment to the untrusted environment; before passing through the trained sensitive information detection model in the trusted environment, it also includes: slicing the information recorded in the file according to a preset length to obtain multiple fragments, and the preset length is set based on the characteristics of the sensitive information detection model, so that when the sensitive information detection model performs sensitive information detection on a sample file that records information of the preset length, the ratio of the length of the actually detected information to the preset length is higher than a preset threshold; using the sensitive information detection model to detect the sensitive information in the multiple fragments respectively; summarizing the sensitive information in the multiple fragments to obtain the sensitive information in the file.

[0006] Optionally, the aforementioned AIGC-based file information desensitization method, before detecting the sensitive information in the file from the information recorded in the file through the trained sensitive information detection model in the trusted environment, further includes: detecting the type of the file; when the type of the file is a word document or a PDF file containing text, converting the file into a text file; when the type of the file is a PDF file containing a picture, extracting the information recorded in the photo from the PDF file containing the picture through OCR technology, recording the information in a newly created text file, and replacing the PDF file containing the picture with the newly created text file.

[0007] Optionally, the aforementioned AIGC-based file information desensitization method, wherein the information recorded in the file is sliced ​​according to a preset length to obtain multiple fragments, including: in the information recorded in the file, an anchor point is set every preset length; delimiters present in the information recorded in the file are identified; for each anchor point that has been set, the delimiter closest to it is searched, and the position of each anchor point is reset to the position of the delimiter closest to it; and the information recorded in the file is sliced ​​according to the positions of all the anchor points that have been set.

[0008] Optionally, in the aforementioned AIGC-based file information desensitization method, the use of the sensitive information detection model to respectively detect the sensitive information in the multiple fragments includes: using the sensitive information detection model to perform multiple detections on each of the multiple fragments; counting the frequency of each sensitive information obtained from the multiple detections in each fragment; and filtering the sensitive information in each fragment according to the frequency.

[0009] Optionally, the aforementioned AIGC-based file information desensitization method further includes: setting up an information safe house in the trusted environment, and storing the file, its corresponding text file, and the new file in the information safe house; upon receiving an instruction to send the file to the untrusted environment, obtaining the new file from the information safe house and sending it to the untrusted environment; upon receiving an instruction to send the file to other trusted environments, obtaining the text file corresponding to the file from the information safe house and sending it to the other trusted environments.

[0010] Optionally, the aforementioned AIGC-based file information desensitization method further includes: retraining the sensitive information detection model according to the updated sensitive information in the file.

[0011] In a second aspect, the present invention further provides an all-in-one machine for desensitizing file information, comprising: a file acquisition module, which acquires files that need to be transmitted to an untrusted environment in a trusted environment; a sensitive information identification module, which detects sensitive information in the file from the information recorded in the file through a trained sensitive information detection model in the trusted environment, and draws a marked area covering the sensitive information in the file to indicate that the information covered by the marked area is sensitive information in the file; a marked area adjustment module, which adjusts the position and / or size of the marked area in response to an instruction input by a user; a sensitive information updating module, which updates the sensitive information in the file according to the adjusted position and / or size of the marked area; and a file sending module, which forms a new marked area after the sensitive information in the file is desensitized. file, sending the new file from the trusted environment to the untrusted environment; the sensitive information identification module, before detecting the sensitive information in the file from the information recorded in the file through the trained sensitive information detection model in the trusted environment, also includes: slicing the information recorded in the file to obtain multiple fragments according to a preset length, the preset length is set based on the characteristics of the sensitive information detection model, so that when the sensitive information detection model performs sensitive information detection on a sample file that records information of the preset length, the ratio of the length of the actually detected information to the preset length is higher than a preset threshold, using the sensitive information detection model to respectively detect the sensitive information in the multiple fragments, summarizing the sensitive information in the multiple fragments, and obtaining the sensitive information in the file.

[0012] In a third aspect, the present invention further provides a computer-readable storage medium storing a plurality of program codes, wherein the program codes are suitable for being loaded and run by a processor to execute the aforementioned AIGC-based file information desensitization method.

[0013] In a fourth aspect, the present invention also provides a file information desensitization system based on AIGC, comprising: a processor and a memory, wherein the processor is used to execute a scenario-based content generation program stored in the memory to implement the aforementioned file information desensitization method based on AIGC.

[0014] When the above-mentioned technical solution is adopted, the technical solution of the present invention first identifies the sensitive information in the file through the sensitive information detection model before transferring the file from the trusted environment to the untrusted environment. Compared with the prior art, a special marking area is also set to indicate that it is sensitive information, and the marking area is manually adjustable. The user can further determine whether there is an error in the automatic identification of the sensitive information detection model. If there is an error, the marked area can be manually adjusted to change the sensitive information, thereby realizing manual intervention in the process of automatically desensitizing the file through the model to ensure that the desensitization behavior is accurate and effective. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings, in which:

[0016] Figure 1 is a flow chart of a file information desensitization method based on AIGC according to an embodiment of the present invention;

[0017] Figure 1A is a schematic diagram of a file information desensitization method based on AIGC according to an embodiment of the present invention;

[0018] Figure 1B is a schematic diagram of a file information desensitization method based on AIGC according to an embodiment of the present invention;

[0019] Figure 2 is a flow chart of a file information desensitization method based on AIGC according to an embodiment of the present invention;

[0020] Figure 3 is a flow chart of a file information desensitization method based on AIGC according to an embodiment of the present invention;

[0021] Figure 4 is a flow chart of a file information desensitization method based on AIGC according to an embodiment of the present invention;

[0022] Figure 5 is a flow chart of a file information desensitization method based on AIGC according to an embodiment of the present invention;

[0023] Figure 6 is a block diagram of an all-in-one machine for desensitizing file information according to an embodiment of the present invention;

[0024] Figure 7 It is a schematic diagram of an all-in-one machine for desensitizing file information according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] like Figure 1 As shown, in one embodiment of the present invention, a file information desensitization method based on AIGC is provided, comprising:

[0026] Step S110: acquiring, in a trusted environment, a file that needs to be transmitted to an untrusted environment.

[0027] In this embodiment, a mechanism is provided for transmitting files with sensitive information between a trusted environment and an untrusted environment. Trusted environments and untrusted environments are relative and are determined according to the privacy level of sensitive information in the file. For example, for the core production data of a power plant, the first-level network of the power plant production system is a trusted environment, and the third-level office network is an untrusted environment; for some sensitive enterprise data, the enterprise intranet is a trusted environment, and the public network is an untrusted environment; for some socialized data, China is a trusted environment, and overseas is an untrusted environment.

[0028] Step S120, using a trained sensitive information detection model in a trusted environment, detects sensitive information in the file from the information recorded in the file, and draws a marked area covering the sensitive information in the file to indicate that the information covered by the marked area is sensitive information in the file.

[0029] In this embodiment, the AI ​​desensitization model (i.e., sensitive information detection model) based on AIGC technology is trained through supervised learning. First, the file types of the enterprise and the privacy-sensitive information therein are manually labeled, and then the types of file content, the content and type of sensitive information, etc. are used as corpus to train the AI ​​desensitization model. Sensitive information includes company name, company identification number, bank account number, address, personal name, ID number, telephone number, name of the acquired investment company, price of the subject matter, rental address, etc.

[0030] Step S130 , in response to the instruction input by the user, adjusting the position and / or size of the marked area.

[0031] Step S140: updating the sensitive information in the file according to the adjusted position and / or size of the marked area.

[0032] In this embodiment, the user can make further modifications (lengthen, shorten, add, remove) to the identified sensitive information by adjusting the annotated area. Specifically, when the AI ​​desensitization model performs desensitization, the user can see the original file and the identified sensitive information (sensitive information can be highlighted). If an error occurs during the identification process, the user can directly modify the annotated area in the form of a file box (add, delete, lengthen, shorten the annotated area), that is, manually desensitize the sensitive information. Compared with the prior art, this embodiment innovatively proposes a UI (user interface) visualization and interactive technical solution for the discovery, visualization, editing, and modification of sensitive information.

[0033] In a specific implementation mode of this embodiment, the file saved in the trusted environment is a contract file in word format. At this time, the contract file needs to be sent to the untrusted environment. First, the contract file is converted from a word file to a text file in .txt format. The information in the text file is as follows: Figure 1A As shown, at this time, the AI ​​desensitization model is used to automatically identify the information in the text file and identify the sensitive information, such as Figure 1B As shown, including the name of Party A, Party B, Party B's contact information, etc., the AI ​​desensitization model automatically marks the sensitive information, and the marked area is as follows Figure 1B As shown in the rectangular box in , the user can adjust the edge of the annotation area to change the size and position of the annotation area. For example, the annotation area at "Zhang San" can be manually adjusted to increase so that it further covers "Li Si". In this case, "Li Si" is also included in the category of sensitive information. The AI ​​desensitization model will redefine the sensitive information based on the annotation area adjusted by the user and encrypt it according to the user's instructions.

[0034] Step S150, forming a new file after desensitizing the sensitive information in the file, and sending the new file from the trusted environment to the untrusted environment.

[0035] In this step, the sensitive information detection model may also be retrained based on the sensitive information in the updated file.

[0036] In this embodiment, since the desensitization rules are often related to the specific circumstances of the customer and are business-customized, the content modified by the user is saved as further manually annotated corpus to optimize the AI ​​desensitization model and implement a reinforcement learning mechanism based on user feedback.

[0037] According to the technical solution of this embodiment, before transferring a file from a trusted environment to an untrusted environment, the sensitive information in the file is first identified through a sensitive information detection model. Compared with the prior art, a special marking area is further provided to indicate that it is sensitive information, and the marking area is manually adjustable. The user can then further determine whether there is an error in the automatic identification of the sensitive information detection model. If there is an error, the marking area can be manually adjusted to change the sensitive information. This achieves manual intervention in the process of automatically desensitizing files through the model, simplifies the process, and facilitates interaction, thereby ensuring that the desensitization behavior is accurate and effective.

[0038] like Figure 2 As shown, an embodiment of the present invention provides a file information desensitization method based on AIGC. Compared with the above technical solution, the file information desensitization method based on AIGC in this embodiment, before step S120, further includes:

[0039] Step S210, detecting the type of the file.

[0040] In this embodiment, in a hybrid cloud environment or a hybrid cross-border environment, the files need to be desensitized in a trusted environment (intranet, domestic) before being transmitted to an untrusted environment (extranet, overseas). Sensitive information in a trusted environment is often saved in word documents or other formats such as PDF, where the PDF file contains photo information or structured text information.

[0041] Step S220: When the file type is a word document or a PDF file containing text, convert the file into a text file.

[0042] Step S230, when the file type is a PDF file containing pictures, after extracting the information recorded in the photo from the PDF file containing pictures by OCR technology, the information is recorded in a newly created text file, and the newly created text file is used to replace the PDF file containing pictures.

[0043] In this embodiment, when the user imports one or more files into the AI ​​desensitization model, the file format is first determined. If it is a word document, it is converted into a text file. If it is a PDF file containing text, a text file is generated through a PDF conversion tool. If it is a PDF file containing a photo, the OCR (Optical Character Recognition, image-to-text converter) service is called to convert it into a text file. The OCR process of converting photos to text must also be performed in a trusted environment.

[0044] According to the technical solution of this embodiment, files of different forms are converted into text files to facilitate the extraction of file information and the identification and desensitization of sensitive information.

[0045] like Figure 3 As shown, an embodiment of the present invention provides a file information desensitization method based on AIGC. Compared with the above technical solution, the file information desensitization method based on AIGC in this embodiment, before step S130, further includes:

[0046] In step S310, the information recorded in the file is sliced ​​according to a preset length to obtain multiple segments. The preset length is set based on the characteristics of the sensitive information detection model, so that when the sensitive information detection model performs sensitive information detection on a sample file that records information of the preset length, the ratio of the length of the actually detected information to the preset length is higher than a preset threshold.

[0047] In this embodiment, those skilled in the art should understand that the AI ​​desensitization model often has "lazy" behavior, and often terminates the extraction action in advance in the scene of information extraction, that is, when the AI ​​desensitization model is extracting information, especially when extracting information from long text files, because of the characteristics of language prediction behavior, it often exits the work before exhausting all information extraction, resulting in "laziness" problems. In this embodiment, in order to ensure that the extraction of file information is complete and exhaustive to ensure comprehensive identification of sensitive information, a technical solution to suppress the "laziness" of the model is provided. First, for the performance of the AI ​​desensitization model in long text information extraction, the correlation between the completeness of information extraction and the length of text information is found through multiple experiments. The relationship is based on the information length when the AI ​​desensitization model extracts comprehensive information and performs well, the parameters of the model, and the window size of the model to extract information. It is usually necessary to perform independent tests on different models to obtain a set of correlations between AI desensitization models and information lengths. In this step, the information length corresponding to the current AI desensitization model is found based on the corresponding relationship, and the file information can be sliced ​​in a manner slightly lower than the information length (for example, the slice length can be 80% of the information length) to extract information for each slice. To improve the information extraction coverage, different text slices can have redundant content overlap.

[0048] Step 320: Use the sensitive information detection model to detect sensitive information in multiple segments respectively.

[0049] Specifically, it may include: (1) using a sensitive information detection model to perform multiple detections on each of the multiple segments. (2) counting the frequency of each sensitive information obtained from multiple detections in each segment. (3) filtering the sensitive information in each segment according to the frequency.

[0050] In this embodiment, in order to improve the comprehensiveness of sensitive information identification, the same slice can be subjected to one or more sensitive information identification operations, and the sensitive information identification results of multiple slices and multiple operations can be summarized, deduplication processing and frequency sorting processing can be performed. At this time, the frequency reflects the reliability of sensitive information identification and can be presented to the user in a visual manner. The user can browse the sensitive information identification results once, or sort the sensitive information according to the reliability and manually correct it to generate the final sensitive information identification result of the slice.

[0051] Step S330, summarizing the sensitive information in the multiple fragments to obtain the sensitive information in the file.

[0052] According to this embodiment, the length of information recognized at one time by the AI ​​desensitization model is innovatively controlled by setting an appropriate and reasonable information length for the AI ​​desensitization model and slicing the file information, thereby avoiding the situation where the information input into the AI ​​desensitization model is too long, resulting in the AI ​​desensitization model failing to recognize the full amount of information.

[0053] like Figure 4 As shown, an embodiment of the present invention provides a file information desensitization method based on AIGC. Compared with the above technical solution, the file information desensitization method based on AIGC in this embodiment, step S310, includes:

[0054] Step S410: in the information recorded in the file, an anchor point is set every preset length.

[0055] Step S420, identifying separators existing in the information recorded in the document.

[0056] In this embodiment, the separator may be a punctuation mark or a page break, paragraph break, or other symbol that separates file information at a semantic level.

[0057] Step S430: for each anchor point that has been set, find the separator closest to it, and reset the position of each anchor point to the position of the separator closest to it.

[0058] Step S440, slicing the information recorded in the file according to the positions of all the anchor points that have been set.

[0059] According to the technical solution of this embodiment, the anchor point is first set according to the information length corresponding to the AI ​​desensitization model, and then the anchor point position is updated according to the delimiter closest to the anchor point, and sliced ​​according to the latest anchor point position, so that each paragraph formed by the slice has complete semantics and is more suitable for complete identification of sensitive information.

[0060] like Figure 5 As shown, an embodiment of the present invention provides a file information desensitization method based on AIGC. Compared with the above technical solution, the file information desensitization method based on AIGC in this embodiment further includes:

[0061] Step S510, setting up an information safe house in a trusted environment, and storing the file and its corresponding text file and new file in the information safe house.

[0062] In this embodiment, the information safe house can be deployed in a special hardware environment, and encryption is implemented for both storage and reading. The data is only decrypted when the code is executed in the CPU, ensuring that the customer cannot read the model information, and realizing the two-way confidentiality of technology and sensitive information. Generally, the information safe house will have two API interfaces, one open to the trusted environment and the other open to the untrusted environment.

[0063] Step S520, when receiving an instruction to send a file to an untrusted environment, obtain a new file from the information safe house and send it to the untrusted environment.

[0064] Step S530, when receiving an instruction to send a file to another trusted environment, obtain a text file corresponding to the file from the information safe house and send it to the other trusted environment.

[0065] According to the technical solution of this embodiment, an information safety house (i.e., a safe space) is set up in a trusted environment, and the original files, text files, and the final desensitized files are all associated and saved in the information safety house to facilitate user backtracking. When the original file needs to be output again, the original file name is used as an index to automatically find and send the desensitized file to the untrusted environment for use. If it is called from a trusted environment, the system will automatically send the text file so that both trusted and untrusted calls will obtain a safe and effective data channel to ensure that the AI ​​desensitization model is usually used as a core technical asset, and the model should be avoided from being copied and used multiple times. At the same time, the recognition results of sensitive information, the results of manually adjusting the marked area, etc. can all be saved in the safe house. When the subsequent desensitized file is returned from the untrusted environment to the trusted environment, the desensitized file can be restored through the data in the safe house.

[0066] like Figure 6 As shown, in one embodiment of the present invention, an all-in-one machine for desensitizing file information is provided, comprising:

[0067] The file acquisition module 610 acquires, in the trusted environment, files that need to be transferred to the untrusted environment.

[0068] In this embodiment, a mechanism is provided for transmitting files with sensitive information between a trusted environment and an untrusted environment. Trusted environments and untrusted environments are relative and are determined according to the privacy level of sensitive information in the file. For example, for the core production data of a power plant, the first-level network of the power plant production system is a trusted environment, and the third-level office network is an untrusted environment; for some sensitive enterprise data, the enterprise intranet is a trusted environment, and the public network is an untrusted environment; for some socialized data, China is a trusted environment, and overseas is an untrusted environment.

[0069] The sensitive information identification module 620 detects sensitive information in a file from the information recorded in the file through a trained sensitive information detection model in a trusted environment, and draws a marked area covering the sensitive information in the file to indicate that the information covered by the marked area is sensitive information in the file. Before the sensitive information identification module 620 detects sensitive information in the file from the information recorded in the file through the trained sensitive information detection model in the trusted environment, it also includes: slicing the information recorded in the file to obtain multiple segments according to a preset length, the preset length is set based on the characteristics of the sensitive information detection model, so that when the sensitive information detection model performs sensitive information detection on a sample file that records information of the preset length, the ratio of the length of the actually detected information to the preset length is higher than a preset threshold, using the sensitive information detection model to detect sensitive information in the multiple segments respectively, and summarizing the sensitive information in the multiple segments to obtain the sensitive information in the file.

[0070] In this embodiment, the AI ​​desensitization model (i.e., sensitive information detection model) based on AIGC technology is trained through supervised learning. First, the file types of the enterprise and the privacy-sensitive information therein are manually labeled, and then the types of file content, the content and type of sensitive information, etc. are used as corpus to train the AI ​​desensitization model. Sensitive information includes company name, company identification number, bank account number, address, personal name, ID number, telephone number, name of the acquired investment company, price of the subject matter, rental address, etc.

[0071] The annotation region adjustment module 630 adjusts the position and / or size of the annotation region in response to an instruction input by a user.

[0072] The sensitive information updating module 640 updates the sensitive information in the file according to the adjusted position and / or size of the marked area.

[0073] In this embodiment, the user can make further modifications (lengthen, shorten, add, remove) to the identified sensitive information by adjusting the annotated area. Specifically, when the AI ​​desensitization model performs desensitization, the user can see the original file and the identified sensitive information (sensitive information can be highlighted). If an error occurs during the identification process, the user can directly modify the annotated area in the form of a file box (add, delete, lengthen, shorten the annotated area), that is, manually desensitize the sensitive information. Compared with the prior art, this embodiment innovatively proposes a UI (user interface) visualization and interactive technical solution for the discovery, visualization, editing, and modification of sensitive information.

[0074] The file sending module 650 forms a new file after desensitizing the sensitive information in the file, and sends the new file from the trusted environment to the untrusted environment.

[0075] In this step, the sensitive information detection model may also be retrained based on the sensitive information in the updated file.

[0076] In this embodiment, since the desensitization rules are often related to the specific circumstances of the customer and are business-customized, the content modified by the user is saved as further manually annotated corpus to optimize the AI ​​desensitization model and implement a reinforcement learning mechanism based on user feedback.

[0077] According to the technical solution of this embodiment, before transferring a file from a trusted environment to an untrusted environment, the sensitive information in the file is first identified through a sensitive information detection model. Compared with the prior art, a special annotation area is also set to indicate that it is sensitive information, and the annotation area is manually adjustable. The user can further determine whether there is an error in the automatic identification of the sensitive information detection model. If there is an error, the annotation area can be manually adjusted to change the sensitive information. This realizes manual intervention in the process of automatic desensitization of files through the model, simplifies the process, and facilitates interaction, which can ensure that the desensitization behavior is accurate and effective. In addition, AI desensitization processing often places specific requirements on the GPU (graphics processing unit) computing power of the service environment, and the customer site often does not have such a computing power environment. The technical solution of this embodiment provides an integrated hardware and software solution, such as Figure 7 As shown, the all-in-one machine comes with GPU computing hardware, CPU and storage as well as software solutions. It is deployed in a trusted environment. The original PDF file with pictures is input and converted into a text file through OCR technology, while the original word (.doc) file directly extracts the text and saves it as a text file. The text file is identified by the AI ​​desensitization model for sensitive information. The identified sensitive information is located in the marked area. The UI of the marked area can be adjusted by the user to select sensitive information through manual intervention. The results of manual intervention can be used for model training. The original file, text file, and desensitized file are all located in the information security house. When the AI ​​service in an untrusted environment requests the original file, the desensitized file is returned to it.

[0078] In one embodiment of the present invention, a computer-readable storage medium is further provided, in which a plurality of program codes are stored. The program codes are suitable for being loaded and run by a processor to execute the AIGC-based file information desensitization method of the aforementioned embodiment.

[0079] In one embodiment of the present invention, a file information desensitization system based on AIGC is also provided, including: a processor and a memory, wherein the processor is used to execute a scenario-based content generation program stored in the memory to implement the file information desensitization method based on AIGC of the aforementioned embodiment. The processor can be various types of processors, for example, including but not limited to a central processor unit (CPU), a digital signal processor (DSP), a neural network processor (NPU), a graphics processor (GPU), a field programmable gate array (FPGA), and an application-specific integrated circuit (ASIC). In this embodiment, the number of processors can be one or more. The memory includes non-volatile memories such as flash memory, ROM, hard disk drives, disks, and optical disks, and various types of dynamic random access memories and active memories. The memory is coupled to the processor so that the processor can read and write information from / to the memory. In an alternative solution, the memory can be integrated into the processor. In another alternative solution, the processor and the memory can exist in the form of discrete components.

[0080] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. A file information desensitization method based on AIGC, characterized in that: include: Acquire files in a trusted environment that need to be transferred to an untrusted environment; Detecting sensitive information in the file from the information recorded in the file by using a trained sensitive information detection model in the trusted environment, and drawing a marked area covering the sensitive information in the file to indicate that the information covered by the marked area is sensitive information in the file; In response to an instruction input by a user, adjusting the position and / or size of the marked area; updating the sensitive information in the file according to the adjusted position and / or size of the marked area; After the sensitive information in the file is desensitized, a new file is formed, and the new file is sent from the trusted environment to the untrusted environment; Before detecting the sensitive information in the file from the information recorded in the file by using the trained sensitive information detection model in the trusted environment, the method further includes: Slicing the information recorded in the file to obtain a plurality of segments according to a preset length, wherein the preset length is set based on the characteristics of the sensitive information detection model, so that when the sensitive information detection model performs sensitive information detection on a sample file that records information of the preset length, the ratio of the length of the actually detected information to the preset length is higher than a preset threshold; Using the sensitive information detection model to detect sensitive information in the multiple segments respectively; The sensitive information in the multiple fragments is aggregated to obtain the sensitive information in the file.

2. The file information desensitization method based on AIGC according to claim 1 is characterized in that: Before the sensitive information detection model trained in the trusted environment is used, the method further includes: detecting the type of the file; When the type of the file is a word document or a PDF file containing text, converting the file into a text file; When the type of the file is a PDF file containing a picture, after extracting the information recorded in the photo from the PDF file containing the picture by using OCR technology, the information is recorded in a newly created text file, and the newly created text file is used to replace the PDF file containing the picture.

3. The file information desensitization method based on AIGC according to claim 1 is characterized in that: The information recorded in the file is sliced ​​according to a preset length to obtain multiple fragments, including: In the information recorded in the file, an anchor point is set every the preset length; Identify the separators present in the information recorded in the file; For each anchor point that has been set, find the separator closest to it, and reset the position of each anchor point to the position of the separator closest to it; The information recorded in the file is sliced ​​according to the positions of all the anchor points that have been set.

4. The file information desensitization method based on AIGC according to claim 1 is characterized in that: The using the sensitive information detection model to respectively detect the sensitive information in the multiple segments includes: Perform multiple detections on each of the multiple fragments using the sensitive information detection model; Counting the frequency of each sensitive information detected multiple times in each segment; The sensitive information in each segment is filtered according to the frequency.

5. The AIGC-based file information desensitization method according to claim 2, characterized in that: Also includes: An information safe house is set up in the trusted environment, and the file, its corresponding text file and the new file are stored in the information safe house; Upon receiving an instruction to send the file to the untrusted environment, obtaining the new file from the information safe house and sending the new file to the untrusted environment; When receiving an instruction to send the file to another trusted environment, a text file corresponding to the file is obtained from the information safe house and sent to the other trusted environment.

6. The file information desensitization method based on AIGC according to claim 1 is characterized in that: Also includes: The sensitive information detection model is retrained according to the updated sensitive information in the file.

7. An all-in-one machine for desensitizing file information, characterized in that: include: A file acquisition module, which acquires files that need to be transferred to an untrusted environment in a trusted environment; a sensitive information identification module, which detects the sensitive information in the file from the information recorded in the file through a trained sensitive information detection model in the trusted environment, and draws a marked area covering the sensitive information in the file to indicate that the information covered by the marked area is the sensitive information in the file; a marked area adjustment module, which adjusts the position and / or size of the marked area in response to an instruction input by a user; A sensitive information updating module, which updates the sensitive information in the file according to the adjusted position and / or size of the marked area; A file sending module, which forms a new file after desensitizing sensitive information in the file, and sends the new file from the trusted environment to the untrusted environment; Before the sensitive information identification module detects the sensitive information in the file from the information recorded in the file through the trained sensitive information detection model in the trusted environment, the sensitive information identification module also includes: slicing the information recorded in the file according to a preset length to obtain multiple segments, wherein the preset length is set based on the characteristics of the sensitive information detection model, so that when the sensitive information detection model performs sensitive information detection on a sample file that records information of the preset length, the ratio of the length of the information actually detected to the preset length is higher than a preset threshold, and the sensitive information in the multiple segments is detected separately using the sensitive information detection model, and the sensitive information in the multiple segments is summarized to obtain the sensitive information in the file.

8. A computer-readable storage medium storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by a processor to execute the AIGC-based file information desensitization method according to any one of claims 1 to 6.

9. A file information desensitization system based on AIGC, characterized in that: include: A processor and a memory, wherein the processor is used to execute a scenario-based content generation program stored in the memory to implement the AIGC-based file information desensitization method described in any one of claims 1 to 6.