Privacy-preserving log analysis

By encrypting and analyzing the security logs of public utilities, the problem of public utilities needing to analyze sensitive logs but unwilling to share private information is solved, ensuring that the control of data and analysis results is in their own hands, and realizing secure outsourcing of analysis. Effect.

CN111295656BActive Publication Date: 2024-09-27HITACHI ENERGY LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201880069272.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2017-10-30
Filing Date
2018-10-30
Publication Date
2024-09-27
Estimated Expiration
2039-04-05

AI Technical Summary

Technical Problem

Utilities need to analyze sensitive security logs, but existing technology requires them to perform the analysis themselves or entrust a third party to perform the analysis, which violates privacy needs, especially when it comes to the sharing of sensitive information.

Method used

By encrypting the logs of the first entity on the second entity, generating encrypted logs and encrypted queries, and decrypting the analysis results only on the first entity, it is ensured that the control of the data and analysis results is in the hands of the public utility, and third parties can only See structured but meaningless data.

Benefits of technology

This enables public utilities to safely outsource log data analysis without losing control over logs and analysis results, ensuring that privacy needs are met.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111295656B_ABST
    Figure CN111295656B_ABST
Patent Text Reader

Abstract

The present invention relates to a method for analyzing a log (10) of one or more devices of a first entity (1), the method comprising: generating an encrypted log (11) by encrypting the log (10) on at least one device of the first entity (1); generating at least one encrypted query (16) by encrypting the query (16) on at least one device for analyzing the log (10); transmitting the encrypted log (11) and the encrypted query (16) from the first entity (1) to a second entity (2); analyzing the encrypted log (11) on the second entity (2) by using the encrypted query (16) and generating (20) an encrypted analysis result (21); transmitting the encrypted analysis result (21) from the second entity (2) to the first entity (1); and decrypting (22) the encrypted analysis result (21) on the first entity (1), wherein the decrypted analysis result (23) can be verified by the first entity (1).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method, device and system for privacy-preserving log analysis. Specifically, the present invention provides a method for analyzing logs of a device or devices of a first entity by providing an analysis method on a second entity without violating privacy requirements. Background Art

[0002] The security logs of public utilities usually contain business-critical information such as user names, system names, system IP addresses, and system configuration parameters. Therefore, public utilities are very reluctant to share such logs with any other party, including system vendors.

[0003] However, security logs may also contain very important information. For example, (attempted) abuse of a system is often logged, providing information about who performed what type of action and at what time. Utilities need some mechanism to automatically identify situations when internal or external users attempt to gain access without permission.

[0004] Until now, utilities have needed to perform these security checks themselves or outsource the analysis to a third party (e.g., a vendor). In the latter case, confidential information is encrypted and then sent to the third party, which has the correct key to decrypt the data and perform the analysis. Both of the general scenarios described are usually not in line with the business model and security needs of utilities. Summary of the invention

[0005] An object of the present invention is to provide a method, apparatus and system for analyzing sensitive security logs without violating privacy requirements.

[0006] The objects of the invention are achieved by the features of the independent claim. Further preferred embodiments of the invention are defined in the dependent claims.

[0007] Specifically, the present invention solves the problem of analyzing sensitive security logs of a utility (first entity) by a third party (e.g., supplier, second entity) without violating the privacy requirements of the utility. The utility data is always visible only to the utility, and only the utility can view the results of the analysis. The third party (second entity) preferably receives the encrypted logs without any decryption key, and can therefore only see structured but "meaningless" data. These encrypted security logs can be used as input to special analysis algorithms, and only the utility can understand the output generated by the special analysis algorithm using the original security logs. Since the generated results are still encrypted, the third party will not gain any insight into the utility or its operation.

[0008] In this way, utilities can outsource data analysis of security logs without losing control over the logs and the corresponding analysis results.

[0009] According to a first preferred embodiment, the present invention provides a method for analyzing logs of a device or multiple devices of a first entity. The method comprises: preferably generating an encrypted log by encrypting the log on at least one device of the first entity, and preferably generating at least one encrypted query by encrypting the query on at least one device for analyzing the log. The encryption of the log and the encryption of the query can be performed on the same device or on different devices. However, it is preferred to use the same key for the encryption of the log and the encryption of the query. Then, the encrypted log and the encrypted query are transmitted from the first entity to the second entity. Preferably, the first entity and the second entity are different entities, for example, preferably different hardware located in different locations. Further preferably, the first entity and the second entity are managed by different managers.

[0010] The encrypted log is analyzed at the second entity using the encrypted query, wherein the analysis result is the encrypted analysis result. The encrypted analysis result can be transmitted from the second entity back to the first entity, wherein the encrypted analysis result can be decrypted at the first entity. The encrypted analysis result can then be verified and used at the first entity for further analysis and / or querying.

[0011] According to a preferred embodiment, the first entity is a utility or a cluster of utilities of the customer, and the second entity is preferably a host owned by a company (e.g., a service provider) that provides such analysis services. For example, the second entity can be a host provided by the service provider directly or by a provider that leases the host (statically or dynamically) from another provider.

[0012] The encrypted log and / or the encrypted query are preferably encrypted by a first (private / secret) key, which is preferably not known by the second entity. The key used to encrypt the log and the query is preferably the same key. However, these keys can be different.

[0013] According to a preferred embodiment, the logs are encrypted and the queries are encrypted, preferably based on a deterministic encryption scheme, preferably a k-deterministic encryption scheme.

[0014] According to another preferred embodiment, the log may be a security log of a device or utility, such as a log of an industrial device such as a controller, a workstation, a networked device, a SCADA system, a power distribution device, a security log of a network and / or a log of an industrial controller, a log of a computing element or a collection of computing elements, a log of an entire system including multiple devices. According to a preferred embodiment, the steps of generating an encrypted log, analyzing the encrypted log, and / or transmitting the encrypted analysis results are preferably performed systematically, periodically, and / or manually.

[0015] According to further increased security, the step of transmitting between the first entity and the second entity is preferably performed via a secure channel.

[0016] The log of the present invention is not limited to a specific type. For example, the log can be organized in the form of columns and rows. Preferably, the encrypted log is generated by encrypting a portion of each column and / or each row. The log may also include additional pseudo rows, pseudo columns, pseudo entries, reordered rows and / or columns, and / or additional flags for providing additional information.

[0017] According to a preferred embodiment, the query is preferably a filter query for locating and / or identifying a specific value in the log and / or an occurrence query for evaluating whether a specific value is present in the log.

[0018] The present invention is not limited to the methods discussed above and may be implemented by software and / or hardware. Specifically, the present invention relates to a system for analyzing logs of one or more devices of a first entity. The system preferably comprises: a first entity configured to generate an encrypted log and preferably generate at least one encrypted query by encrypting the log and / or the query on at least one device of the first entity. The system preferably also comprises a second entity, the second entity being configured to receive the encrypted log and analyze the encrypted log by using the encrypted query, and being configured to generate an encrypted analysis result. The first entity is preferably configured to receive the encrypted analysis result from the second entity, and is preferably further configured to decrypt the encrypted analysis result on at least one device of the first entity, and to verify the decrypted analysis result.

[0019] According to another preferred embodiment, the present invention relates to a computer readable medium comprising computer program code for performing the method steps of the present invention (eg as discussed above or claimed in the claims). BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The subject matter of the invention will be explained in more detail below with reference to preferred exemplary embodiments shown in the accompanying drawings, in which:

[0021] Figure 1 The first and second entities with encryption, decryption and transmission steps are schematically shown. DETAILED DESCRIPTION

[0022] Exemplary embodiments of the present invention will be described below with reference to the accompanying drawings, wherein the same or similar reference symbols designate the same or similar elements.

[0023] Until now, utilities have always needed to perform the analysis themselves or to entrust a third party to perform the analysis by sharing the key used to encrypt the data. The method of the present invention overcomes the disadvantages of the prior art of performing analysis on encrypted data by a third party (second entity), where only the utility (first entity) can interpret the results in a meaningful way.

[0024] In particular, the method of the present invention has advantages in situations where privacy is a major requirement for the client. For utilities, security logs and the information contained therein (e.g., IP addresses, configuration parameters, usernames) are considered critical information that the utility does not want to share with third parties. The method of the present invention provides new services because the client can verify the cryptographic algorithms involved, thereby ensuring that third parties cannot track individual values, but are still able to analyze the data for the client.

[0025] In the exemplary scenario of the present invention, the following parties are involved, such as Figure 1 As shown:

[0026] A customer 1 and a service provider 20 (third party) have equipment that generates a security log 10. The security log 10 may include a list of entries with fields for time of day, date, and any information corresponding to the event of the log entry.

[0027] The client encrypts its secure log 10 using its own private key, which is unknown to anyone else (described in more detail later). In other words, an encrypted log 11 is generated. The client sends the encrypted data item to the service provider 2.

[0028] The index of the fields to be compared and the encrypted values ​​involved for the different analyses are assembled and sent to the service provider (described in more detail later). In other words, an encrypted query 16 is generated.

[0029] The service provider 2 analyzes the encrypted data item by item and sends back the items that match the query predicate.

[0030] The client decrypts 22 the received entry and verifies whether any suspicious behavior has occurred.

[0031] According to the invention, it is also possible to execute only parts of the process. For example, if the query 15 does not change, only the latest log entries are sent to the service provider, where the query is executed and the results of these entries are returned. If a new query 15 should be executed, only a new encrypted query 16 is sent to the service provider, where a part of the stored encrypted log (the previously provided encrypted log) or the entire stored encrypted log (the previously provided encrypted log) is queried.

[0032] The method of the present invention can be performed on demand or periodically. For example, all logs generated during a day are automatically sent to the service provider at the end of the day. On the other hand, it is sufficient if the client only sends logs to the provider when information is needed.

[0033] The following components are further preferred features of the present invention. For example, a secure channel for mutually transmitting dates between the first entity and the second entity provides further confidentiality, integrity and authenticity. Since standard mechanisms for preferred secure channels can be used, these standard mechanisms are not discussed in further detail.

[0034] In addition, a simple verification scheme can be used: after decrypting the results, it is straightforward to verify whether the returned rows are matches for a particular query. For example, if the query requires connections between specific IP addresses, it is easy to check whether the fields in the returned rows contain those IP addresses (e.g., in the Sender IP Address and Receiver IP Address fields).

[0035] Therefore, the following examples focus on encryption and query execution. It is preferred to use an encryption scheme that facilitates efficient query operations on data encrypted with the encryption scheme. In particular, queries can be executed more efficiently than purely probabilistic schemes. In addition, it is also noted that known purely deterministic encryption schemes may provide risks of frequency analysis.

[0036] The log data is preferably provided as time series data. Queries on time series data typically have a time component. For example, queries are performed over certain time windows or with a certain periodicity. This special type of data and queries with a time component are suitable for using efficient but still secure encryption schemes. For example, in order to mitigate the risks of frequency analysis of encryption schemes, the present invention preferably uses a k-deterministic encryption scheme.

[0037] A k-deterministic encryption scheme is an encryption scheme that, given an encryption key, encrypts any given plaintext with up to k deterministically computable ciphertexts for an integer parameter k. In other words, the encryption scheme of the present invention uniformly encrypts any given input into one of at most k possible ciphertexts in a random manner. More formally, a general encryption scheme S can be described as a tuple S(KG,E,D), where KG is a key generation function, E encrypts the plaintext, and D decrypts the ciphertext using an appropriate key. The k-deterministic encryption scheme used by the present invention has the following preferred properties. If C(v,s) is the set of all ciphertexts generated when v is encrypted using key s, then |C(v,s)| is considered to be at most k. For each c in C(v,s), the probability that encrypting plaintext v produces ciphertext c is 1 / |C(v,s)|. This encryption has the desired property of protecting even low entropy data, while being able to achieve data compression by upper-bounding the number of (probabilistically computed) ciphertexts to k for each plaintext.

[0038] Preferably the encrypted log analysis has additional properties, in particular additive homomorphism.

[0039] Given a pseudo-random number generator G and a probabilistic encryption scheme S(KG,E,D), the encryption scheme is converted to a k-deterministic encryption scheme in the following manner. The key generation function remains the same, except for the fact that a random bit string s is additionally generated. The plaintext v is encrypted by using the pseudo-random number generator G with parameters k, s, v, and k random components are generated, one of which is then uniformly selected at random as part of the input to the encryption function E. The decryption function D remains unchanged. If an additively homomorphic probabilistic encryption scheme is turned into a k-deterministic encryption scheme, it is also additively homomorphic.

[0040] According to a preferred embodiment, instead of encrypting the entire log into a single ciphertext, the log data can be split into specific fields or groups of fields, which are then encrypted using a k-deterministic encryption scheme. Preferably, each field of the log file is encrypted separately using a k-deterministic encryption scheme. Preferably, the time and date are split into multiple columns before encryption, i.e., dedicated columns for year, month, day, hour, minute, and if necessary, columns for smaller time units (seconds, milliseconds...).

[0041] In addition, if there is a large time gap between two consecutive logged events, pseudo rows can be inserted. These rows serve two purposes. First, they confuse the log by extending the log with seemingly meaningless data. Second, they help to efficiently perform queries on log data. The time and date of the pseudo row are set to the value between the two events, and pseudo values ​​in other columns are used. Preferably, the pseudo values ​​used in different columns are different to avoid being identified as pseudo values ​​due to frequent occurrences across columns. The number of pseudo rows added between appropriate rows depends on the query. For example, if there is a query with a requested interval of several minutes, it is preferably provided for each minute. Additional encrypted columns can be attached to provide additional information about the row. The flag column itself preferably identifies the pseudo row, but the identification column can also provide other information, such as a timestamp indicating (depending on the event) that perhaps a suspicious event occurred at night. In addition, the columns are preferably rearranged to make it more difficult to identify the meaning of the columns. For example, in time series data, the first column often encodes the time of the event. After randomly rearranging the columns, this will (very likely) no longer be the case.

[0042] Next, queries are preferably transformed / encrypted so that they can be executed on encrypted logs. The following examples focus on two types of queries (but others are possible):

[0043] The query can filter for rows that find a particular value v in a column. The query is transformed by changing the column index to the new index in the rearranged, encrypted log, and changing the test for equality with v to a test for equality with any of up to k possible ciphertexts corresponding to the value v.

[0044] The second type of query requests events that occur in a short time window, for example, x events within y minutes. The transformed query simply searches for x consecutive rows where the minute field of these x consecutive rows has changed no more than y-1 times (indicating that x events occurred within y minutes).

[0045] These two types of queries can be combined to build more complex queries. Further, the query can request more than one failed connection attempt to a device at a specific IP address within 5 minutes.

[0046] Although the invention has been described in detail in the drawings and the foregoing description, such description should be considered illustrative or exemplary rather than restrictive. Variations to the disclosed embodiments can be understood and implemented by those skilled in the art who practice the invention to be protected by studying the drawings, the present disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the indefinite article "a" or "an" does not exclude a plurality of elements. The simple fact that certain elements or steps are described in different claims does not mean that a combination of these elements or steps cannot be used to advantage (especially except for actual claim dependencies), and any further meaningful claim combination should be considered to be within the scope of the present disclosure.

Claims

1. A method for analyzing a log (10) of a device or devices of a first entity (1), the method comprising: Generating an encrypted log (11) by encrypting the log (10) on at least one device of the first entity (1); generating at least one encrypted query (16) by encrypting the query (16) on at least one device for analyzing the log (10); transmitting the encrypted log (11) and the encrypted query (16) from the first entity (1) to the second entity (2); Analyzing the encrypted log (11) on the second entity (2) by using the encrypted query (16) and generating (20) an encrypted analysis result (21); transmitting the cryptographic analysis result (21) from the second entity (2) to the first entity (1); as well as decrypting (22) the encrypted analysis result (21) at the first entity (1), wherein the decrypted analysis result (23) can be verified by the first entity (1), The encryption of the log (10) and the encryption of the query are based on a k-deterministic encryption scheme, and the k-deterministic encryption scheme includes: Generate an encryption key using a key generation function KG of a deterministic encryption scheme including an encryption function E; Generate another random bit string s; generating k random components using a pseudo-random number generator G having parameters k, s and the log; and The log is encrypted using the encryption function E to generate one of at most k probabilistically calculated ciphertexts, wherein the encryption function E has one of k random components uniformly selected at random as part of the input, where k is an integer greater than 1.

2. The method according to claim 1, wherein the first entity (1) is a utility or a cluster of utilities of a customer and the second entity (2) is a host of a service provider.

3. The method according to claim 1 or claim 2, wherein the encrypted log (11) and the encrypted query (16) are encrypted by a first private / secret key (100), the first private / secret key not being known by the second entity.

4. A method according to claim 1 or 2, wherein the log (10) is a security log of a device or utility, a log of an industrial device, a network security log and / or a log of an industrial controller, a log of a computing element or a collection of computing elements, including a log of an entire system of multiple devices.

5. The method according to claim 1 or 2, wherein: The steps of generating the encrypted log (11), analyzing the encrypted log (11) and / or transmitting the encrypted analysis result (21) are performed systematically, periodically and / or manually.

6. The method according to claim 1 or 2, wherein the step of transmitting between the first entity (1) and the second entity (2) is performed via a secure channel.

7. The method according to claim 1 or 2, wherein the log (10) is organized in the form of columns and rows, and the encrypted log (11) is generated by encrypting only parts of each column and / or each row, respectively.

8. The method according to claim 7, wherein the log (10) comprises additional pseudo rows, pseudo columns, pseudo entries, rearranged rows and / or columns and / or additional flags for providing additional information.

9. The method according to claim 1 or 2, wherein the query (16) is a filtering query for locating and identifying a specific value in the log and / or an occurrence query for evaluating whether a specific value exists in the log.

10. A system for analyzing logs (10) of a device or devices of a first entity (1), the system comprising: The first entity (1) is configured to generate an encrypted log (11) and at least one encrypted query (16) by encrypting the log (10) and the query on at least one device of the first entity (1); A second entity (2) is configured to receive the encrypted log (11), analyze the encrypted log (11) by using the encrypted query (16), and generate an encrypted analysis result (21); wherein the first entity (1) is configured to receive the encrypted analysis result (21) from the second entity (2), and is further configured to decrypt the encrypted analysis result (21) on at least one device of the first entity (1) and verify the decrypted analysis result (23), The encryption of the log (10) and the encryption of the query are based on a k-deterministic encryption scheme, and the k-deterministic encryption scheme includes: Generate an encryption key using a key generation function KG of a deterministic encryption scheme including an encryption function E; Generate another random bit string s; Using a pseudo-random number generator G with parameters k, s and the log, generating k random components; and encrypting the log using the encryption function E to generate one of at most k probabilistically calculated ciphertexts, the encryption function E having one of the k random components uniformly selected at random as part of the input, k being an integer greater than 1.

11. The system according to claim 10, wherein the first entity (1) is a utility or a cluster of utilities of a customer and the second entity (2) is a host of a service provider.

12. The system according to claim 10 or 11, wherein the encrypted log (11) and the encrypted query (16) are encrypted by a first private / secret key (100), the first private / secret key not being known by the second entity.

13. A system according to claim 10 or 11, wherein the log (10) is a security log of a device or utility, a log of an industrial device, a network security log and / or a log of an industrial controller, a log of a computing element or a collection of computing elements, including a log of an entire system of multiple devices.

14. The system according to claim 10 or 11, wherein: The first entity (1) is configured to systematically, periodically and / or manually generate the encrypted log (11), and the second entity (2) is configured to systematically, periodically and / or manually analyze the encrypted log (11) and / or transmit the encrypted analysis result (21).

15. The system according to claim 10 or 11, wherein the first entity (1) and the second entity (2) are configured to communicate via a secure channel.

16. The system according to claim 10 or 11, wherein the log (10) is organized in the form of columns and rows, and the encrypted log (11) is generated by encrypting only parts of each column and / or each row, respectively.

17. The system according to claim 10 or 11, wherein the log (10) comprises additional pseudo rows, pseudo columns, pseudo entries, rearranged rows and / or columns and / or additional flags for providing additional information.

18. The system according to claim 10 or 11, wherein the query (16) is a filtering query for locating and identifying a specific value in the log and / or an occurrence query for evaluating whether a specific value exists in the log.

19. A computer readable medium comprising computer program code for executing the steps of the method according to any one of claims 1 to 9.