Privacy information leakage condition detection method and device, and storage medium

By combining the generation of the maximum public sequence string and the matching pattern, the problem of extraction leakage caused by changes in information format in the existing technology is solved, accurate detection of private information leakage is achieved, and the misjudgment rate is reduced.

CN118797111APending Publication Date: 2024-10-18CHINA MOBILE GROUP DESIGN INST +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410215600.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-27
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

When detecting leaks of private information, the existing technology cannot effectively extract information that changes in length and format, resulting in misjudgments and partial content leaks that are not fully discovered.

Method used

By obtaining the leaked information and own private information, using the preset character length to generate a string group, and through the matching mode of the maximum public sequence string, combined with the matching type information and filtering processing, extract and compare the information to generate leakage information. Adapt to complex and changing information formats.

Benefits of technology

It achieves the accurate extraction of complex and changing information, reduces the misjudgment rate, and improves the accuracy of judging the leakage of private information. It is suitable for information with changing lengths and complex structures such as addresses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797111A_ABST
    Figure CN118797111A_ABST
Patent Text Reader

Abstract

The invention provides a privacy information leakage condition detection method and device and a storage medium, and relates to the technical field of information security, and the method comprises the steps: obtaining leaked information and own privacy information; obtaining a first character string group and a second character string group with a first preset character length according to the leaked information and private information; and comparing the first character string group with the second character string group to obtain a third character string group, and further obtaining a maximum common sequence character string to generate first leakage condition information. The character string is obtained based on the first preset character length as a unit, the situation that a key character string consistent with private information is extracted from leaked information due to format limitation is avoided, the character string is expanded in a continuous identical character overlapping mode, the maximum public sequence character string is found out, information with the changed length and the complex structure is extracted in an adaptive mode, and the user experience is improved. And for the condition of partial information leakage, the leaked information can be accurately found, and the accuracy of judging the privacy leakage condition is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and in particular to a method, device and storage medium for detecting privacy information leakage. Background Art

[0002] The importance of personal privacy information security is increasing day by day. Information technology companies and operators usually retain a large amount of user personal information. This privacy information is a very important asset for the company. Once leaked, it will lead to serious consequences. In order to promptly discover the leakage of privacy information, companies can currently obtain leaked personal privacy information from different channels, such as obtaining personal information that has been listed for trading on the dark web, and then compare their own personal privacy information with the leaked information. Based on the comparison results of the leaked information and their own privacy information, they can infer the leakage of their own privacy information.

[0003] In the prior art, the method for detecting the leakage of private information generally extracts the required information from the leaked information through a fixed information format. However, the leaked information may use different formats of information, and there may be confusing information in the leaked information, such as spaces, garbled characters, etc. There is a problem of missing information when extracting information through a fixed information format. For information such as addresses, which has a variable length and a complex structure, there may be partial content leakage, that is, not complete leakage, and it cannot be effectively extracted through a fixed information format, which leads to misjudgment of the leakage of private information. Summary of the invention

[0004] The present invention provides a privacy information leakage detection method, device and storage medium, which are used to solve the defect that the information with changed length and format cannot be effectively extracted when performing privacy information leakage detection in the prior art.

[0005] The present invention provides a method for detecting privacy information leakage, comprising:

[0006] Obtain leaked information and private information;

[0007] Acquire a first character string group of a first preset character length according to the leaked information;

[0008] According to the private information, obtaining a second character string group of the first preset character length;

[0009] Compare the first string group with the second string group to obtain a third string group, wherein the third string group includes the same strings in the first string group and the second string group;

[0010] According to the third character string group, a maximum common sequence character string is obtained, where the maximum common sequence character string represents a longest character string obtained by merging character strings having consecutive identical characters in the third character string group;

[0011] First leakage information is generated according to the maximum common sequence character string.

[0012] According to a privacy information leakage detection method provided by the present invention, obtaining the maximum common sequence string according to the third string group includes:

[0013] Selecting a character string from the third character string group as a matching character string;

[0014] Compare the matching string with other strings in the third string group, combine a string whose number of consecutive identical characters at the beginning or end is greater than or equal to a second preset character length with the matching string to form a new matching string, until there is no string in the third string group that can be combined with the matching string, and record the matching string as the maximum common sequence string;

[0015] Selecting another string from the third string group as the new matching string until all strings in the third string group are traversed;

[0016] The second preset character length is smaller than the first preset character length.

[0017] According to a privacy information leakage detection method provided by the present invention, after selecting another string from the third string group as the new matching string until all strings in the third string group are traversed, the method further includes:

[0018] According to all the maximum common sequence character strings, repeated maximum common sequence character strings are deleted and one of them is retained.

[0019] According to a method for detecting leakage of private information provided by the present invention, before obtaining a first character string group of a first preset character length according to the leaked information, the method further includes:

[0020] Acquire matching type information, where the matching type information represents the type of information that needs to be matched;

[0021] Determine a matching mode according to the matching type information;

[0022] Wherein, the matching mode includes a complex information matching mode. When it is determined to be a complex information matching mode, the step of obtaining a first character string group of a first preset character length according to the leaked information is executed.

[0023] According to a privacy information leakage detection method provided by the present invention, the matching mode also includes a mobile phone number matching mode, and when the mobile phone number matching mode is determined, the method further includes:

[0024] According to the first preset filtering character information, the leaked information is filtered to eliminate characters other than numbers and the numbers are segmented with the eliminated characters as intervals to obtain a first segmentation array;

[0025] Discarding the first segmented array whose number of digits is greater than a first preset threshold;

[0026] Based on the order of the first segmented arrays, the first first segmented array is selected as the first concatenated array; according to the number of digits of the first concatenated array, when it is greater than the first preset threshold, the first concatenated array is discarded and the next first segmented array is selected as the new first concatenated array; when it is less than the second preset threshold, the first concatenated array is concatenated with the next first segmented array to form a new first concatenated array; when it is equal to the preset target value, the first concatenated array is recorded to form a target matching number and the next first segmented array is selected as the new first concatenated array, until all the first segmented arrays are traversed;

[0027] Compare the private information with all the target matching numbers, obtain the mobile phone number that is the same as the target matching number, and form the leaked mobile phone number information;

[0028] Second leakage information is generated according to the leaked mobile phone number information.

[0029] According to a privacy information leakage detection method provided by the present invention, the matching mode also includes a bank card number matching mode, and when the bank card number matching mode is determined, the method further includes:

[0030] According to the second preset filtering character information, the leaked information is filtered to eliminate characters other than numbers and the numbers are segmented with the eliminated characters as intervals to obtain a second segmentation array;

[0031] Discarding the second segmented array whose number of digits is greater than a third preset threshold;

[0032] Based on the order of the second segmented arrays, the first second segmented array is selected as the second spliced ​​array; according to the number of digits of the second spliced ​​array, when it is greater than the third preset threshold, the second spliced ​​array is discarded and the next second segmented array is selected as the new second spliced ​​array; when it is less than the fourth preset threshold, the second spliced ​​array is spliced ​​with the next second segmented array to form a new second spliced ​​array; when it is within the target range, the second spliced ​​array is recorded to form a target matching bank card number and the second spliced ​​array is spliced ​​with the next second segmented array to form a new second spliced ​​array, until all the second segmented arrays are traversed;

[0033] Compare the private information with all the target matching bank card numbers, obtain the bank card number that is the same as the target matching bank card number, and form leaked bank card number information;

[0034] The third leakage information is generated according to the bank card number information.

[0035] According to a method for detecting leakage of private information provided by the present invention, before comparing the private information with all the target matching bank card numbers to obtain the bank card number identical to the target matching bank card number to form the leaked bank card number information, the method further comprises:

[0036] Perform verification calculation on the target matching bank card number to obtain a verification value;

[0037] The verification value is compared with the last preset digit of the target matching bank card number. If they are the same, the target matching bank card number is retained; if they are not the same, the target matching bank card number is discarded.

[0038] According to a privacy information leakage detection method provided by the present invention, the matching mode also includes an email matching mode, and when the email matching mode is determined, the method further includes:

[0039] According to the third preset filtering character information, the leaked information is filtered to eliminate the filtering characters and the remaining character string is segmented with the filtering characters as intervals to obtain the segmented character string;

[0040] The segmented string with a preset suffix string is obtained as a target string, and it is determined whether the number of characters before the suffix string in the target string is less than or equal to a fifth preset threshold value. If so, the target string is recorded as a target matching email account and the target string is concatenated with the previous segmented string to form a new target string. If not, the target string is discarded and another segmented string with a preset suffix string is obtained as a new target string, until all the segmented strings with preset suffix strings are traversed;

[0041] Compare the private information with all the target matching email accounts, obtain the email account that is the same as the target matching email account, and form the leaked email account information;

[0042] According to the leaked email account information, fourth leakage information is generated.

[0043] The present invention also provides a device, comprising:

[0044] Information input module, used to obtain leaked information and private information;

[0045] A function selection module, used to determine a matching mode;

[0046] A matching module, used to match character strings according to the leaked information and the own private information to generate leakage information;

[0047] The information input module, the function selection module and the matching module cooperate with each other to implement the above-mentioned method for detecting privacy information leakage.

[0048] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for detecting a privacy information leakage as described in any one of the above is implemented.

[0049] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, a privacy information leakage detection method as described in any one of the above is implemented.

[0050] The present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements any of the above-mentioned methods for detecting privacy information leakage.

[0051] The present invention provides a method, device and storage medium for detecting the leakage of private information, which have at least the following beneficial effects: from the leaked information and the private information, a character string is obtained with a first preset character length specification to form a first character string group and a second character string group, and the same character strings existing in both are obtained by comparison to form a third character string group. Then, according to each character string in the third character string group, according to the rule of merging character strings with continuous identical characters, the character string is expanded to obtain the maximum common sequence character string. In this way, by obtaining a character string based on the first preset character length as a unit, format restrictions can be avoided, and a key character string consistent with the own privacy information can be effectively extracted from complex leaked information, and the character string of the minimum length unit is used as an anchor point to expand the character string by overlapping consecutive identical characters. When the character string cannot be further merged, a maximum common sequence character string is formed, that is, the maximum common sequence character string existing in both the leaked information and the own privacy information is found, which can adapt to extracting information with varying lengths and complex structures such as addresses. At the same time, even in the case of partial information leakage, the leaked part of the information can be accurately discovered, and the leaked part of the information can be accurately and comprehensively discovered in the complex and changeable leaked information. According to the maximum common sequence character string, the first leakage situation information is generated, which is conducive to reducing the probability of misjudgment and improving the accuracy of judgment on privacy leakage situations. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0053] Figure 1 This is one of the flow charts of a method for detecting a privacy information leakage provided by the present invention;

[0054] Figure 2 This is a second flow chart of a method for detecting a privacy information leakage provided by the present invention;

[0055] Figure 3 This is a third flow chart of a method for detecting a privacy information leakage provided by the present invention;

[0056] Figure 4 This is a fourth flow chart of a method for detecting a privacy information leakage provided by the present invention;

[0057] Figure 5 This is a fifth flow chart of a method for detecting a privacy information leakage provided by the present invention;

[0058] Figure 6 This is a sixth flow chart of a method for detecting a privacy information leakage provided by the present invention;

[0059] Figure 7 This is the seventh flow chart of a method for detecting a privacy information leakage provided by the present invention;

[0060] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0062] Combine the following Figure 1-Figure 7 A method for detecting a privacy information leakage of the present invention is described, comprising:

[0063] S100: Obtaining leaked information and own private information;

[0064] S200: Acquire a first character string group of a first preset character length according to the leaked information;

[0065] S210: Acquire a second character string group of the first preset character length according to the own privacy information;

[0066] S220: Compare the first string group with the second string group to obtain a third string group, where the third string group includes the same strings in the first string group and the second string group;

[0067] S230: Obtain a maximum common sequence string according to the third string group, where the maximum common sequence string represents a longest string obtained by merging strings with consecutive identical characters in the third string group;

[0068] S240: Generate first leakage information according to the maximum common sequence character string.

[0069] From the leaked information and the private information, a character string is obtained with a specification of a first preset character length to form a first character string group and a second character string group, and the same character string existing in both is obtained by comparison to form a third character string group. Then, according to each character string in the third character string group, the character string is expanded to obtain the maximum common sequence character string according to the rule of merging character strings with continuous identical characters. In this way, the character string is obtained based on the first preset character length as a unit, which can avoid format restrictions, effectively extract key character strings consistent with the private information from the complex leaked information, and use the character string with the minimum length unit as an anchor point to expand the character string by overlapping continuous identical characters, and form the maximum common sequence character string when the character string cannot be further merged, that is, find the maximum common sequence character string existing in both the leaked information and the private information, which can adapt to the information with variable length and complex structure such as the extraction address, and even in the case of partial information leakage, the leaked part of the information can be accurately found, and the leaked part of the information can be accurately and comprehensively found in the complex and changeable leaked information. According to the maximum common sequence character string, the first leakage situation information is generated, which is conducive to reducing the probability of misjudgment and improving the accuracy of the judgment of privacy leakage.

[0070] It is understandable that different character strings in the third character string group may form different maximum common sequence character strings based on the standard extension of the existence of consecutive identical characters, that is, generate multiple maximum common sequence character strings. The first preset character length can be set according to actual application requirements.

[0071] refer to Figure 2 In some embodiments of a method for detecting a privacy information leakage of the present invention, the step S230 includes:

[0072] S231: Select a character string from the third character string group as a matching character string;

[0073] S232: Compare the matching string with other strings in the third string group, combine a string whose number of consecutive identical characters at the beginning or end is greater than or equal to a second preset character length with the matching string to form a new matching string, until there is no string in the third string group that can be combined with the matching string, and record the matching string as the maximum common sequence string;

[0074] S233: selecting another character string from the third character string group as the new matching character string until all the character strings in the third character string group are traversed;

[0075] The second preset character length is smaller than the first preset character length.

[0076] An initial matching string is selected from the third string group and compared with other strings in the third string group. When the number of consecutive identical characters at the beginning or end is greater than or equal to the second preset character length, the matching string is combined with the string that meets the conditions, specifically overlapping consecutive identical characters, and extending non-overlapping characters in the string to the matching string, thereby forming a new matching string, and then comparing it with other strings again until no string meets the combination condition, and the matching string forms the maximum common sequence string. A string that has never been used as the initial matching string is selected from the third string group as a new, initial matching string and the above process is repeated to obtain the maximum common sequence string until all strings in the third string group are traversed, that is, all strings have been selected as the initial matching string. In this way, all possible maximum common sequence strings in the third string group are obtained, which can comprehensively obtain the information that matches the leaked information and the private information, adapt to the information with complex structures such as the length change, avoid missing the matching information due to the change of the information format, and can also accurately match and extract the situation of partial information leakage, which is conducive to more accurate judgment of the privacy information leakage.

[0077] It should be emphasized that when there are multiple strings that can be combined with the matching string, the matching string is combined with each string that meets the conditions to generate a corresponding new matching string, that is, each string that meets the conditions corresponds to a new matching string, and then the new matching strings are combined in the next round, and each new matching string will eventually form a maximum common sequence string.

[0078] The first preset character length and the second preset character length can be set according to actual application requirements. The second preset character length is used to set the number of consecutive identical characters for matching. Naturally, the second preset character length needs to be smaller than the first preset character length. In some embodiments of the present invention, the first preset character length can be set to 6 characters, and the second preset character length can be set to 5 characters.

[0079] refer to Figure 2 In some embodiments of the method for detecting privacy information leakage of the present invention, after S233, the method further includes:

[0080] S234: According to all the maximum common sequence character strings, delete the repeated maximum common sequence character strings and keep one of them.

[0081] Since different initial matching strings are selected from the third string group, the maximum common sequence strings finally obtained may be the same, so the repeated maximum common sequence strings are deleted and only one is retained to reduce information redundancy, which is conducive to making the generated first leakage information more concise.

[0082] refer to Figure 3 In some embodiments of the method for detecting privacy information leakage of the present invention, before S200, the method further includes:

[0083] S110: Acquire matching type information, where the matching type information represents the type of information that needs to be matched;

[0084] S120: Determine a matching mode according to the matching type information;

[0085] Wherein, the matching mode includes a complex information matching mode, and when it is determined to be a complex information matching mode, S200 to S240 are executed.

[0086] When determining the leakage of private information, it can be determined for a certain type of information. Therefore, after obtaining the leaked information and the private information itself, the matching type information is obtained, and then the matching mode is determined. Different matching modes are used to determine the leakage of different types of information. Among them, the matching mode includes a complex information matching mode, which is used to determine the leakage of information with length changes and complex structures, that is, the process of obtaining the maximum common sequence string mentioned above. In this way, different types of information are processed using different matching modes, which is conducive to extracting the characteristics of different types of information and accurately judging the leakage of information.

[0087] refer to Figure 4 In some embodiments of the method for detecting leakage of private information of the present invention, the matching mode further includes a mobile phone number matching mode, and when the mobile phone number matching mode is determined, the method further includes:

[0088] S300: filtering the leaked information according to the first preset filtering character information to eliminate characters other than numbers and segmenting the numbers with the eliminated characters as intervals to obtain a first segmentation array;

[0089] S310: Discarding the first segmented array whose number of digits is greater than a first preset threshold;

[0090] S320: Based on the order of the first segmented arrays, the first first segmented array is selected as the first concatenated array; according to the number of digits of the first concatenated array, if it is greater than the first preset threshold, the first concatenated array is discarded and the next first segmented array is selected as the new first concatenated array; if it is less than the second preset threshold, the first concatenated array is concatenated with the next first segmented array to form a new first concatenated array; if it is equal to the preset target value, the first concatenated array is recorded to form a target matching number and the next first segmented array is selected as the new first concatenated array, until all the first segmented arrays are traversed;

[0091] S330: Compare the private information with all the target matching numbers, obtain the mobile phone number that is the same as the target matching number, and form the leaked mobile phone number information;

[0092] S340: Generate second leakage information according to the leaked mobile phone number information.

[0093] When it is necessary to determine the leakage of the mobile phone number, the mobile phone number matching mode is selected, the non-digital characters in the leaked information are eliminated, and the digital character string separated by the non-digital characters forms the first segmentation array, so that useless characters can be removed to reduce the amount of data processing and improve the processing efficiency. Since the length of the mobile phone number is known, it can be determined whether it is a mobile phone number according to the length of the first segmentation array. For the first segmentation array whose length is greater than the first preset threshold, it is determined that it is not a mobile phone number and is discarded. For the first segmentation array whose length is less than or equal to the first preset threshold, it may be divided by characters such as "-" due to the influence of the format, and splicing them together may form a telephone number. Therefore, according to the order of the first segmentation array, the first segmentation array is selected in sequence as the first splicing array, and for the first splicing array whose digits are less than the second preset threshold, it is spliced ​​with the first segmentation array after the order to form a new first splicing array; when the digits of the first splicing array after splicing are greater than the first preset threshold, the first segmentation array behind is discarded and selected as the new first splicing data; when the digits of the first splicing array are equal to the preset target value, that is, equal to the length of the telephone number, the first splicing array is recorded as the target matching number. Repeat the above process until all the first segmented data are traversed, and all target matching numbers that may be phone numbers are obtained, and then compared with the own privacy information. When there is a phone number consistent with the target matching number in the own privacy information, the phone number has been leaked. The leaked mobile phone number information is formed based on all the leaked phone numbers, and then the second leakage information is generated.

[0094] In some embodiments of the present invention, the first preset threshold value may be 13, that is, the first segmentation array and the first concatenation array whose digits are greater than 13 are considered not to be telephone numbers and are discarded. The second preset threshold value may be 12, that is, the first concatenation array whose digits are less than 12 are concatenated with the subsequent first segmentation array to form a new first concatenation array. The preset target value may be 11 and 13, that is, when the digits of the first concatenation array are equal to 11 or 13, it is considered to be a mobile phone number and recorded as a target matching number. In some embodiments of the present invention, for a telephone number with 13 digits, it may be verified whether the first two digits are 86, and if not, it is discarded.

[0095] It can be understood that the first concatenation array and the first segmentation array are concatenated by concatenating the numbers in the order in the information, such as concatenating 1234 and 5678 to obtain 12345678, and the above matching string is combined with the string with the same number of consecutive characters by combining the same consecutive characters, such as combining 123456 and 234567 to obtain 1234567. In this article, "concatenation" and "combination" related to data synthesis are different data processing processes, and the subsequent "concatenation" method is also used for bank card numbers and email accounts.

[0096] In some embodiments of the present invention, the first preset filtering character information is used to filter the leaked information to eliminate characters other than numbers and to split the numbers at intervals of the eliminated characters to obtain a first split array. Specifically, the characters to be filtered may be determined by regular matching, the filtered characters are replaced with spaces, multiple consecutive spaces are replaced with a single space, and the numeric characters are split based on the spaces to form multiple first split arrays.

[0097] refer to Figure 5 In some embodiments of the method for detecting leakage of private information of the present invention, the matching mode further includes a bank card number matching mode, and when the bank card number matching mode is determined, the method further includes:

[0098] S400: filtering the leaked information according to the second preset filtering character information to eliminate characters other than numbers and segmenting the numbers with the eliminated characters as intervals to obtain a second segmentation array;

[0099] S410: Discarding the second segmented array whose number of digits is greater than a third preset threshold;

[0100] S420: Based on the order of the second segmented arrays, the first second segmented array is selected as the second spliced ​​array; according to the number of digits of the second spliced ​​array, when it is greater than the third preset threshold, the second spliced ​​array is discarded and the next second segmented array is selected as the new second spliced ​​array; when it is less than the fourth preset threshold, the second spliced ​​array is spliced ​​with the next second segmented array to form a new second spliced ​​array; when it is within the target range, the second spliced ​​array is recorded to form a target matching bank card number and the second spliced ​​array is spliced ​​with the next second segmented array to form a new second spliced ​​array, until all the second segmented arrays are traversed;

[0101] S430: Compare the private information with all the target matching bank card numbers, obtain the bank card number that is the same as the target matching bank card number, and form leaked bank card number information;

[0102] S440: Generate third leakage information according to the bank card number information.

[0103] When it is necessary to determine the bank card number leakage, the bank card number matching mode is selected, the non-numeric characters in the leaked information are eliminated, and the digital string separated by the non-numeric characters forms the second segmentation array, so that useless character information can be removed to reduce the amount of data processing, which is conducive to improving processing efficiency. Since the length of the bank card number is within a certain range, it can be judged whether it is a bank card number based on the number of character bits in the second segmentation array. For the second segmentation array with a length greater than the third preset threshold, it is determined that it is not a bank card number and is discarded. For the second segmentation array with a length less than the third preset threshold, it may be divided by non-numeric characters such as "-" due to the format and other factors, and the splicing between them may form a bank card number. Therefore, according to the order of the second segmentation array, the second splicing array is selected in sequence, and for the second splicing array whose digits are less than the fourth preset threshold, it is spliced ​​with the second segmentation array after the order to form a new second splicing array; when the digits of the second splicing array are greater than the third preset threshold, it is considered not to be a bank card number and is discarded and the second segmentation array behind is selected as the new second splicing array; when the digits of the second segmentation array fall within the target range, it is considered to be a bank card number, and the record forms the target matching bank card number, and at the same time, the second segmentation data is further spliced ​​with the second segmentation array after the order to form a new second splicing array to search whether there is still a second splicing array within the target range. Repeat the above process until all the second segmentation arrays are traversed, all the target matching bank card numbers are found, and then the own privacy information is compared with the target matching bank card number. When there is a bank card number that is the same as the target matching bank card number in the own privacy information, it is considered that the bank card number is leaked, and the leaked bank card number information is formed according to all the leaked bank card numbers, and then the third leakage situation information is generated.

[0104] It should be emphasized that there is a difference between bank card numbers and mobile phone numbers: the length of a bank card number is within a certain range and is relatively not fixed. Therefore, when the number of digits in the second spliced ​​array falls within the target range, it is necessary to further splice it with the second segmented array after the sequence to fully find the second spliced ​​array that meets the corresponding length of the target range, and in this process, each second spliced ​​data that meets the target range conditions will be recorded to form a target matching bank card number.

[0105] In some embodiments of the present invention, the third preset threshold may be 19, that is, the second segmentation array and the second splicing array with a digit greater than 19 are considered not to be bank card numbers. The fourth preset threshold may be 16, that is, the second splicing array with a digit less than 16 may be spliced ​​with the subsequent second segmentation array to form a new second splicing array. The target range may be 16 to 19, and the digits of the second splicing array in the range of 16 to 19 will be recorded to form a target matching bank card number, and will be further spliced ​​with the subsequent second segmentation array until the digits are greater than 19 and are discarded.

[0106] refer to Figure 6 In some embodiments of the method for detecting privacy information leakage of the present invention, before S430, the method further includes:

[0107] S421: Perform verification calculation on the target matching bank card number to obtain a verification value;

[0108] S422: Compare the verification value with the last preset digits of the target matching bank card number. If they are the same, retain the target matching bank card number; if they are different, discard the target matching bank card number.

[0109] Since the bank card number has a check digit, that is, the result obtained after the numbers in the bank card number are processed, and compared with the check digit at the end of the bank card number, it can be known whether it is a correct bank card number. Based on this, the target matching bank card number is verified, and the target matching bank card number that does not meet the conditions is discarded, reducing the amount of data that is subsequently matched with the own private information, which is conducive to improving matching efficiency.

[0110] In some embodiments of the present invention, the verification calculation may be to multiply the odd digits in the first 18 digits by 2, leaving the even digits unchanged, summing the 18 digits and dividing by 10 to obtain the remainder as the verification value, and comparing the remainder with the 19th digit. If they are the same, the target matching bank card number is retained; if they are different, the target matching bank card number is discarded.

[0111] refer to Figure 7In some embodiments of a method for detecting a privacy information leakage of the present invention, the matching mode further includes an email matching mode. When the email matching mode is determined, the method further includes:

[0112] S500: According to the third preset filtering character information, the leaked information is filtered to eliminate the filtering characters and the remaining character string is divided with the filtering characters as intervals to obtain the divided character strings;

[0113] S510: Obtain the segmented string with a preset suffix string as the target string, determine whether the number of characters before the suffix string in the target string is less than or equal to a fifth preset threshold, if so, record the target string as the target matching email account and concatenate the target string with the previous segmented string to form a new target string, if not, discard the target string and obtain another segmented string with a preset suffix string as the new target string, until all the segmented strings with preset suffix strings are traversed;

[0114] S520: Compare the private information with all the target matching email accounts, obtain the email account that is the same as the target matching email account, and form leaked email account information;

[0115] S530: Generate fourth leakage information according to the leaked email account information.

[0116] When determining the leakage of an email account, an email matching mode is selected, and according to the third preset filtering character information, special characters other than "@" and "." are usually used as filtering characters, and the filtering characters are eliminated and a segmentation string is formed according to the character string separated by the target character. A segmentation string containing a preset suffix string, such as "@qq.com", "@gmail.com" or "@163.com", etc. is used as a target string. When the number of characters before the suffix string is less than or equal to the fifth preset threshold, the target string is recorded as a matching email account, and the target string is further concatenated with the segmentation string before the sequence to form a new target string; when the number of characters before the suffix string is greater than the fifth preset threshold, it is considered not to be an email account and is discarded, and another segmentation string with a preset suffix string is selected as a new target string. Repeat the above process until all segmented strings with preset suffix strings are traversed, that is, all segmented strings with preset suffix strings have been selected as target strings, so as to obtain all target matching email accounts, and then compare the own privacy information with the target matching email account. When there is an email account that is the same as the target matching email account in the own privacy information, it is considered that the email account has been leaked, and the leaked email account information is formed based on all the leaked email accounts, and then the fourth leakage situation information is generated.

[0117] In some embodiments of the present invention, the fifth preset threshold may be 18, that is, when the number of characters before the preset suffix string is greater than 18, the target string is discarded, and when it is less than or equal to 18, the target string and the new target string formed by each concatenation are recorded to form a target matching email account. The fifth preset threshold may also be determined based on the longest email account in the own privacy information.

[0118] It should be noted that the first leakage information, the second leakage information, the third leakage information and the fourth leakage information may be substantially the same information, that is, one leakage information includes information on complex information leakage, telephone number leakage, bank card number leakage and email account leakage, or may include a combination of the four, depending on the matching type information, that is, the type of information that needs to be matched. The generated leakage information corresponds to the matching type information and the matching pattern.

[0119] The present invention also provides a device, comprising:

[0120] Information input module, used to obtain leaked information and private information;

[0121] A function selection module, used to determine a matching mode;

[0122] A matching module, used to match character strings according to the leaked information and the own private information to generate leakage information;

[0123] The information input module, the function selection module and the matching module cooperate with each other to implement the above-mentioned method for detecting privacy information leakage.

[0124] Among them, the matching module may include a complex information matching module, a mobile phone number matching module, a bank card number matching module and an email account matching module. The complex information matching module is used to obtain the maximum common sequence string and generate the first leakage information; the mobile phone number matching module is used to obtain the leaked mobile phone number information and generate the second leakage information; the bank card number matching module is used to obtain the leaked bank card number information and generate the third leakage information; the email account matching module is used to obtain the leaked email account information and generate the fourth leakage information.

[0125] A result display module may also be included to display leakage information.

[0126] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the above-mentioned method for detecting a privacy information leakage.

[0127] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0128] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute a privacy information leakage detection method provided by the above methods.

[0129] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute a privacy information leakage detection method provided by the above methods.

[0130] In the description of the present invention, it should be understood that 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 technical features indicated. Thus, a feature defined as "first" or "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.

[0131] 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, unless they are contradictory.

[0132] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for detecting privacy information leakage, It is characterized in that include: Obtain leaked information and private information; Acquire a first character string group of a first preset character length according to the leaked information; According to the private information, obtaining a second character string group of the first preset character length; Compare the first string group with the second string group to obtain a third string group, wherein the third string group includes the same strings in the first string group and the second string group; According to the third character string group, a maximum common sequence character string is obtained, where the maximum common sequence character string represents a longest character string obtained by merging character strings having consecutive identical characters in the third character string group; First leakage information is generated according to the maximum common sequence character string.

2. A method for detecting privacy information leakage according to claim 1, It is characterized in that The step of obtaining a maximum common sequence string according to the third string group includes: Selecting a character string from the third character string group as a matching character string; Compare the matching string with other strings in the third string group, combine a string whose number of consecutive identical characters at the beginning or end is greater than or equal to a second preset character length with the matching string to form a new matching string, until there is no string in the third string group that can be combined with the matching string, and record the matching string as the maximum common sequence string; Selecting another string from the third string group as the new matching string until all strings in the third string group are traversed; The second preset character length is smaller than the first preset character length.

3. A method for detecting privacy information leakage according to claim 2, It is characterized in that After selecting another string from the third string group as the new matching string and traversing all the strings in the third string group, the method further includes: According to all the maximum common sequence character strings, repeated maximum common sequence character strings are deleted and one of them is retained.

4. A method for detecting privacy information leakage according to claim 1, It is characterized in that Before obtaining a first character string group of a first preset character length according to the leaked information, the method further includes: Acquire matching type information, where the matching type information represents the type of information that needs to be matched; Determine a matching mode according to the matching type information; Wherein, the matching mode includes a complex information matching mode. When it is determined to be a complex information matching mode, the step of obtaining a first character string group of a first preset character length according to the leaked information is executed.

5. A method for detecting privacy information leakage according to claim 4, It is characterized in that The matching mode also includes a mobile phone number matching mode, and when the mobile phone number matching mode is determined, it also includes: According to the first preset filtering character information, the leaked information is filtered to eliminate characters other than numbers and the numbers are segmented with the eliminated characters as intervals to obtain a first segmentation array; Discarding the first segmented array whose number of digits is greater than a first preset threshold; Based on the order of the first segmented arrays, the first first segmented array is selected as the first concatenated array; according to the number of digits of the first concatenated array, when it is greater than the first preset threshold, the first concatenated array is discarded and the next first segmented array is selected as the new first concatenated array; when it is less than the second preset threshold, the first concatenated array is concatenated with the next first segmented array to form a new first concatenated array; when it is equal to the preset target value, the first concatenated array is recorded to form a target matching number and the next first segmented array is selected as the new first concatenated array, until all the first segmented arrays are traversed; Compare the private information with all the target matching numbers, obtain the mobile phone number that is the same as the target matching number, and form the leaked mobile phone number information; Second leakage information is generated according to the leaked mobile phone number information.

6. A method for detecting privacy information leakage according to claim 4, It is characterized in that The matching mode also includes a bank card number matching mode, and when the bank card number matching mode is determined, it also includes: According to the second preset filtering character information, the leaked information is filtered to eliminate characters other than numbers and the numbers are segmented with the eliminated characters as intervals to obtain a second segmentation array; Discarding the second segmented array whose number of digits is greater than a third preset threshold; Based on the order of the second segmented arrays, the first second segmented array is selected as the second spliced ​​array; according to the number of digits of the second spliced ​​array, when it is greater than the third preset threshold, the second spliced ​​array is discarded and the next second segmented array is selected as the new second spliced ​​array; when it is less than the fourth preset threshold, the second spliced ​​array is spliced ​​with the next second segmented array to form a new second spliced ​​array; when it is within the target range, the second spliced ​​array is recorded to form a target matching bank card number and the second spliced ​​array is spliced ​​with the next second segmented array to form a new second spliced ​​array, until all the second segmented arrays are traversed; Compare the private information with all the target matching bank card numbers, obtain the bank card number that is the same as the target matching bank card number, and form leaked bank card number information; According to the leaked bank card number information, third leakage information is generated.

7. A method for detecting privacy information leakage according to claim 6, It is characterized in that Before comparing the private information with all the target matching bank card numbers to obtain the bank card number that is the same as the target matching bank card number to form leaked bank card number information, the method further includes: Perform verification calculation on the target matching bank card number to obtain a verification value; The verification value is compared with the last preset digit of the target matching bank card number. If they are the same, the target matching bank card number is retained; if they are not the same, the target matching bank card number is discarded.

8. A method for detecting privacy information leakage according to claim 4, It is characterized in that The matching mode also includes a mailbox matching mode. When the mailbox matching mode is determined, it also includes: According to the third preset filtering character information, the leaked information is filtered to eliminate the filtering characters and the remaining character string is segmented with the filtering characters as intervals to obtain the segmented character string; The segmented string with a preset suffix string is obtained as a target string, and it is determined whether the number of characters before the suffix string in the target string is less than or equal to a fifth preset threshold value. If so, the target string is recorded as a target matching email account and the target string is concatenated with the previous segmented string to form a new target string. If not, the target string is discarded and another segmented string with a preset suffix string is obtained as a new target string, until all the segmented strings with preset suffix strings are traversed; Compare the private information with all the target matching email accounts, obtain the email account that is the same as the target matching email account, and form the leaked email account information; According to the leaked email account information, fourth leakage information is generated.

9. A device, It is characterized in that include: Information input module, used to obtain leaked information and private information; A function selection module, used to determine a matching mode; A matching module, used to match character strings according to the leaked information and the own private information to generate leakage information; The information input module, the function selection module and the matching module cooperate with each other to implement a privacy information leakage detection method as described in any one of claims 1 to 8.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, a method for detecting privacy information leakage as described in any one of claims 1 to 8 is implemented.

11. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, a method for detecting privacy information leakage as described in any one of claims 1 to 8 is implemented.

12. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, a method for detecting privacy information leakage as described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Method for obtaining longest common substring of alphabetic strings

    CN102222093A

  • Keyword extraction method and system for sensitive data leakage detection

    CN111753547A

  • Private data identification method, device and equipment and readable medium

    CN111783126A

  • Character string detection method and device

    CN114329105A

  • Sensitive information detection method and device and related equipment

    CN116521954A