Data desensitization method and device, electronic equipment and storage medium

By judging the sensitive information of non-sensitive fields in the data desensitization scheme and performing desensitization processing, the data security problem caused by mislabeling of unlabeled fields in the existing technology is solved, and comprehensive protection of all possible sensitive data is achieved.

CN118797713APending Publication Date: 2024-10-18XINYANG BRANCH HENAN CO LTD OF CHINA MOBILE COMM CORP +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410351456.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-26
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing data desensitization solutions usually only process fields marked as sensitive. Unmarked fields may be mislabeled, resulting in unresolved data security issues.

Method used

By determining the access rights of non-sensitive fields in the data to be accessed, and judging whether there is sensitive information in the non-sensitive fields according to the user security level and the size of the access rights, the non-sensitive fields with sensitive information and the fields marked as sensitive Perform desensitization treatment.

Benefits of technology

It effectively avoids data security problems caused by errors in marking sensitive fields, so that data not marked as sensitive fields can also be desensitized, improving the overall security of the data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797713A_ABST
    Figure CN118797713A_ABST
Patent Text Reader

Abstract

The invention provides a data desensitization method and device, electronic equipment and a storage medium. The method comprises the following steps: in a process of accessing to-be-accessed data, determining an accessed permission of a non-sensitive field in the to-be-accessed data; a first field is determined from the non-sensitive fields, whether sensitive information exists in the first field or not is judged, and the first field is a field with the accessed permission smaller than or equal to the user security level; responding to the sensitive information in the first field, and desensitizing the sensitive field and the first field in the to-be-accessed data. Therefore, according to the scheme, whether the sensitive information exists in the first field in the non-sensitive fields or not is judged, and then the first field which determines that the sensitive information exists and the field which is marked as the sensitive field are subjected to desensitization processing together, so that data which is not marked as the sensitive field can also be subjected to desensitization processing; and the data security problem caused by sensitive field marking errors is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data security technology, and in particular to a data desensitization method, device, electronic device and storage medium. Background Art

[0002] In the era of big data and in the context of data sharing, ensuring the security of sensitive data such as personal information is also one of the important research directions. At present, sensitive data desensitization is usually adopted to protect sensitive data. The existing desensitization scheme is based on the premise that the field is marked as a sensitive field. The marked sensitive field will be desensitized, and the unmarked sensitive field will not be desensitized. Summary of the invention

[0003] The present application aims to solve one of the technical problems in the related art at least to some extent.

[0004] To this end, the first purpose of this application is to propose a data desensitization method to achieve desensitization of data that is not marked as sensitive fields, thereby avoiding data security issues caused by errors in marking sensitive fields.

[0005] The second purpose of this application is to provide a data desensitization device.

[0006] The third objective of the present application is to provide an electronic device.

[0007] A fourth objective of the present application is to provide a computer-readable storage medium.

[0008] A fifth object of the present application is to provide a computer program product.

[0009] To achieve the above-mentioned purpose, the first aspect embodiment of the present application proposes a data desensitization method, including: in the process of accessing the data to be accessed, determining the access rights of non-sensitive fields in the data to be accessed; determining a first field from the non-sensitive fields, and judging whether there is sensitive information in the first field, wherein the first field is a field whose access rights are less than or equal to the user security level; in response to the presence of sensitive information in the first field, desensitizing the sensitive fields in the data to be accessed and the first field.

[0010] To achieve the above-mentioned purpose, the second aspect embodiment of the present application proposes a data desensitizing device, including: a determination module, used to determine the access rights of non-sensitive fields in the data to be accessed during the access to the data to be accessed; a judgment module, used to determine a first field from the non-sensitive fields, and judge whether there is sensitive information in the first field, wherein the first field is a field whose access rights are less than or equal to the user security level; a processing module, used to desensitize the sensitive fields in the data to be accessed and the first field in response to the presence of sensitive information in the first field.

[0011] To achieve the above-mentioned purpose, the third aspect embodiment of the present application proposes an electronic device, comprising: a processor; and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor can execute the data desensitization method described in the above-mentioned first aspect embodiment.

[0012] To achieve the above-mentioned purpose, the fourth aspect of the present application proposes a computer-readable storage medium on which a computer program is stored, and the computer instructions are used to enable the computer to execute the data desensitization method described in the above-mentioned first aspect.

[0013] To achieve the above-mentioned purpose, the fifth aspect of the present application proposes a computer program product, including a computer program, which, when executed by a processor, implements the data desensitization method described in the first aspect of the embodiment.

[0014] The data desensitization method, device, electronic device and storage medium provided in the present application determine the access rights of non-sensitive fields in the data to be accessed, and determine the first field from the non-sensitive fields according to the size between the user security level and the access rights, and judge whether there is sensitive information in the first field, and then desensitize the first field determined to contain sensitive information and the field marked as a sensitive field together, so that the data not marked as sensitive fields will also be desensitized, avoiding data security problems caused by errors in marking sensitive fields.

[0015] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0017] Figure 1 A flowchart of a data desensitization method provided in an embodiment of the present application;

[0018] Figure 2 A flowchart of another data desensitization method provided in an embodiment of the present application;

[0019] Figure 3 A flowchart of a process for determining whether sensitive information exists in a first field based on characteristic information in a data desensitization method provided in an embodiment of the present application;

[0020] Figure 4 A schematic diagram of a process of determining a first similarity threshold in a data desensitization method provided in an embodiment of the present application;

[0021] Figure 5 A flowchart of another data desensitization method provided in an embodiment of the present application;

[0022] Figure 6 A schematic diagram of the structure of a data desensitization device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0024] The data desensitization method and device of the embodiments of the present application are described below with reference to the accompanying drawings.

[0025] Figure 1 is a flow chart of a data desensitization method according to an exemplary embodiment. Figure 1 As shown, the data desensitization method of the embodiment of the present application includes but is not limited to the following steps:

[0026] S101, during access to data to be accessed, determining access rights for non-sensitive fields in the data to be accessed.

[0027] It should be noted that the execution subject of the data desensitization method provided in the embodiment of the present application is an electronic device, which may be a terminal device. Optionally, the terminal device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a personal computer (personal computer, PC), a television set and other household appliances, etc. The embodiment of the present application is not specifically limited.

[0028] In some implementations, the data to be accessed can be accessed based on the user's security level and the access level of the data to be accessed. The user's security level indicates the user's authority to access the data, and only users with a security level greater than or equal to the access level can access the data. For example, if the accessed data level is 2, then only users with a security level of 2, 3, 4, or 5 can access it.

[0029] In some implementations, by determining whether the data to be accessed is marked as a sensitive field, non-sensitive fields, that is, fields that are not marked as sensitive fields, can be determined from the data to be accessed. For non-sensitive fields, the access permissions of each field can be determined. If there is a field whose access permission is greater than the user's security level, it means that the user has no access to the field, and the field can be treated as a sensitive field.

[0030] Optionally, if there is a field whose access permission is less than or equal to the user security level, it can be processed by determining whether there is sensitive information in the field.

[0031] S102, determining a first field from non-sensitive fields, and judging whether there is sensitive information in the first field, wherein the first field is a field whose access permission is less than or equal to the user security level.

[0032] In some implementations, a field in a non-sensitive field whose access permission is less than or equal to the user security level can be used as the first field, and based on the similarity of features between the fields, it can be determined whether sensitive information exists in the first field.

[0033] Optionally, the first pair of fields can be classified according to similarity to obtain one or more classification results, and it is determined whether sensitive information exists in the classification result where the first field is located. If no sensitive information exists, then no sensitive information exists in the first field; if sensitive information exists, then based on the amount of sensitive information and the size of a set threshold, it is further determined whether sensitive information exists in the first field.

[0034] Optionally, if it is less than a set threshold, it is determined that there is no sensitive information in the first field; if it is greater than or equal to the set threshold, it is determined that there is sensitive information in the first field.

[0035] S103: In response to the presence of sensitive information in the first field, desensitizing the sensitive field and the first field in the accessed data.

[0036] In some implementations, if there is no sensitive information in the first field, the first field can be directly output to the user, and the sensitive field can be desensitized and then output to the user, where the sensitive field refers to the field that is marked as a sensitive field when the data to be accessed is generated.

[0037] Optionally, if there is sensitive information in the first field, the sensitive field and the first field in the accessed data are desensitized and sent to the user to avoid data leakage.

[0038] Furthermore, in order to ensure the security of the data, the data can be encrypted after desensitization and the encrypted data can be sent to the user.

[0039] In the data desensitization method provided in the embodiment of the present application, the access rights of the non-sensitive fields in the data to be accessed are determined, and according to the size between the user security level and the access rights, the first field is determined from the non-sensitive fields, and it is judged whether there is sensitive information in the first field, and then the first field determined to contain sensitive information and the field marked as a sensitive field are desensitized together, so that the data not marked as sensitive fields will also be desensitized, avoiding data security problems caused by errors in marking sensitive fields.

[0040] Figure 2 is a flow chart of a data desensitization method according to an exemplary embodiment. Figure 2 As shown, the data desensitization method of the embodiment of the present application includes but is not limited to the following steps:

[0041] S201, during access to data to be accessed, determining the access rights of non-sensitive fields in the data to be accessed.

[0042] In the embodiment of the present application, the implementation method of step S201 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0043] S202: Determine a first field from non-sensitive fields.

[0044] In some implementations, the first field can be determined based on the access permission of each field in the data to be accessed and the user security level. The access permission of each field in the non-sensitive field and the user security level are determined, and the field with the access permission less than or equal to the user security level is used as the first field.

[0045] S203, obtaining associated data of the data to be accessed, and determining the data to be analyzed based on the associated data and the data to be accessed.

[0046] In some implementations, the associated data of the data to be accessed refers to data that has a direct relationship or an indirect relationship with the data to be accessed. For example, the data to be accessed may be connected to the data to be accessed through a primary key, a foreign key, etc. to determine that the data has a direct relationship with the data to be accessed; the data that has the same field as the data to be accessed may be regarded as data that has an indirect relationship.

[0047] In some implementations, by determining first data that is directly related to the data to be accessed and determining second data that is indirectly related to the data to be accessed, the first data and the second data can be used as associated data, and the associated data and the data to be accessed can be used as data to be analyzed.

[0048] In some implementations, data stored in the same location as the data to be accessed and having one or more fields in common with the data to be accessed is obtained as the second data. And / or, data belonging to the same data source as the data to be accessed and having one or more fields in common with the data to be accessed is obtained as the second data. And / or, data similar to the description summary of the data to be accessed and having one or more fields in common with the data to be accessed is obtained as the second data.

[0049] It is understandable that the summary is a description of the data when the data is stored. Optionally, the semantic vector of each summary can be determined by performing semantic analysis on the summary, and the distance between the semantic vector of each data and the semantic vector of the data to be accessed can be calculated, and the data with a distance less than a preset threshold can be used as the second data.

[0050] S204, obtaining characteristic information of each field in the data to be analyzed.

[0051] In some implementations, the fields may be identified and feature information of each field may be extracted. Optionally, the feature information of the field includes but is not limited to: the type of the field (such as character type, floating point type, etc.), the length of the field, the summary of the field, etc.

[0052] S205: Determine whether there is sensitive information in the first field based on the characteristic information.

[0053] In some implementations, the similarity of features between various fields may be calculated based on the feature information, and each field may be classified based on the similarity, thereby determining whether sensitive information exists in the classification result where the first field is located, so as to determine whether sensitive information exists in the first field.

[0054] Alternatively, the distance between two features can be calculated and used as the similarity. For example, if there are fields A, B, and C, the distances between the features of field A and field B, field A and field C, and field C and field B are calculated respectively, and the distances are used as the similarity between field A and field B, the similarity between field A and field C, and the similarity between field C and field B, respectively.

[0055] S206: In response to the presence of sensitive information in the first field, desensitizing the sensitive field and the first field in the accessed data.

[0056] In the embodiment of the present application, the implementation method of step S206 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0057] In the data desensitization method provided in the embodiment of the present application, the first field is determined by determining the access rights of the non-sensitive fields in the data to be accessed, and according to the size between the user security level and the access rights. Further, according to the association relationship of the data to be accessed, the associated data is determined, and the associated data and the data to be accessed are used as the data to be analyzed to analyze whether there is sensitive information in the first field, and then the first field determined to contain sensitive information and the field marked as a sensitive field are desensitized together, so that the data not marked as sensitive fields will also be desensitized, avoiding data security problems caused by errors in marking sensitive fields.

[0058] Based on the above embodiment, the embodiment of the present application can explain the process of determining whether there is sensitive information in the first field based on the characteristic information, such as Figure 3 As shown, the process of determining whether sensitive information exists in the first field based on the characteristic information includes but is not limited to the following steps:

[0059] S301 , for each field in the data to be analyzed, select any field i as the central field i, and select fields j to be classified from the remaining fields in sequence.

[0060] In some implementations, any field i can be randomly selected from all fields in the data to be analyzed as the central field i, and one field can be selected from the remaining fields in sequence as the field j to be classified, where the remaining fields refer to all fields except the central field.

[0061] S302: Determine a first similarity between feature information of the central field i and the field j.

[0062] In some implementations, the distance between the feature information corresponding to the center field i and the field j may be calculated, and the distance may be used as the first similarity between the center field i and the field j. For example, the Euclidean distance between the feature information may be calculated, and the distance may be used as the first similarity.

[0063] S303: Classify the central field i and the field j based on the first similarity until each field in the data to be analyzed is classified, and one or more classification results are obtained.

[0064] In some implementations, the central field i and the field j may be classified according to a similarity threshold. The central field i and the field j are classified by determining a first similarity threshold and based on the magnitude of the first similarity and the first similarity threshold.

[0065] Optionally, if the first similarity is less than the first similarity threshold, the central field i and the field j are classified into one category, and the next field is taken as the field j to be classified, and the classification process is continued. If the first similarity is greater than or equal to the first similarity threshold, the field j is taken as another central field, and the next field is taken as the field j to be classified, and multiple similarities between the field j and each central field are calculated, and the minimum similarity is selected, and the minimum similarity is compared with the first similarity threshold.

[0066] Optionally, if the minimum similarity is less than the first similarity threshold, field j and the central field corresponding to the minimum similarity are classified into one category; otherwise, field j is continued to be another central field, and the above steps are repeated until each field in the data to be analyzed is classified.

[0067] S304: If there is no sensitive field in the classification result where the first field is located, determine that there is no sensitive information in the first field.

[0068] In some implementations, the classification result where the first field is located can be determined, and whether there is a sensitive field in the classification result, that is, whether there is a field marked as a sensitive field in the classification result can be determined. If there is no sensitive field, it can be determined that there is no sensitive information in the first field. In this case, there is no need to desensitize the first field and it can be directly transmitted to the user.

[0069] S305: If there are sensitive fields in the classification result, determine the second similarity between other fields in the classification result and the first field, and determine whether the first field contains sensitive information based on the second similarity, wherein the other fields are fields other than the first field.

[0070] In some implementations, if there is a sensitive field in the classification result where the first field is located, the second similarity between other fields in the classification result and the first field is determined, and a second field with a smaller similarity is determined from the other fields based on the second similarity, and it is determined whether there is a sensitive field in the second field, so as to determine whether there is sensitive information in the first field.

[0071] That is, N second fields can be determined based on the second similarity, where N is a natural number greater than or equal to 1. The number of second fields is determined by calculating the standard deviation between the second similarities and according to the standard deviation and the total number of fields in the classification result. The formula for determining the number of second fields is as follows:

[0072] N = Ceil (total number of fields * standard deviation of the second similarity) (1)

[0073] Among them, the ceil function is a ceiling function.

[0074] In some implementations, if there is no sensitive field in the second field, it is determined that there is no sensitive information in the first field. If there is a sensitive field in the second field, it can be determined whether there is sensitive information in the first field based on the number of sensitive fields.

[0075] Optionally, if there are sensitive fields in the second field, the ratio of the first number of sensitive fields, the second number of fields in the second field whose access level is greater than or equal to the access level of the first field, and the number of the second fields is calculated; if the ratio is greater than or equal to a set threshold, it is determined that sensitive information exists in the first field; otherwise, no sensitive information exists in the first field.

[0076] In the data desensitization method provided in the embodiment of the present application, each field in the data to be analyzed is classified, and the classification result of the first field is determined, and then it is judged whether there is a sensitive field in the classification result, so as to determine whether there is sensitive information in the first field. Classifying all fields can help to sort and organize a large number of fields in an orderly manner, making them easier to manage and find, and helping to quickly determine sensitive fields from different classification results.

[0077] Based on the above embodiment, the embodiment of the present application can explain the process of determining the first similarity threshold, such as Figure 4 As shown, the process of determining the first similarity threshold includes but is not limited to the following steps:

[0078] S401, if there are multiple fields in any classification, determine the mean distance, maximum distance and standard deviation of the distance between the multiple fields and the central field.

[0079] In some implementations, if there is only one field in any classification, namely the central field, the first similarity threshold is a set maximum value. If there are multiple fields in any classification, the first similarity threshold can be determined according to the distance between each field and the central field.

[0080] Optionally, the distance between each field and the central field is calculated, and the distance mean and distance standard deviation between the multiple fields and the central field are calculated based on the multiple distances, and the maximum distance is determined from the multiple distances.

[0081] S402: Determine a threshold adjustment coefficient based on the distance mean and the distance standard deviation.

[0082] Optionally, the ratio between the distance standard deviation and the distance mean may be used as a threshold adjustment coefficient. The formula for calculating the threshold adjustment coefficient is as follows:

[0083]

[0084] Among them, w represents the threshold adjustment coefficient, σ represents the distance standard deviation, Represents the mean distance.

[0085] S403: Determine a first similarity threshold based on the threshold adjustment coefficient, the distance mean, the maximum distance, and the distance standard deviation.

[0086] In some implementations, the first threshold can be obtained by calculating the product of the mean distance and the threshold adjustment coefficient, the second threshold can be obtained by calculating the product of the maximum distance and the threshold adjustment coefficient, the third threshold can be obtained by calculating the product of the mean distance and the distance standard deviation, and the minimum value can be determined from the first threshold, the second threshold and the third threshold as the first similarity threshold.

[0087] For example, let the threshold adjustment coefficient be w, the distance standard deviation be σ, and the distance mean be The maximum distance is d max , then the first threshold is The second threshold is d max *(1-w), the third threshold is Then the first similarity threshold is

[0088] In the data desensitization method provided in the embodiment of the present application, by determining the distance between each field and the central field, the distance mean, the maximum distance and the distance standard deviation are determined, and the threshold adjustment coefficient is determined based on the distance mean and the distance standard deviation. Further, the first similarity threshold can be determined based on the threshold adjustment coefficient, the distance mean, the maximum distance and the distance standard deviation. Then, the fields in the data to be analyzed can be classified according to the first similarity threshold to obtain one or more classification results. Fields with similar characteristics can be automatically classified together, thereby improving the efficiency of data processing.

[0089] Figure 5 is a flow chart of a data desensitization method according to an exemplary embodiment. Figure 5 As shown, the data desensitization method of the embodiment of the present application includes but is not limited to the following steps:

[0090] S501, during access to data to be accessed, determining access rights for non-sensitive fields in the data to be accessed.

[0091] S502: Determine a first field from non-sensitive fields.

[0092] S503, obtaining associated data of the data to be accessed, and determining the data to be analyzed based on the associated data and the data to be accessed.

[0093] S504: Acquire characteristic information of each field in the data to be analyzed.

[0094] S505 , for each field in the data to be analyzed, select any field i as the central field i, and select fields j to be classified from the remaining fields in sequence.

[0095] S506: Determine a first similarity between the feature information of the central field i and the field j.

[0096] S507 , classify the central field i and the field j based on the first similarity until each field in the data to be analyzed is classified, and one or more classification results are obtained.

[0097] S508: If there is no sensitive field in the classification result where the first field is located, determine that there is no sensitive information in the first field.

[0098] S509: In response to the absence of sensitive information in the first field, desensitizing the sensitive field in the accessed data.

[0099] S510, if there is a sensitive field in the classification result, determine the second similarity between other fields in the classification result and the first field, and judge whether the first field contains sensitive information based on the second similarity, wherein the other fields are fields other than the first field.

[0100] S511, in response to the presence of sensitive information in the first field, desensitizing the sensitive field and the first field in the accessed data.

[0101] In the data desensitization method provided in the embodiment of the present application, the first field is determined by determining the access rights of the non-sensitive fields in the data to be accessed, and according to the size between the user security level and the access rights. Further, according to the association relationship of the data to be accessed, the associated data is determined, and the associated data and the data to be accessed are used as the data to be analyzed to analyze whether there is sensitive information in the first field, and then the first field determined to contain sensitive information and the field marked as a sensitive field are desensitized together, so that the data not marked as sensitive fields will also be desensitized, avoiding data security problems caused by errors in marking sensitive fields.

[0102] In order to implement the above embodiments, the present application also proposes a data desensitization device.

[0103] Figure 6 A schematic diagram of the structure of a data desensitization device provided in an embodiment of the present application.

[0104] like Figure 6 As shown, the data desensitization device 600 includes:

[0105] The determination module 601 is used to determine the access rights of non-sensitive fields in the data to be accessed during the process of accessing the data to be accessed.

[0106] The judgment module 602 is used to determine a first field from the non-sensitive fields and judge whether there is sensitive information in the first field, wherein the first field is a field whose access permission is less than or equal to the user security level.

[0107] The processing module 603 is used to perform desensitization processing on the sensitive field in the to-be-accessed data and the first field in response to the presence of sensitive information in the first field.

[0108] In a possible implementation of an embodiment of the present application, the judgment module 602 is also used to: obtain associated data of the data to be accessed, and determine the data to be analyzed based on the associated data and the data to be accessed; obtain characteristic information of each field in the data to be analyzed; and determine whether sensitive information exists in the first field based on the characteristic information.

[0109] In a possible implementation of the embodiment of the present application, the judgment module 602 is also used to: determine first data that has a direct relationship with the data to be accessed; determine second data that has an indirect relationship with the data to be accessed; and use the first data and the second data as the associated data.

[0110] In a possible implementation manner of an embodiment of the present application, the judgment module 602 is further used to: obtain data stored in the same location as the data to be accessed and having one or more identical fields as the data to be accessed as second data; and / or, obtain data belonging to the same data source as the data to be accessed and having one or more identical fields as the data to be accessed as second data; and / or, obtain data that is similar to a description summary of the data to be accessed and having one or more identical fields as the data to be accessed as second data.

[0111] In a possible implementation manner of an embodiment of the present application, the judgment module 602 is also used to: for each field in the data to be analyzed, select any field i as the central field i, and select the field j to be classified from the remaining fields in turn; determine the first similarity between the characteristic information of the central field i and the field j; classify the central field i and the field j based on the first similarity until each field in the data to be analyzed is classified to obtain one or more classification results; if there is no sensitive field in the classification result where the first field is located, determine that there is no sensitive information in the first field; if there is a sensitive field in the classification result, determine the second similarity between other fields in the classification result and the first field, and judge whether the first field contains the sensitive information based on the second similarity, wherein the other fields are fields other than the first field.

[0112] In a possible implementation method of an embodiment of the present application, the judgment module 602 is also used to: determine N second fields based on the second similarity, where N is a natural number greater than or equal to 1; if there is no sensitive field in the second field, determine that there is no sensitive information in the first field; if there is a sensitive field in the second field, calculate the ratio of the first number of sensitive fields, the second number of fields in the second field whose access level is greater than or equal to the access level of the first field, and the number of the second field; if the ratio is greater than or equal to the set threshold, determine that there is sensitive information in the first field, otherwise, there is no sensitive information in the first field.

[0113] In a possible implementation of the embodiment of the present application, the judgment module 602 is further used to: determine a first similarity threshold; and classify the central field i and the field j based on the first similarity and the first similarity threshold.

[0114] In a possible implementation manner of an embodiment of the present application, the judgment module 602 is also used to: if there are multiple fields in any classification, determine the distance mean, maximum distance and distance standard deviation between the multiple fields and the central field; determine the threshold adjustment coefficient based on the distance mean and the distance standard deviation; determine the first similarity threshold based on the threshold adjustment coefficient, the distance mean, the maximum distance and the distance standard deviation.

[0115] In a possible implementation of an embodiment of the present application, the judgment module 602 is also used to: determine the access rights and user security level of each field in the non-sensitive fields; and take the field whose access rights are less than or equal to the user security level as the first field.

[0116] In the data desensitizing device provided in the embodiment of the present application, by determining the access rights of non-sensitive fields in the data to be accessed, and according to the size between the user security level and the access rights, a first field is determined from the non-sensitive fields, and it is determined whether there is sensitive information in the first field, and then the first field determined to contain sensitive information and the field marked as a sensitive field are desensitized together, so that data that is not marked as sensitive fields will also be desensitized, avoiding data security issues caused by errors in marking sensitive fields.

[0117] It should be noted that the above explanation of the data desensitizing method embodiment is also applicable to the data desensitizing device of this embodiment and will not be repeated here.

[0118] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.

[0119] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.

[0120] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.

[0121] The collection, storage, use, processing, transmission, provision and application of user personal information involved in this application are in compliance with relevant laws and regulations and do not violate public order and good morals.

[0122] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.

[0123] This application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, this application is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, risks can be minimized by limiting data collection and deleting data. In addition, when applicable, personal identifiers are removed from such personal information to protect the privacy of users.

[0124] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0125] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0126] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0127] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0128] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0129] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0130] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0131] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A data desensitization method, characterized in that: The method comprises: During access to the data to be accessed, determining the access rights of non-sensitive fields in the data to be accessed; Determine a first field from the non-sensitive fields, and determine whether sensitive information exists in the first field, wherein the first field is a field whose access permission is less than or equal to the user security level; In response to the presence of sensitive information in the first field, desensitizing is performed on the sensitive fields in the data to be accessed and the first field.

2. The method according to claim 1, characterized in that The determining whether sensitive information exists in the first field includes: Acquire associated data of the data to be accessed, and determine data to be analyzed based on the associated data and the data to be accessed; Obtaining characteristic information of each field in the data to be analyzed; Based on the characteristic information, it is determined whether sensitive information exists in the first field.

3. The method according to claim 2, characterized in that The step of obtaining the associated data of the data to be accessed includes: Determine first data that is directly related to the data to be accessed; Determining second data that is indirectly related to the data to be accessed; The first data and the second data are used as the associated data.

4. The method according to claim 3, characterized in that The determining of the second data having an indirect relationship with the data to be accessed includes: Acquire data stored in the same location as the data to be accessed and having one or more fields identical to the data to be accessed as second data; and / or, Acquire data that belongs to the same data source as the data to be accessed and has one or more fields in common with the data to be accessed as second data; and / or, Data that is similar to the description summary of the data to be accessed and has one or more fields in common with the data to be accessed is acquired as second data.

5. The method according to claim 2, characterized in that: The determining, based on the characteristic information, whether sensitive information exists in the first field includes: For each field in the data to be analyzed, select any field i as the central field i, and select fields j to be classified from the remaining fields in turn; Determine a first similarity between the feature information of the central field i and the field j; Classifying the central field i and the field j based on the first similarity until each field in the data to be analyzed is classified, and obtaining one or more classification results; If there is no sensitive field in the classification result where the first field is located, determining that there is no sensitive information in the first field; If there are sensitive fields in the classification result, determine the second similarity between other fields in the classification result and the first field, and judge whether the first field contains sensitive information based on the second similarity, wherein the other fields are fields other than the first field.

6. The method according to claim 5, characterized in that The determining, based on the second similarity, whether the first field contains sensitive information includes: Determine N second fields based on the second similarity, where N is a natural number greater than or equal to 1; If there is no sensitive field in the second field, determining that there is no sensitive information in the first field; If there are sensitive fields in the second field, a ratio is calculated between the first number of the sensitive fields, the second number of fields in the second field whose access level is greater than or equal to the access level of the first field, and the number of the second fields; if the ratio is greater than or equal to a set threshold, it is determined that sensitive information exists in the first field; otherwise, no sensitive information exists in the first field.

7. The method according to claim 5, characterized in that The classifying the central field i and the field j based on the first similarity includes: determining a first similarity threshold; Based on the magnitude of the first similarity and the first similarity threshold, the central field i and the field j are classified.

8. The method according to claim 7, characterized in that The determining of the first similarity threshold comprises: If there are multiple fields in any classification, determine the mean distance, maximum distance and standard deviation of the distance between the multiple fields and the central field; Determining a threshold adjustment coefficient based on the distance mean and the distance standard deviation; The first similarity threshold is determined based on the threshold adjustment coefficient, the distance mean, the maximum distance, and the distance standard deviation.

9. The method according to claim 1, characterized in that: The determining the first field from the non-sensitive fields comprises: Determine the access permission and user security level of each field in the non-sensitive field; The field whose access permission is less than or equal to the user security level is used as the first field.

10. A data desensitization device, characterized in that: The device comprises: A determination module, used for determining the access rights of non-sensitive fields in the data to be accessed during the process of accessing the data to be accessed; a determination module, configured to determine a first field from the non-sensitive fields and determine whether sensitive information exists in the first field, wherein the first field is a field whose access permission is less than or equal to the user security level; A processing module is used for desensitizing the sensitive fields in the data to be accessed and the first field in response to the presence of sensitive information in the first field.

11. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 9 when executed by a processor.

13. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 9 when being executed by a processor.

Citation Information

Cited By

  • Data sharing method and system based on data desensitization

    CN120509057A