Data protection method and device
By monitoring and intercepting optical disc burning actions at the application layer, it solves the system instability problem caused by the monitoring and auditing of optical disc burning content in the existing technology, achieves effective protection of sensitive information, and prevents data leakage.
Patent Information
- Application Number
- CN201910938588.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-30
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-09-30
AI Technical Summary
Existing optical disc recording content monitoring and auditing methods can easily lead to system instability, and are difficult to effectively prevent the leakage of sensitive information without restricting user use.
By calling the interception function at the application layer to monitor and analyze the burning action of the target file or file directory, intercept the content containing preset information, use DLL injection technology to intercept the IFileSystemImage interface, obtain the address of the add file and add directory function, and realize all burning actions. interception and monitoring.
Without affecting the stability of the system, it can effectively intercept the burning action of sensitive content, prevent data leakage, avoid missed reviews, and ensure a normal user experience.
Smart Images

Figure CN112580066B
Abstract
Description
Technical Field
[0001] The present application relates to the field of information security technology, and in particular to a data protection method and device. Background Art
[0002] As a mobile storage medium, optical discs are widely used because of their large capacity, small size, low cost, portability, simplicity, and long storage time. However, due to the widespread use of optical discs, their portability also brings users the risk of information leakage. In order to prevent the leakage of sensitive information during the process of burning optical discs, monitoring and auditing the burned content has always been one of the important research directions of data leakage prevention.
[0003] To monitor and audit the contents of CD burning, two methods can be adopted: the method of specifying burning software and the method of CD burning audit system based on middle-layer driver.
[0004] The method of specifying burning software can monitor and audit the burning content by specifying the burning software and disabling all other burning software. However, this method can only use the specified burning software, which will change the user's habits and bring inconvenience to the user. In addition, this method intercepts the burning actions of all application layer processes through the driver layer, disabling all other burning software and only allowing the burning tool that comes with this method. If there is a problem with the driver, it will cause system blue screen, crash and other problems.
[0005] When adopting the CD-burning audit system method based on the intermediate layer driver, an intermediate layer driver is added under the CD-ROM driver, and the data is intercepted through the intermediate layer driver, and the data packets are parsed, filtered, encrypted, backed up, and logged to realize the CD-burning audit. However, since the intermediate layer driver integrates too many functions, it is easy to cause problems with the driver, which in turn leads to system blue screen, crash, etc., poor stability, and inconvenience to users. Summary of the invention
[0006] In order to solve the above-mentioned technical problems existing in the prior art, the present application provides a data protection method and device, which can determine whether the burned content is sensitive without restricting the user's normal use of the optical disc, and timely intercept the burning action of sensitive content, effectively preventing data leakage without affecting the stability of the system.
[0007] The embodiment of the present application provides a data protection method, which is applied to monitoring when a file is burned, wherein the burning process includes burning a target file to an optical disc, and the method includes:
[0008] Calling the first interception function to monitor whether a locally stored target file is burned to the optical disc;
[0009] When the first interception function detects the burning action of the locally stored target file to the optical disc, the target file is analyzed by using the first interception function;
[0010] When the first interception function determines that the target file includes preset information, the first interception function is used to intercept the burning action of the add file function to burn the target file to the optical disc;
[0011] When the first interception function determines that the target file does not include the preset information, the adding file function is allowed to be called to burn the target file to the optical disc.
[0012] Optionally, before calling the first interception function, the method further includes:
[0013] Assign the address of the adding file function to the address of the first interception function;
[0014] Then calling the first interception function includes:
[0015] When the instruction for calling the add file function is monitored, the first interception function is called based on the address of the first interception function.
[0016] Optionally, the analyzing the target file by using the first interception function includes:
[0017] Using the first interception function to perform file parsing on the target file;
[0018] The result of the file parsing is matched with the preset information to determine whether the target file includes the preset information.
[0019] Optionally, the method further includes:
[0020] When the first interception function detects the burning action of the target file to the local address, it is allowed to call the add file function to burn the target file to the local address.
[0021] The embodiment of the present application provides a data protection method, which is applied to monitoring when a file directory is burned, wherein the burning process includes burning the file directory to an optical disc, wherein the file directory includes at least one target file, and the method includes:
[0022] Calling the second interception function to monitor whether a locally stored file directory has a burning action to burn to the optical disc;
[0023] When the second interception function detects the burning action of the locally stored file directory to the optical disc, the target file is analyzed by using the second interception function;
[0024] When the second interception function determines that the target file included in the file directory includes preset information, the second interception function is used to intercept the burning action of the add directory function to burn the file directory to the optical disc;
[0025] When the second interception function determines that the file directory does not include the preset information, the adding directory function is allowed to be called to burn the file directory to the optical disc.
[0026] Optionally, before calling the second interception function, the method further includes:
[0027] Assign the address of the adding directory function to the address of the second interception function;
[0028] Then calling the second interception function includes:
[0029] When an instruction for calling the directory file function is monitored, the second interception function is called based on the address of the second interception function.
[0030] Optionally, the analyzing the file directory by using the second interception function includes:
[0031] Using the second interception function to traverse the file directory and perform file parsing on the target files included in the file directory;
[0032] The result of the file parsing is matched with the preset information to determine whether the target file includes the preset information.
[0033] Optionally, the method further includes:
[0034] When the second interception function detects the burning action of the file directory to the local address, it is allowed to call the directory adding function to burn the file directory to the local address.
[0035] The embodiment of the present application provides a data protection device, which is applied to monitoring when burning a file, wherein the burning process includes burning a target file to an optical disc, and the device includes: a first calling unit, a first monitoring unit, and a first intercepting unit;
[0036] The first calling unit is used to call the first interception function to monitor whether a locally stored target file is burned to the optical disc;
[0037] The first monitoring unit is configured to analyze the target file using the first interception function when the first interception function detects a burning action of the locally stored target file to the optical disc;
[0038] The first interception unit is configured to intercept a burning action of the add file function to burn the target file to the optical disc by using the first interception function when the first interception function determines that the target file includes preset information;
[0039] The first interception unit is further configured to allow calling the add file function to burn the target file to the optical disc when the first interception function determines that the target file does not include the preset information.
[0040] Optionally, the first calling unit is specifically configured to:
[0041] Assign the address of the adding file function to the address of the first interception function;
[0042] When an instruction to call the add file function is detected, the first interception function is called based on the address of the first interception function.
[0043] Optionally, the first interception unit is specifically used to:
[0044] Using the first interception function to perform file parsing on the target file;
[0045] The result of the file parsing is matched with the preset information to determine whether the target file includes the preset information.
[0046] Optionally, the first monitoring unit is further configured to allow calling the add file function to burn the target file to the local address when the first interception function detects the burning action of burning the target file to the local address.
[0047] The embodiment of the present application provides a data protection device, which is applied to monitoring when a file directory is burned, wherein the burning process includes burning the file directory to an optical disc, wherein the file directory includes at least one target file, and the device includes: a second calling unit, a second monitoring unit, and a second intercepting unit;
[0048] The second calling unit is used to call the second interception function to monitor whether a locally stored file directory has a burning action to burn to the optical disc;
[0049] The second monitoring unit is configured to analyze the target file using the second interception function when the second interception function detects a burning action of the locally stored file directory to the optical disc;
[0050] The second interception unit is used for intercepting the burning action of the add directory function to burn the file directory to the optical disc by using the second interception function when the second interception function determines that the target file included in the file directory includes preset information;
[0051] The second interception unit is further configured to allow calling the add directory function to burn the file directory to the optical disc when the second interception function determines that the file directory does not include the preset information.
[0052] Optionally, the second calling unit is specifically used to:
[0053] Assign the address of the adding directory function to the address of the second interception function;
[0054] When an instruction to call the directory file function is detected, the second interception function is called based on the address of the second interception function.
[0055] Optionally, the second monitoring unit is specifically used to:
[0056] Using the second interception function to traverse the file directory and perform file parsing on the target files included in the file directory;
[0057] The result of the file parsing is matched with the preset information to determine whether the target file includes the preset information.
[0058] Optionally, the second monitoring unit is further used to allow calling the directory adding function to burn the file directory to the local address when the second interception function detects the burning action of burning the file directory to the local address.
[0059] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the data protection method is implemented.
[0060] An embodiment of the present application provides an electronic device, which includes at least one processor, at least one memory connected to the processor, and a bus; wherein the processor and the memory communicate with each other through the bus; the processor is used to call program instructions in the memory to execute the data protection method.
[0061] The method described in this application has at least the following advantages:
[0062] When burning a file, the first interception function is called to monitor whether the locally stored target file is burned to the optical disc; when the first interception function monitors the locally stored target file being burned to the optical disc, the first interception function is used to analyze the target file; when the first interception function determines that the target file includes preset information, the first interception function is used to intercept the add file function to burn the target file to the optical disc. Since the add file function needs to be called for the target file burning action, the first interception function can detect all burning actions to avoid missed inspections. When the first interception function determines that the target file does not include the preset information, the add file function is allowed to be called to burn the target file to the optical disc, so it will not affect the normal use of the user.
[0063] When burning a file directory, the second interception function is called to monitor whether the locally stored file directory has a burning action to burn to the optical disc; when the second interception function monitors the burning action of the locally stored file directory to burn to the optical disc, the second interception function is used to analyze the target file; when the second interception function determines that the target file included in the file directory includes preset information, the second interception function is used to intercept the adding directory function to burn the file directory to the optical disc. Since the adding directory function needs to be called for the burning action of the file directory, the second interception function can detect all burning actions to avoid missing inspections. When the second interception function determines that the file directory does not include the preset information, the adding directory function is allowed to be called to burn the file directory to the optical disc.
[0064] In summary, this method can determine whether the content to be burned is sensitive without restricting the normal use of the optical disc by the user, and timely intercept the burning action of sensitive content, effectively preventing data leakage. And because the monitoring and interception are performed at the application layer, it has no impact on the intermediate driver layer, so it will not affect the stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0066] Figure 1 A schematic diagram of the optical disc burning provided for this application;
[0067] Figure 2 A flowchart of a data protection method provided in an embodiment of the present application;
[0068] Figure 3 A schematic diagram of a scenario of a data protection method provided in Embodiment 1 of the present application;
[0069] Figure 4 A flowchart of another data protection method provided in an embodiment of the present application;
[0070] Figure 5 A schematic diagram of a scenario of a data protection method provided in Embodiment 2 of the present application;
[0071] Figure 6 A schematic diagram of a data protection device provided in an embodiment of the present application;
[0072] Figure 7 A schematic diagram of another data protection device provided in an embodiment of the present application;
[0073] Figure 8 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0074] Due to the widespread use of optical discs, their easy-to-carry feature also brings the risk of information leakage to users. In order to enable those skilled in the art to better understand the technical solution provided by the embodiment of the present application, the process of optical disc burning is first introduced below.
[0075] See also Figure 1 , which is a schematic diagram of the optical disc burning provided by this application.
[0076] The optical disc used in the present application is a storage medium that uses optical information as a storage carrier and is used to store data. It can be divided into non-erasable optical discs, such as CD-ROM, DVD-ROM, etc., and erasable optical discs, such as CD-RW, DVD-RAM, etc. The embodiments of the present application do not make specific limitations on this.
[0077] When burning a disc, the system converts the files or folders that the user needs to burn into an .iso file through the IFileSystemImage interface, and then burns the .iso file to the disc through the burner.
[0078] The system converts the files / folders that the user needs to burn into an .iso file as follows:
[0079] 1. Create an IStream type file stream: fileStream through the SHCreateStreamOnFileEx function;
[0080] 2. Get the IFsiDirectory interface pointer root_Item through the get_Root function of the IFileSystemImage interface;
[0081] 3. Call the AddTree function through the root_Item pointer to add a directory to the IStream type file stream fileStream;
[0082] 4. Call the AddFile function through the root_Item pointer to add a file to the IStream type file stream fileStream;
[0083] 5. Convert the IStream type file stream fileStream into a .iso type file through the CreateResultImage function.
[0084] By analyzing the above process, we find that AddFile function and AddTree function are the key to monitoring. By intercepting AddFile function and AddTree function, we can know the files or folders that the user needs to burn.
[0085] Based on the above findings, the present application provides a data protection method, which intercepts the IFileSystemImage interface through the DLL injection technology, obtains the AddFile function and the AddTree function for adding a file during the burning process through the interface, obtains the file to be burned through these two functions, obtains the real text content of the file through content parsing technology, and determines whether the file is sensitive through content matching technology, thereby deciding whether the file can be burned, thereby realizing intelligent burning monitoring and auditing.
[0086] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0087] A file directory sets up an entry for each file. The file directory entry may include the file name, file internal identifier, file type, file storage address, file length, access rights, creation time, and access time.
[0088] A file directory (or folder) is composed of file directory items. File directories are divided into primary directories, secondary directories, and multi-level directories. A multi-level directory structure is also called a tree structure. In a multi-level directory structure, each disk has a root directory, which can contain several sub-directories and files. A sub-directory can contain not only files, but also the next-level sub-directory. This analogy constitutes a multi-level directory structure.
[0089] When a burning action occurs, it can be divided into the burning of files or the burning of file directories, that is, the burning of folders. A folder may include at least one file. The following first describes a data protection method when burning files.
[0090] Embodiment 1:
[0091] An embodiment of the present application provides a data protection method, which is applied to monitoring when a file is being burned. The burning process includes burning a target file to an optical disc, which is described in detail below with reference to the accompanying drawings.
[0092] See also Figure 2 , which is a flow chart of a data protection method provided in an embodiment of the present application.
[0093] The method described in the embodiment of the present application comprises the following steps:
[0094] S201: calling a first interception function to monitor whether a locally stored target file is burned to an optical disc.
[0095] The burning action includes burning local files to a local device or burning local files to a disc.
[0096] When a burning action occurs to burn a locally stored target file to a disc, the target file needs to be analyzed to prevent leakage of sensitive information.
[0097] Therefore, the embodiment of the present application calls the first interception function to monitor the burning action. Furthermore, the present application uses the address of the add file function, that is, the AddFile function, as the address of the first interception function, and then calls the first interception function using the address of the first interception function.
[0098] By assigning the address of the AddFile function in the virtual function table to the address of the first interception function, when the user performs the burning action, the IFsiDirectoryItem root entry interface pointer is first found, and the AddFile function is found through IFsiDirectoryItem. Because the address of the AddFile function has been used as the address of the first interception function, the first interception function is actually found, and the interception process is actually executed through the address of the first interception function.
[0099] Furthermore, since the AddFile function is called during the burning process of the target file, the first interception function is also called after the address is modified accordingly, so that all burning actions can be intercepted to avoid omissions.
[0100] S202: When the first interception function detects the burning action of the locally stored target file to the optical disc, the target file is analyzed using the first interception function.
[0101] The purpose of analyzing the target file is to determine whether the target file includes preset information, that is, to determine whether the target file includes sensitive information.
[0102] Specifically, the target file is parsed using the first interception function, the file parsing is to obtain the real file content of the target file, and then the result of the file parsing is matched with the preset information to determine whether the target file includes the preset information.
[0103] In a possible implementation, when the result of file parsing completely matches the content of the preset information or the matching rate exceeds a preset threshold, it is determined that the target file includes the preset information. The preset threshold can be set according to actual needs, and the embodiment of the present application does not specifically limit this.
[0104] In another possible implementation, as long as it is determined that the result of file parsing includes some preset information, it is considered that the target file includes sensitive information.
[0105] S203: When the first interception function determines that the target file includes preset information, the first interception function is used to intercept the burning action of the add file function to burn the target file to the optical disc.
[0106] When the first interception function determines that the target file includes preset information, continuing the burning action at this time may cause leakage of sensitive information, so the burning action is intercepted by the first interception function.
[0107] The preset information may be information that is not desired to be disclosed or an identifier used to determine information that needs to be kept confidential. In practical applications, the preset information may be sensitive information, and the target information is compared with the target file to confirm whether the target information includes sensitive information. The preset information may also be information such as keywords, key words, key sentences, preset codes or preset identifiers, which are used to determine sensitive information through comparison.
[0108] S204: When the first interception function determines that the target file does not include preset information, calling the add file function is allowed to burn the target file to the optical disc.
[0109] In addition, when the first interception function detects the burning action of the target file to the local address, such as burning between different disks divided locally, in practical application it refers to generating an .iso file of the target file, allowing the add file function to be called to burn the target file to the local address.
[0110] In summary, this method can determine whether the content of the target file being burned is sensitive without restricting the user's normal use of the optical disc, and promptly intercept the burning action including sensitive content, while avoiding missed reviews and effectively preventing data leakage.
[0111] The implementation process of the method described in this application is explained below in conjunction with specific application scenarios.
[0112] See also Figure 3 , which is a scenario diagram of the data protection method provided in Example 1 of the present application.
[0113] The AddFile function address in the virtual function table corresponding to the IFsiDirectoryItem root entry interface pointer is used as the address of the MyAddFile function to point to the interception process. The MyAddFile function includes the first interception function and the file adding function.
[0114] When the system executes the AddFile function, it actually executes the MyAddFile function, that is, it actually executes the interception process. The interception process first includes target address filtering. If it is a non-local address, that is, a disc is burned, the target file is parsed to obtain the real content of the target file, and then the result of the file parsing is matched with the preset information. If the target file includes the preset information, it means that the target file includes sensitive content, and the action of burning the target file is blocked.
[0115] When the target address filtering determines that the burning address of the target file is a local address, for example, the target file is burned locally as an .iso type file, the AddFile function can be implemented, so it will not affect the normal use of users. And because the monitoring and interception is carried out at the application layer, it has no impact on the intermediate driver layer, so it will not affect the stability of the system.
[0116] The above embodiments illustrate the data protection method when burning a file. The following describes the data protection method when burning a file directory.
[0117] Embodiment 2
[0118] The embodiment of the present application also provides another data protection method, which is applied to monitoring when burning files. The burning process includes burning a file directory to a CD, and the file directory includes at least one target file, which is described in detail below with reference to the accompanying drawings.
[0119] See also Figure 4 , which is a flow chart of another data protection method provided in an embodiment of the present application.
[0120] The method provided in the embodiment of the present application comprises the following steps:
[0121] S401: Calling a second interception function to monitor whether a locally stored file directory has been burned to a disc.
[0122] A file directory is a folder, which may include a folder or file at the next level. The embodiment of the present application does not specifically limit the number of levels of the file directory, but the file directory must include at least one target file, otherwise the burned file is equivalent to an empty folder. It is understandable that when burning an empty folder, there is no problem of sensitive file leakage.
[0123] The burning action includes burning the local file directory to the local computer, or burning the local file directory to a CD.
[0124] When a burning action occurs to burn a locally stored file directory to a disc, it is necessary to analyze the target files included in the file directory to prevent leakage of sensitive information.
[0125] Therefore, the embodiment of the present application calls the second interception function to monitor the burning action. Furthermore, the present application adds a directory function, that is, assigns the address of the AddTree function to the address of the second interception function, and then calls the second interception function using the address of the second interception function.
[0126] By assigning the address of the AddTree function in the virtual function table to the address of the second interception function, when the user performs the burning action, the IFsiDirectoryItem root entry interface pointer is first found, and the AddTree function is found through IFsiDirectoryItem. Because the address of the AddTree function has been used as the address of the second interception function, the second interception function is actually found, that is, the interception process is actually executed through the address of the second interception function.
[0127] Furthermore, since the AddTree function is called during the burning process of the file directory, the second interception function is also called after the corresponding address is modified, so it is possible to intercept all file directory burning actions to avoid omissions.
[0128] S402: When the second interception function detects the burning action of the locally stored file directory to the optical disc, the target file is analyzed using the second interception function.
[0129] The purpose of analyzing the target file is to determine whether the target file includes preset information, that is, to determine whether the target file included in the file directory includes sensitive information.
[0130] Specifically, the second interception function is used to traverse the file directory and perform file parsing on all target files in the file directory. File parsing obtains the actual file content of the target file, and then the result of the file parsing is matched with the preset information to determine whether the preset information is included in the target file.
[0131] In a possible implementation, when the result of file parsing completely matches the content of the preset information or the matching rate exceeds a preset threshold, it is determined that the target file includes the preset information. The preset threshold can be set according to actual needs, and the embodiment of the present application does not specifically limit this.
[0132] In another possible implementation, as long as it is determined that the result of file parsing includes some preset information, it is considered that the target file includes sensitive information.
[0133] S403: When the second interception function determines that the target file included in the file directory includes preset information, the second interception function is used to intercept the burning action of the add directory function to burn the file directory to the optical disc.
[0134] When the second interception function determines that the target file included in the file directory includes preset information, continuing the burning action at this time may cause leakage of sensitive information, so the burning action is intercepted by the second interception function.
[0135] The preset information may be information that is not desired to be disclosed or an identifier used to determine information that needs to be kept confidential. In practical applications, the preset information may be sensitive information, and the target information is compared with the target file to confirm whether the target information includes sensitive information. The preset information may also be information such as keywords, key words, key sentences, preset codes or preset identifiers, which are used to determine sensitive information through comparison.
[0136] S404: When the second interception function determines that the file directory does not include preset information, calling the add directory function is allowed to burn the file directory to the optical disc.
[0137] In addition, when the second interception function detects the burning action of the file directory to the local address, such as burning between different disks divided locally, in practical application it refers to generating an .iso file of the file directory, it allows calling the add directory function to burn the target file to the local address.
[0138] In summary, this method can determine whether the content of the file directory being burned is sensitive without restricting the user's normal use of the optical disc, and promptly intercept the burning action including sensitive content, while avoiding missed reviews and effectively preventing data leakage.
[0139] The implementation process of the method described in the embodiment of the present application is explained below in conjunction with specific application scenarios.
[0140] See also Figure 5 , which is a scenario diagram of the data protection method provided in Example 2 of the present application.
[0141] The AddTree function address in the virtual function table corresponding to the IFsiDirectoryItem root entry interface pointer is used as the address of the MyAddTree function to point to the interception process. The MyAddTree function includes the second interception function and the directory adding function.
[0142] When the system executes the AddTree function, it actually executes the MyAddTree function, that is, it actually executes the interception process. The interception process first includes target address filtering. If it is a non-local address, that is, CD burning, the file directory is traversed to obtain all target files, and then the target file is parsed to obtain the real content of the target file, and then the result of the file parsing is matched with the preset information. If the target file includes the preset information, it means that the file directory includes sensitive content, and the burning action of the file directory is blocked.
[0143] When the target address filtering determines that the burning address of the file directory is a local address, for example, the process of burning the file directory to an .iso type file locally, the AddTree function can be implemented, so it will not affect the normal use of users. And because the monitoring and interception is carried out at the application layer, it has no impact on the intermediate driver layer, so it will not affect the stability of the system.
[0144] Embodiment 3
[0145] Based on the data protection method provided in the above embodiments, the embodiment of the present application further provides a data protection device, which is applied to monitor the burning of files, and is described in detail below with reference to the accompanying drawings.
[0146] See also Figure 6 , which is a schematic diagram of a data protection device provided in an embodiment of the present application.
[0147] The data protection device is used for monitoring when burning a file. The burning process includes burning a target file to an optical disc. The device includes: a first calling unit 601, a first monitoring unit 602 and a first intercepting unit 603.
[0148] The first calling unit 601 is used to call the first interception function to monitor whether a locally stored target file is burned to the optical disc.
[0149] Furthermore, the first calling unit 601 is used to assign the address of the add file function to the address of the first interception function, and when an instruction to call the add file function is detected, the first interception function is called based on the address of the first interception function.
[0150] By assigning the address of the AddFile function in the virtual function table to the address of the first interception function, when the user performs the burning action, the IFsiDirectoryItem root entry interface pointer is first found, and the AddFile function is found through IFsiDirectoryItem. Because the address of the AddFile function has been assigned to the address of the first interception function, the first interception function is actually found, and the interception process is actually executed through the address of the first interception function.
[0151] Furthermore, since the AddFile function is called during the burning process of the target file, the first interception function is also called after the address is modified accordingly, so that all burning actions can be intercepted to avoid omissions.
[0152] The first monitoring unit 602 is used to analyze the target file using the first interception function when the first interception function detects a burning action of burning a locally stored target file to the optical disc.
[0153] Furthermore, the first monitoring unit 602 is also used to allow calling the add file function to burn the target file to the local address when the first interception function detects the burning action of burning the target file to the local address.
[0154] In a possible implementation, the first monitoring unit 602 determines that the target file includes the preset information when the result of the file parsing completely matches the content of the preset information or the matching rate exceeds a preset threshold. The preset threshold can be set according to actual needs, and the embodiment of the present application does not specifically limit this.
[0155] In another possible implementation, the first monitoring unit 602 may further determine that the target file includes sensitive information as long as it is determined that the result of file parsing includes some preset information.
[0156] The first interception unit 603 is used to intercept the burning action of the add file function to burn the target file to the optical disc by using the first interception function when the first interception function determines that the target file includes preset information.
[0157] The preset information may be information that is not desired to be disclosed or an identifier used to determine information that needs to be kept confidential. In practical applications, the preset information may be sensitive information, and the target information is compared with the target file to confirm whether the target information includes sensitive information. The preset information may also be information such as keywords, key words, key sentences, preset codes or preset identifiers, which are used to determine sensitive information through comparison.
[0158] The first interception unit 603 is further configured to allow calling the add file function to burn the target file to the optical disc when the first interception function determines that the target file does not include the preset information.
[0159] Furthermore, the first interception unit 603 performs file parsing on the target file using the first interception function, and performs content matching between the result of the file parsing and the preset information to determine whether the target file includes the preset information.
[0160] In summary, the device can determine whether the content of the target file is sensitive without restricting the normal use of the optical disc by the user, and timely intercept the burning action including sensitive content, while avoiding missed review and effectively preventing data leakage. And because the device monitors at the application layer, it does not affect the intermediate driver layer of the system, and therefore does not affect the stability of the system.
[0161] Embodiment 4
[0162] Based on the data protection method provided in the above embodiments, the embodiments of the present application also provide another data protection device, which is used for monitoring when burning files. The burning process includes burning a file directory to a CD, and the file directory includes at least one target file, which is described in detail below with reference to the accompanying drawings.
[0163] See also Figure 6 , which is a schematic diagram of another data protection device provided in an embodiment of the present application.
[0164] The data protection device provided in the embodiment of the present application includes: a second calling unit 701 , a second monitoring unit 702 , and a second intercepting unit 703 .
[0165] The second calling unit 701 is used to call the second interception function to monitor whether a locally stored file directory has a burning action to burn to the optical disc.
[0166] Furthermore, the second calling unit 701 is specifically used to assign the address of the add directory function to the address of the second interception function, and when an instruction to call the directory file function is detected, the second interception function is called based on the address of the second interception function.
[0167] By assigning the address of the AddTree function in the virtual function table to the address of the second interception function, when the user performs the burning action, the IFsiDirectoryItem root entry interface pointer is first found, and the AddTree function is found through IFsiDirectoryItem. Because the address of the AddTree function has been assigned to the address of the second interception function, the second interception function is actually found, that is, the interception process is actually executed through the address of the second interception function.
[0168] Furthermore, since the AddTree function is called during the burning process of the file directory, the second interception function is also called after the corresponding address is modified, so it is possible to intercept all file directory burning actions to avoid omissions.
[0169] The second monitoring unit 702 is used to analyze the target file using the second interception function when the second interception function detects the burning action of the locally stored file directory to the optical disc.
[0170] Furthermore, the second monitoring unit 702 is specifically used to utilize the second interception function to traverse the file directory and perform file parsing on the target file included in the file directory, and to match the result of the file parsing with the preset information to determine whether the preset information is included in the target file.
[0171] Furthermore, the second monitoring unit 702 is also used to allow calling the directory adding function to burn the file directory to the local address when the second interception function detects the burning action of burning the file directory to the local address.
[0172] In a possible implementation, the second monitoring unit 702 determines that the target file includes the preset information when the result of the file parsing completely matches the content of the preset information or the matching rate exceeds a preset threshold. The preset threshold can be set according to actual needs, and the embodiment of the present application does not specifically limit this.
[0173] In another possible implementation, the second monitoring unit 702 may further determine that the target file includes sensitive information as long as it is determined that the result of file parsing includes some preset information.
[0174] The second interception unit 703 is used to intercept the burning action of adding a directory function to burn the file directory to the optical disc by using the second interception function when the second interception function determines that the target file included in the file directory includes preset information.
[0175] The second interception unit 703 is further configured to allow calling the add directory function to burn the file directory to the optical disc when the second interception function determines that the file directory does not include the preset information.
[0176] In summary, the device can determine whether the contents of the file directory being burned are sensitive without restricting the normal use of the optical disc by the user, and timely intercept the burning action including sensitive contents, while avoiding missed inspections and effectively preventing data leakage. In addition, since the device monitors at the application layer, it does not affect the intermediate driver layer of the system, and therefore does not affect the stability of the system.
[0177] The above data protection device provided in the embodiment of the present application includes a processor and a memory. The above-mentioned first calling unit, first monitoring unit, first interception unit, second calling unit, second monitoring unit and second interception unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement corresponding functions.
[0178] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set to determine whether the content to be burned is sensitive by adjusting kernel parameters, and timely intercept the burning action of sensitive content to prevent data leakage.
[0179] An embodiment of the present invention provides a storage medium on which a computer program is stored. When the program is executed by a processor, the data protection method described in Embodiment 1 and / or Embodiment 2 is implemented.
[0180] An embodiment of the present invention provides a processor, which is used to run a program, wherein the data protection method described in Embodiment 1 and / or Embodiment 2 is executed when the program is run.
[0181] The embodiment of the present application also provides an electronic device, which is described in detail below with reference to the accompanying drawings.
[0182] See also Figure 8 , which is a schematic diagram of an electronic device provided in an embodiment of the present application.
[0183] The electronic device 80 includes at least one processor 801, at least one memory 802 and a bus 803 connected to the processor 801; the processor 801 and the memory 802 communicate with each other through the bus 803; the processor 801 is used to call the program instructions in the memory to execute the above data protection method. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0184] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:
[0185] Calling the first interception function to monitor whether a locally stored target file is burned to the optical disc;
[0186] When the first interception function detects the burning action of the locally stored target file to the optical disc, the target file is analyzed by using the first interception function;
[0187] When the first interception function determines that the target file includes preset information, the first interception function is used to intercept the burning action of the add file function to burn the target file to the optical disc;
[0188] When the first interception function determines that the target file does not include the preset information, the adding file function is allowed to be called to burn the target file to the optical disc.
[0189] Optionally, before calling the first interception function, the method further includes:
[0190] Assign the address of the adding file function to the address of the first interception function;
[0191] Then calling the first interception function includes:
[0192] When an instruction to call the add file function is detected, the first interception function is called based on the address of the first interception function.
[0193] Optionally, the analyzing the target file by using the first interception function includes:
[0194] Using the first interception function to perform file parsing on the target file;
[0195] The result of the file parsing is matched with the preset information to determine whether the target file includes the preset information.
[0196] Optionally, the method further includes:
[0197] When the first interception function detects the burning action of the target file to the local address, it is allowed to call the add file function to burn the target file to the local address.
[0198] It is also suitable for executing a program that has the following steps for initialization:
[0199] Calling the second interception function to monitor whether a locally stored file directory has a burning action to burn to the optical disc;
[0200] When the second interception function detects the burning action of the locally stored file directory to the optical disc, the target file is analyzed by using the second interception function;
[0201] When the second interception function determines that the target file included in the file directory includes preset information, the second interception function is used to intercept the burning action of the add directory function to burn the file directory to the optical disc;
[0202] When the second interception function determines that the file directory does not include the preset information, the adding directory function is allowed to be called to burn the file directory to the optical disc.
[0203] Optionally, before calling the second interception function, the method further includes:
[0204] Assign the address of the adding directory function to the address of the second interception function;
[0205] Then calling the second interception function includes:
[0206] When an instruction to call the directory file function is detected, the second interception function is called based on the address of the second interception function.
[0207] Optionally, the analyzing the file directory by using the second interception function includes:
[0208] Using the second interception function to traverse the file directory and perform file parsing on the target files included in the file directory;
[0209] The result of the file parsing is matched with the preset information to determine whether the target file includes the preset information.
[0210] Optionally, the method further includes:
[0211] When the second interception function detects the burning action of the file directory to the local address, it is allowed to call the directory adding function to burn the file directory to the local address.
[0212] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0213] In a typical configuration, the device includes one or more processors (CPU), memory and bus. The device may also include input / output interface, network interface and the like.
[0214] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
[0215] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0216] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0217] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0218] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A data protection method, characterized in that: Applicable to monitoring when burning a file, the burning process includes burning the target file to an optical disc, and the method includes: Calling the first interception function to monitor whether a locally stored target file is burned to the optical disc; When the first interception function detects the burning action of the locally stored target file to the optical disc, the target file is analyzed by using the first interception function; When the first interception function determines that the target file includes preset information, the first interception function is used to intercept the burning action of the add file function to burn the target file to the optical disc, wherein the preset information is one or more of a keyword, a key word, a key sentence, a preset code or a preset mark; When the first interception function determines that the target file does not include the preset information, the adding file function is allowed to be called to burn the target file to the optical disc.
2. The data protection method according to claim 1, characterized in that: Before calling the first interception function, the method further includes: Assign the address of the adding file function to the address of the first interception function; Then calling the first interception function includes: When an instruction for calling the add file function is monitored, the first interception function is called based on the address of the first interception function.
3. The data protection method according to claim 1, characterized in that: The analyzing the target file by using the first interception function includes: Using the first interception function to perform file parsing on the target file; The result of the file parsing is matched with the preset information to determine whether the target file includes the preset information.
4. The data protection method according to claim 1, characterized in that: The method further comprises: When the first interception function detects the burning action of the target file to the local address, it is allowed to call the add file function to burn the target file to the local address.
5. A data protection method, characterized in that: The method is applied to monitoring when burning a file directory, wherein the burning process includes burning the file directory to an optical disc, wherein the file directory includes at least one target file, and the method includes: Calling the second interception function to monitor whether a locally stored file directory has a burning action to burn to the optical disc; When the second interception function detects the burning action of the locally stored file directory to the optical disc, the target file is analyzed by using the second interception function; When the second interception function determines that the target file included in the file directory includes preset information, the second interception function is used to intercept the burning action of the add directory function to burn the file directory to the optical disc, and the preset information is one or more of a keyword, a key word, a key sentence, a preset code or a preset identifier; When the second interception function determines that the file directory does not include the preset information, the adding directory function is allowed to be called to burn the file directory to the optical disc.
6. The data protection method according to claim 5, characterized in that: Before calling the second interception function, the method further includes: Assign the address of the adding directory function to the address of the second interception function; Then calling the second interception function includes: When the instruction for calling the add directory function is monitored, the second interception function is called based on the address of the second interception function.
7. The data protection method according to claim 5, characterized in that: The using the second interception function to analyze the file directory includes: Using the second interception function to traverse the file directory and perform file parsing on the target files included in the file directory; The result of the file parsing is matched with the preset information to determine whether the target file includes the preset information.
8. The data protection method according to claim 5, characterized in that: The method further comprises: When the second interception function detects the burning action of the file directory to the local address, it is allowed to call the add directory function to burn the file directory to the local address.
9. A data protection device, characterized in that: Applicable to monitoring when burning a file, the burning process includes burning the target file to an optical disc, the device includes: a first calling unit, a first monitoring unit and a first intercepting unit; The first calling unit is used to call the first interception function to monitor whether a locally stored target file is burned to the optical disc; The first monitoring unit is configured to analyze the target file using the first interception function when the first interception function detects a burning action of the locally stored target file to the optical disc; The first interception unit is used to intercept the burning action of the add file function to burn the target file to the optical disc by using the first interception function when the first interception function determines that the target file includes preset information, wherein the preset information is one or more of a keyword, a key word, a key sentence, a preset code or a preset identifier; The first interception unit is further configured to allow calling the add file function to burn the target file to the optical disc when the first interception function determines that the target file does not include the preset information.
10. A data protection device, characterized in that: The device is applied to monitoring when burning a file directory, wherein the burning process includes burning the file directory to an optical disc, wherein the file directory includes at least one target file, and the device includes: a second calling unit, a second monitoring unit, and a second intercepting unit; The second calling unit is used to call the second interception function to monitor whether a locally stored file directory has a burning action to burn to the optical disc; The second monitoring unit is configured to analyze the target file using the second interception function when the second interception function detects a burning action of the locally stored file directory to the optical disc; The second interception unit is used for intercepting the burning action of the add directory function to burn the file directory to the optical disc by using the second interception function when the second interception function determines that the target file included in the file directory includes preset information, wherein the preset information is one or more of a keyword, a key word, a key sentence, a preset code or a preset identifier; The second interception unit is further configured to allow calling the add directory function to burn the file directory to the optical disc when the second interception function determines that the file directory does not include the preset information.
11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the data protection method described in any one of claims 1-4 and / or any one of claims 5-8 is implemented.
12. An electronic device, characterized in that: The electronic device includes at least one processor, at least one memory connected to the processor, and a bus; wherein the processor and the memory communicate with each other through the bus; the processor is used to call program instructions in the memory to execute the data protection method described in any one of claims 1-4 and / or any one of 5-8.
Citation Information
Patent Citations
Link method and linker
CN101650664A
System for monitoring and auditing compact disc burning
CN102110201A
Optical disk data encryption and decryption U disk and implementation method
CN104810036A
Equipment monitoring method and device
CN106055453A
System and method for using TrustZone technology to prevent leakage of sensitive data of third-party input method
CN106650422A
