Sensitive data identification method and device, electronic equipment, medium and program product
By constructing a knowledge graph and utilizing community segmentation technology, the problem of low accuracy and efficiency in identifying sensitive data in bank transaction logs was solved, achieving accurate identification and full coverage of sensitive data in bank transaction logs, and improving the accuracy and efficiency of identification.
Patent Information
- Application Number
- CN202211092172.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-07
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-09-07
AI Technical Summary
Existing technologies struggle to accurately identify and cover all sensitive data in bank transaction logs, resulting in low accuracy and efficiency, especially when the data volume is massive and each application records data independently without a unified format, making full coverage impossible.
By constructing a knowledge graph, communities are generated based on transaction log information. Communities containing sensitive nodes are identified as sensitive communities, and the transaction log information corresponding to all nodes within them is identified as sensitive data. The nodes are then divided and merged based on their correlation, improving the accuracy and efficiency of identification.
It enables accurate identification of all sensitive data in large volumes of data and bank transaction logs without a unified format, improving the accuracy and efficiency of identification and ensuring full coverage and security of sensitive data.
Smart Images

Figure CN115795525B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of artificial intelligence technology, and more specifically, to a method, apparatus, electronic device, medium, and computer program product for identifying sensitive data in transaction logs. Background Technology
[0002] In existing banking operations, transaction data may involve user privacy information, such as ID numbers, card numbers, expiration dates, passwords, magnetic stripe or chip information, and other sensitive customer information. According to relevant departmental requirements, this sensitive customer information must be protected in a tiered manner. For security reasons, application systems need to implement de-identified storage of sensitive information. To achieve this, sensitive information is marked in the system during the design and production database table structure. After exporting data from the production database, data de-identification can be achieved using data transformation tools.
[0003] With the development of internet finance, banks are facing an increasing number of business scenarios. In addition, in order to improve customer experience, new channels are constantly being expanded and transaction volume is constantly increasing. In order to monitor the system and business operations, each bank system has implemented the function of recording transaction log information. The transaction log information is recorded by each application itself, without uniform format requirements. The transaction log information may contain some sensitive information. Existing desensitization technology requires identifying sensitive information in advance, then desensitizing the sensitive information before recording it in the database, or specially marking the sensitive information fields in the transaction log information before sending it to the log system for unified desensitization processing. Summary of the Invention
[0004] In view of this, the present disclosure provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for identifying sensitive data in transaction logs with high accuracy and efficiency.
[0005] One aspect of this disclosure provides a method for identifying sensitive data in transaction logs, comprising: constructing a knowledge graph based on acquired transaction log information, wherein the transaction log information includes a unique transaction identifier, transaction information, transaction message information, and a transformation relationship between the transaction information and the transaction message information; the nodes of the knowledge graph are constructed based on the transaction information and the transaction message information; the edges of the knowledge graph are constructed based on the unique transaction identifier and the transformation relationship; and some nodes are labeled as sensitive nodes; dividing the nodes of the knowledge graph according to the degree of association of the nodes to generate n communities, where n is an integer greater than or equal to 1; identifying the communities containing the sensitive nodes in the n communities as sensitive communities; and identifying the transaction log information corresponding to all nodes contained in the sensitive communities as sensitive data.
[0006] The sensitive data identification method for transaction logs according to embodiments of this disclosure constructs a knowledge graph based on transaction log information. The nodes in the knowledge graph are divided according to their correlation, generating n communities. Communities containing sensitive nodes are identified as sensitive communities, and the transaction log information corresponding to all nodes within these sensitive communities is identified as sensitive data. This method enables accurate identification of all sensitive data in transaction logs, even when the data volume is massive and each application records its own data without a unified format requirement. It achieves full coverage of sensitive data across all application systems, avoiding manual analysis of sensitive data and improving the accuracy and efficiency of sensitive data identification.
[0007] In some embodiments, constructing a knowledge graph based on the acquired transaction log information includes: acquiring transaction log information of the transaction logs; performing structured processing on the transaction log information to obtain field names and field values under the field names, wherein the field values are obtained by conversion based on the transaction unique identifier, the transaction information, the transaction message information, and the conversion relationship; marking a portion of the field names as sensitive information; constructing a knowledge graph based on the field names and field values under the field names; and marking the nodes constructed with the field values corresponding to the sensitive information as sensitive nodes.
[0008] In some embodiments, dividing the nodes of the knowledge graph according to the degree of association of the nodes to generate n communities includes: treating each node in the knowledge graph as a group and calculating the modularity of the group; traversing each group and determining the change in modularity between the group and each group with which it has an edge relationship; when the change in modularity meets a set threshold, merging the group and the group with which it has an edge relationship according to the change in modularity; treating the merged group as a new group, calculating the modularity of the new group, and repeating the process of traversing each group and determining the change in modularity between the group and each group with which it has an edge relationship; stopping the merging of the group and the group with which it has an edge relationship when the change in modularity does not meet the set threshold; and treating the current n groups as n communities when the change in modularity between any two groups does not meet the set threshold.
[0009] In some embodiments, merging the group and the group with which it has an edge relationship based on the modularity change includes: sorting the modularity changes according to their numerical values; and merging the two groups with the highest or lowest modularity changes based on the sorting results.
[0010] In some embodiments, the unique transaction identifier includes a unique event code; the transaction information includes at least one of event name, account name, card number, ID card number, address, and transaction amount; the transaction message information includes at least one of the following: a unique event code message converted from the unique event code, an event name message converted from the event name, an account name message converted from the account name, a card number message converted from the card number, an ID card number message converted from the ID card number, an address message converted from the address, and a transaction amount message converted from the transaction amount.
[0011] In some embodiments, the sensitive data identification method for transaction logs further includes: de-identifying the sensitive data and storing the transaction log information.
[0012] In some embodiments, the process of de-identifying the sensitive data and storing the transaction log information includes: extracting sensitive data from the transaction log information and de-identifying it to obtain de-identified data; recording the de-identified data in the transaction log information; storing the de-identified transaction log information in a log system, or specially marking the sensitive data in the transaction log information; and sending the marked transaction log information to the log system, where the transaction log information is de-identified.
[0013] In some embodiments, the knowledge graph has a data query function. When searching for transaction log information in the knowledge graph, and the transaction log information is found in the knowledge graph, the nodes and edges corresponding to the transaction log information are displayed.
[0014] Another aspect of this disclosure provides a sensitive data identification device for transaction logs, comprising: a construction module, configured to construct a knowledge graph based on acquired transaction log information, wherein the transaction log information includes a unique transaction identifier, transaction information, transaction message information, and a transformation relationship between the transaction information and the transaction message information; the nodes of the knowledge graph are constructed based on the transaction information and the transaction message information; the edges of the knowledge graph are constructed based on the unique transaction identifier and the transformation relationship; and some of the nodes are labeled as sensitive nodes; a generation module, configured to divide the nodes of the knowledge graph according to the degree of association of the nodes, generating n communities, where n is an integer greater than or equal to 1; a first identification module, configured to identify communities containing the sensitive nodes in the n communities as sensitive communities; and a second identification module, configured to identify the transaction log information corresponding to all nodes contained in the sensitive communities as sensitive data.
[0015] Another aspect of this disclosure provides an electronic device including one or more processors and one or more memories, wherein the memories are used to store executable instructions that, when executed by the processor, implement the method described above.
[0016] Another aspect of this disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed, are used to implement the method described above.
[0017] Another aspect of this disclosure provides a computer program product including a computer program comprising computer executable instructions that, when executed, implement the method described above. Attached Figure Description
[0018] The above and other objects, features and advantages of this disclosure will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:
[0019] Figure 1 This illustration schematically shows an exemplary system architecture to which methods and apparatus can be applied according to embodiments of the present disclosure;
[0020] Figure 2 A flowchart illustrating a method for identifying sensitive data in transaction logs according to an embodiment of this disclosure is shown schematically.
[0021] Figure 3 A schematic diagram of a knowledge graph according to an embodiment of the present disclosure is shown.
[0022] Figure 4 This illustration schematically shows a flowchart of constructing a knowledge graph based on acquired transaction log information according to an embodiment of the present disclosure;
[0023] Figure 5 The flowchart illustrates a process of dividing nodes of a knowledge graph according to the degree of association between nodes, according to an embodiment of the present disclosure, to generate n communities;
[0024] Figure 6 A schematic diagram of a knowledge graph according to an embodiment of the present disclosure is shown.
[0025] Figure 7 This schematically illustrates a flowchart of merging a group and a group with an edge relationship with it according to a change in modularity, based on an embodiment of the present disclosure.
[0026] Figure 8 A flowchart illustrating a method for identifying sensitive data in transaction logs according to an embodiment of this disclosure is shown schematically.
[0027] Figure 9This illustration schematically shows a flowchart of de-identifying sensitive data and storing transaction log information according to an embodiment of the present disclosure;
[0028] Figure 10 This schematically illustrates a structural diagram of log center encryption according to an embodiment of the present disclosure;
[0029] Figure 11 A flowchart illustrating a method for identifying sensitive data in transaction logs according to an embodiment of this disclosure is shown schematically.
[0030] Figure 12 This illustration schematically depicts the knowledge representation and edge attributes of a knowledge graph according to embodiments of the present disclosure;
[0031] Figure 13 A flowchart illustrating a graph modeling method according to an embodiment of the present disclosure is shown schematically;
[0032] Figure 14 This schematic diagram illustrates the structure of a sensitive data identification device for transaction logs according to an embodiment of the present disclosure;
[0033] Figure 15 A schematic diagram illustrating the structural block diagram of the building modules according to embodiments of the present disclosure is shown.
[0034] Figure 16 A schematic diagram illustrating the structure of a generation module according to an embodiment of the present disclosure is shown.
[0035] Figure 17 A schematic diagram illustrating the structure of a merging unit according to an embodiment of the present disclosure is shown.
[0036] Figure 18 This schematic diagram illustrates the structure of a sensitive data identification device for transaction logs according to an embodiment of the present disclosure;
[0037] Figure 19 A schematic diagram illustrating the structure of a desensitization processing module according to an embodiment of the present disclosure is shown.
[0038] Figure 20 A block diagram of an electronic device according to an embodiment of the present disclosure is shown schematically. Detailed Implementation
[0039] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.
[0040] In the technical solution disclosed herein, the acquisition, storage, and application of user personal information all comply with relevant laws and regulations, necessary confidentiality measures have been taken, and there is no violation of public order and good morals. In the technical solution disclosed herein, the acquisition, collection, storage, use, processing, transmission, provision, disclosure, and application of data all comply with relevant laws and regulations, necessary confidentiality measures have been taken, and there is no violation of public order and good morals.
[0041] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0042] When using expressions such as "at least one of A, B, or C," it should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (e.g., "a system having at least one of A, B, or C" should include, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.). The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, features defined with "first" or "second" may explicitly or implicitly include one or more of the stated features.
[0043] In existing banking operations, transaction data may involve user privacy information, such as ID numbers, card numbers, expiration dates, passwords, magnetic stripe or chip information, and other sensitive customer information. According to relevant departmental requirements, this sensitive customer information must be protected in a tiered manner. For security reasons, application systems need to implement de-identified storage of sensitive information. To achieve this, sensitive information is marked in the system during the design and production database table structure. After exporting data from the production database, data de-identification can be achieved using data transformation tools.
[0044] With the development of internet finance, banks are facing an increasing number of business scenarios. In addition, in order to improve customer experience, new channels are constantly being expanded and transaction volume is constantly increasing. In order to monitor the system and business operations, each bank system has implemented the function of recording transaction log information. The transaction log information is recorded by each application itself, without uniform format requirements. The transaction log information may contain some sensitive information. Existing desensitization technology requires identifying sensitive information in advance, then desensitizing the sensitive information before recording it in the database, or specially marking the sensitive information fields in the transaction log information before sending it to the log system for unified desensitization processing.
[0045] However, due to the massive amount of transaction log information and the fact that each application records it independently without a unified format requirement, identifying sensitive information is technically challenging. Therefore, existing desensitization technologies cannot cover all sensitive information in the system and cannot accurately locate all sensitive information. If manual analysis is used, the banking system is large, transaction relationships are complex, and data is massive, resulting in problems such as low accuracy and low efficiency.
[0046] This disclosure provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for identifying sensitive data in transaction logs. The method for identifying sensitive data in transaction logs includes: constructing a knowledge graph based on acquired transaction log information, wherein the transaction log information includes a unique transaction identifier, transaction information, transaction message information, and the transformation relationship between the transaction information and the transaction message information; the nodes of the knowledge graph are constructed based on the transaction information and the transaction message information; the edges of the knowledge graph are constructed based on the unique transaction identifier and the transformation relationship; and some nodes are labeled as sensitive nodes; the nodes of the knowledge graph are divided according to the degree of association between nodes to generate n communities, where n is an integer greater than or equal to 1; communities containing sensitive nodes are identified as sensitive communities; and the transaction log information corresponding to all nodes contained within a sensitive community is identified as sensitive data.
[0047] It should be noted that the sensitive data identification methods, devices, electronic devices, computer-readable storage media and computer program products disclosed herein can be used in the field of artificial intelligence technology, or in any field other than artificial intelligence technology, such as the financial field. The field of this disclosure is not limited here.
[0048] Figure 1 This illustration schematically depicts an exemplary system architecture 100 for identifying sensitive data from transaction logs according to embodiments of this disclosure. It should be noted that... Figure 1 The examples shown are merely examples of system architectures that can be applied to the embodiments of this disclosure, in order to help those skilled in the art understand the technical content of this disclosure, but do not mean that the embodiments of this disclosure cannot be used in other devices, systems, environments or scenarios.
[0049] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, and 103, a network 104, and a server 105. The network 104 serves as a medium for providing a communication link between the terminal devices 101, 102, and 103 and the server 105. The network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0050] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).
[0051] Terminal devices 101, 102, and 103 can be various electronic devices with displays and web browsing capabilities, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0052] Server 105 can be a server that provides various services, such as a backend management server that supports websites browsed by users using terminal devices 101, 102, and 103 (for example only). The backend management server can analyze and process data such as received user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal devices.
[0053] It should be noted that the sensitive data identification method for transaction logs provided in this disclosure embodiment can generally be executed by server 105. Correspondingly, the sensitive data identification device for transaction logs provided in this disclosure embodiment can generally be located in server 105. The sensitive data identification method for transaction logs provided in this disclosure embodiment can also be executed by a server or server cluster that is different from server 105 and capable of communicating with terminal devices 101, 102, 103 and / or server 105. Correspondingly, the sensitive data identification device for transaction logs provided in this disclosure embodiment can also be located in a server or server cluster that is different from server 105 and capable of communicating with terminal devices 101, 102, 103 and / or server 105.
[0054] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0055] The following will be based on Figure 1 The described scene, through Figures 2-9 The method for identifying sensitive data in transaction logs according to embodiments of this disclosure will be described in detail.
[0056] Figure 2 A flowchart illustrating a method for identifying sensitive data in transaction logs according to an embodiment of this disclosure is shown.
[0057] like Figure 2 As shown, the sensitive data identification method for transaction logs in this embodiment includes operations S210 to S240.
[0058] During operation S210, a knowledge graph is constructed based on the acquired transaction log information. The transaction log information includes a unique transaction identifier, transaction information, transaction message information, and the transformation relationship between the transaction information and the transaction message information. The nodes of the knowledge graph are constructed based on the transaction information and transaction message information, and the edges of the knowledge graph are constructed based on the unique transaction identifier and the transformation relationship. Some nodes are marked as sensitive nodes.
[0059] As an implementable approach, the unique identifier of a transaction may include a unique event code; the transaction information may include at least one of the following: event name, account name, card number, ID card number, address, and transaction amount; the transaction message information may include at least one of the following: an event unique code message converted from the event unique code, an event name message converted from the event name, an account name message converted from the account name, a card number message converted from the card number, an ID card number message converted from the ID card number, an address message converted from the address, and a transaction amount message converted from the transaction amount.
[0060] The following example illustrates how a user opens a card at an ATM, how the integrated front-end application converts the card opening information into transaction message information, and how the anonymized card opening information is displayed on the ATM.
[0061] For example, when Zhang San opens a credit card at ATM No. 1, the unique event code for the card opening is 1234. The transaction information for the card opening includes: event name: credit card opening, account name: Zhang San, card number: 147852, ID number: 1305632, address: Dongcheng District, Beijing, and transaction amount: 0. In the integrated front-end application, the unique event code for the card opening and the transaction information for the card opening can be converted into transaction message information, which is a character encoding.
[0062] For example, when Li Si opens a bank card at ATM No. 1, the unique event code for the card opening is 1235. The transaction information for the card opening includes: event name: opening a savings card, account name: Li Si, card number: 147889, ID number: 1309832, address: Haidian District, Beijing, and transaction amount: 10. In the integrated front-end application, the unique event code for the card opening and the transaction information for the card opening can be converted into transaction message information, which is a character encoding.
[0063] like Figure 3As shown, a knowledge graph can be constructed based on the transaction log information of ATM No. 1 and the integrated front-end application (i.e., the unique transaction identifiers, transaction information, transaction message information, and the conversion relationship between transaction information and transaction message information for Zhang San and Li Si). In the knowledge graph, some transaction information as stipulated by relevant departments can be identified as sensitive information, and nodes constructed based on sensitive information can be marked as sensitive nodes. Since the transaction message information is character-encoded, the transaction message information converted from sensitive information cannot be identified. If the transaction message information converted from sensitive information is not desensitized, there are security risks when the transaction message information is converted into display information and displayed on the ATM, or when the transaction message information is leaked.
[0064] As some specific examples, such as Figure 3 and Figure 4 As shown, operation S210 constructs a knowledge graph based on the acquired transaction log information, including operations S211 to S215.
[0065] In operation S211, obtain transaction log information from the transaction log.
[0066] In operation S212, the transaction log information is structured to obtain field names and field values under those field names. The field values are derived from the unique transaction identifier, transaction information, transaction message information, and transformation relationships. Taking Zhang San opening a card at ATM No. 1 as an example, after structuring the transaction log information, the following are obtained: Field Name: Event Unique Code; Field Value: 1234; Field Name: Event Name; Field Value: Credit Card Activation; Field Name: Account Name; Field Value: Zhang San; Field Name: Card Number; Field Value: 147852; Field Name: ID Card Number; Field Value: 1305632; Field Name: Address; Field Value: Dongcheng District, Beijing; Field Name: Transaction Amount; Field Value: 0.
[0067] The following commands are retrieved: Field Name Event Unique Encoding Message, Field Value Character Encoding 1; Field Name Event Name Message, Field Value Character Encoding 2; Field Name Account Name Message, Field Value Character Encoding 3; Field Name Card Number Message, Field Value Character Encoding 4; Field Name ID Card Number Message, Field Value Character Encoding 5; Field Name Address Message, Field Value Character Encoding 6; Field Name Transaction Amount Message, Field Value Character Encoding 7.
[0068] In operation S213, a portion of the field name is marked as sensitive information. For example, assuming that the relevant department has designated the user's card number and ID card number as sensitive information, then the field name "card number" and the field name "ID card number" can be marked as sensitive information.
[0069] In operation S214, a knowledge graph is constructed based on the field name and the field value under the field name.
[0070] In operation S215, nodes constructed from field values corresponding to sensitive information are marked as sensitive nodes. Operations S211 to S215 facilitate the construction of a knowledge graph based on the acquired transaction log information.
[0071] In operation S220, the nodes of the knowledge graph are divided according to the degree of association between the nodes, generating n communities, where n is an integer greater than or equal to 1.
[0072] As one possible way to achieve this, such as Figure 5 As shown, operation S220 divides the nodes of the knowledge graph according to the degree of association between the nodes, generating n communities, including operations S221 to S226.
[0073] In operation S221, each node in the knowledge graph is treated as a group, and the modularity of the group is calculated, thereby initializing the knowledge graph.
[0074] In operation S222, each group is traversed, and the modularity change between the group and each group with which it has an edge relationship is determined. To facilitate understanding of the specific implementation of operations S221 to S226, the following is constructed: Figure 6 The knowledge graph shown, for example, has 12 nodes: a, b, c, d, e, f, g, h, i, j, k, and l. When initializing the knowledge graph, a, b, c, d, e, f, g, h, i, j, k, and l can be grouped together, and the modularity of each group can be calculated. Taking group a as an example, the following explains the change in modularity between each group and every group with which it has an edge relationship. Groups b, c, and d have edge relationships with group a. Therefore, the modularity changes between a and b, a and c, and a and d can be calculated separately.
[0075] In operation S223, when the modularity change meets the set threshold, the group and the group with edge relationship with it are merged according to the modularity change.
[0076] In some specific examples, such as Figure 7As shown, operation S223 merges the group and the groups with edge relationships with it according to the change in modularity, including operation S2231 and operation S2232.
[0077] In operation S2231, the module degree changes are sorted according to their numerical values.
[0078] In operation S2232, based on the sorting results, the two groups with the highest or lowest modularity changes are merged. It should be noted that sorting the modularity changes by numerical value can be either ascending or descending order. When sorting the modularity changes in ascending order, the two groups with the lowest modularity changes are merged; when sorting the modularity changes in descending order, the two groups with the highest modularity changes are merged.
[0079] For example, through operation S222, the modularity change between a and b is calculated as K1, the modularity change between a and c as K2, and the modularity change between a and d as K3. When the order is K1 < K2 < K3, the group a and d corresponding to the lowest-ranked K3 are merged; when the order is K3 > K2 > K1, the group a and d corresponding to the highest-ranked K3 are merged. Operations S2231 and S2232 facilitate merging the group and its edge-related groups based on the modularity change.
[0080] In operation S224, the merged group is treated as a new group, the modularity of the new group is calculated, and the process of traversing each group is repeated to determine the change in modularity between the group and each group with which it has an edge relationship.
[0081] In operation S225, when the modularity change does not meet the set threshold, the merging of this group and groups with edge relationships with it is stopped. For example, the set threshold can be set to a positive number. When the modularity change is negative, the modularity change does not meet the set threshold, and the merging of this group and groups with edge relationships with it is stopped.
[0082] In operation S226, when the modularity change between any two groups does not meet the set threshold, the current n groups are treated as n communities. It can be understood that when no two groups in the entire knowledge graph can be merged, the community generation is complete, and at this point, the current n groups can be treated as n communities.
[0083] The modularity Q of the group can be obtained by formula (1). m represents the number of edges between the group being traversed and other groups, ∑ in ∑ represents the total weight of the edges within the group being traversed. totThis represents the total weight of the edges incident on the target group.
[0084]
[0085] The modularity ΔQ of the group can be obtained by formula (2). m represents the number of edges between the group being traversed and other groups, ki,in represent the sum of the weights of the edges incident from the group being traversed to the target group, and ∑ tot represents the total weight of the edges incident to the target group, and ki represents the total weight of the edges in the group being traversed.
[0086]
[0087] In operation S230, communities containing sensitive nodes among n communities are identified as sensitive communities. Continuing with... Figure 6 Taking the knowledge graph as an example, the knowledge graph ultimately generates three communities: community A, community B, and community C. Assume that among nodes a, b, c, d, e, f, g, h, i, j, k, and l, nodes a and k are marked as sensitive nodes in operation S215. Since node a is located in community A, community A can be identified as a sensitive community; since node k is located in community C, community C can be identified as a sensitive community; community B does not contain any sensitive nodes, therefore community B is a non-sensitive community.
[0088] In operation S240, the transaction log information corresponding to all nodes within a sensitive community is identified as sensitive data. Specifically, community A contains nodes a, b, c, and d, therefore the transaction log information corresponding to nodes a, b, c, and d is identified as sensitive data; community C contains nodes h, i, j, k, and l, therefore the transaction log information corresponding to nodes h, i, j, k, and l is identified as sensitive data.
[0089] The sensitive data identification method for transaction logs according to embodiments of this disclosure constructs a knowledge graph based on transaction log information. The nodes in the knowledge graph are divided according to their correlation, generating n communities. Communities containing sensitive nodes are identified as sensitive communities, and the transaction log information corresponding to all nodes within these sensitive communities is identified as sensitive data. This method enables accurate identification of all sensitive data in transaction logs, even when the data volume is massive and each application records its own data without a unified format requirement. It achieves full coverage of sensitive data across all application systems, avoiding manual analysis of sensitive data and improving the accuracy and efficiency of sensitive data identification.
[0090] Figure 8 A flowchart illustrating a method for identifying sensitive data in transaction logs according to an embodiment of the present disclosure is shown. The method for identifying sensitive data in transaction logs further includes operation S250.
[0091] When operating the S250, sensitive data is anonymized and transaction log information is stored.
[0092] As an feasible approach, such as Figure 9 As shown, operation S250 performs desensitization processing on sensitive data and stores transaction log information, including operations S251 to S253, or operations S254 to S255.
[0093] In operation S251, sensitive data in the transaction log information is extracted and de-identified to obtain de-identified data.
[0094] In operation S252, the de-identified data is recorded in the transaction log information.
[0095] In operation S253, the anonymized transaction log information is stored in the log system. Operations S251 through S253 facilitate the anonymization of sensitive data and the storage of transaction log information.
[0096] In operation S254, sensitive data in the transaction log information is specially marked.
[0097] In operation S255, the tagged transaction log information is sent to the log system, where it undergoes de-identification processing. Operations S254 to S255 similarly facilitate the de-identification of sensitive data and the storage of transaction log information. De-identifying sensitive data and storing transaction log information enhances the security of the application system and protects customer information security.
[0098] Specifically, a consistent hashing algorithm can be used to partition the de-identification processing server, with predefined service nodes divided into 2... n Each partition contains a table that stores the unique IDs of all de-identification servers and their corresponding IP addresses. A consistent hashing algorithm is used to partition the de-identification servers from 1 to 2. n Partitioning is used to ensure even distribution of the de-identification processing servers, employing the common hash function hash(key)%2. n (key is the key-value pair of the data, 2) n (where n is the number of servers), the modulo result is the number of data masking servers to be connected. Each data masking server is assigned 1 / 2n of the service, and the service nodes are divided into 2... n One is to ensure the validity of the Byzantine algorithm, so that subsequent normal error correction can be supported, preventing bad nodes from tampering with data, realizing flexible scaling of the desensitization processing server, supporting high concurrency, and avoiding the introduction of sensitive data identification that would slow down transactions.
[0099] In some embodiments of this disclosure, the knowledge graph may have a data query function. When searching for transaction log information in the knowledge graph, if the transaction log information is found, the nodes and edges corresponding to the transaction log information are displayed. If the transaction log information is not found in the knowledge graph, operations S210 to S240 are repeated. This improves the sensitive data identification device for transaction logs' ability to process and control sensitive data.
[0100] The following reference Figures 10-13 This document describes in detail a method for identifying sensitive data in transaction logs according to embodiments of the present disclosure. It is important to understand that the following description is merely illustrative and not intended to limit the scope of this disclosure.
[0101] This disclosure proposes a method for identifying sensitive data in transaction logs, applicable to the de-identification of semi-structured and unstructured data. Existing relationships exist between various bank systems, including in transaction information. Graph computing provides an efficient method for calculating, storing, and managing graph data, offering a complete description of the relationships between data. This enables rich, efficient, and agile data analysis and data service capabilities, solving the problem of identifying and de-identifying sensitive information in logs.
[0102] like Figure 10 The diagram shows the structure of the encrypted log center. This disclosure finds sensitive information and performs desensitization processing by establishing a data desensitization knowledge graph: First, data collection, knowledge acquisition, graph modeling and knowledge search are performed on the transaction data of the application system to construct a sensitive information identification knowledge graph, and sensitive information in the log is identified and desensitized.
[0103] like Figure 11 The flowchart shown is a process for identifying sensitive data in transaction logs. The process mainly consists of three parts: the first part is the application server-related processing method, which mainly involves collecting logs; the second part is the desensitization processing server-related processing method, which mainly involves analyzing log data, identifying sensitive data, and desensitizing the sensitive data; and the third part is the log storage-related processing method.
[0104] 1. Application Server: Primarily responsible for the collection and centralized management of application transaction data.
[0105] According to the transaction log definition and the requirements for the format and content of the transaction log, the system process of the transaction will obtain and record key information in the transaction communication area.
[0106] Transaction logs typically contain unique transaction identifiers and key transaction elements, such as transaction trace ID, transaction channel event number, card number, etc. They also contain transaction input and output information. Transaction input and output are often transaction message information assembled by upstream or downstream systems. The format is defined by upstream and downstream applications and varies from transaction to transaction. The structure is not fixed, but it should at least contain the information shown in Table 1.
[0107] Table 1
[0108]
[0109] Transaction logs can be sent to a message queue via an asynchronous process through the log collection module. Flume can be used in the log collection module, and the message queue can be implemented using the Kafka framework.
[0110] 2. Desensitization Server: This server is mainly responsible for identifying and desensitizing sensitive information in transaction log data.
[0111] Message queues contain transaction log information to enable the identification and de-identification of sensitive information. Transaction logs can be obtained by subscribing to and consuming the information in the message queue through batch jobs.
[0112] like Figure 12 The diagram shows the knowledge representation and edge attributes of a knowledge graph. Knowledge acquisition is the process of structuring data, cleaning and aligning unstructured data from different sources and interfaces to form knowledge elements such as entities, relationships, events / attributes. The feasibility of knowledge acquisition is to establish a data model for the knowledge graph and define the structure of the entire knowledge graph.
[0113] Knowledge representation includes knowledge organization and schema definition. Definitions are provided by business experts based on experience or identified based on transaction data. The schema definition of the knowledge graph defines the routing data model, describing the massive amounts of data from numerous data producers using a routing knowledge graph. The standard uses the World Wide Web Consortium (W3C) Resource Description Framework (RDF) protocol definition as the basic protocol, and adopts the JSON-LD standard to organize the description language, including the following elements:
[0114] 1) Class: The type of entity, defining an entity of a certain type.
[0115] 2) Property attribute: Represents the description of the entity in different data sources, forming a comprehensive description of the entity.
[0116] 3) Relation: Relationships are used to describe the relationships between various abstract data models that are modeled as entities, thereby supporting correlation analysis.
[0117] 4) Constituent constraint: A constraint on an attribute under a specific class, adding polymorphism and overloading features to the attribute.
[0118] 5) Datatype: Describes the data type of an attribute.
[0119] 6) Subclass concept hierarchy: describes the hierarchical relationship of the Class.
[0120] Graph modeling is the core of this solution and a key technical step in sensitive information identification. It involves constructing a sensitive information knowledge graph. After processing transaction log data, a knowledge graph is built based on the transaction chain relationships and metadata of the transaction logs. This knowledge graph is then used to analyze the log center data and identify sensitive information. The graph modeling method is as follows: Figure 13 As shown, it specifically includes S1 to S3.
[0121] S1, Building Data Relationship Groups: This module primarily focuses on building the training model and performing dimensionality reduction. It supports, but is not limited to, community detection algorithms such as Louvian, FN, and GN, with Louvian being the preferred choice. Louvian community detection is based on modularity, its core idea being to iterate through all community labels of nodes in the network and maximize the community label with the largest increase in modularity. After maximizing modularity, each community is treated as a new node, and this process is repeated until the modularity no longer increases. The steps for implementing data relationship groups are as follows:
[0122] Step 1: Initialization, defining modularity: Where Q represents the modularity, ∑ in ∑ represents the weight within community C. tot This represents the edge weight linked to community C, including edges inside and outside the community. During the initialization phase, each node in the graph is treated as an independent data relationship group, the number of groups is equal to the number of nodes, and the weight of all edges is considered to be the same number 1.
[0123] Step 2: Begin node transfers between groups. For each node i, try assigning it to the group containing each of its neighboring nodes. Assuming there are three neighboring nodes j1, j2, and j3, node i needs to be moved to the communities containing j1, j2, and j3. Calculate the corresponding modularity change value. Move node i to the community with the largest change value. The modularity change...
[0124] Where m represents the number of edges in the network, k i,in∑ represents the sum of the weights of the group C incident on node i. tot This represents the total weight of the incident group C.
[0125] Step 3: Iterate through Step 2 and continue to evaluate the inter-group node transfer until the modularity of the group to which all nodes belong no longer changes, that is, the inter-group node transfer ends.
[0126] Step 4: Reconstruct all nodes in each community into a new group. Update the weights of the edges between nodes within the group to the weights of the cycles of the new nodes, and update the weights of the edges between groups to the weights of the edges between the new nodes.
[0127] Step 5: Repeat steps 1, 2, and 3 until the algorithm is stable.
[0128] S2, Suspicious Relationship Data Identification: By constructing data relationship groups and combining them with the structured data table structures of various application systems, sensitive information in semi-structured or unstructured data is identified through metadata. The specific method for suspicious relationship data identification is as follows:
[0129] Step 1: Based on the definition of the database table structure of each application system, collect all the information of the table structure as data nodes. The node knowledge identifier should at least include the application name, field name, whether it is metadata, metadata name, etc. It should include nodes involving sensitive information such as account name, ID number and validity period. In the knowledge graph, the corresponding node is marked as involving sensitive information to facilitate data analysis. That is, find the corresponding record in the graph database and add the identifier as sensitive information.
[0130] Step Two: Based on the metadata nodes and the results of constructing data relationship groups, identify the data nodes containing sensitive state-owned information in the knowledge graph and construct all sensitive information nodes. The specific implementation method is as follows:
[0131] A. Initialize all nodes, treating each node as a separate data node.
[0132] B. Determine whether the upstream node of the current node is a suspicious data node. Based on the sensitive information tags of the downstream data node, determine whether its upstream node is involved in sensitive information data nodes.
[0133] C. If there are adjustments to the sensitive information of each new data link node or data node, step B needs to be repeated until no new upstream data node can be found.
[0134] D. If no metadata information can be found for upstream nodes, the data is identified as suspicious and manually verified, and then labeled as sensitive information.
[0135] S3, Sensitive Information Identification: Based on the information in the transaction log, acquire knowledge and use it as a query condition for the knowledge graph. Query the current knowledge database record and directly determine whether the current record contains sensitive information. If the current database record cannot be found, create a new database record and use it as a new data node. Through attributes and edges, and through the suspicious relationship data identification steps, the sensitive information of the newly added data node is identified.
[0136] Sensitive information query is a service that provides the ability to query sensitive information, accepts transaction requests, and returns query results. Preferably, a consistent hashing algorithm can be used to partition the de-identification processing server, and the service nodes are predefined into 2... n Each partition contains a table that stores the unique IDs of all de-identification servers and their corresponding IP addresses. A consistent hashing algorithm is used to partition the de-identification servers from 1 to 2. n Partitioning is used to ensure even distribution of the de-identification processing servers, employing the common hash function hash(key)%2. n (key is the key-value pair of the data, 2) n (The number of servers), the modulo result is the number of de-identification processing servers to be connected, and each de-identification processing server is divided equally into 1 / 2. n The service is divided into 2 service nodes. n One is to ensure the validity of the Byzantine algorithm, so that subsequent normal error correction can be supported, preventing bad nodes from tampering with data, realizing flexible scaling of the desensitization processing server, supporting high concurrency, and avoiding the introduction of sensitive data identification that would slow down transactions.
[0137] Sensitive information anonymization is essential to prevent privacy leaks. Sensitive information in transaction logs must be anonymized before being stored in the log system. Anonymization can be performed by anonymizing sensitive information before logging, or by specially marking sensitive fields in transaction logs and then uniformly anonymizing them after submission to the log system. Specifically, this disclosure introduces the open-source tool Flink, leveraging its powerful data throughput and computational capabilities for log anonymization. Log information is submitted to Flink as a unified data stream. Flink processes the data stream in real time according to the configured anonymization rules, and the processed data stream is then recorded to the log file. This transforms the log anonymization process from a synchronous waiting mode to an asynchronous mode, thereby reducing the resource consumption of the business system and improving system response time and processing capacity.
[0138] This disclosure has the following beneficial effects:
[0139] 1. This disclosure provides a method for identifying sensitive information in semi-structured data. By using knowledge graphs, sensitive information in the entire transaction chain can be accurately discovered, thus avoiding the leakage of sensitive information.
[0140] 2. By building training models, the ability to automatically identify sensitive information can be improved, avoiding the manual maintenance costs of sensitive information.
[0141] 3. By providing a process for identifying, querying, and de-identifying sensitive information through a distributed system, the system's ability to process and control sensitive information is improved.
[0142] Based on the aforementioned method for identifying sensitive data in transaction logs, this disclosure also provides a device 10 for identifying sensitive data in transaction logs. The following will be combined with... Figures 14-19 The sensitive data identification device 10 for transaction logs is described in detail.
[0143] Figure 14 A schematic block diagram of a sensitive data identification device 10 for transaction logs according to an embodiment of the present disclosure is shown.
[0144] The sensitive data identification device 10 for transaction logs includes a construction module 1, a generation module 2, a first identification module 3, and a second identification module 4.
[0145] Module 1 is used to perform operation S210: construct a knowledge graph based on the acquired transaction log information. The transaction log information includes a unique transaction identifier, transaction information, transaction message information, and the transformation relationship between the transaction information and the transaction message information. The nodes of the knowledge graph are constructed based on the transaction information and the transaction message information. The edges of the knowledge graph are constructed based on the unique transaction identifier and the transformation relationship. Some nodes are marked as sensitive nodes.
[0146] Generation module 2 is used to perform operation S220: divide the nodes of the knowledge graph according to the degree of association between the nodes, and generate n communities, where n is an integer greater than or equal to 1.
[0147] The first identification module 3 is used to perform operation S230: identify the community containing sensitive nodes among the n communities as sensitive communities.
[0148] The second identification module 4 is used to perform operation S240: identify the transaction log information corresponding to all nodes contained in the sensitive community as sensitive data.
[0149] Figure 15 The schematic diagram illustrates the structure of the construction module 1 according to an embodiment of the present disclosure. The construction module 1 includes an acquisition unit 11, a processing unit 12, a first annotation unit 13, a construction unit 14, and a second annotation unit 15.
[0150] Acquisition unit 11 is used to acquire transaction log information from the transaction log.
[0151] Processing unit 12 is used to perform structured processing on transaction log information to obtain field names and field values under the field names. The field values are obtained by conversion based on the unique transaction identifier, transaction information, transaction message information and conversion relationship.
[0152] The first annotation unit 13 is used to mark a portion of the field name as sensitive information.
[0153] Building Unit 14 is used to build a knowledge graph based on field names and field values under field names.
[0154] The second annotation unit 15 is used to annotate nodes constructed from field values corresponding to sensitive information as sensitive nodes.
[0155] Figure 16 A schematic block diagram of the generation module 2 according to an embodiment of the present disclosure is shown. The generation module 2 includes a calculation unit 21, a first determination unit 22, a merging unit 23, a second determination unit 24, a stopping unit 25, and a third determination unit 26.
[0156] The calculation unit 21 is used to treat each node in the knowledge graph as a group and calculate the modularity of the group.
[0157] The first determining unit 22 is used to traverse each group and determine the modularity change between the group and each group with which it has an edge relationship.
[0158] Merging unit 23 is used to merge the group and the group with edge relationship with it according to the change in modularity when the change in modularity meets the set threshold.
[0159] The second determining unit 24 is used to treat the merged group as a new group, calculate the modularity of the new group, repeatedly traverse each group, and determine the change in modularity between the group and each group with which it has an edge relationship.
[0160] Stop unit 25 is used to stop merging the group and the group with which it has an edge relationship when the change in modularity does not meet the set threshold.
[0161] The third determining unit 26 is used to determine the current n groups as n communities when the modularity change between any two groups does not meet the set threshold.
[0162] Figure 17A schematic block diagram of a merging unit 23 according to an embodiment of the present disclosure is shown. The merging unit 23 includes a sorting element 231 and a merging element 232.
[0163] Sorting element 231 is used to sort the modularity changes according to their numerical values.
[0164] Merging element 232 is used to merge two groups that rank first or last in terms of modularity change, based on the sorting results.
[0165] Figure 18 A schematic block diagram of a sensitive data identification device 10 for transaction logs according to an embodiment of the present disclosure is shown. The sensitive data identification device 10 for transaction logs also includes a de-identification processing module 5.
[0166] The desensitization module 5 is used to desensitize sensitive data and store transaction log information.
[0167] Figure 19 The schematic diagram illustrates the structure of a desensitization processing module 5 according to an embodiment of the present disclosure. The desensitization processing module 5 includes a first desensitization unit 51, a recording unit 52, and a storage unit 53, or the desensitization processing module 5 includes a special marking unit 54 and a second desensitization unit 55.
[0168] The first desensitization unit 51 is used to extract sensitive data from the transaction log information and desensitize it to obtain desensitized data.
[0169] Recording unit 52 is used to record de-identified data in transaction log information.
[0170] Storage unit 53 is used to store the anonymized transaction log information to the log system. Alternatively...
[0171] Special marking unit 54 is used to mark sensitive data in transaction log information.
[0172] The second desensitization unit 55 is used to send the tagged transaction log information to the log system, where the transaction log information is desensitized.
[0173] The sensitive data identification device 10 for transaction logs according to embodiments of this disclosure constructs a knowledge graph based on transaction log information, divides the nodes of the knowledge graph according to the degree of association between nodes, generates n communities, identifies communities containing sensitive nodes as sensitive communities, and identifies the transaction log information corresponding to all nodes contained in the sensitive communities as sensitive data. This allows for the accurate location of all sensitive data in transaction logs, even when the amount of transaction log information is huge and each application records it independently without uniform format requirements. It achieves full coverage of sensitive data across all application systems, avoids the need for manual analysis of sensitive data, and improves the accuracy and efficiency of sensitive data identification.
[0174] Furthermore, according to embodiments of this disclosure, any multiple modules among the construction module 1, generation module 2, first identification module 3, and second identification module 4 can be combined into one module, or any one of these modules can be split into multiple modules. Alternatively, at least some of the functions of one or more of these modules can be combined with at least some of the functions of other modules and implemented in one module.
[0175] According to embodiments of this disclosure, at least one of the construction module 1, generation module 2, first identification module 3, and second identification module 4 can be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging the circuitry, or implemented in any one of the three methods of software, hardware, and firmware, or in a suitable combination of any of these.
[0176] Alternatively, at least one of the building module 1, generating module 2, first identification module 3, and second identification module 4 can be at least partially implemented as a computer program module, which can perform corresponding functions when the computer program module is run.
[0177] Figure 20 A block diagram schematically illustrates an electronic device suitable for implementing the above-described method according to an embodiment of the present disclosure.
[0178] like Figure 20As shown, an electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage portion 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0179] RAM 903 stores various programs and data required for the operation of electronic device 900. Processor 901, ROM 902, and RAM 903 are interconnected via bus 904. Processor 901 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 902 and / or RAM 903. It should be noted that the programs may also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.
[0180] According to embodiments of this disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to a bus 904. The electronic device 900 may also include one or more of the following components connected to the I / O interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the input / output (I / O) interface 905 as needed. A removable medium 911, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 910 as needed so that computer programs read from it can be installed into the storage section 908 as needed.
[0181] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.
[0182] According to embodiments of this disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as including, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of this disclosure, the computer-readable storage medium may include ROM 902 and / or RAM 903 and / or one or more memories other than ROM 902 and RAM 903 described above.
[0183] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. When the computer program product is run on a computer system, the program code is used to cause the computer system to implement the methods of the embodiments of this disclosure.
[0184] When the computer program is executed by the processor 901, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0185] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and downloaded and installed via the communication section 909, and / or installed from a removable medium 911. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.
[0186] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, it performs the functions defined in the system of this disclosure embodiment. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0187] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0188] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0189] Those skilled in the art will understand that the features described in the various embodiments and / or claims of this disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure can be combined and / or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.
[0190] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.
Claims
1. A method for identifying sensitive data in transaction logs, characterized in that, include: A knowledge graph is constructed based on the acquired transaction log information. The transaction log information includes a unique transaction identifier, transaction information, transaction message information, and the transformation relationship between the transaction information and the transaction message information. The nodes of the knowledge graph are constructed based on the transaction information and the transaction message information. The edges of the knowledge graph are constructed based on the unique transaction identifier and the transformation relationship. Some nodes are marked as sensitive nodes. The unique transaction identifier includes a unique event code. The transaction information includes at least one of the following: event name, account name, card number, ID card number, address, and transaction amount. The transaction message information includes at least one of the following: an event unique code message converted from the event unique code, an event name message converted from the event name, an account name message converted from the account name, a card number message converted from the card number, an ID card number message converted from the ID card number, an address message converted from the address, and a transaction amount message converted from the transaction amount. The nodes of the knowledge graph are divided according to the degree of association between the nodes, generating n communities, where n is an integer greater than or equal to 1; Identify communities containing the sensitive nodes among the n communities as sensitive communities; and The transaction log information corresponding to all nodes within the aforementioned sensitive community was identified as sensitive data. The process of dividing the knowledge graph nodes according to their correlation to generate n communities includes: Treat each node in the knowledge graph as a group and calculate the modularity of that group; Iterate through each group and determine the modularity change between that group and every group with which it has an edge relationship; When the modularity change meets a set threshold, the group and the groups with edge relationships with it are merged according to the modularity change; Treat the merged group as a new group, calculate the modularity of the new group, repeat the process of traversing each group, and determine the change in modularity between the group and each group with which it has an edge relationship; When the modularity change does not meet the set threshold, stop merging this group and groups with edge relationships with it; and When the modularity change between any two groups does not meet the set threshold, the current n groups are treated as n communities.
2. The method according to claim 1, characterized in that, The construction of the knowledge graph based on the acquired transaction log information includes: Retrieve transaction log information; The transaction log information is structured to obtain field names and field values under the field names. The field values are obtained by transforming the unique transaction identifier, the transaction information, the transaction message information, and the transformation relationship. Mark a portion of the field name as sensitive information; Construct a knowledge graph based on the field names and the field values under the field names; and Nodes constructed from field values corresponding to the sensitive information are marked as sensitive nodes.
3. The method according to claim 1, characterized in that, The step of merging the group and the groups with edge relationships with it based on the modularity change includes: Sort the changes in modularity according to their numerical values; and When the modularity changes are sorted in ascending order, the two groups with the lowest modularity changes are merged. When the modularity changes are sorted in descending order, the two groups with the highest modularity changes are merged.
4. The method according to claim 1, characterized in that, Also includes: The sensitive data is anonymized and the transaction log information is stored.
5. The method according to claim 4, characterized in that, The process of de-identifying the sensitive data and storing the transaction log information includes: Sensitive data is extracted from the transaction log information and de-identified to obtain de-identified data; The de-identified data is recorded in the transaction log information; and Store the anonymized transaction log information in the log system, or Sensitive data in the transaction log information is specially marked; and The tagged transaction log information is sent to the log system, where the transaction log information is anonymized.
6. The method according to claim 1, characterized in that, The knowledge graph has a data query function. When searching for transaction log information in the knowledge graph, if the transaction log information is found in the knowledge graph, the nodes and edges corresponding to the transaction log information are displayed.
7. A sensitive data identification device for transaction logs, characterized in that, include: A construction module is used to construct a knowledge graph based on the acquired transaction log information. The transaction log information includes a unique transaction identifier, transaction information, transaction message information, and the transformation relationship between the transaction information and the transaction message information. The nodes of the knowledge graph are constructed based on the transaction information and the transaction message information. The edges of the knowledge graph are constructed based on the unique transaction identifier and the transformation relationship. Some nodes are marked as sensitive nodes. The unique transaction identifier includes a unique event code. The transaction information includes at least one of the following: event name, account name, card number, ID card number, address, and transaction amount. The transaction message information includes at least one of the following: an event unique code message converted from the event unique code, an event name message converted from the event name, an account name message converted from the account name, a card number message converted from the card number, an ID card number message converted from the ID card number, an address message converted from the address, and a transaction amount message converted from the transaction amount. A generation module is used to divide the nodes of the knowledge graph according to the degree of association of the nodes, and generate n communities, where n is an integer greater than or equal to 1; A first identification module is configured to identify communities containing the sensitive nodes among the n communities as sensitive communities; and The second identification module is used to identify the transaction log information corresponding to all nodes within the sensitive community as sensitive data. The process of dividing the knowledge graph nodes according to their correlation to generate n communities includes: Treat each node in the knowledge graph as a group and calculate the modularity of that group; Iterate through each group and determine the modularity change between that group and every group with which it has an edge relationship; When the modularity change meets a set threshold, the group and the groups with edge relationships with it are merged according to the modularity change; Treat the merged group as a new group, calculate the modularity of the new group, repeat the process of traversing each group, and determine the change in modularity between the group and each group with which it has an edge relationship; When the modularity change does not meet the set threshold, stop merging this group and groups with edge relationships with it; and When the modularity change between any two groups does not meet the set threshold, the current n groups are treated as n communities.
8. An electronic device, characterized in that, include: One or more processors; One or more memories are provided for storing executable instructions that, when executed by the processor, implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The storage medium stores executable instructions that, when executed by a processor, implement the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that, The method includes a computer program comprising one or more executable instructions that, when executed by a processor, implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Interactive risk gang identification method based on stock community relation graph
CN113902534A
Intelligent hashing of sensitive information
US20210377035A1
