A data tracing method, device, equipment and medium based on digital watermark
By using digital watermark technology in smart grid data for data sensitivity level assessment and watermark embedding, combined with user identity information splitting technology, the problem of traceability of smart grid data leaks is solved, and the accurate location of data leaks and the identification of leakers are achieved. .
Patent Information
- Application Number
- CN202311649634.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-04
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-12-04
AI Technical Summary
Existing digital watermark traceability solutions cannot fully meet the needs of smart grid data security. Especially when data is large in scale, comes from a wide range of sources, and has complex types, it cannot effectively achieve traceability and accountability for data leaks.
Using a method based on digital watermarking, through data sensitivity level assessment and watermark embedding technology, watermarks are embedded in the data to be distributed, and data is split based on user identity information to ensure that leaked users can be quickly located when data is leaked. The method includes obtaining data to be distributed, embedding watermarks based on data sensitivity level and user identity information, using a hash function to generate user watermarks, and splitting and distributing data based on attribute column information to ensure data traceability among multi-level users. .
It achieves accurate location of data leakage, can quickly identify suspicious users and determine the identity of the leaker, meeting the practical application needs of smart grid data security.
Smart Images

Figure CN117725565B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of traceability technology, and in particular to a data traceability method, device, equipment and medium based on digital watermark. Background Art
[0002] With the rapid development of informatization and digitalization, the importance of data security to enterprises has become increasingly prominent. The power grid is a key national infrastructure, and its data security has become an important part of national security. Traditional data security solutions mainly consider the confidentiality and integrity of data based on cryptography. They cannot provide effective data traceability and accountability for accidental data leaks.
[0003] However, with the development of smart grids, data development tends to be larger in scale, more widely sourced, and more complex in type. This means that it is almost impossible to completely avoid information leakage. In addition, most power grid data is stored and distributed in the form of relational databases with mixed data types. Most existing digital watermark traceability schemes are limited by data types and cannot fully meet the needs of practical applications. Summary of the invention
[0004] In view of this, the present invention provides a data tracing method, device, equipment and medium based on digital watermark to solve the problem that most of the existing data tracing methods cannot fully meet the needs of practical applications in the field of power grid data security.
[0005] In a first aspect, the present invention provides a data tracing method based on digital watermarks, the method comprising: obtaining data to be distributed, the data to be distributed is used to be distributed among multiple users at multiple levels, and is sent by upper-level users to lower-level users; when upper-level users distribute data, watermarking the data to be distributed according to the sensitivity level of the data to be distributed and user identity information, to obtain watermark-embedded data and user watermark; splitting the watermark-embedded data based on the user identity information of the distributed data and the attribute column information of the watermark-embedded data, and distributing the split data to lower-level users; when data leakage occurs, locating the leaking user according to the attribute column information of the leaked data and the user watermark.
[0006] The data tracing method based on digital watermark provided by the embodiment of the present invention can quickly locate all suspected leaking users when data leakage occurs through data sensitivity level assessment, watermark embedding and database table splitting technology, and obtain the accurate identity of the leaker through split comparison and watermark extraction comparison. This realizes the accurate positioning of data leakage and has broad application prospects.
[0007] In an optional implementation, a watermark is embedded in the data to be distributed according to the sensitivity level of the data to be distributed and the user identity information to obtain the watermark-embedded data and the user watermark, including: determining the data to be watermarked according to the sensitivity level of the data to be distributed; generating a user watermark according to the user identity information, and using the user watermark to embed the data to be watermarked to obtain the watermark-embedded data.
[0008] In this embodiment, watermark embedding is performed on data that needs to be watermarked according to the sensitivity level of the data, which can reduce the impact on data accuracy.
[0009] In an optional implementation, a user watermark is generated based on user identity information, and the user watermark is used to embed watermarks in data that needs to be watermarked to obtain data embedded with the watermark, including: using a hash function to calculate the user identity information to generate a user watermark; determining a preset digital field based on the data type of the data that needs to be watermarked, and embedding the watermark by replacing the preset data field with the user watermark to obtain data embedded with the watermark.
[0010] In this embodiment, a user watermark is generated by calculating the user identity information using a hash function, so that the user watermark corresponds to the user; different preset data fields are determined based on the data type to embed the user watermark, thereby improving the confidentiality of the watermark embedding.
[0011] In an optional implementation, the watermarked data is split based on the user identity information of the distributed data and the attribute column information of the watermarked data, and the split data is distributed to lower-level users, including: based on a hash function, generating a user sequence according to the attribute column information of the watermarked data, the user identity information of the distributed data, and the user identity information of the received data; splitting the attribute column of the watermarked data according to the user sequence to obtain split data; and sending the split data to lower-level users.
[0012] In this embodiment, a user sequence is generated based on user identity information and attribute column information, and the user sequence is used to split the user, so that different users correspond to different splitting methods, which facilitates subsequent data tracing.
[0013] In an optional embodiment, when the lower-level users who receive the split data also include users at a lower level, after distributing the split data to the lower-level users, the method also includes: treating the lower-level users who receive the split data as upper-level users, and repeating the steps of watermark embedding, data splitting, and split data distribution.
[0014] In this embodiment, distribution of users between different levels is achieved by repeating the steps of watermark embedding, data splitting and split data distribution.
[0015] In an optional implementation, the leaking user is located based on the leaked data attribute column information and the user watermark, including: determining the suspicious user based on the relationship between the leaked data attribute column information and the user sequence and the hierarchical relationship of the users; and locating the leaking user based on the comparison result of the user watermark of the suspicious user with the leaked data.
[0016] In an optional implementation, the leaking user is located based on the comparison result of the user watermark of the suspicious user with the leaked data, including: determining the data unit containing the suspicious user watermark based on the comparison of the suspicious user's watermark with the preset data field of each data unit in the leaked data; and locating the leaking user based on the number of data units containing the suspicious user watermark in the leaked data.
[0017] In this embodiment, the leaking user is located by first using the user sequence to determine the suspicious user, and then determining the leaking user among the suspicious users based on the user watermark. At the same time, in the multi-level distribution process, the watermark of the lower-level user will cover most of the watermark information of the upper-level user. Through the above positioning method, the identity of the user who last handled the leaked data can be obtained, thereby determining the identity of the leaker.
[0018] In the second aspect, the present invention provides a data tracing device based on digital watermark, which includes: a data acquisition module, which is used to acquire data to be distributed, and the data to be distributed is used to be distributed among multiple users at multiple levels, and is sent by upper-level users to lower-level users; a watermark embedding module, which is used to embed watermarks into the data to be distributed according to the sensitivity level of the data to be distributed and the user identity information when the upper-level users distribute the data, so as to obtain the watermark-embedded data and the user watermark; a splitting module, which is used to split the watermark-embedded data based on the user identity information of the distributed data and the attribute column information of the watermark-embedded data, and distribute the split data to lower-level users; a positioning module, which is used to locate the leaking user according to the attribute column information of the leaked data and the user watermark when data leakage occurs.
[0019] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the digital watermark-based data tracing method of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0020] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the data tracing method based on digital watermarking according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 is a flow chart of a data tracing method based on digital watermark according to an embodiment of the present invention;
[0023] Figure 2 is a schematic diagram of a Tree-Distr according to an embodiment of the present invention;
[0024] Figure 3 is a flow chart of another data tracing method based on digital watermark according to an embodiment of the present invention;
[0025] Figure 4 is a flow chart of another data tracing method based on digital watermark according to an embodiment of the present invention;
[0026] Figure 5 is a structural block diagram of a data tracing device based on digital watermark according to an embodiment of the present invention;
[0027] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0029] According to an embodiment of the present invention, an embodiment of a data tracing method based on digital watermark is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] In this embodiment, a data tracing method based on digital watermark is provided. Figure 1 is a flow chart of a data tracing method based on digital watermark according to an embodiment of the present invention. Figure 1As shown, the process includes the following steps:
[0031] Step S101, obtain the data to be distributed, the data to be distributed is used to distribute among multiple users of multiple levels, and is sent by the upper-level users to the lower-level users. It should be noted that the data traceability based on digital watermark is to add a watermark to the data. When the data is leaked, the leaking user can be quickly located based on the watermark. Specifically, in this embodiment, the data will be distributed among multiple users, and the multiple users will be divided into multiple levels according to the distribution relationship of the data, wherein the owner of the data is divided into the 0th level, that is, the owner of the data is represented as user 0. The owner of the data distributes the data to the first-level users who need the data, and the users of the first level are represented as user 1-1 and user 1-2. The first-level users distribute the data to the second-level users who need the data, and the users of the second level are represented as user 2-1 and user 2-2, and so on, and the nth user of the mth level is represented as user mn. Therefore, when the data is distributed between two levels, for example, when it is distributed between the first level and the second level, the first level is the upper level and the second level is the lower level.
[0032] In this embodiment, the data to be distributed is specifically power distribution and distributed new energy data. In other embodiments, the data to be distributed may also be other data. The present invention does not specifically limit the data to be distributed.
[0033] Step S102, when the upper-level user distributes data, the data to be distributed is watermarked according to the sensitivity level of the data to be distributed and the user identity information, and the watermarked data and the user watermark are obtained. Specifically, the data to be distributed, especially the power distribution and distributed new energy data resources, are large in scale, wide in source, and multi-type, and the privacy sensitivity of the data resources varies. Therefore, before the watermark is embedded, the sensitivity level of the data is evaluated, and then the watermark is embedded in the data to be distributed according to the evaluation results and the user identity information, so as to reduce the impact on the data accuracy. Among them, the evaluation of the sensitivity level can be achieved by using relevant technologies.
[0034] Step S103, split the watermarked data based on the user identity information of the distributed data and the attribute column information of the watermarked data, and distribute the split data to the lower-level users. Specifically, in this embodiment, the data to be distributed is a database table. When splitting the data, it will be split according to the attribute column of the data. The specific splitting method can be determined based on the user identity information, for example, different users correspond to different splitting methods.
[0035] Step S104, when data leakage occurs, locate the leaking user according to the leaked data attribute column information and the user watermark. Specifically, after data leakage occurs, the leaked data can be obtained, and the specific splitting method can be determined according to the attribute column information in the leaked data, so as to determine the user who may have leaked the data. At the same time, the user who leaked the data can be located by comparing the watermark information in the leaked data with the user watermark.
[0036] The data tracing method based on digital watermark provided by the embodiment of the present invention can quickly locate all suspected leaking users when data leakage occurs through data sensitivity level assessment, watermark embedding and database table splitting technology, and obtain the accurate identity of the leaker through split comparison and watermark extraction comparison. This realizes the accurate positioning of data leakage and has broad application prospects.
[0037] In this embodiment, a data tracing method based on digital watermark is provided, and the process includes the following steps:
[0038] Step S201, obtain the data to be distributed, the data to be distributed is used to distribute among multiple users at multiple levels, and is sent from the upper level users to the lower level users. For details, please refer to Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0039] Step S202, when the upper-level user distributes data, a watermark is embedded in the data to be distributed according to the sensitivity level of the data to be distributed and the user identity information to obtain the watermark-embedded data and the user watermark.
[0040] Specifically, the above step S202 includes:
[0041] Step S2021, determine the data that needs to be watermarked according to the sensitivity level of the data to be distributed; specifically, in this embodiment, the sensitivity level of the data is evaluated by the sensitive words contained in the data. For example, for data such as power distribution and distributed new energy, a corresponding sensitive word library can be established in different application scenarios. By searching whether there are corresponding sensitive words in the sensitive word library in different data columns of the data to be distributed, the sensitivity level of the data column can be evaluated. The specific calculation formula is as follows:
[0042] ω=x1α1+x2α2+…+x n α n
[0043] x1+x2+…+x n =1
[0044] Among them, ω represents the sensitivity level, α i Indicates the sensitivity value of the i-th sensitive word, x iRepresents the calculation coefficient corresponding to the i-th sensitive word.
[0045] In an optional implementation, an example of a sensitive word library is shown in Table 1 below:
[0046] Table 1
[0047]
[0048] It should be noted that the sensitivity value of a sensitive word can be determined based on expert experience, and the calculation coefficient can be determined based on the data type corresponding to the sensitive word. For example, different data types can set different calculation coefficients based on their sensitivity. After determining the sensitivity level of the data column, the sensitivity level can be compared with the set sensitivity threshold. When the sensitivity level is less than the sensitivity threshold, the corresponding data column data, i.e., the non-sensitive data column, is used as the data that needs to be watermarked. Among them, the sensitivity threshold can be set based on the scenario-based power distribution and distributed new energy data.
[0049] Step S2022: Generate a user watermark according to the user identity information, and use the user watermark to embed watermarks into the data to be watermarked, so as to obtain data embedded with watermarks.
[0050] Specifically, the above step S2022 includes:
[0051] Step a1, using a hash function to calculate the user identity information and generate a user watermark; specifically, the user identity information is the user identity information of the distributed data or the upper-level user identity information, and the user identity information uses information that can distinguish different users, for example, the user identity identification information ID can be used, and the user identity identification information ID is calculated using a hash function Hash to obtain a hash value ζ=Hash(ID), and the hash value is used as the user watermark. It should be noted that after the user watermark is obtained, it can be stored in a trusted third party for subsequent watermark detection.
[0052] Step a2, determine the preset digital field according to the data type of the data to be watermarked, and embed the watermark by replacing the preset data field with the user watermark to obtain the data embedded with the watermark. Specifically, different preset data fields can be set for different data types. For example, for power distribution and distributed new energy data, it mainly includes numerical data and text data. For numerical data, the first P bits of the user watermark are used to replace the binary value of the P-bit redundant field in the text. For numerical data, the first Q bits of the user watermark are used to replace the least significant bits of the Q bits. Watermark embedding is achieved through data replacement to obtain data embedded with the watermark.
[0053] Step S203, splitting the data embedded with the watermark based on the user identity information of the distributed data and the attribute column information of the data embedded with the watermark, and distributing the split data to lower-level users;
[0054] Specifically, the above step S203 includes:
[0055] Step S2031, based on the hash function, generate a user sequence according to the attribute column information of the data embedded with the watermark, the user identity information of the distributed data, and the user identity information of the received data; wherein, the user identity information of the distributed data is the user identity information of the upper-level user, and the user identity information of the received user is the user identity information of the lower-level user. For example, user 0 distributes data to first-level users 1-n, then the user identity information of the distributed data is the user identity information of user 0, and the user identity information of the received user is the user identity information of users 1-n. In this embodiment, when generating a user sequence, first determine the total number of attribute columns other than the primary key in the data embedded with the watermark, that is, the total number of data columns other than the primary key, recorded as N, and then use the hash function to distribute the user identity information of the data, that is, user ID0, and the user identity information of the receiving user, that is, ID 1-n And the table name of the watermarked data A name Perform hash calculation to generate a {0,1} user sequence of length N
[0056]
[0057] Step S2032, split the attribute column of the data embedded with the watermark according to the user sequence to obtain split data; specifically, after obtaining the user sequence, the data embedded with the watermark is split into two sub-tables using the user sequence: sequence Describes the attribute column information retained in each subtable, where the subtable Keep the embedded watermark data A 1 Primary keys and sequences in All attribute columns corresponding to number 1; subtable Keep the embedded watermark data A 1 Primary keys and sequences in All attribute columns corresponding to the number 0 in the sequence It is also stored in a trusted third party for subsequent data tracing.
[0058] Step S2033, sending the split data to lower-level users.
[0059] The following takes the example of user 0 distributing data to user 1-1 and to user 1-2 to illustrate the splitting and distribution process:
[0060] Assume that the watermarked data A 1 ={user name, account, password, phone number, email address, address, device number, voltage level, power consumption} is a table in the original database of user 0, and watermarks have been added to non-sensitive information, where the user name is the primary key.
[0061] User 0 sends A 1 When giving a user a 1-1:
[0062] According to the above step S2031, the split sequence is calculated Then A 1 Split into tables and That is, the attribute columns of the two sub-tables after splitting are shown in Table 2 below (1 indicates that the corresponding attribute column is included).
[0063] Table 2
[0064]
[0065] User 0 sends A 1 For users 1-2:
[0066] According to the above step S2031, the split sequence is calculated Then A 1 Split into tables and That is, the attribute columns of the two sub-tables after splitting are shown in Table 3 below (1 indicates that the corresponding attribute column is included).
[0067] Table 3
[0068]
[0069] It should be noted that when the lower-level users receiving the split data also include the next lower-level users, after distributing the split data to the lower-level users, the method further includes: treating the lower-level users receiving the split data as the upper-level users, and repeating the steps of watermark embedding, data splitting, and split data distribution. Specifically, after the upper-level user 0 sends data to the lower-level users 1-n, if the next lower-level users 2-n need the data, users 1-n will receive the split data according to the split sequence stored by the third party. First merge the two sub-tables into the original table A 1 , then add its own watermark information, and perform watermark embedding and data splitting in the same way as steps S202 to S203, and send the split data to users 2-n.
[0070] In this embodiment, the Figure 2The tree structure diagram shown in the figure is used to describe the hierarchical relationship of data distribution, which is denoted as Tree-Distr. The data stored in the nodes of the tree structure diagram are the user codes of each user participating in the distribution, where the root node represents the owner of the original data, and the parent node of each child node represents the data distributor of the previous level.
[0071] Step S204: when data leakage occurs, locate the leaking user according to the leaked data attribute column information and the user watermark.
[0072] Specifically, the above step S204 includes:
[0073] Step S2041, determining suspicious users based on the relationship between the attribute column information of the leaked data and the user sequence and the hierarchical relationship of the users; specifically, when it is determined that data leakage has occurred, the attribute column information in the leaked data can be obtained, and then compared with the user sequence stored in a third party to determine which user sequence corresponds to a splitting method that contains the attribute column information of the leaked data, thereby obtaining the user corresponding to the user sequence, and at the same time, according to the distribution path corresponding to the user, a list of all participating users can be determined, and the users in the list can be determined as suspicious users.
[0074] Step S2042, locate the leaking user according to the comparison result between the user watermark of the suspicious user and the leaked data. This step specifically includes: determining the data unit with the suspicious user watermark according to the comparison between the watermark of the suspicious user and the preset data field of each data unit in the leaked data; locating the leaking user according to the number of data units with the suspicious user watermark in the leaked data. Specifically, during the comparison, the user watermark of the suspicious user k stored in the trusted third party is compared with the redundant field or low-significant bit area of all non-sensitive data column data units of the leaked data. When the similarity ratio of the two exceeds the preset threshold, it is considered that the element has the watermark of user k. When the number of data units with watermarks detected in the data column exceeds y% of the total number of data units in the data column. It is determined that the watermark of user k is contained in the leaked data. That is, user k can be located and determined as the leaking user. Therefore, in the multi-level distribution process, the watermark of the lower-level user will cover the watermark information of most of the upper-level users. Through the above method, the identity of the user who finally handled the leaked data can be obtained, thereby determining the identity of the leaker, that is, the leaking user.
[0075] As a specific application example of the embodiment of the present invention, Figure 3 and Figure 4 As shown in the figure, with power distribution and distributed new energy data as the data to be distributed, the data tracing method based on digital watermark is implemented by the following process:
[0076] Step 1: User 0 is the owner of the original database and needs to distribute database table A to the lower level. In the data distribution process, user mn represents the nth user at the mth level.
[0077] Step 2: The data resources of power distribution and distributed new energy are large in scale, wide in source, and multi-type. The privacy sensitivity of data resources varies. Therefore, the data sensitivity level is evaluated before watermark embedding. Watermark embedding is only performed on non-sensitive data to reduce the impact on data accuracy. Therefore, user 0 first evaluates the sensitivity level of each data column in A according to the data type and content.
[0078] Step 3: User 0 determines whether to embed a watermark according to the sensitivity level of each data column in A. When the sensitivity level of a data column is less than the sensitivity threshold, the watermark is embedded in the data column.
[0079] Step 4: For the data column to be embedded with the watermark, user 0 uses a hash function to perform hash calculation on the user identity representation of user 0 to obtain a user watermark sequence.
[0080] Step 5: Select different preset data fields according to the data type, and embed the watermark by replacing the preset data fields with the user watermark sequence to obtain the database table A with embedded watermarks. 1 .
[0081] Step 6: User 0 adds database table A 1 Before distributing to primary users 1-n, first calculate database table A 1 The total number of attribute columns other than the primary key is recorded as N, and then the hash function is used to calculate the user ID0 and the ID of the subordinate user. 1-n 、The name of the database table A name , generate a {0,1} sequence of length N
[0082]
[0083] Then according to the sequence A 1 Split into 2 sub-tables sequence Describes the attribute column information retained in each subtable, where the subtable Keep database table A 1 Primary keys and sequences in All attribute columns corresponding to number 1; subtable Keep database table A 1 Primary keys and sequences in All attribute columns corresponding to the number 0 in the sequence It is also stored in a trusted third party for subsequent data tracing.
[0084] Step 7: Users 1-n receive the sublist After that, according to the split sequence stored by the third party First merge the two sub-tables into the original table A 1 , and then add its own watermark information, and perform watermark embedding and database table splitting in the same way as steps 2 to 6. Use a tree structure diagram to describe the hierarchical relationship of data distribution, denoted as Tree-Distr. The data stored in the nodes of the tree structure diagram are the user codes of each user participating in the distribution, where the root node represents the owner of the original data, and the parent node of each child node represents the data distributor at the previous level.
[0085] Step 8: When data leakage occurs, locate all suspected leakers, i.e., suspicious users, according to the splitting method of the leakage data table.
[0086] Step 9: Extract watermark information from the leaked data, and compare the watermark information of the suspected leaker with the watermark information extracted from the leaked data to confirm the identity of the leaker and determine the responsibility.
[0087] In this embodiment, a data tracing device based on digital watermark is also provided, which is used to implement the above embodiments and preferred implementation modes, and will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0088] This embodiment provides a data tracing device based on digital watermark, such as Figure 5 As shown, including:
[0089] The data acquisition module 51 is used to acquire the data to be distributed, and the data to be distributed is used to be distributed among multiple users at multiple levels, and is sent from the upper level users to the lower level users;
[0090] The watermark embedding module 52 is used to embed a watermark into the data to be distributed according to the sensitivity level of the data to be distributed and the user identity information when the upper-level user distributes data, so as to obtain the watermark-embedded data and the user watermark;
[0091] A splitting module 53, used to split the data embedded with watermarks based on the user identity information of the distributed data and the attribute column information of the data embedded with watermarks, and distribute the split data to lower-level users;
[0092] The positioning module 54 is used to locate the leaking user according to the leaked data attribute column information and the user watermark when data leakage occurs.
[0093] In an optional embodiment, the watermark embedding module includes: a watermark generation module, which is used to determine the data that needs to be watermarked according to the sensitivity level of the data to be distributed; an embedding sub-module, which is used to generate a user watermark according to user identity information, and use the user watermark to embed the data that needs to be watermarked to obtain the data embedded with the watermark.
[0094] In an optional implementation, the embedding submodule is specifically used to: use a hash function to calculate user identity information to generate a user watermark; determine a preset digital field based on the data type of the data to be watermarked, and embed the watermark by replacing the preset data field with the user watermark to obtain data embedded with the watermark.
[0095] In an optional implementation, the splitting module is specifically used to: generate a user sequence based on a hash function according to the attribute column information of the data embedded with the watermark, the user identity information of the distributed data, and the user identity information of the received data; split the attribute column of the data embedded with the watermark according to the user sequence to obtain split data; and send the split data to lower-level users.
[0096] In an optional embodiment, when the lower-level users receiving the split data also include users at the next level, the device also includes: a distribution module, which is used to treat the lower-level users receiving the split data as upper-level users and repeat the steps of watermark embedding, data splitting and split data distribution.
[0097] In an optional implementation, the positioning module includes: a suspicious user determination module, used to determine suspicious users based on the relationship between the leaked data attribute column information and the user sequence and the hierarchical relationship of the users; a positioning submodule, used to locate the leaking user based on the comparison result of the user watermark of the suspicious user with the leaked data.
[0098] In an optional implementation, the positioning submodule is specifically used to: determine the data unit containing the suspicious user watermark based on a comparison between the suspicious user's watermark and a preset data field of each data unit in the leaked data; and locate the leaking user based on the number of data units containing the suspicious user watermark in the leaked data.
[0099] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0100] The embodiment of the present invention also provides a computer device having the above Figure 5 The data tracing device based on digital watermark is shown.
[0101] See also Figure 6 , Figure 6is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 6 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.
[0102] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0103] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0104] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0105] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0106] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0107] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0108] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A data tracing method based on digital watermark, It is characterized in that The method comprises: Obtaining data to be distributed, the data to be distributed is used to distribute among multiple users at multiple levels, and is sent from upper-level users to lower-level users; When the upper-level user distributes data, the data to be distributed is watermarked according to the sensitivity level of the data to be distributed and the user identity information, and the watermarked data and the user watermark are obtained. When the sensitivity level is less than the sensitivity threshold, the corresponding data column is used as the data that needs to be watermarked; Splitting the watermarked data based on the user identity information of the distributed data and the attribute column information of the watermarked data, and distributing the split data to lower-level users; When data leakage occurs, locate the leaking user based on the leaked data attribute column information and user watermark; The data embedded with watermarks is split based on the user identity information of the distributed data and the attribute column information of the data embedded with watermarks, and the split data is distributed to lower-level users, including: Based on the hash function, a user sequence is generated according to the attribute column information of the data embedded with the watermark, the user identity information of the distributing data and the user identity information of the receiving data; Splitting the attribute column of the data embedded with the watermark according to the user sequence to obtain split data; The split data is sent to lower-level users, and the lower-level users merge the split data after receiving them.
2. The method according to claim 1, It is characterized in that According to the sensitivity level of the data to be distributed and the user identity information, a watermark is embedded in the data to be distributed, and the watermark-embedded data and the user watermark are obtained, including: Determine the data that needs to be watermarked according to the sensitivity level of the data to be distributed; A user watermark is generated according to the user identity information, and the user watermark is used to embed the watermark into the data to be watermarked to obtain the watermarked data.
3. The method according to claim 2, It is characterized in that Generate a user watermark according to the user identity information, and use the user watermark to embed the watermark into the data to be watermarked, so as to obtain the data embedded with the watermark, including: Use hash function to calculate user identity information and generate user watermark; The preset digital field is determined according to the data type of the data to be embedded with the watermark, and the watermark is embedded in the data by replacing the preset data field with the user watermark to obtain the data embedded with the watermark.
4. The method according to claim 1, It is characterized in that When the lower-level users receiving the split data include users at a lower level, after distributing the split data to the users at the lower level, the method further includes: The lower-level users who receive the split data are regarded as upper-level users, and the steps of watermark embedding, data splitting and split data distribution are repeated.
5. The method according to claim 3, It is characterized in that Locate the leaked user based on the leaked data attribute column information and user watermark, including: Determine suspicious users based on the relationship between the leaked data attribute column information and the user sequence and the hierarchical relationship of the users; The leaked user is located based on the comparison result between the user watermark of the suspicious user and the leaked data.
6. The method according to claim 5, It is characterized in that Locate the leaked user based on the comparison between the suspicious user's user watermark and the leaked data, including: Determine the data unit where the suspicious user's watermark exists based on the comparison between the suspicious user's watermark and the preset data field of each data unit in the leaked data; The leaking user is located according to the number of data units with suspicious user watermarks in the leaked data.
7. A data tracing device based on digital watermark, It is characterized in that The device comprises: A data acquisition module is used to acquire data to be distributed, and the data to be distributed is used to distribute among multiple users at multiple levels, and is sent from users at an upper level to users at a lower level; The watermark embedding module is used to embed watermarks into the data to be distributed according to the sensitivity level of the data to be distributed and the user identity information when the upper-level user distributes data, and obtain the watermark-embedded data and the user watermark. When the sensitivity level is less than the sensitivity threshold, the corresponding data column is used as the data that needs to be watermarked; A splitting module, used for splitting the data embedded with watermarks based on the user identity information of the distributed data and the attribute column information of the data embedded with watermarks, and distributing the split data to lower-level users; The positioning module is used to locate the leaking user according to the leaked data attribute column information and user watermark when data leakage occurs; The data embedded with watermarks is split based on the user identity information of the distributed data and the attribute column information of the data embedded with watermarks, and the split data is distributed to lower-level users, including: Based on the hash function, a user sequence is generated according to the attribute column information of the data embedded with the watermark, the user identity information of the distributing data and the user identity information of the receiving data; Splitting the attribute column of the data embedded with the watermark according to the user sequence to obtain split data; The split data is sent to lower-level users, and the lower-level users merge the split data after receiving them.
8. A computer device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the data tracing method based on digital watermark according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the data tracing method based on digital watermark according to any one of claims 1 to 6.
