Sensitive data desensitization processing method and device, electronic equipment and storage medium

By distinguishing sensitive data according to network security and data volume for desensitization processing, and using different strategies for desensitization, the problem of the leakage location of sensitive data in the existing technology is solved, and the desensitization quality and security of sensitive data are improved.

CN118797700APending 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
CN202310994347.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-08
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing sensitive data desensitization methods will reveal the location of sensitive data and increase the risk of data leakage, because illegal acquirers can judge the value of the data through context and attack the data source.

Method used

According to the network security of the target network node and the amount of sensitive data, sensitive data is distinguished into preprocessed data and non-preprocessed data, and different desensitization strategies are used for processing to ensure desensitization processing that matches the data type.

Benefits of technology

Through flexible desensitization processing, we can improve the desensitization quality of sensitive data, reduce the risk of leakage, and enhance the privacy and security of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797700A_ABST
    Figure CN118797700A_ABST
Patent Text Reader

Abstract

The invention provides a sensitive data desensitization processing method and device, electronic equipment and a storage medium, and relates to the technical field of communication. The method comprises the following steps: reading to-be-accessed data of a target network node; under the condition that the to-be-accessed data comprises sensitive data, determining preprocessed data from the sensitive data according to the network security degree of a target network to which the target network node belongs and / or the data size of the sensitive data; and desensitizing the pre-processed data and non-pre-processed data except the pre-processed data in the sensitive data by adopting corresponding desensitization strategies to obtain desensitized data matched with the data type. According to the method, the sensitive data of different data types can be subjected to flexible desensitization processing based on the data types, and the desensitization quality of the sensitive data is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method, device, electronic device and storage medium for desensitizing sensitive data. Background Art

[0002] In the era of big data, data security is a core issue facing enterprises, and data desensitization is a common method to protect data security.

[0003] The current method of desensitizing sensitive data is to preset sensitive numerals and change them into special symbols after identifying sensitive words. Using this desensitization method, the data acquirer will clearly know whether there is sensitive data in the acquired data. For illegal acquirers, they can know whether the sensitive data is valuable to them based on the context, and then steal the un-desensitized sensitive data from the data source through illegal means (such as attacking the data source). Therefore, the existing desensitization method will provide a prompt of the location of sensitive data, increasing the risk of sensitive data leakage. Summary of the invention

[0004] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.

[0005] To this end, the first purpose of the present invention is to propose a desensitization processing method for sensitive data to achieve safe desensitization of sensitive data.

[0006] The second objective of the present invention is to provide a desensitizing device for sensitive data.

[0007] A third objective of the present invention is to provide an electronic device.

[0008] A fourth object of the present invention is to provide a computer-readable storage medium.

[0009] To achieve the above-mentioned purpose, the first embodiment of the present invention proposes a method for desensitizing sensitive data, comprising:

[0010] Read the data to be accessed from the target network node;

[0011] In the case where the data to be accessed includes sensitive data, determining preprocessing data from the sensitive data according to the network security of the target network to which the target network node belongs and / or the data volume of the sensitive data;

[0012] The preprocessed data and the non-preprocessed data in the sensitive data other than the preprocessed data are desensitized using corresponding desensitization strategies to obtain desensitized data with matching data types.

[0013] To achieve the above-mentioned purpose, a second embodiment of the present invention provides a desensitization processing device for sensitive data, comprising:

[0014] A reading module, used for reading the data to be accessed from the target network node;

[0015] a determination module, configured to determine pre-processed data from the sensitive data according to the network security of the target network to which the target network node belongs and / or the data volume of the sensitive data, when the data to be accessed includes sensitive data;

[0016] The desensitizing module is used to perform desensitization processing on the preprocessed data and the non-preprocessed data in the sensitive data except the preprocessed data by using corresponding desensitization strategies to obtain desensitized data with matching data types.

[0017] To achieve the above-mentioned purpose, the third aspect of the present invention proposes an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the instructions to implement a method for desensitizing sensitive data as proposed in the first aspect of the present invention.

[0018] In order to achieve the above-mentioned objectives, the fourth aspect embodiment of the present invention proposes a computer-readable storage medium. When the instructions in the storage medium are executed by the processor of an electronic device, the electronic device can execute a method for desensitizing sensitive data as proposed in the first aspect embodiment of the present invention.

[0019] The present invention has at least the following beneficial effects:

[0020] Read the data to be accessed of the target network node; when the data to be accessed includes sensitive data, determine the pre-processed data from the sensitive data according to the network security of the target network to which the target network node belongs and / or the data volume of the sensitive data; perform desensitization processing on the pre-processed data and the non-pre-processed data in the sensitive data except the pre-processed data using corresponding desensitization strategies, respectively, to obtain desensitized data matching the data type. The present invention can perform flexible desensitization processing on sensitive data of different data types based on the data type, thereby ensuring the desensitization quality of the sensitive data.

[0021] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 1A schematic diagram of a process for desensitizing sensitive data provided by an embodiment of the present invention;

[0024] Figure 2 A schematic diagram of a flow chart of another method for desensitizing sensitive data provided by an embodiment of the present invention;

[0025] Figure 3 A network topology diagram of a target network provided by an embodiment of the present invention;

[0026] Figure 4 A reference link diagram provided by an embodiment of the present invention;

[0027] Figure 5 A schematic diagram of the structure of a sensitive data desensitization processing device provided by an embodiment of the present invention;

[0028] Figure 6 A block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0029] Embodiments of the present invention are described in detail below, examples of which 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 invention, and should not be construed as limiting the present invention.

[0030] The following describes a method and apparatus for desensitizing sensitive data according to an embodiment of the present invention with reference to the accompanying drawings.

[0031] Figure 1 A flowchart of a method for desensitizing sensitive data provided in an embodiment of the present invention.

[0032] The current method of desensitizing sensitive data is to pre-specify sensitive words and change their data into special symbols. For example, the ID number is specified as sensitive data, and when the ID number information appears in the document, it is replaced with the special symbol "*". Using this desensitization method, the data acquirer will clearly know whether there is sensitive data in the acquired data. For the illegal acquirer, it can know whether the sensitive data is valuable to it based on the context, and then steal the un-desensitized sensitive data from the data source through illegal means (such as attacking the data source). Therefore, the existing data desensitization method will provide a hint of the location of sensitive data, increasing the risk of sensitive data leakage.

[0033] To address this problem, an embodiment of the present invention provides a method for desensitizing sensitive data to achieve safe desensitization of sensitive data. Figure 1 As shown, the method comprises the following steps:

[0034] Step 101: read the data to be accessed from the target network node.

[0035] Optionally, the target network node type may be a terminal, a server, a switch, etc., which is determined when the network node is deployed.

[0036] It should be noted that the target network node has a unique network address, and the data to be accessed is data stored, routed or forwarded by the target network node.

[0037] Step 102: when the data to be accessed includes sensitive data, determine pre-processed data from the sensitive data according to the network security of the target network to which the target network node belongs and / or the amount of sensitive data.

[0038] It should be noted that, when the data to be accessed includes sensitive data, the sensitive data needs to be desensitized to ensure the security of the sensitive data.

[0039] In the embodiment of the present invention, sensitive data is divided into pre-processed data and non-pre-processed data, and desensitization processing is performed on each of them to ensure the desensitization quality of the sensitive data.

[0040] Optionally, the pre-processed data may be determined from the sensitive data according to the network security of the target network to which the target network node belongs.

[0041] Among them, network security is an evaluation indicator of the security of the target network to which the target network node belongs.

[0042] Optionally, the pre-processed data may be determined from the sensitive data according to the data volume of the sensitive data.

[0043] As a possible implementation manner, the data volume of the sensitive data may be the bytes occupied by the sensitive data.

[0044] Optionally, the pre-processed data may be determined from the sensitive data according to the network security of the target network to which the target network node belongs and the data volume of the sensitive data.

[0045] Step 103, desensitizing the preprocessed data and the non-preprocessed data in the sensitive data other than the preprocessed data using corresponding desensitizing strategies to obtain desensitized data with matching data types.

[0046] Optionally, after determining the preprocessed data from the sensitive data, the sensitive data other than the preprocessed data is the non-preprocessed data, so that the sensitive data is divided into two data types: preprocessed data and non-preprocessed data, and then the sensitive data of different data types are desensitized using corresponding desensitization strategies to obtain desensitized data that matches the data type, and flexible desensitization processing is performed based on the data type.

[0047] In this embodiment, the data to be accessed of the target network node is read; when the data to be accessed includes sensitive data, the pre-processed data is determined from the sensitive data according to the network security of the target network to which the target network node belongs and / or the data volume of the sensitive data; the pre-processed data and the non-pre-processed data in the sensitive data other than the pre-processed data are desensitized using corresponding desensitization strategies respectively to obtain desensitized data matching the data type. The present invention can flexibly desensitize sensitive data of different data types based on the data type, thereby ensuring the desensitization quality of the sensitive data.

[0048] In order to clearly explain the above embodiment, this embodiment provides another method for desensitizing sensitive data. Figure 2 A flowchart of another method for desensitizing sensitive data provided by an embodiment of the present invention.

[0049] like Figure 2 As shown, the method may include the following steps:

[0050] Step 201: read the data to be accessed from the target network node.

[0051] In the embodiment of the present invention, the specific process of step 201 can refer to the relevant description of step 101 in the above embodiment, which will not be repeated here.

[0052] Step 202, when the data to be accessed includes sensitive data, determine the network security of the target network based on at least one of the device type of each network node in the target network, security information within a preset time period, and traffic information within a preset time period.

[0053] In the embodiment of the present invention, whether the data is sensitive is configured when the data is stored.

[0054] If the data to be accessed is configured as sensitive data, it is determined that the sensitive data is included.

[0055] As a possible implementation, sensitive data may be related to the authority of the access user. For example, the same data is not sensitive data for a user who has the authority to access it, but is sensitive data for a user who does not have the authority to access it.

[0056] Therefore, when determining sensitive data, it is necessary to obtain the user's access rights and compare them with the access rights configured when the data is stored. If the current user's access rights are lower than the configured access rights, the data is considered sensitive data.

[0057] When the data to be accessed includes sensitive data, it is necessary to determine the network security of the target network.

[0058] In the embodiment of the present invention, the network security is an evaluation index of the security of the target network to which the target network node belongs.

[0059] Optionally, the network security can be determined by the following steps:

[0060] 1. Determine the security value of each network node based on the device type of each network node in the target network.

[0061] The security value of a network node represents the possibility of the network node being accessed, and the security value of any network node is related to the type of the network node.

[0062] As a possible implementation method, the process of obtaining the security value of the network node can be:

[0063] For a first network node whose device type is a terminal in the target network, a security value of the first network node is determined to be a fixed value. The fixed value is preset, for example, the fixed value may be 1.

[0064] For a second network node whose device type is non-terminal in a target network, at least one reference link is determined in the target network, wherein the reference link takes the second network node as a starting point; according to the degree of the network node whose device type is non-terminal in each reference link, a security value of the corresponding reference link is determined; according to the security value of each reference link, the security degree of the second network node is determined.

[0065] Optionally, the non-terminal second network node may be a server, a switch, etc.

[0066] In the embodiment of the present invention, all network nodes in the target network construct a network topology graph, such as Figure 3 As shown, each network node corresponds to a point in the network topology graph. If two network nodes can communicate with each other, the corresponding points of the two network nodes in the network topology graph are connected to obtain an edge.

[0067] For any second network node, in the network topology diagram, take the second network node as the starting point and search along the edge. When a point corresponding to the network node is found to be the first network node, it is used as the end point. A certain link is formed from the starting point to the end point, which is recorded as the reference link.

[0068] by Figure 4 For example, assuming that A, B, C, and D are points corresponding to the second network node, and EFGH are points corresponding to the first network node, if A is taken as the starting point, then ABCG is a determined link, AH is a determined link, ACG is a determined link, ABDE is a determined link, and ABDF is a determined link. For point A, a total of 5 reference links are determined.

[0069] Optionally, the degree of the second network node may be the number of edges associated with the second network node. For any reference link, the corresponding security value is determined according to the degree of the second network node connected therein.

[0070] Alternatively, the safety value can be determined by the following formula:

[0071]

[0072] Among them, S represents the safety value, D j represents the degree of the j-th second network node.

[0073] by Figure 4 Take the reference link ABCG in as an example, where the point corresponding to the second network node is ABC, then the security value of the reference link ABCG is calculated according to the degree corresponding to ABC. Among them, D A represents the degree of point A corresponding to the second network node, D B represents the degree of point B corresponding to the second network node, D C Indicates the degree of point C corresponding to the second network node.

[0074] After the security value of each reference link is obtained, the security degree of the second network node is determined according to the security value of each reference link.

[0075] In an embodiment of the present invention, the reference link with the largest security value among the reference links is recorded as the first reference link, and the reference link with the least edges is recorded as the second reference link. When the first reference link and the second reference link are the same reference link, the security value of the reference link is used as the security degree of the corresponding second network node; when the first reference link and the second reference link are not the same reference link, the comprehensive value of the first reference link and the comprehensive value of the second reference link are calculated, and the largest comprehensive value is selected as the security degree of the corresponding second network node.

[0076] Optionally, the comprehensive value of the reference link may be a ratio of the security value of the reference link to the number of edges.

[0077] 2. Determine the first security level of the target network based on the security value of each network node and the security information of the corresponding network node.

[0078] Among them, security information includes the number of vulnerabilities and the total number of ports for each vulnerability type.

[0079] It should be noted that the current operating system or hardware configuration of the network node may cause port vulnerabilities. This vulnerability objectively exists in the network node device and has nothing to do with whether the vulnerability is attacked. The vulnerability list of each port vulnerability contains the vulnerability type (such as DDOS attack) and the corresponding port number, which can be obtained through the vulnerability information officially released by the operating system. It is a known attribute and will not be explained in detail here.

[0080] In an embodiment of the present invention, for any network node, the vulnerability value of the network node is determined based on the number of vulnerabilities of each vulnerability type in the network node, the maximum number of vulnerabilities in each vulnerability type, and the total number of ports; according to the security value of each network node, the vulnerability values ​​of the corresponding network nodes are weighted and summed to obtain the first security level of the target network.

[0081] Alternatively, the vulnerability value of a network node can be determined by the following formula:

[0082]

[0083] Among them, B i Represents the vulnerability value of the i-th network node; represents the number of vulnerabilities of each vulnerability type in the i-th network node, for example It can be the total number of vulnerabilities of each vulnerability type in the i-th network node; represents the maximum number of vulnerabilities in each vulnerability type in the i-th network node; Indicates the total number of ports of the i-th network node.

[0084] The number of vulnerabilities can be obtained by querying the vulnerability list within a preset time period.

[0085] Optionally, the first safety degree can be determined by the following formula:

[0086]

[0087] Among them, F1 represents the first safety factor, S i Represents the security value of the i-th network node.

[0088] The security value of the network node is used as the weight of the corresponding vulnerability value, and the vulnerability values ​​of each network node are weighted and summed to obtain the first security level.

[0089] 3. Determine the second security level of the target network based on the security value of each network node and the traffic information of the corresponding network node.

[0090] The traffic information is related to the data transmission of network nodes, such as data packet information and network information.

[0091] Optionally, the data packet information describes relevant information of each data packet, such as data packet identification, data direction (downlink or upstream), source Internet Protocol (IP) address (only for downstream data, no such indicator for upstream data) / destination IP address (only for upstream data, no such indicator for downstream data).

[0092] Optionally, the network information describes the overall situation during data transmission, such as packet loss rate, the maximum number of connections at the same time, and traffic situation.

[0093] In the embodiment of the present invention, the flow information includes the network side address of the data packet transmitted by the corresponding network node, the data volume and transmission direction of each data packet, as well as the maximum packet loss rate, the maximum number of connections and the flow average value.

[0094] Optionally, for any network node, the traffic value of the corresponding network node is determined based on the ratio of the number of data packets included in the largest uplink cluster to the sum of the data volumes of the uplink data packets, and based on the ratio of the number of data packets included in the largest downlink cluster to the sum of the data volumes of the downlink data packets; the traffic values ​​of the corresponding network nodes are weightedly summed according to the security value of each network node and the maximum packet loss rate, maximum number of connections and average traffic value of the corresponding network node to obtain the second security level of the target network.

[0095] Among them, the maximum uplink cluster is to cluster the uplink data packets based on the network side address, and the multiple uplink clusters obtained include the uplink cluster with the most data packets; the maximum downlink cluster is to cluster the downlink data packets based on the network side address, and the multiple downlink clusters obtained include the downlink cluster with the most data packets.

[0096] In an embodiment of the present invention, the network side addresses (i.e., destination IP addresses) corresponding to uplink data packets are clustered based on their similarity to obtain multiple uplink clusters, and the uplink cluster with the most data packets is selected from each uplink cluster as the largest uplink cluster; the network side addresses (i.e., source IP addresses) corresponding to downlink data packets are clustered based on their similarity to obtain multiple downlink clusters, and the downlink cluster with the most data packets is selected from each downlink cluster as the largest downlink cluster.

[0097] The clustering method may be any existing clustering method, which will not be elaborated in detail here.

[0098] Optionally, the ratio of the number of data packets included in the largest uplink cluster to the sum of the data volumes of the uplink data packets is recorded as a first ratio, and the ratio of the number of data packets included in the largest downlink cluster to the sum of the data volumes of the downlink data packets is recorded as a second ratio. The traffic value of the network node can be the product of the first ratio and the second ratio.

[0099] In an embodiment of the present invention, the product P of the maximum packet loss rate, the maximum number of connections and the average flow rate of the network node is calculated, and the flow value of each network node is weighted and summed according to the security value of the network node and the product P to obtain the second security level of the target network.

[0100] Optionally, the second safety degree can be determined by the following formula:

[0101]

[0102] Among them, F2 represents the second safety factor, e is a natural constant, T i Represents the traffic value of the i-th network node.

[0103] The security value of the network node and e P The product of is used as the weight of the corresponding flow value, and the flow value of each network node is weighted and summed to obtain the second safety degree.

[0104] 4. The first security level and the second security level are integrated to obtain the network security level of the target network.

[0105] Optionally, the product of the first security level and the second security level is used as the network security level of the target network.

[0106] By combining the first security level and the second security level to obtain the network security level, the security of the target network to which the target network node belongs can be evaluated from multiple aspects when the data to be accessed includes sensitive data, so as to make the network security evaluation result more accurate.

[0107] Step 203: determining pre-processed data from the sensitive data according to the network security of the target network to which the target network node belongs and / or the amount of sensitive data.

[0108] In the embodiment of the present invention, sensitive data is divided into pre-processed data and non-pre-processed data, and desensitization processing is performed on each of them to ensure the desensitization quality of the sensitive data.

[0109] Optionally, the data volume of the sensitive data may be bytes occupied by the sensitive data.

[0110] Among them, a Chinese character occupies 2 bytes, a letter occupies 1 byte, and a number occupies 1 byte.

[0111] In an embodiment of the present invention, when the data to be accessed includes sensitive data, a random number s is generated, wherein the upper limit of the random number value is determined based on half of the data volume m of the sensitive data; the corresponding reference number a is determined based on the network security of the target network; when the sum of the random number s and the reference number a is greater than the data volume m of the sensitive data, the sth bit from the highest bit to the lowest bit in the sensitive data is used as preprocessing data; when the sum of the random number s and the reference number a is not greater than the data volume m of the sensitive data, the sth bit from the highest bit to the (s+a)th bit in the sensitive data is used as preprocessing data.

[0112] As a possible implementation, the random number s is an integer, and the value of the random number s is between 1 and between, It is the upper integer of m / 2, that is, the upper limit of the random number s.

[0113] As a possible implementation method, when the network security of the target network is greater than 1, the reference number Wherein F represents the network security; when the network security of the target network is not greater than 1, the reference number a=1 is determined.

[0114] If s+a>m, the sth bit to the lowest bit in the byte occupied by the sensitive data is used as the preprocessing data; otherwise, the sth bit to the s+ath bit in the byte occupied by the sensitive data is used as the preprocessing byte.

[0115] Table 1

[0116]

[0117] For example, the characters occupied by sensitive data are shown in Table 1 (Table 1 is only an example, and the actual data situation may be different), m=9, s is 1 to An integer between . Assuming s=3, then if a=6, then s+a=3+6=9, at this time s+a=m, then the 3rd to 9th bits starting from the highest bit in the byte occupied by the sensitive data are used as preprocessing data; if a=7, then s+a=3+7=10, at this time s+a>m, then the 3rd to the lowest bit (i.e., the 9th bit) starting from the highest bit in the byte occupied by the sensitive data are used as preprocessing data; if a=5, then s+a=3+5=8, at this time s+a<m, then the 3rd to the 8th bits starting from the highest bit in the byte occupied by the architecture sensitive data are used as preprocessing data.

[0118] By determining the preprocessed data, only some characters in the sensitive data rather than all characters can be processed, which can reduce the amount of data processing and improve the processing speed on the basis of ensuring the desensitization quality of the sensitive data; the sensitive data can also be divided into preprocessed data and non-preprocessed data, and desensitization processing is performed separately to improve the desensitization quality and enhance the privacy of the sensitive data.

[0119] Step 204: Perform desensitization processing on the preprocessed data and the non-preprocessed data in the sensitive data other than the preprocessed data respectively by using corresponding desensitization strategies to obtain desensitized data that matches the data type.

[0120] Optionally, the sensitive data may include character types such as Chinese characters; it may also include numeric type characters, such as numbers, letters, symbols, etc. that can be converted to hexadecimal through the American Standard Code for Information Interchange (ASCII).

[0121] As a possible implementation, for character type characters, since Chinese characters occupy two positions, for example, the character "啊" in Table 1 occupies the second and third positions. First, determine whether the position to be desensitized is the first or second position of the Chinese character. For example, the second position is the first position of the character "啊", and the third position is the second position of the character "啊".

[0122] Since Chinese characters occupy two positions, both positions need to be processed together during desensitization. If half of the two positions occupied by Chinese characters is non-preprocessed data and half is preprocessed data, they are jointly used as preprocessed data for desensitization processing.

[0123] Specifically, if it is the first position, then this character and the subsequent character will be desensitized together, and the subsequent character will not be processed separately. For example, if it is the second position in Table 1, the second and third positions will be desensitized together, and then the fourth position will be processed. If it is the second position, it means that the previous position is also the character occupied by this Chinese character. Therefore, this position and the character in the previous position will be desensitized together, and then the subsequent character will be processed. For example, if it is the third position in Table 1, the third position and the second position in the previous position will be desensitized together, and then the fourth position will be processed.

[0124] In the embodiment of the present invention, the method for desensitizing character type characters is as follows: perform semantic analysis on the character type characters in the preprocessed data to select multiple candidate entries with similar semantics from the thesaurus; sort the multiple candidate entries based on the semantic similarity with the character type characters; use the candidate entry whose sorting matches the network security level as the desensitized data to replace the character type characters.

[0125] It should be noted that the number of Chinese characters in the candidate terms of the preprocessed data needs to be the same as the number of Chinese characters in the preprocessed data phrase. For example, if a phrase of the preprocessed data after semantic analysis is 2 characters, the corresponding candidate terms are also 2 characters.

[0126] Optionally, multiple candidate terms of the preprocessed data are sorted from high to low according to semantic similarity, the corresponding network security is calculated starting from the candidate term with the highest semantic similarity, and the candidate term with the highest network security is selected as the desensitized data of the preprocessed data to replace the text type characters of the preprocessed data.

[0127] By replacing desensitized data, the desensitization of text type characters in the preprocessed data is completed. The desensitized data has a high semantic similarity with the original data. The number of bits of the preprocessed data for desensitization is related to network security and data volume, and changes dynamically. The position of sensitive data cannot be obviously located, thereby improving the security of sensitive data.

[0128] In an embodiment of the present invention, the method for desensitizing digital type characters is: performing base conversion on the digital type characters in the preprocessed data to obtain base-converted characters; encoding the base-converted characters based on network security, and converting the encoded characters into the base before the base conversion; using the base-converted encoded characters as desensitized data to replace the digital type characters.

[0129] As a possible implementation method, for numeric characters, convert them into hexadecimal strings through ASCII, and use the modulus between each bit in the converted hexadecimal value string and the current highest network security bit value as the changed value of the bit, thereby obtaining the coded character of the changed hexadecimal value. The numeric characters obtained by converting the coded characters of the changed hexadecimal value through ASCII are used as desensitized data to replace the numeric characters.

[0130] For example, the 4th bit in Table 1 is 1, and the modulus between each bit in the hexadecimal value of 1 and the current highest network security bit value is used as the coded character after the bit is changed, thereby obtaining the coded character of the changed hexadecimal value. The coded character of the changed hexadecimal value is converted into a numeric type character through ASCII as the desensitized data, and the numeric type character is replaced.

[0131] By replacing desensitized data, the desensitization of numeric characters in the preprocessed data is completed. The desensitized data has a similar data type to the original data, but the corresponding data replacement has been performed. The number of bits of the preprocessed data for desensitization is related to network security and data volume, and changes dynamically. The position of sensitive data cannot be obviously located, thereby improving the security of sensitive data.

[0132] It should be noted that, among sensitive data, data other than preprocessed data is non-preprocessed data, and non-preprocessed data also includes text type characters and numeric type characters.

[0133] Optionally, only the preprocessed data may be desensitized, and the non-preprocessed data may not be desensitized, thereby reducing the amount of data to be processed and increasing the data processing speed.

[0134] Optionally, the preprocessed data and non-preprocessed data may be desensitized using corresponding desensitization strategies respectively to improve the desensitization quality and enhance the privacy of sensitive data.

[0135] It should be noted that, since half of the two digits of the Chinese characters are non-preprocessed data and the other half are preprocessed data, they have been treated as preprocessed data for desensitization. Therefore, for the Chinese characters in the non-preprocessed data, both digits must be non-preprocessed data, and both digits are processed together.

[0136] As a possible implementation method, semantic analysis is performed on the text type characters in the non-preprocessed data to select multiple candidate entries with similar semantics from the vocabulary; the multiple candidate entries are sorted based on the semantic similarity between them and the text type characters; the candidate entries whose sorting matches the data volume of the non-preprocessed data are used as desensitized data to replace the text type characters.

[0137] It should be noted that the number of Chinese characters in the candidate terms of the non-preprocessed data is the same as the number of Chinese characters in the phrases of the non-preprocessed data in the sensitive data. For example, if a phrase of the non-preprocessed data after semantic analysis is 2 characters, the corresponding candidate terms are also two characters.

[0138] Optionally, multiple candidate terms of non-preprocessed data are sorted from high to low according to semantic similarity, the corresponding data volume is calculated starting from the candidate term with the highest semantic similarity, and candidate terms with the same data volume as the non-preprocessed data are selected as desensitized data to replace the text type characters of the non-preprocessed data.

[0139] By replacing desensitized data, the desensitization of text type characters in non-preprocessed data is completed. The desensitized data has a high semantic similarity with the original data, and the location of sensitive data cannot be obviously located, which improves the security of sensitive data.

[0140] As a possible implementation method, base conversion is performed on the numeric type characters in the preprocessed data to obtain base-converted characters; the base-converted characters are encoded based on the data amount of the non-preprocessed data, and the encoded coded characters are converted into the base before the base conversion; the base-converted coded characters are used as desensitized data to replace the numeric type characters.

[0141] For numeric characters, convert them into hexadecimal strings through ASCII, and use the modulus between each bit in the converted hexadecimal value string and the amount of data in the non-preprocessed data as the changed value of the bit, thereby obtaining the coded character of the changed hexadecimal value. The numeric characters obtained by converting the coded characters of the changed hexadecimal value through ASCII are used as the desensitized data of the non-preprocessed data, replacing the numeric characters of the non-preprocessed data.

[0142] By replacing desensitized data, the desensitization of numeric characters in non-preprocessed data is completed. The desensitized data has a similar data type to the original data, but the corresponding data replacement has been performed. The position of sensitive data cannot be obviously located, which improves the security of sensitive data.

[0143] In this embodiment, the data to be accessed of the target network node is read; in the case where the data to be accessed includes sensitive data, the network security of the target network is determined based on at least one of the device type of each network node in the target network, the security information within a preset time period, and the flow information within a preset time period; the pre-processed data is determined from the sensitive data according to the network security of the target network to which the target network node belongs, and / or the data volume of the sensitive data; the pre-processed data and the non-pre-processed data in the sensitive data other than the pre-processed data are desensitized using corresponding desensitization strategies, respectively, to obtain desensitized data matching the data type. The present invention can flexibly desensitize sensitive data of different data types based on the data type, and ensure the desensitization quality of the sensitive data; at the same time, the desensitization is performed by performing desensitization on similar data, and the position of the sensitive data cannot be obviously located, which reduces the risk of sensitive data leakage and improves the security of the sensitive data.

[0144] In order to implement the above embodiment, the present invention also proposes a desensitizing processing device for sensitive data.

[0145] Figure 5 A schematic diagram of the structure of a sensitive data desensitization processing device provided in an embodiment of the present invention.

[0146] like Figure 5 As shown, the sensitive data desensitization processing device 500 includes: a reading module 501, a determination module 502 and a desensitization module 503.

[0147] The reading module 501 is used to read the data to be accessed of the target network node;

[0148] A determination module 502, configured to determine pre-processed data from the sensitive data according to the network security of the target network to which the target network node belongs and / or the amount of sensitive data when the data to be accessed includes sensitive data;

[0149] The desensitizing module 503 is used to perform desensitization processing on the pre-processed data and the non-pre-processed data in the sensitive data except the pre-processed data by using corresponding desensitization strategies to obtain desensitized data with matching data types.

[0150] Further, in a possible implementation manner of the embodiment of the present invention, the determining module 502 is further configured to:

[0151] The network security of the target network is determined based on at least one of a device type of each network node in the target network, security information within a preset period of time, and flow information within a preset period of time.

[0152] Determine the security value of each network node based on the device type of each network node in the target network;

[0153] Determine a first security level of the target network based on the security value of each network node and the security information of the corresponding network node;

[0154] Determining a second security level of the target network based on the security value of each network node and the flow information of the corresponding network node;

[0155] The first security level and the second security level are integrated to obtain the network security level of the target network.

[0156] For a first network node whose device type is a terminal in the target network, determining that a security value of the first network node is a fixed value;

[0157] For a second network node whose device type is non-terminal in a target network, at least one reference link is determined in the target network, wherein the reference link takes the second network node as a starting point; according to the degree of the network node whose device type is non-terminal in each reference link, a security value of the corresponding reference link is determined; according to the security value of each reference link, the security degree of the second network node is determined.

[0158] The security information includes the number of vulnerabilities of each vulnerability type and the total number of ports; for any network node, the vulnerability value of the network node is determined based on the number of vulnerabilities of each vulnerability type in the network node, the maximum number of vulnerabilities in each vulnerability type, and the total number of ports;

[0159] According to the security value of each network node, the vulnerability value of the corresponding network node is weighted and summed to obtain the first security degree of the target network.

[0160] In the case where the data to be accessed includes sensitive data, a random number s is generated, wherein the upper limit of the random number value is determined based on half of the amount of sensitive data m;

[0161] According to the network security of the target network, determine the corresponding reference number a;

[0162] When the sum of the random number s and the reference number a is greater than the amount of sensitive data m, the sth bit to the lowest bit in the sensitive data from the highest bit is used as preprocessing data;

[0163] When the sum of the random number s and the reference number a is not greater than the data size m of the sensitive data, the sth to (s+a)th bits from the highest bit in the sensitive data are used as preprocessing data.

[0164] Furthermore, in a possible implementation of the embodiment of the present invention, the desensitization module 503 is further used to:

[0165] Performing semantic analysis on the text type characters in the preprocessed data to select multiple candidate entries with similar semantics from the vocabulary;

[0166] Sorting multiple candidate terms based on semantic similarity with the text type characters;

[0167] The candidate entries that are ranked and matched with network security are used as desensitized data and the text type characters are replaced.

[0168] Performing base conversion on the numeric type characters in the preprocessed data to obtain base-converted characters;

[0169] Encode the characters after the base conversion based on network security, and convert the encoded characters into the base before the base conversion;

[0170] Use the encoded characters after base conversion as desensitized data to replace the numeric type characters.

[0171] Performing semantic analysis on text type characters in non-preprocessed data to select multiple candidate entries with similar semantics from the vocabulary;

[0172] Sorting multiple candidate terms based on semantic similarity with the text type characters;

[0173] The candidate terms whose ranking matches the data volume of the non-preprocessed data are used as desensitized data, and the text type characters are replaced.

[0174] Performing base conversion on the numeric type characters in the preprocessed data to obtain base-converted characters;

[0175] Encoding the characters after the base conversion based on the data amount of the non-preprocessed data, and converting the encoded characters into the base before the base conversion;

[0176] Use the encoded characters after base conversion as desensitized data to replace the numeric type characters.

[0177] It should be noted that the explanation of the above-mentioned embodiment of the method for desensitizing sensitive data is also applicable to the desensitizing device for sensitive data of this embodiment, and will not be repeated here.

[0178] Figure 6 is a block diagram of an electronic device 600 according to an exemplary embodiment.

[0179] like Figure 6 As shown, the electronic device 600 includes:

[0180] The memory 601 and the processor 602, a bus 603 connecting different components (including the memory 601 and the processor 602), the memory 601 stores a computer program, and when the processor 602 executes the program, the method for desensitizing sensitive data of an embodiment of the present invention is implemented.

[0181] Bus 603 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0182] The electronic device 600 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by the electronic device 600, including volatile and non-volatile media, removable and non-removable media.

[0183] The memory 601 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 604 and / or cache memory 605. The electronic device 600 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 606 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 603 via one or more data medium interfaces. The memory 601 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0184] A program / utility 608 having a set (at least one) of program modules 607 may be stored, for example, in the memory 601, such program modules 607 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 607 generally perform the functions and / or methods of the embodiments described herein.

[0185] The electronic device 600 may also communicate with one or more external devices 609 (e.g., keyboard, pointing device, display 611, etc.), one or more devices that enable a user to interact with the electronic device 600, and / or any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 612. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through a network adapter 613. Figure 6 As shown, the network adapter 613 communicates with other modules of the electronic device 600 via the bus 603. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0186] The processor 602 executes various functional applications and data processing by running the programs stored in the memory 601 .

[0187] It should be noted that the implementation process and technical principles of the electronic device of this embodiment refer to the aforementioned explanation of the desensitizing processing method for sensitive data in the embodiment of the present invention, and will not be repeated here.

[0188] In order to implement the above embodiment, the present invention also proposes a computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can perform the above-mentioned method for desensitizing sensitive data.

[0189] In the description of this specification, 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 invention. 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.

[0190] 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 the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0191] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment 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 invention 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 reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0192] 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 instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "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 devices), 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.

[0193] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of 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.

[0194] 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.

[0195] In addition, each functional unit in each embodiment of the present invention 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.

[0196] 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 invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. A method for desensitizing sensitive data, characterized in that: The method comprises: Read the data to be accessed from the target network node; In the case where the data to be accessed includes sensitive data, determining preprocessing data from the sensitive data according to the network security of the target network to which the target network node belongs and / or the data volume of the sensitive data; The preprocessed data and the non-preprocessed data in the sensitive data other than the preprocessed data are desensitized using corresponding desensitization strategies to obtain desensitized data with matching data types.

2. The method according to claim 1, characterized in that: The method further comprises: The network security of the target network is determined based on at least one of a device type of each network node in the target network, security information within a preset time period, and flow information within a preset time period.

3. The method according to claim 2, characterized in that Determining the network security of the target network based on at least one of a device type of each network node in the target network, security information within a preset period of time, and flow information within a preset period of time includes: Determining the security value of each network node according to the device type of each network node in the target network; Determining a first security level of the target network according to the security value of each of the network nodes and the security information of the corresponding network node; Determining a second security level of the target network according to the security value of each of the network nodes and the flow information of the corresponding network node; The first security level and the second security level are merged to obtain the network security level of the target network.

4. The method according to claim 3, characterized in that Determining the security value of each network node according to the device type of each network node in the target network includes: For a first network node whose device type is a terminal in the target network, determining that a security value of the first network node is a fixed value; For the second network node whose device type is non-terminal in the target network, at least one reference link is determined in the target network, wherein the reference link takes the second network node as a starting point; according to the degree of the network node whose device type is non-terminal in each of the reference links, the security value of the corresponding reference link is determined; according to the security value of each of the reference links, the security degree of the second network node is determined.

5. The method according to claim 3, characterized in that: The security information includes the number of vulnerabilities and the total number of ports of each vulnerability type; The determining, based on the security value of each of the network nodes and the security information of the corresponding network node, a first security level of the target network includes: For any network node, determine the vulnerability value of the network node according to the number of vulnerabilities of each vulnerability type in the network node, the maximum number of vulnerabilities in each vulnerability type, and the total number of ports; According to the security value of each of the network nodes, a weighted sum is performed on the vulnerability values ​​of the corresponding network nodes to obtain the first security level of the target network.

6. The method according to claim 3, characterized in that: The flow information includes the network side address of the data packet transmitted by the corresponding network node, the data volume and transmission direction of each data packet, as well as the maximum packet loss rate, the maximum number of connections and the flow average value; The determining the second security level of the target network according to the security value of each of the network nodes and the flow information of the corresponding network node includes: For any network node, the flow value of the corresponding network node is determined according to the ratio of the number of data packets included in the largest uplink cluster to the sum of the data volume of the uplink data packets, and according to the ratio of the number of data packets included in the largest downlink cluster to the sum of the data volume of the downlink data packets; wherein the largest uplink cluster is clustering the uplink data packets based on the network side address, and the obtained multiple uplink clusters include the uplink cluster with the most data packets; the largest downlink cluster is clustering the downlink data packets based on the network side address, and the obtained multiple downlink clusters include the downlink cluster with the most data packets; According to the security value of each network node and the maximum packet loss rate, the maximum number of connections and the average flow rate of the corresponding network node, the flow values ​​of the corresponding network nodes are weighted and summed to obtain the second security level of the target network.

7. The method according to any one of claims 1 to 6, characterized in that: In the case where the data to be accessed includes sensitive data, determining the pre-processed data from the sensitive data according to the network security of the target network to which the target network node belongs and / or the data volume of the sensitive data includes: In the case where the data to be accessed includes sensitive data, a random number s is generated, wherein the upper limit of the random number value is determined based on half of the data volume m of the sensitive data; Determine a corresponding reference number a according to the network security of the target network; In the case where the sum of the random number s and the reference number a is greater than the data amount m of the sensitive data, the sth bit to the lowest bit in the sensitive data from the highest bit is used as the preprocessing data; When the sum of the random number s and the reference number a is not greater than the data size m of the sensitive data, the sth to (s+a)th bits from the highest bit in the sensitive data are used as the preprocessing data.

8. The method according to any one of claims 1 to 6, characterized in that: The preprocessed data and non-preprocessed data in the sensitive data other than the preprocessed data are desensitized using corresponding desensitization strategies to obtain desensitized data with matching data types, including: Performing semantic analysis on the text type characters in the preprocessed data to select multiple candidate entries with similar semantics from the vocabulary; sorting the plurality of candidate terms based on semantic similarity with the text type characters; The candidate entries whose ranking matches the network security are used as desensitized data to replace the text type characters.

9. The method according to any one of claims 1 to 6, characterized in that: The preprocessed data and non-preprocessed data in the sensitive data other than the preprocessed data are desensitized using corresponding desensitization strategies to obtain desensitized data with matching data types, including: Performing base conversion on the numeric type characters in the preprocessed data to obtain base-converted characters; Encode the characters after the base conversion based on the network security, and convert the encoded characters into the base before the base conversion; The encoded characters after base-based conversion are used as desensitized data to replace the numeric type characters.

10. The method according to any one of claims 1 to 6, characterized in that: The preprocessed data and non-preprocessed data in the sensitive data other than the preprocessed data are desensitized using corresponding desensitization strategies to obtain desensitized data with matching data types, including: Performing semantic analysis on the text type characters in the non-preprocessed data to select multiple candidate entries with similar semantics from the vocabulary; sorting the plurality of candidate terms based on semantic similarity with the text type characters; The candidate entries whose ranking matches the data volume of the non-preprocessed data are used as desensitized data to replace the text type characters.

11. The method according to any one of claims 1 to 6, characterized in that: The preprocessed data and non-preprocessed data in the sensitive data other than the preprocessed data are desensitized using corresponding desensitization strategies to obtain desensitized data with matching data types, including: Performing base conversion on the numeric type characters in the preprocessed data to obtain base-converted characters; Encoding the characters after the base conversion based on the data amount of the non-preprocessed data, and converting the encoded characters into the base before the base conversion; The encoded characters after base conversion are used as desensitized data to replace the numeric type characters.

12. A sensitive data desensitization processing device, characterized in that: include: A reading module, used for reading the data to be accessed from the target network node; a determination module, configured to determine pre-processed data from the sensitive data according to the network security of the target network to which the target network node belongs and / or the data volume of the sensitive data, when the data to be accessed includes sensitive data; The desensitizing module is used to perform desensitization processing on the preprocessed data and the non-preprocessed data in the sensitive data except the preprocessed data by using corresponding desensitization strategies to obtain desensitized data with matching data types.

13. An electronic device, characterized in that: include: processor; a memory for storing executable instructions for the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 11.

Citation Information

Cited By

  • Data processing method and apparatus

    WO2026175037A1