Search

CN-121997369-A - Data desensitizing method and device, storage medium and electronic equipment

CN121997369ACN 121997369 ACN121997369 ACN 121997369ACN-121997369-A

Abstract

The application discloses a data desensitizing method and device, a storage medium and electronic equipment, and relates to the technical field of smart families. The data desensitization method comprises the steps of extracting characteristics of target data under the condition that a transmission request of the target data is received, obtaining data characteristics of the target data, matching the data characteristics with rule vectors in a classification and grading rule base, determining a first class and a first importance level of the target data according to the matched first rule vectors, determining a first desensitization rule of the target data according to the first class, the first importance level and a first transmission destination of the target data, and desensitizing the target data according to the first desensitization rule. By adopting the technical scheme, the problems of low desensitization efficiency and low accuracy caused by manual desensitization of the data in the related technology are solved.

Inventors

  • HONG BO
  • WU GANG
  • SUN DANFENG
  • WANG QINGFA

Assignees

  • 青岛巨商汇网络科技有限公司

Dates

Publication Date
20260508
Application Date
20251230

Claims (10)

  1. 1. A method of desensitizing data, comprising: Under the condition that a transmission request of target data is received, extracting characteristics of the target data to obtain data characteristics of the target data; matching the data characteristics with rule vectors in a classification and grading rule base, and determining a first class and a first importance level of the target data according to the matched first rule vector; and determining a first desensitization rule of the target data according to the first category, the first importance level and a first transmission destination of the target data, and desensitizing the target data according to the first desensitization rule.
  2. 2. The method of desensitizing data according to claim 1, wherein matching rule vectors in said data features and classification hierarchical rule base, determining a first class and a first importance level of said target data based on said matched first rule vector, comprises: Converting the data features into feature vectors; Calculating the similarity between the feature vector and a plurality of rule vectors to obtain a plurality of similarities, wherein the similarities are in one-to-one correspondence with the rule vectors; Determining whether a first similarity of the plurality of similarities is greater than a first preset value, wherein the first similarity is a maximum value of the plurality of similarities; determining a rule vector corresponding to the first similarity as the first rule vector under the condition that the first similarity is determined to be larger than the first preset value; Determining a second class of the first rule vector as the first class and determining a second importance level of the first rule vector as the first importance level.
  3. 3. The method of desensitizing data according to claim 2, wherein prior to determining a rule vector corresponding to said first similarity as said first rule vector, said method further comprises: determining that a plurality of first rule vectors exist in a plurality of rule vectors under the condition that the first similarity is a plurality of, and determining priorities of the plurality of first rule vectors; determining a first priority with highest priority among a plurality of priorities, and determining a second rule vector corresponding to the first priority; A third category of the second rule vector is determined as the first category and a third importance level of the second rule vector is determined as the first importance level.
  4. 4. The method of desensitizing data according to claim 1, wherein determining a first desensitization rule for said target data based on said first category, said first importance level, and a first transmission destination for said target data comprises: Determining a plurality of second desensitization rules in a desensitization rule base according to the first category, wherein a fourth category of the plurality of second desensitization rules is the same as the first category; determining a plurality of third desensitization rules from the plurality of second desensitization rules according to the first importance level, wherein a fourth importance level of the plurality of third desensitization rules is the same as the first importance level; determining the first desensitization rule among the plurality of third desensitization rules according to the first transmission destination.
  5. 5. The method of desensitizing data according to claim 4, wherein determining said first desensitizing rule among said plurality of third desensitizing rules according to said first transmission destination comprises: determining a fourth desensitization rule among the plurality of third desensitization rules according to the first transmission destination, wherein a second transmission destination of the fourth desensitization rule is the same as the first transmission destination; Determining the fourth desensitization rule as the first desensitization rule in the case that the fourth desensitization rule is unique; and in the case that the fourth desensitization rule is not unique, determining a fifth desensitization rule with highest priority in a plurality of fourth desensitization rules as the first desensitization rule.
  6. 6. The method of desensitizing data according to claim 1, wherein desensitizing said target data according to said first desensitizing rules comprises: Analyzing the first desensitization rule to determine a plurality of feature categories and a plurality of desensitization strategies in the first desensitization rule, wherein the feature categories and the desensitization strategies are in one-to-one correspondence; For any first feature class of the plurality of feature classes, determining a first feature in the plurality of data features according to the first feature class, wherein a second feature class of the first feature is the same as the first feature class; And desensitizing the first feature according to a first desensitization strategy corresponding to the first feature class, wherein the plurality of desensitization strategies comprise the first desensitization strategy.
  7. 7. The method of desensitizing data according to claim 1, wherein after desensitizing said target data according to said first desensitizing rules, said method further comprises: detecting the target data after desensitization, and determining whether a second feature of desensitization failure exists in the target data after desensitization, wherein a plurality of data features comprise the second feature; and under the condition that the second feature exists in the target data after the desensitization, sending a desensitization instruction to a target object, wherein the desensitization instruction is used for indicating the target object to carry out desensitization processing on the second feature.
  8. 8. A data desensitizing apparatus, comprising: The feature extraction module is used for extracting features of the target data under the condition that a transmission request of the target data is received, so as to obtain data features of the target data; The determining module is used for matching the data characteristics with rule vectors in the classification and grading rule base and determining a first category and a first importance level of the target data according to the matched first rule vector; And the desensitization module is used for determining a first desensitization rule of the target data according to the first category, the first importance level and the first transmission destination of the target data, and desensitizing the target data according to the first desensitization rule.
  9. 9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, performs the method of any one of claims 1 to 7.
  10. 10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 7 by means of the computer program.

Description

Data desensitizing method and device, storage medium and electronic equipment Technical Field The application relates to the technical field of smart families, in particular to a data desensitizing method and device, a storage medium and electronic equipment. Background In the related art, manual data desensitization is used as a common data protection means and is widely applied to data processing flows of enterprises and organizations. However, manual desensitization relies on manually identifying and processing sensitive information in the data, and as the amount of data increases explosively, such inefficient manual operations are difficult to meet the real-time and scale requirements of modern business. Also, the ability of the human eye to recognize sensitive information is limited, especially when the data contains a covert or indirect personal identifier, and manual desensitization is prone to omission or misinterpretation. Aiming at the problems of low desensitization efficiency and low accuracy caused by manual desensitization of data in the related art, no effective solution has been proposed yet. Disclosure of Invention The embodiment of the application provides a data desensitizing method and device, a storage medium and electronic equipment, which at least solve the problems of low desensitizing efficiency and low accuracy caused by manual desensitizing of data in the related technology. According to one embodiment of the application, a data desensitization method is provided, wherein the method comprises the steps of extracting characteristics of target data under the condition that a transmission request of the target data is received, obtaining data characteristics of the target data, matching the data characteristics with rule vectors in a classification hierarchical rule base, determining a first class and a first importance level of the target data according to the matched first rule vectors, determining a first desensitization rule of the target data according to the first class, the first importance level and a first transmission destination of the target data, and desensitizing the target data according to the first desensitization rule. In an alternative embodiment, the data feature is matched with a rule vector in a classification hierarchical rule base, a first class and a first importance level of the target data are determined according to the matched first rule vector, the method comprises the steps of converting the data feature into a feature vector, calculating the similarity between the feature vector and a plurality of rule vectors to obtain a plurality of similarities, determining whether the first similarity in the plurality of similarities is larger than a first preset value or not, determining the rule vector corresponding to the first similarity as the first rule vector when the first similarity is larger than the first preset value, determining the second class of the first rule vector as the first class, and determining the second importance level of the first rule vector as the first importance level. In an alternative embodiment, before determining the rule vector corresponding to the first similarity as the first rule vector, the method further comprises determining that a plurality of first rule vectors exist in the plurality of rule vectors and determining priorities of the plurality of first rule vectors, determining a first priority with highest priority among the plurality of priorities and determining a second rule vector corresponding to the first priority, determining a third category of the second rule vector as the first category, and determining a third importance level of the second rule vector as the first importance level. In an alternative embodiment, the determining the first desensitization rule of the target data according to the first category, the first importance level and the first transmission destination of the target data comprises determining a plurality of second desensitization rules in a desensitization rule base according to the first category, wherein a fourth category of the plurality of second desensitization rules is the same as the first category, determining a plurality of third desensitization rules in the plurality of second desensitization rules according to the first importance level, wherein a fourth importance level of the plurality of third desensitization rules is the same as the first importance level, and determining the first desensitization rule in the plurality of third desensitization rules according to the first transmission destination. In an alternative embodiment, determining the first desensitization rule from the plurality of third desensitization rules according to the first transmission destination includes determining a fourth desensitization rule from the plurality of third desensitization rules according to the first transmission destination, wherein a second transmission destination of the fourth desens