A method and server for obtaining information security level

By using PSI and PIR technology in secure multi-party computing scenarios to evaluate the degree of information security, the problem of insufficient information security assessment in the existing technology is solved, and accurate assessment of the degree of information security and effective protection of data privacy are achieved.

CN117728965BActive Publication Date: 2024-10-15HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310803608.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-10-15
Estimated Expiration
2043-06-30

AI Technical Summary

Technical Problem

Existing technologies lack assessment of the degree of information security in secure multi-party computing scenarios. They mainly focus on communication overhead, delay and security, but fail to effectively assess the degree of information security.

Method used

Provide a method and server that uses privacy set intersection (PSI) and retroactive query (PIR) technology to evaluate the security level of data information on the query request side, divide the data set using a preset method, calculate the average data volume and difference, and obtain Information security level value and deliver it to relevant devices in order to select the appropriate query service.

Benefits of technology

It achieves an accurate assessment of the degree of information security, improves the rationality of information security protection and the selectivity of query services, and ensures the privacy protection of data in the multi-party calculation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117728965B_ABST
    Figure CN117728965B_ABST
Patent Text Reader

Abstract

A method and server for obtaining information security level, relating to the field of information security technology. The server obtains first indication information, and the first indication information is used to indicate whether the electronic device returns an intersection result to the network device. If the first indication information indicates to return the intersection result, the server obtains the first average data volume of each group of business data in multiple groups of data and the second average data volume of each group of business data in the second data set, calculates the difference between the first average data volume and the second average data volume, and obtains a first degree value, which is positively correlated with the minimum value, average value or weighted sum of the first average data volume and the difference. If the first indication information indicates not to return the intersection result, the server obtains the second average data volume and obtains a second degree value, which is positively correlated with the second average data volume. In this way, the information security level of the data requested by the network device during the query process can be accurately evaluated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to information security technology, and more particularly to a method and a server for obtaining the level of information security. Background Art

[0002] By adopting secure multi-party computing technical solutions such as Private Set Intersection (PSI) and Private Information Retrivel (PIR), privacy data can be protected during the data query process.

[0003] At the same time, in the actual application of secure multi-party computing scenarios, it is necessary to evaluate the communication overhead, latency, security, and privacy protection of secure multi-party computing when using different parameters, and obtain evaluation results. Then, based on the evaluation results, appropriate parameters are selected for secure multi-party computing.

[0004] However, in the existing technology, the communication overhead, latency, and security of secure multi-party computing are mainly evaluated, but there is still a lack of evaluation of the degree of information security. Summary of the invention

[0005] The present application provides a method and a server for obtaining information security level, which can accurately evaluate the information security level of data on the query request end when using the PSI or PIR solution.

[0006] In a first aspect, the present application provides a method for obtaining information security level, which is applied to a server and is used to obtain the information security level of first data in a process in which an electronic device (i.e., a query request, such as a mobile phone in the following text) requests a network device (i.e., a queried end, such as a cloud device in the following text) to query whether the first data is included in a first data set of a first category of business of the network device. The electronic device and the network device use a preset method (i.e., a multi-party secure computing method) to implement the query of the first data. The preset method includes a privacy set intersection PSI or a privacy information retrieval PIR, and the business data in the first data set is divided into multiple groups.

[0007] Specifically, the server obtains first indication information, and the first indication information is used to indicate whether the electronic device returns the intersection result to the network device. If the query result of the first data is yes, the intersection result is the first value; if the query result of the first data is no, the intersection result is the second value. If the first indication information indicates to return the intersection result, the server obtains the first average data volume of each group of business data in the multiple groups of data (such as n / 2 in the following text). λ ) and a second average data volume of each group of service data in a second data set (the second data set is related to the first type of service, and the second data set includes the first data set) (hereinafter referred to as N / 2λ ), calculate the difference between the first average data volume and the second average data volume (as k2 in the following text), and obtain a first degree value (as k3 in the following text); wherein the first degree value is positively correlated with the minimum value, average value or weighted sum of the first average data volume and the difference. If the first indication information indicates that no intersection result is returned, the server obtains the second average data volume and obtains a second degree value; wherein the second degree value is positively correlated with the second average data volume.

[0008] Exemplarily, the first category of services includes any of the following: a service for querying numbers with security risks (as shown in Scenario 2 below), a service for querying contact numbers (as shown in Scenario 1 below), and a service for querying passwords (as shown in Scenario 3 below).

[0009] As shown in Scenario 1 below, the first type of service is a contact number query service, the first data is the contact number, the first data set is the registration number set, and the second data set is the mobile phone number set.

[0010] As shown in Scenario 2 below, the first type of service is a query service for numbers with security risks, then the first data is the received incoming call number, the first data set is a risk number set, and the second data set is a mobile phone number set.

[0011] As shown in Scenario 3 below, the first type of business is a password query business, then the first data is the password in the mobile phone, the first data set is the combination of passwords in the cloud device, and the second data set is the combination of all passwords.

[0012] It is understandable that in the scenario where the electronic device and the network device implement the query through PSI or PIR, the security of the queried first data can be protected to avoid being leaked. Under this premise, the present application scheme is adopted to evaluate the information security level of the first data in the scenario where the electronic device and the network device implement the query through PSI or PIR.

[0013] In a possible design of the first aspect, after obtaining the first degree value, the server sends the first degree value to the network device; or, the server sends the first degree value to the electronic device. After obtaining the second degree value, the server sends the second degree value to the network device; or, the server sends the second degree value to the electronic device.

[0014] By adopting this design, the server sends the acquired information security level to the electronic device or network device, which can facilitate the electronic device or network device to clarify the information security level of the query service of the first category of business. For example, after obtaining the information security level, the network device can provide the information security level to the electronic device when the electronic device requests to access the query service of the first category of business provided by the network device, so that the electronic device can choose whether to access the query service of the first category of business based on the information security level.

[0015] In a possible design of the first aspect, the first degree value is positively correlated with a weighted sum of the first average data volume and the difference value, wherein the ratio of the weight of the first average data volume to the weight of the difference value is: the ratio of the data volume in the first data set to the difference between the data volume in the second data set and the data volume in the first data set.

[0016] In a possible design of the first aspect, the first degree value is positively correlated with the weighted sum of the first average data volume and the difference. In addition, the method further includes: the server obtains the first data from the network device with a query result of yes for a first time, and obtains the first data with a query result of no for a second time. The ratio of the weight of the first average data volume to the weight of the difference is: the ratio of the first time to the difference between the first time and the second time.

[0017] It can be understood that if the query result is yes, the intersection result is the first value. It can be seen that the possibility of the query result being yes is the possibility of the intersection result being the first value. If the query result is no, the intersection result is the second value. It can be seen that the possibility of the query result being no is the possibility of the intersection result being the second value. Therefore, by adopting the above two design methods, on the basis of comprehensively considering the information security levels corresponding to the intersection results being the first value and the second value respectively, the possibility of the intersection results being the first value and the second value can be further considered, thereby improving the rationality of determining the information security level.

[0018] In a possible design of the first aspect, the business data in the first data set and the business data in the second data set are divided into multiple groups based on the values ​​of preset bits (such as the first λ bits) in the hash value of the business data; wherein, if the values ​​of the preset bits of the business data are the same, they are divided into the same group.

[0019] In a second aspect, the present application provides a server, comprising a memory and a processor, wherein the memory and the processor are coupled; wherein the memory stores computer program code, and the computer program code comprises computer instructions; when the computer instructions are executed by the processor, the server executes the method in the above-mentioned first aspect and any possible design thereof.

[0020] In a third aspect, the present application provides a communication system, the communication system comprising the server, electronic device and network device of the second aspect, the network device providing a query service for the first type of business. The server is used to send the information security level to the network device after obtaining the information security level. The server can obtain the information security level by executing the method in the first aspect and any possible design thereof. The electronic device is used to, upon receiving an access event (such as a user clicking the following Figure 2 The "yes" event in the interface 201 shown, or the user clicks Figure 4 After the event of button 4021 in the interface 401 shown in the figure is clicked), an access request is sent to the network device, and the access request is used to request access to the query service of the first type of business. The network device is used to send the information security level to the electronic device after receiving the access request. The electronic device is also used to display the information security level after receiving the information security level. For example, the network device can carry the information security level in the service agreement of the query service of the first type of business, and then, when the electronic device displays the service agreement document, the information security level can be displayed.

[0021] In a fourth aspect, the present application provides a computer-readable storage medium, comprising computer instructions; when the computer instructions are executed on a server, the server executes the method in the first aspect and any possible design thereof.

[0022] In a fifth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the first aspect and any possible design thereof.

[0023] It can be understood that the beneficial effects that can be achieved by the server of the second aspect, the communication system of the third aspect, the computer-readable storage medium of the fourth aspect, and the computer program product of the fifth aspect provided above can be referred to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is the principle diagram of PSI;

[0025] Figure 2 It is one of the applicable scene graphs of PSI;

[0026] Figure 3 This is the second applicable scenario diagram of PSI;

[0027] Figure 4 This is the third applicable scenario diagram of PSI;

[0028] Figure 5 This is a schematic diagram of the principle of PIR;

[0029] Figure 6 It is one of the applicable scene graphs of PIR;

[0030] Figure 7 A schematic diagram of the stages of a query method provided in an embodiment of the present application;

[0031] Figure 8 A flowchart of stage 1 of a query method provided in an embodiment of the present application;

[0032] Fig. 9 A flowchart of stage 2 of a query method provided in an embodiment of the present application;

[0033] Fig.10 A flowchart of stage 3 of a query method provided in an embodiment of the present application;

[0034] Fig.11 A flowchart of stage 4 of a query method provided in an embodiment of the present application;

[0035] Fig.12 A schematic diagram of a situation of obtaining security information provided in an embodiment of the present application;

[0036] Fig.13 A schematic diagram of another situation of obtaining security information provided in an embodiment of the present application;

[0037] Fig.14 A schematic diagram of another situation of obtaining security information provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The technical solutions in the embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "a kind of", "", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0039] References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise specified. "First" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0040] In the embodiments of the present application, the words "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0041] The method for obtaining information security provided in the embodiment of the present application can evaluate the information security of the data of the query requesting end in the PSI or PIR query between the query requesting end and the queried end.

[0042] Before introducing the embodiments of the present application in detail, PSI, PIR and their typical application scenarios are first introduced:

[0043] 1. Private Set Intersection (PSI).

[0044] PSI is a secure multi-party computing (SMPC) technology. With PSI, the query requester can obtain the intersection of the data held by both parties (such as the query requester and the queried party) without leaking the data outside the intersection of the data held by both parties, thereby achieving privacy protection.

[0045] The query requester is Figure 1 The mobile phone shown is the one being queried. Figure 1Taking the cloud device shown in the figure as an example, the mobile phone has data set A, and the cloud device has data set B. Using PSI, the mobile phone sends a query request to the cloud device to query the intersection A∩B of data sets A and B. That is, to query whether data set B includes each element in data set A. The cloud device can return a query response to the mobile phone so that the mobile phone obtains the intersection A∩B. However, in this process, the mobile phone will not obtain data in data set B other than A∩B, and the cloud device will not obtain data set A.

[0046] The following are some typical application scenarios of PSI:

[0047] Scenario 1: Friend discovery scenario. That is, discovering whether a contact in the address book has an account registered in a certain social application (for example, denoted as social application A).

[0048] In scenario 1, data set A includes the numbers of contacts in the mobile phone address book (referred to as contact numbers), and data set B includes the numbers of registered users of social application A in the cloud device (referred to as registered numbers).

[0049] When a mobile phone installs and runs social application A for the first time, it can display Figure 2 Interface 201 is shown. Interface 201 includes a prompt text "Do you allow to find contact friends?" to prompt the user to find out whether the contact number is a registered number. In addition, interface 201 also includes two options "Yes" and "No". In response to the user's selection operation of the "Yes" option in interface 201, the mobile phone can send a query request to find contact friends to the cloud device to query whether the contact number is a registered number. After the query is completed, the mobile phone can display Figure 2 Interface 202 is shown. Interface 202 includes contacts who have registered accounts in social application A, such as Tom, Alice, etc. Of course, interface 202 may also include information such as accounts of these contacts in social application A (such as I love eating fish, Happy every day, etc.), avatars, etc.

[0050] When running social application A for a non-first time, in response to an operation of discovering address book friends (such as the user clicking a button to discover address book friends in the settings of social application A), the mobile phone may also send a query request to discover address book friends to the cloud device, and display the query results after obtaining them. No further details are given here.

[0051] In the above scenario 1, the query request sent by the mobile phone to the cloud device usually needs to carry the contact number. In this way, the cloud device can find out whether each contact in the address book has an account registered in social application A by comparing the contact number with the registration number. For example, the contact number includes "12345678910" and the registration number includes "12345678910". The cloud device can determine that the contact number "12345678910" has an account registered in social application A. However, the contact numbers included in the address book in the mobile phone are private information. If the mobile phone sends them directly to the cloud device, there will be a risk of privacy leakage.

[0052] In scenario 1, the private information in the mobile phone is the contact number, and the private information in the cloud device is the registration number. In scenario 1, using PSI can prevent the contact number from being leaked to the cloud device while realizing friend discovery. In addition, it can also prevent the registration number in the cloud device other than the intersection of the contact number and the registration number from being leaked to the mobile phone.

[0053] Scenario 2: Anti-fraud cloud check scenario. That is, check whether the unfamiliar call is a phone number with security risks (referred to as risk number).

[0054] In scenario 2, dataset A includes the caller IDs of unknown calls received by the mobile phone, and dataset B includes risky numbers recorded in the cloud device.

[0055] After receiving an unknown call, the mobile phone can send a risk number query request to the cloud device to check whether the unknown call is a risk number. After finding that the unknown call is a risk number, the mobile phone can display Figure 3 The interface 301 of the call in progress is shown. The interface 301 includes a prompt text "Call with security risk" to prompt that the unfamiliar call is a risky number.

[0056] In the above scenario 2, the query request sent by the mobile phone to the cloud device usually needs to carry the caller ID of the unknown call. In this way, the cloud device can find out whether the caller ID of the unknown call is a risky number by comparing the caller ID with the risky number recorded in the anti-fraud number database of the cloud device. For example, the caller ID of the unknown call is "10987654321", and the number "10987654321" is also recorded in the anti-fraud number database of the cloud device. The cloud device can then determine that the caller ID is a risky number. However, the caller ID received by the mobile phone is private information, and there is a risk of privacy leakage when the mobile phone sends it directly to the cloud device.

[0057] In scenario 2, the private information in the mobile phone is the incoming call number, and the private information in the cloud device is the risk number in the anti-fraud number database. In scenario 2, PSI is used to prevent the incoming call number from being leaked to the cloud device while implementing anti-fraud. In addition, it can also prevent the risk number in the cloud device, except for the intersection of the incoming call number and the anti-fraud number database, from being leaked to the mobile phone.

[0058] Scenario 3: Leaked password check scenario. That is, check whether the password is leaked.

[0059] In scenario 3, dataset A includes passwords in the mobile phone, and dataset B includes passwords recorded in the cloud device.

[0060] After detecting a password check event, the mobile phone can send a query request for leaked passwords to the cloud device to check whether the password in the mobile phone has been leaked. For example, the mobile phone can display Figure 4 Interface 401 is shown. Interface 401 is a password setting interface, which is used for password management in the mobile phone. Interface 401 includes a setting item 402 for leaked password check. For example, setting item 402 includes the text "Check for leaked passwords" to indicate that setting item 402 is used for leaked password checking; and setting item 402 also includes the text "Your password can be monitored safely and you will be reminded when the password is leaked" to introduce the function of leaked password checking. In addition, setting item 402 also includes button 4021, and button 4021 is in the off state. The password check event may be a user clicking operation on button 4021. In response to the user clicking operation on button 4021, the function of leaked password checking can be turned on. After turning on the check, the mobile phone can send a query request for the leaked password to the cloud device. Alternatively, after the leaked password check function is turned on, the mobile phone can periodically send a query request for the leaked password to the cloud device. After the query is completed, the mobile phone can display Figure 4 The interface 403 shown still includes the setting item 402, but the button 4021 in the setting item 402 is turned on, indicating that the function of checking for leaked passwords is turned on. In addition, the interface 403 includes a prompt message that the password of application 1 has been leaked, which is used to prompt that the password of application 1 has been leaked and there is a security risk.

[0061] In scenario 3, the private information in the mobile phone is the password for applications or unlocking, and the private information in the cloud device is the password collected from various channels. In scenario 3, PSI is used to prevent the password in the mobile phone from being leaked to the cloud device while realizing the leaked password query. In addition, it can also prevent the password in the cloud device from being leaked to the mobile phone except for the intersection of the password in the mobile phone and the password in the cloud device.

[0062] 2. Private Information Retrieval (PIR)

[0063] PIR is also a SMPC technology, which can also be called anonymous query. With PIR, during the condition-value query process, the query can be completed without obtaining the query condition and the query result corresponding to the query condition (i.e., the value corresponding to the query condition) at the queried end. In this way, when the condition and / or the value corresponding to the condition involves privacy, it will not be disclosed to the queried end.

[0064] The query requester is Figure 5 The mobile phone shown is the one being queried. Figure 5 Taking the cloud device shown as an example, the cloud device includes a condition-value table. Using PIR, after the mobile phone sends a query request to the cloud device to query the value corresponding to a certain condition, the cloud device can return a query response to the mobile phone so that the mobile phone can obtain the value corresponding to the condition. However, in this process, the cloud device cannot obtain the condition and the value corresponding to the condition.

[0065] The following are some typical application scenarios of PIR:

[0066] Scenario 4: Business function discovery scenario, that is, discovering business functions activated by friends in social application A.

[0067] The social application A may be any application installed in the mobile phone, and the service function includes one or more functions supported by the social application A. The service functions include a video call function, a voice call function, a text message sending and receiving function, and a file transfer function.

[0068] After the mobile phone uses the above scenario 1 to find contacts with accounts registered in social application A (referred to as target contacts), it can further find the service functions activated by these target contacts in social application A. For example, after querying the target contacts, the mobile phone can display Figure 6 Interface 601 shown in the figure includes contacts who have registered accounts in social application A, such as Tom, Alice, etc. After that, the mobile phone can send a query request for discovering service functions to the cloud device to query the service functions activated by the target contact in social application A. After the query is completed, the mobile phone can display Figure 6 Interface 602 is shown. Interface 602 includes the service functions activated by the target contact in social application A. For example, the service functions activated by the target contact Tom include video call function, voice call function and SMS sending function, and the service functions activated by the target contact Alice include voice call function, SMS sending function and file sending and receiving function.

[0069] In the above scenario 4, the query request for the service function sent by the mobile phone to the cloud device usually needs to carry the contact number of the target contact. At the same time, the cloud device records the corresponding relationship between the registration number and the activation status of its service function. In this way, by comparing the contact number with the registration number recorded in the cloud device, the service function activated by the target contact in social application A can be found.

[0070] In scenario 4, the query condition is the contact number and the value is the activation status of the service function. The mobile phone does not want the cloud device to obtain the contact number and the activation status of the queried service function, which meets the applicable scenario of PIR. Using PIR can prevent the cloud device from obtaining the contact number and the activation status of the service function corresponding to the contact number.

[0071] In practice, in scenario 4, the use of PSI can also prevent numbers other than the intersection of contact numbers and registration numbers in the cloud device and the activation status of their service functions from being leaked to the mobile phone.

[0072] Scenario 5: disease retrieval, that is, querying the treatment plan for the disease.

[0073] After detecting that the user is searching for treatment plans for a certain disease, the mobile phone can send a query request for the treatment plan to the cloud device to query the treatment plan for the disease. After the query is completed, the mobile phone can display the treatment plan.

[0074] In the above scenario 5, the query request for treatment plan sent by the mobile phone to the cloud device usually requires the name of the disease. At the same time, the cloud device records the correspondence between the disease name and the treatment plan. In this way, by comparing the disease name, the treatment plan corresponding to the disease name can be found.

[0075] In the above scenario 5, the query condition is the disease name and the value is the treatment plan. The mobile phone does not want the cloud device to obtain the disease name and the queried treatment plan, which meets the applicable scenario of PIR. Using PIR can prevent the cloud device from obtaining the disease name and treatment plan queried by the mobile phone.

[0076] In practice, in scenario 5, the use of PSI can also prevent the disease names and treatment plans other than the intersection of the disease name queried by the mobile phone in the cloud device and the disease name in the condition-value from being leaked to the mobile phone.

[0077] That is to say, in the scenario of using PIR query, PSI can also be combined to further prevent the data in the cloud device except the intersection of the query condition and the condition-value table from being leaked to the mobile phone.

[0078] The method for obtaining the degree of information security provided by the embodiment of the present application can be used to evaluate the degree of information security of the above-mentioned PSI and PIR. Specifically, the degree of information security of the data queried by the queried end can be evaluated based on the grouping parameters, the number of data included in the data set of the queried end, and the processing method of the query request end after obtaining the query result. Among them, the grouping parameters are used by the queried end to group the ciphertexts of each data in its data set, so as to realize that after receiving the request of the query request end, only the ciphertext in the target group is fed back to the query request end. The processing method includes: returning the intersection result corresponding to the query result and not returning the intersection result corresponding to the query result. The intersection result includes a first value (such as yes, 1, etc.) or a second value (such as no, 0, etc.), the first value indicates that the query result is the data included in the queried end's data set, and the second value indicates that the query result is the data not included in the queried end's data set.

[0079] By adopting the embodiments of the present application, the information security level of the data queried by the queried end can be evaluated for business scenarios of various processing methods after obtaining the query results.

[0080] The method for obtaining the information security level provided in the embodiment of the present application can be executed by the queried end that provides the query service, or can be executed by other computing devices other than the queried end (such as other cloud devices, servers, etc.), and the embodiment of the present application does not specifically limit this. The following mainly takes the server as the execution subject as an example to illustrate the embodiment of the present application.

[0081] For example, the query requester is a mobile phone and the queried end is a cloud device. Figure 7 The process of implementing privacy query using PSI includes four stages. The following will explain these four stages respectively, and use this process to clarify the parameters required for evaluating the information security level of the embodiment of the present application: that is, the grouping parameters, the number of data included in the data set of the queried end, and the processing method of the query request end after obtaining the query result.

[0082] Phase 1, cloud device data initialization phase. In Phase 1, the cloud device needs to encrypt n pieces of private information y in the cloud device to obtain a data set Hn(y)b. Where n is an integer greater than or equal to 1. The private information y refers to information that the cloud device cannot disclose to the mobile phone, such as the registration number in Scenario 1, the risk number in Scenario 2, and the password recorded by the cloud device in Scenario 3.

[0083] In some embodiments, the cloud device can complete data initialization offline to avoid initialization operations during the query process and further reduce query latency.

[0084] Phase 2, mobile phone request phase. In phase 2, in response to the query event, the mobile phone needs to encrypt m pieces of private information x in the mobile phone and send a query request to the cloud device. Where m is an integer greater than or equal to 1. The private information x refers to information that the mobile phone cannot disclose to the cloud device, such as the contact number in scenario 1, the incoming call number in scenario 2, and the password in the mobile phone in scenario 3.

[0085] Phase 3: Cloud device query response phase: In phase 3, the cloud device can respond to the query request from the mobile phone and send the query response to the mobile phone.

[0086] Phase 4, mobile phone comparison phase. In phase 4, the mobile phone obtains the query result based on the query response sent by the cloud device.

[0087] In practice, the amount of private information y is very large, that is, n is very large. For example, in the above scenario 1, the private information y is a registration number, and the number of registered users of the application is huge, so n is also huge. In the above scenario 2, the private information y is a risk number, and cloud devices usually collect a large number of risk numbers, so n is also huge. Correspondingly, the data set Hn(y) encrypted in stage 1 is b The amount of ciphertext is also very large.

[0088] In practice, for the above data set Hn(y) b When the number of ciphertexts is large, we can usually further transform the dataset Hn(y) in stage 1. b The large amount of ciphertext included is divided into multiple buckets (which can also be understood as groups). Later in stage 3, when the cloud device sends the ciphertext to the mobile phone, it can only send the ciphertext in the required bucket (which can be called the target bucket), thereby reducing the communication overhead.

[0089] The cloud device can analyze the dataset Hn(y) based on the characteristic information of the privacy information y. b The large amount of ciphertext included is divided into buckets.

[0090] The characteristic information of the private information y may be part of the private information y. For example, the private information y is a mobile phone number (such as a registration number or a risk number), and the characteristic information of the private information y may be the value of some digits of the mobile phone number. For example, if the mobile phone number is "12345678910", its characteristic information may be "12", "1234", "910", "4567", etc.

[0091] Alternatively, the characteristic information of the private information y may be the value of some bits in a preset ciphertext obtained by encrypting the private information y using a preset encryption algorithm. Exemplarily, the preset encryption algorithm may be a hash algorithm (HA), such as message-digest algorithm 4 (MD4), message-digest algorithm 5 (MD5), secure hash algorithm 256 (SHA-256), etc. Exemplarily, the preset encryption algorithm may be an Advanced Encryption Standard (AES) algorithm. After the preset ciphertext is obtained by encrypting the private information y using the above preset encryption algorithm, the cloud device may use the value of some of the characteristics in the ciphertext as the characteristic information of the private information y. Among them, some bits may be the first λ bits from high to low, the last λ bits from low to high, etc. in the ciphertext.

[0092] The following mainly uses the characteristic information of private information y as the value of the first λ bits in the hash value of private information y (commonly known as the hash value prefix) to illustrate. That is, the ciphertexts divided into a bucket are the ciphertexts of private information y with the same hash value prefix.

[0093] See also Figure 8 In phase 1, the cloud device can complete the following steps:

[0094] S801. The cloud device calculates hash values ​​for n pieces of private information y respectively to obtain n hash values.

[0095] Taking n pieces of private information y as risk numbers y1, y2, y3...yn as an example, the mobile phone calculates the hash values ​​of n risk numbers and can obtain the hash values ​​0002E11A0C0E...51A1518, 000341AA6176...C300081, 000C497DE639...4BB1298,..., 0002DF235902...D6B71BD in sequence.

[0096] S802, the cloud device encrypts n pieces of private information y using key b to obtain a data set Hn(y) b .

[0097] In a specific implementation, the cloud device may encrypt the n pieces of private information y itself to achieve encryption of the n pieces of private information y. Figure 8This implementation is not shown in the figure. For example, the cloud device can encrypt the risk number itself. It should be noted that if this implementation is adopted, there is no strict order restriction between S801 and S802, and S801 and S802 only need to be completed before S803.

[0098] In another specific implementation, the cloud device may encrypt n hash values ​​corresponding to n pieces of private information y to encrypt the n pieces of private information y. Figure 8 This is the implementation shown. For example, the cloud device can encrypt the hash values ​​of the risk numbers 0002E11A0C0E…51A1518, 000341AA6176…C300081, 000C497DE639…4BB1298, …, 0002DF235902…D6B71BD respectively to obtain the ciphertext y1 b ,y2 b ,y3 b ……yn b .

[0099] S803, the cloud device sends the data set Hn(y) b The ciphertext yj in b Divide into the bucket corresponding to the hash value prefix of the private information yj, 1≤j≤n, j is an integer.

[0100] Before S803, the cloud device can represent buckets according to the possible values ​​of the hash value prefix (i.e., the first λ bits). Among them, λ can be 1, 2, 3, 4, 5, etc. For example, λ=16, that is, according to the possible values ​​of the first 16 bits (i.e., 0x0000-0xffff, a total of 2 16 The buckets can be represented by 0x0000, 0x0001, etc., and 0xffff. 0x represents hexadecimal. It should be understood that 0x will be omitted in the following text and figures for simplicity.

[0101] For any private information yj, after the above S801, the hash value of the private information yj is obtained, such as S(yj); and after the above S802, the ciphertext yj of the private information yj is obtained. b In S803, the cloud device can b Divide into buckets corresponding to the hash value prefix of S(yj).

[0102] Taking λ=16 as an example, the hash value of the risk number y1 is 0002E11A0C0E…51A1518, that is, the hash value prefix is ​​0002. Then, the ciphertext y1 bDivided into bucket 0002; the hash value of risk number y2 is 000341AA6176…C300081, that is, the hash value prefix is ​​0003, then the ciphertext y2 b Divided into bucket 0003; the hash value of risk number y3 is 000C497DE639…4BB1298, that is, the hash value prefix is ​​000C, then the ciphertext y3 b Divided into bucket 000C...The hash value of the risk number yn is 0002DF235902...D6B71BD, that is, the hash value prefix is ​​0002, then the ciphertext yn b Divide into bucket 0002.

[0103] After S803, the buckets will include ciphertexts. For example, the ciphertexts included in each bucket are shown in Table 1 below:

[0104] Table 1

[0105]

[0106] Among them, bucket 0002 contains ciphertext y1 b ,yn b ...; Bucket 0003 contains ciphertext y2 b ...; Bucket 000C contains ciphertext y3 b …

[0107] At this point, the cloud device can divide the ciphertexts of n pieces of private information y into multiple buckets so as to subsequently determine the target bucket.

[0108] In phase 2, the mobile phone can also obtain the hash value prefixes of the m pieces of private information x, so that the cloud device can determine the target bucket in phase 3.

[0109] See also Fig. 9 In phase 2, the phone can complete the following steps:

[0110] S901. In response to a query event, the mobile phone calculates hash values ​​for m pieces of private information x respectively to obtain m hash values.

[0111] The query event is used to trigger the mobile phone to perform a binary query to the cloud device, that is, a "yes" or "no" query. Figure 2 The selection operation of the "Yes" option in the interface 201 is shown. For another example, the query event may be a user's Figure 4The click operation of button 4021 in the interface 401 is shown. For another example, the query event may be an event that the mobile phone receives an unfamiliar call. Usually, the numbers stored in the mobile phone's address book are numbers that do not pose security risks. Therefore, when an unfamiliar call is received, it is necessary to query whether the incoming call number poses a security risk.

[0112] Exemplarily, in response to the query event, the mobile phone may obtain a hash value for the incoming call number x1 and obtain a hash value of 0002936ED794…8921B4B.

[0113] For the specific implementation of S901, please refer to the relevant description of S801 above, which will not be repeated here. It should be noted that in order to make the hash prefix of private information y and the hash value prefix of private information x comparable, in S901, the hash algorithm used by the mobile phone is the same as the hash algorithm used by the cloud device in S801 above. Furthermore, in order to quickly obtain the query results after receiving the query event, both the cloud device and the mobile phone can use a faster hash algorithm to calculate the hash value, such as MD5, SHA256, etc.

[0114] S902, the mobile phone encrypts m pieces of private information x using key a to obtain the data set Hm(x) a .

[0115] Similar to S802 above: In a specific implementation, the mobile phone can encrypt the m pieces of private information x itself to achieve encryption of the m pieces of private information x. Fig. 9 This implementation is not shown. For example, the mobile phone can encrypt the incoming call number x1 itself. It should be noted that if this implementation is adopted, there is no strict order restriction between S901 and S902, and S901 and S902 only need to be completed before S903. In another specific implementation, the mobile phone can also encrypt the m hash values ​​corresponding to the m pieces of private information x to encrypt the m pieces of private information. Fig. 9 This is the implementation shown. For example, the mobile phone can encrypt the hash value 0002936ED794...8921B4B of the incoming call number x1.

[0116] It should be noted that, in order to ensure the comparability of the ciphertexts of the n pieces of private information y in the cloud device and the ciphertexts of the m pieces of private information x in the mobile phone, if the method of encrypting the private information y itself is adopted in S802, the method of encrypting the private information x itself should also be adopted in S902. If the method of encrypting the hash value of the private information y is adopted in S902, the method of encrypting the hash value of the private information x should also be adopted in S902.

[0117] S903, the mobile phone constructs a hash value prefix and data set Hm(x) based on m hash values a The relationship dictionary of each ciphertext in 1.

[0118] For any private information xi, after the above S901, the hash value of the private information xi is obtained, such as S(xi); and after the above S902, the ciphertext xi of the private information xi is obtained. a , such as ciphertext x1 a In S903, the mobile phone can establish the hash value prefix and ciphertext xi of S(xi) a , and obtain the relationship dictionary 1. For example, the relationship dictionary 1 includes the hash value prefix 0002 of the hash value 0002936ED794…8921B4B of the incoming call number x1 and the ciphertext x1 a The corresponding relationship.

[0119] In the mobile phone, the above relationship dictionary 1 can be maintained. Exemplarily, the data structure in the relationship dictionary 1 is shown in Table 2 below:

[0120] Table 2

[0121]

[0122]

[0123] S904. The mobile phone sends a query request to the cloud device, where the query request includes relationship dictionary 1.

[0124] The relational dictionary 1 includes the ciphertext of m pieces of private information x, i.e., the data set Hm(x) a It can be seen that in this embodiment, the mobile phone can send the data set Hm(x) to the cloud device by sending the relationship dictionary 1 to the cloud device. a .

[0125] Among them, the mobile phone can send a query request to the cloud device through a secure encryption method, such as https, to ensure information security.

[0126] And, in stage 3, the cloud device can determine the target bucket according to the hash value prefix included in the relationship dictionary 1 to reduce the amount of data returned to the mobile phone and reduce communication overhead.

[0127] See also Fig.10 In phase 3, the cloud device can complete the following steps:

[0128] S1001. The cloud device queries the target bucket corresponding to the hash value prefix in relational dictionary 1.

[0129] The cloud device traverses each hash value prefix in the relational dictionary 1 and queries the target bucket corresponding to the hash value prefix. For example, the hash value prefix in the relational dictionary 1 includes 0002. Then, the cloud device can query that the target bucket is bucket 0002.

[0130] S1002, the cloud device uses key b to re-encrypt the ciphertext in relational dictionary 1 to obtain data set Hm(x) ab .

[0131] It should be understood that the ciphertext in the relational dictionary 1 is the data set Hm(x) mentioned above. a , then for the data set Hm(x) a After encrypting each ciphertext in, we can get the data set Hm(x) ab .

[0132] There is no strict sequence between S1001 and S1002 in the foregoing. In practice, S1001 and S1002 may be executed in sequence, S1002 and S1001 may be executed in sequence, or S1001 and S1002 may be executed simultaneously. This embodiment of the application does not specifically limit this.

[0133] S1003, the cloud device sends the ciphertext and data set Hm(x) in the target bucket ab Send to mobile phone.

[0134] For example, the cloud device can also send the ciphertext and data set Hm(x) in the target bucket to the mobile phone in a secure encrypted manner, such as https. ab , to ensure information security.

[0135] Compared with the embodiment without bucketing: In this embodiment, the cloud device will not ciphertext all its private information y, such as the data set Hn(x) b Send it to the mobile phone, and only the ciphertext in the target bucket (such as data set Hn0(x) b ) is sent to the mobile phone. Where n0 is the number of ciphertexts included in the target bucket, and n0 is a positive integer less than n. In this way, the amount of data sent from the cloud device to the mobile phone can be reduced, reducing communication overhead.

[0136] Because, in phase 3, the cloud device sends the ciphertext of the target bucket, such as the data set Hn0(x) b , then, in stage 4, the mobile phone only needs to be based on the data set Hm(x) ab and dataset Hn0(y) b Get the query results.

[0137] See also Fig.11 In stage 4, the phone can complete the following steps:

[0138] S1101, mobile phone based on data set Hn(y) b And the dataset Hm(x) ab Included content, complete data comparison, and obtain comparison results.

[0139] The aforementioned encryption using key a and encryption using key b both use exchangeable encryption algorithms. An exchangeable encryption algorithm is an algorithm in which the order of encryption and decryption can be swapped. Common exchangeable encryption algorithms include the Diffie-Hellman (DH) algorithm and the Elliptic Curve Diffie-Hellman (ECDH / ECC) algorithm.

[0140] For example, a commutative encryption algorithm is used to encrypt data x (such as private information x) using key a to obtain ciphertext x a , use key b to ciphertext x a Further encryption to obtain the ciphertext x ab Using the exchangeable encryption algorithm, the key b is used to encrypt the data y (such as private information y) to obtain the ciphertext y b , use key a to ciphertext y b Further encryption to obtain the ciphertext y ba If data x and data y are equal, then the above ciphertext x ab With the ciphertext x ba That is, for the same data, using an interchangeable encryption algorithm, even if the encryption order is exchanged, the same ciphertext can be obtained (referred to as Principle 1).

[0141] Furthermore, for the above ciphertext x ab , first use key a to decrypt and get the ciphertext x b , if data x and data y are equal, then the ciphertext x b is equal to the ciphertext obtained by encrypting data y using key b, that is, ciphertext y b Then, for data x, after double encryption using the commutative encryption algorithm (that is, first encrypt with key a, then encrypt with key b), and then decrypt with key a, we can get the ciphertext x obtained by encrypting data x with key b. b , if the ciphertext x b The ciphertext y obtained by encrypting data y with key b b If they are equal, then we can determine that data x and data y are equal (referred to as Principle 2).

[0142] In a specific implementation, the above principle 1 is adopted. In S1101, the mobile phone can use the key a to perform a query on the data set Hn(y) bThe ciphertexts in are encrypted twice to obtain the data set Hn(y) ba .

[0143] For example, the mobile phone pair data set Hn(y) b The ciphertext y1 in b ,y2 b ,y3 b ……yn b Using key a for secondary encryption, we can get the ciphertext y1 in turn. ba ,y2 ba ,y3 ba ……yn ba .y1 ba ,y2 ba ,y3 ba ……yn ba Construct the above data set Hn(y) ba .

[0144] Then, the mobile phone sends the dataset Hm(x) ab And the data set Hn(y) ba Compare and obtain the comparison result.

[0145] For the data set Hm(x) ab The ciphertext xi in ab , if the data set Hn(y) ba Includes the same ciphertext yj ba , it means that the private information y includes the ciphertext xi ab The corresponding private information xi; if the data set Hn(y) ba does not include the same ciphertext yj ba , it means that the private information y does not include the ciphertext xi ab The corresponding privacy information xi.

[0146] For example, if the dataset Hm(x) is obtained by comparison ab The ciphertext x1 in ab With the data set Hn(y) ba The ciphertext y3 in ba If they are the same, it means that the risk number library of the cloud device includes the incoming call number x1.

[0147] In another specific implementation, the above principle 2 is adopted. In S1101, the mobile phone can use the key a to perform a query on the data set Hm(x) ab Decrypt the ciphertext in and get the data set Hm(x) b .

[0148] For example, the mobile phone pair data set Hm(x) ab The ciphertext x1 in abDecrypt using key a to get ciphertext x1 b .x1 b Construct the above data set Hm(x) b .

[0149] Then, the mobile phone sends the dataset Hm(x) b And the data set Hn(y) b Compare and obtain the comparison result.

[0150] For the data set Hm(x) b The ciphertext xi in b , if the data set Hn(y) b Includes the same ciphertext yj b , it means that the private information y includes the ciphertext xi b The corresponding private information xi; if the data set Hn(y) b does not include the same ciphertext yj b , it means that the private information y does not include the ciphertext xi b The corresponding privacy information xi.

[0151] It is understandable that after comparison, the mobile phone can only determine whether the cloud device includes the same private information as the private information x, but cannot obtain the private information in the cloud device other than the private information x. For example, the mobile phone can determine whether the risk numbers in the cloud device include the incoming call number x1, but cannot determine whether the cloud device includes numbers other than the incoming call number x1.

[0152] S1102: The mobile phone obtains a query result of “yes” for the private information x corresponding to the same element in the comparison result.

[0153] Among them, the same element refers to the data set Hm(x) ab And the data set Hn(y) ba (or dataset Hm(x) b And the data set Hn(y) b ) in the same ciphertext.

[0154] For example, ciphertext x1 ab and ciphertext y3 ba If they are equal, then we can get the query result that the incoming call number x1 is a risky number.

[0155] At this point, it should be noted that the above only describes the specific implementation of the exchangeable encryption algorithm. However, in actual implementation, the algorithm for encrypting private information in PSI is not limited to this. Exemplary, the encryption algorithm can also be the Leonard Adleman-Ron Rivest-Adi Shamir (RSA) blind signature algorithm, the Oblivious Transfer (OT) algorithm, etc. If the RSA algorithm or the OT algorithm is used, the specific implementation method will naturally be different. This is not the focus of this article, and this article will not go into details.

[0156] Above Figure 8-Figure 11 The embodiment of the present invention only illustrates the specific implementation of using PSI query. In practice, the process of using PIR query may also include Figure 8-Figure 11 However, it should be noted that when using PIR query, the private information y refers to the condition in the condition-value table, and the private information x refers to the query condition.

[0157] On this basis, when using PIR query, the above four stages can also include the following differences:

[0158] In phase 1, the cloud device can also send the ciphertext zj of the condition-value c With the ciphertext yj b Associated storage. That is, the ciphertext of the condition and the ciphertext of the value in a set of condition-value are associated and placed in the same bucket. Correspondingly, in stage 3, when the cloud device sends the ciphertext in the target bucket to the mobile phone, it will not only send the ciphertext of the condition, but also the ciphertext of the associated value. In stage 4, after obtaining the comparison result, not only can the query result of "yes" or "no" be obtained. Moreover, based on the query result of "yes", it can also be further compared with the ciphertext zj in the target bucket. c Decrypt and obtain the corresponding value, such as the status of business function activation, disease treatment method, etc.

[0159] That is to say, no matter whether PSI or PIR query is adopted, grouping is required, and a query result of "yes" or "no" will be obtained.

[0160] Below, the parameters required for evaluating the degree of information security in the embodiments of the present application are explained.

[0161] Parameter 1, grouping parameter. That is, in stage 1, the cloud device divides the data set Hn(y) b The parameters for dividing the ciphertext into buckets, such as the number of bits in the hash value prefix λ.

[0162] Parameter 2, the number of data included in the data set of the queried end. That is, the number n of private information y. For example, the number of registered numbers in the cloud device, the number of risk numbers, etc.

[0163] Taking parameter 1 as an example, the number of bits of the hash value prefix λ, based on the above parameters 1 and 2, the average depth k1 of the bucket can be calculated. That is, the number of ciphertexts included in each bucket, which can also be called the bucket depth. Specifically, k1 = n / (2 λ ). Generally speaking, k1 is an integer.

[0164] Parameter 3, the processing method of the query request end after obtaining the query result.

[0165] In some business scenarios, after obtaining the query result, the mobile phone can also return the corresponding intersection result of the query to the cloud device. If the query result of the private information xi is yes, the intersection result of the returned private information xi is a first value (such as yes, 1, etc.) to indicate that the n pieces of private information y in the cloud device include the private information xi; if the query result of the private information xi is no, the intersection result of the returned private information xi is a second value (such as no, 0, etc.) to indicate that the n pieces of private information y in the cloud device do not include the private information xi.

[0166] After obtaining the intersection results, the cloud device can complete statistical analysis based on the intersection results, thereby evaluating the performance of the query service provided.

[0167] Taking scenario 2 as an example, if the intersection result returned by the mobile phone to the cloud device is "yes", it indicates that the risk number in the cloud device includes the incoming call number x1. In other words, the cloud device successfully intercepted the risk number. If the intersection result returned by the mobile phone to the cloud device is "no", it indicates that the risk number in the cloud device does not include the incoming call number x1. In other words, the cloud device did not successfully intercept the risk number. Through statistical analysis of a large number of intersection results, the cloud device can obtain the number of times s1 of successfully intercepted risk numbers and the number of times s2 of unsuccessfully intercepted risk numbers, and further obtain the interception rate s1 / (s1+s2). The cloud device can evaluate the performance of the anti-fraud query service provided by the cloud device based on the interception rate. For example, if the interception rate obtained in two consecutive time periods (such as two consecutive months) is significantly reduced, it is very likely that the risk number library of the anti-fraud query service needs to be updated, and the cloud device can optimize the anti-fraud query service by updating the risk number library.

[0168] Of course, in other business scenarios, after obtaining the query results, the mobile phone may not return the intersection results to the cloud device. In this way, the security of the data in the query request end can be further improved.

[0169] In practice, when a mobile phone first accesses a query service of a cloud device, it will agree with the cloud device whether to return an intersection result.

[0170] For example, in scenario 1, the mobile phone receives a user's Figure 2 After selecting the "Yes" option in the interface 201, the friend discovery query service provided by the cloud device can be accessed to realize the discovery of friends in the address book. At this time, the mobile phone can agree with the cloud device whether to return the intersection result after obtaining the query result.

[0171] In another exemplary embodiment, in scenario 3, the mobile phone receives a user's Figure 4 After clicking button 4021 in interface 401, the leaked password check query service provided by the cloud device can be accessed to check whether the password in the mobile phone is leaked. At this time, the mobile phone can agree with the cloud device whether to return the intersection result after obtaining the query result.

[0172] Based on this, the server can obtain information about whether the mobile phone returns an intersection result after obtaining the query result from the protocol file for a certain query module between the mobile phone and the cloud device.

[0173] After obtaining parameters 1 to 3, the server can evaluate the information security of the data queried by the query requester when using PSI or PIR query based on the privacy protection degree of the k-anonymity privacy protection model.

[0174] The following is an example of the k-anonymity privacy protection model and its degree of privacy protection:

[0175] For the structured data shown in Table 3 below:

[0176] Table 3

[0177] Name age gender Place of residence disease Cindy 24 female District B1, A1 City, Guangdong Province cancer Amy 22 female District B2, A2 City, Guangdong Province Viral infection Alice 27 female District B3, A3 City, Guangdong Province Tuberculosis Tom 35 male B4 District, A4 City, Guangdong Province Tuberculosis Jerry 32 male District B5, A5 City, Guangdong Province cancer Klein 36 male District B6, A6 City, Guangdong Province Cardiovascular disease Martin 33 male District B7, A7 City, Guangdong Province Viral infection

[0178] The identifier "name" and the quasi-identifiers "age", "gender", "place of residence" and other information can be generalized, shielded, etc., so that each equivalent group includes k records after processing. Among them, the equivalent group refers to the records with the same identifier and quasi-identifier. For example, "name" in Table 3 is shielded with "*", "province" and "city" in "place of residence" are shielded with "xx", and "age" is generalized, and the records shown in Table 4 can be obtained:

[0179] Table 4

[0180] Name age gender Place of residence disease * 20-30 female xx District, xx City, Guangdong Province cancer * 20-30 female xx District, xx City, Guangdong Province Viral infection * 20-30 female xx District, xx City, Guangdong Province Tuberculosis * 30-40 male xx District, xx City, Guangdong Province Tuberculosis * 30-40 male xx District, xx City, Guangdong Province cancer * 30-40 male xx District, xx City, Guangdong Province Cardiovascular disease * 30-40 male xx District, xx City, Guangdong Province Viral infection

[0181] In the above Table 4, the identifier and the quasi-identifier in the records 1 to 3 are exactly the same, which is an equivalence group; and the identifier and the quasi-identifier in the records 4 to 7 are exactly the same, which is another equivalence group.

[0182] Even if the attacker knows that a person is in Table 4 through background knowledge, he cannot tell which of the records 1-3 or 4-7 the person corresponds to. If the attacker knows that the person is a female, the probability of accurately determining the record corresponding to the person from records 1-3 is 1 / 3. If the attacker knows that the person is a male, the probability of accurately determining the record corresponding to the person from records 4-7 is 1 / 4. Then, the information security level is at least 3, which can also be called 3-anonymity. That is, the attacker needs to determine the person from at least 3 records.

[0183] Based on the privacy protection degree of the above k-anonymity privacy protection model, the following introduces the specific implementation of evaluating the privacy protection degree when using PSI or PIR query.

[0184] In some embodiments, for the above business scenario where no intersection result is returned, the server may determine that the information security level is k0-anonymity. That is, the cloud device can only determine that the queried private information xi is one of the k0 pieces of information, but cannot determine which one it is.

[0185] Where k0 is the average bucket depth after the full set of information h to which the private information y belongs is divided into groups according to the grouping parameter. That is, the number of information h included in each group. For example, the full set of information h includes N pieces of information h, and the grouping parameter is the number of bits of the hash value prefix λ, then k0 = N / (2 λ ).

[0186] For example, the private information y is the risk number in scenario 2 and scenario 4. The risk number is a mobile phone number, and the information h is the mobile phone number. The full set of mobile phone numbers includes all mobile phone numbers provided by the operator. For example, there are 2 billion mobile phone numbers in total, that is, N = 2 billion. If λ = 16, then k0 = 2 billion / 2 16 ≈30517.

[0187] Take scenario 2 as an example, see Fig.12 , the target bucket is bucket 0002. The mobile phone is based on the ciphertext in bucket 0002 and the ciphertext x1 abAfter the comparison is performed and the query result is obtained, the intersection result will not be fed back to the cloud device. Then, the cloud device cannot determine whether the incoming call number x1 is among the risk numbers corresponding to the ciphertext included in the target bucket 0002. However, since the target bucket is 0002, the cloud device can determine that the hash value prefix of the incoming call number x1 is 0002, so it can be determined that the incoming call number x1 is one of the mobile phone numbers with a hash value prefix of 0002. At the same time, the number of mobile phone numbers with a hash value prefix of 0002 is approximately k0. Therefore, the cloud device can determine that the incoming call number x1 is one of the k0 mobile phone numbers with a hash value prefix of 0002, but it cannot determine which one it is. Then, for the above business scenario where the intersection result is not returned, the server can determine the information security level as k0-anonymity based on λ and N.

[0188] It can be understood that the larger the k0 is, the higher the information security level is, and the smaller the k0 is, the lower the information security level is. That is, the information security level is positively correlated with k0.

[0189] Furthermore, k0 is usually an integer. Specifically, k0 is rounded as follows:

[0190]

[0191] Where N < 2 λ When N / (2 λ )<1. In reality, the information security level is at least 1-anonymity. Therefore, N<2 λ When k0=1, N≥2 λ When N / (2 λ )≥1. In order to avoid exaggerating the degree of information security, N≥2 λ , it is usually rounded down.

[0192] In some embodiments, for the business scenario of returning the intersection result, the content of each intersection result is different, and the degree of privacy protection is also different.

[0193] If the intersection result is the first value, the server can determine that the information security level is k1-anonymity. That is, the cloud device can only determine that the queried private information xi is one of the k1 pieces of information, but cannot determine which one it is. Among them, the k1 pieces of information refer to the k1 pieces of private information y corresponding to the k1 ciphertexts in the target bucket.

[0194] Take scenario 2 as an example, see Fig.13 , the target bucket is bucket 0002. The mobile phone is based on the ciphertext in bucket 0002 and the ciphertext x1 abAfter the comparison is performed and the query result that the incoming call number x1 is a risk number is finally obtained (i.e., the query result is "yes"), the intersection result can be fed back to the cloud device as the first value, such as "yes". After obtaining the intersection result, the cloud device can determine that the incoming call number x1 is among the risk numbers corresponding to the ciphertext included in the target bucket. For example, bucket 0002 includes ciphertext y1 b 、Ciphertext y4 b 、Ciphertext y5 b ..., corresponding to risk number y1, risk number y4, risk number y5..., then the cloud device can infer that the incoming call number x1 is one of the risk number y1, risk number y4, risk number y5..., but cannot determine the specific value of the incoming call number x1. At the same time, the number of ciphertexts included in the target bucket is about k1. Therefore, it can be determined that the incoming call number is one of the k1 risk numbers in the target bucket, but it cannot be determined which one it is. Then, for the business scenario of returning the intersection result above, if the returned intersection result is the first value, the server can determine the information security level as k1-anonymity based on λ and n.

[0195] It can be understood that the larger the k1 is, the higher the information security level is, and the smaller the k1 is, the lower the information security level is. That is, the information security level is positively correlated with k1.

[0196] Furthermore, k1 is usually an integer. Specifically, k1 is rounded as follows:

[0197]

[0198] Where n < 2 λ When n / (2 λ )<1. In reality, the information security level is at least 1-anonymity. Therefore, n<2 λ When k1=1, n≥2 λ When n / (2 λ )≥1. In order to avoid exaggerating the degree of information security, n≥2 λ , it is usually rounded down.

[0199] If the query result is the second value, the server can determine that the information security level is k2-anonymity. That is, the cloud device can only determine that the queried private information xi is one of the k1 pieces of information, but cannot determine which one it is. Among them, k2=k0-k1.

[0200] Take scenario 2 as an example, see Fig.14 , the target bucket is bucket 0002. The mobile phone is based on the ciphertext in bucket 0002 and the ciphertext x1 abAfter the comparison is performed and the query result that the incoming call number x1 is not a risk number is obtained (i.e., the query result is "No"), the intersection result can be fed back to the cloud device as a second value, such as "No". After obtaining the intersection result, the cloud device can determine that the incoming call number x1 is not among the risk numbers corresponding to the ciphertext included in the target bucket. For example, bucket 0002 includes ciphertext y1 b 、Ciphertext y4 b 、Ciphertext y5 b ..., corresponding to risk number y1, risk number y4, risk number y5..., then the cloud device can infer that the incoming call number x1 is not one of the risk number y1, risk number y4, risk number y5..., etc. Moreover, since the target bucket is 0002, it can be determined that the hash value prefix of the incoming call number x1 is 0002, so that the incoming call number x1 can be determined to be one of the mobile phone numbers with a hash value prefix of 0002. At the same time, the number of mobile phone numbers with a hash value prefix of 0002 is about k0, and the risk number y1, risk number y4, risk number y5... (a total of about k1) are included in the k0 mobile phone numbers. Therefore, the cloud device can determine that the incoming call number is one of the k0 mobile phone numbers with a hash value prefix of 0002, except for the risk number y1, risk number y4, risk number y5... (a total of about k1), but cannot determine which one it is. Then, for the above business scenario of returning the intersection result, if the returned intersection result is the second value, the server can determine the information security level as k2-anonymity based on λ, n and N.

[0201] Similarly, the larger k2 is, the higher the information security level is; the smaller k2 is, the lower the information security level is. In other words, the information security level is positively correlated with k2.

[0202] Furthermore, k2 is usually an integer. Specifically, k2 is rounded as follows:

[0203]

[0204] When k0<k1, (k0-k1)<1. In practice, the information security level is at least 1-anonymity. Therefore, when k0<k1, k2=1. When k0≥k1, (k0-k1)≥1. In order to avoid exaggerating the information security level, when k0≥k1, it is usually rounded down.

[0205] It is understandable that the information security level mainly refers to the degree of protection of the data queried by the query request end that can be achieved by using PSI or PI R as a whole, rather than the degree of protection of the data for a specific query. Therefore, for the business scenario where the intersection result is returned, the server can combine the information security level (k1-anonymity) when the intersection result is the first value and the information security level (k2-anonymity) when the intersection result is the second value to obtain the information security level of the business scenario where the intersection result is returned.

[0206] In a specific implementation, the fusion may be to average the two values. That is, for a business scenario in which an intersection result is returned, the server may determine the information security level k3 = (k1 + k2) / 2. In this way, the information security levels in the cases where the intersection result is the first value and the second value may be averaged.

[0207] In another specific implementation, the fusion can be to take the minimum value of the two. That is, for the business scenario that returns the intersection result, the server can determine the information security level as the minimum value of k1 and k2. If k1<k2, the information security level k3=k1; if k1>k2, the information security level k3=k2. In this way, the privacy protection effect can be at least the privacy protection effect that can be achieved when the intersection result is the first value and the second value, achieving a more conservative estimated information security level.

[0208] In another specific implementation, the fusion may be based on a weighted sum of hit rates, such as information security level k3=o1*k1+o2*k2. Where o1 is the possibility of a yes query result, i.e., the hit rate. O2 is the possibility of a no query result, o2=1-o1.

[0209] For example, since the number of information h is N and the number of private information y is n, for any data queried by the query request end, the probability of a yes query result is n / N, and the probability of a no query result is (Nn) / N. That is, o1=n / N, o2=(Nn) / N.

[0210] As another example, the server can also obtain the actual hit rate from the cloud device, that is, obtain o1. For example, o1 is the interception rate mentioned above. Further, the server can obtain o2=1-o1 according to the hit rate. Thus, the information security level k3 is calculated.

[0211] It can be understood that if the query result is yes, the intersection result is the first value. It can be seen that the possibility of the query result being yes is the possibility of the intersection result being the first value. If the query result is no, the intersection result is the second value. It can be seen that the possibility of the query result being no is the possibility of the intersection result being the second value. Therefore, by adopting this design method, on the basis of comprehensively considering the information security levels corresponding to the intersection results being the first value and the second value respectively, the possibility of the intersection results being the first value and the second value can be further considered, thereby improving the rationality of determining the information security level.

[0212] Of course, in practice, bucketing may not be performed during the query process. For example, no bucketing is performed in stage 1. In this embodiment, it is equivalent to the grouping parameter being 0, such as k=0. Therefore, the ciphertexts of the n pieces of private information y are all in one bucket, that is, k0=n. And the ciphertexts of all (N pieces) of private information y are also in one bucket, that is, k1=n. For this implementation, when evaluating the degree of information security, it is only necessary to substitute k0 and k1 into the aforementioned embodiment.

[0213] For example, for a business scenario that returns an intersection result, if the intersection result is yes, the information security level is n-anonymous. If the intersection result is no, the information security level is (Nn)-anonymous. For a business scenario that does not return an intersection result, the information security level is N-anonymous.

[0214] In some embodiments, after obtaining the information security level by using the above embodiments, the queried end can add the information security level to the protocol of the corresponding query service. Subsequently, when the queried end detects that a query request end has accessed the query service, the protocol of the query service is sent to the query request end. In this way, the information security level can be provided to the service user so that the user can clearly understand the privacy protection level of the query service and choose whether to continue to use the query service.

[0215] In other embodiments, the above embodiments can be used to obtain different information security levels corresponding to different parameters (such as parameters 1 to 3 in the above text). In this way, the server can select appropriate parameters based on the information security level to meet the requirements for the information security level.

[0216] The embodiment of the present application also provides a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected by lines. For example, the interface circuit can be used to receive signals from other devices (such as the memory of the terminal). For another example, the interface circuit can be used to send signals to other devices (such as processors). Exemplarily, the interface circuit can read instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the terminal can execute the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.

[0217] This embodiment further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a terminal, the terminal executes each function or step in the above method embodiment.

[0218] This embodiment also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute each function or step in the above method embodiment.

[0219] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory so that the chip performs the various functions or steps in the above-mentioned method embodiments.

[0220] Among them, the chip system, computer-readable storage medium, computer program product or device provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0221] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0222] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0223] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.

[0224] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0225] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

[0226] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

1. A method for obtaining the degree of information security, It is characterized in that The method is applied to a server, and is used to obtain the information security level of the first data in the process of an electronic device requesting a network device to query the first data, wherein the querying of the first data refers to querying whether the first data is included in a first data set of a first type of business of the network device, and the electronic device and the network device use a preset method to implement the query of the first data, wherein the preset method includes a privacy set intersection PSI or a privacy information retrieval PIR, and the business data in the first data set is divided into multiple groups, and the method includes: The server acquires first indication information, where the first indication information is used to indicate whether the electronic device returns an intersection result to the network device; wherein if the query result of the first data is yes, the intersection result is a first value; if the query result of the first data is no, the intersection result is a second value; If the first indication information indicates to return the intersection result, the server obtains a first average data volume of each group of business data in the multiple groups of business data and a second average data volume of each group of business data in the second data set, calculates the difference between the first average data volume and the second average data volume, and obtains a first degree value; wherein the first degree value is positively correlated with the minimum value, average value or weighted sum of the first average data volume and the difference; If the first indication information indicates that the intersection result is not to be returned, the server acquires the second average data volume to obtain a second degree value; wherein the second degree value is positively correlated with the second average data volume; The second data set is related to the first type of business, and the second data set includes the first data set.

2. The method according to claim 1, It is characterized in that The first type of service includes any one of the following: a service for querying numbers with security risks, a service for querying contact numbers, and a service for querying passwords.

3. The method according to claim 1, It is characterized in that After obtaining the first degree value, the method further includes: The server sends the first degree value to the network device; or the server sends the first degree value to the electronic device; After obtaining the second degree value, the method further includes: The server sends the second degree value to the network device; or, the server sends the second degree value to the electronic device.

4. The method according to any one of claims 1 to 3, It is characterized in that The first degree value is positively correlated with the weighted sum of the first average data volume and the difference value; The ratio of the weight of the first average data volume to the weight of the difference is: the ratio of the data volume in the first data set to the difference between the data volume in the second data set and the data volume in the first data set.

5. The method according to any one of claims 1 to 3, It is characterized in that The first degree value is positively correlated with the weighted sum of the first average data volume and the difference value; the method further includes: The server obtains the first data from the network device for a first time when the query result is yes, and obtains the first data from the network device for a second time when the query result is no; The ratio of the weight of the first average data volume to the weight of the difference is: the ratio of the first number of times to the difference between the first number of times and the second number of times.

6. The method according to any one of claims 1 to 3, It is characterized in that The business data in the first data set and the business data in the second data set are divided into multiple groups based on the values ​​of preset bits in the hash values ​​of the business data; wherein, if the values ​​of the preset bits of the business data are the same, they are divided into the same group.

7. A server, It is characterized in that The server includes a memory and a processor, and the memory and the processor are coupled; wherein the memory stores a computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the processor, the server executes the method as described in any one of claims 1-6.

8. A communication system, It is characterized in that The communication system comprises the server, electronic equipment and network equipment as claimed in claim 7, wherein the network equipment provides a query service for the first type of business; The server is used to send the information security level to the network device after obtaining the information security level; The electronic device is used to send an access request to the network device after receiving the access event, wherein the access request is used to request access to the query service of the first type of service; The network device is used to send the information security level to the electronic device after receiving the access request; The electronic device is further configured to display the information security level after receiving the information security level.

9. A computer-readable storage medium, It is characterized in that The method comprises computer instructions; when the computer instructions are executed on a server, the server is caused to execute the method according to any one of claims 1 to 6.

10. A computer program product, It is characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.