A data obfuscation system, method, and computer implementation via software or hardware, are provided that allows a legitimate user to gain access via a query to data of sufficient granularity to be useful while maintaining the confidentiality of sensitive information about individual records. The data obfuscating system and method is particularly applicable to databases.
The problem of securing organizational databases so that legitimate users can access data needed for decision making, while limiting disclosure so that confidential or sensitive information about a single record cannot be inferred, has received considerable attention in the statistical literature.
Data are numbers, characters, images or other outputs from devices that convert physical quantities into symbols. Data can be stored on media, as in databases, numbers can be converted into graphs and charts, which again can be stored on media or printed. Most of the decision making, in business or other disciplines, requires useful data. A database that contains sensitive or confidential information stores data and therefore it is secured—by encryption using a public key, by encryption using a changing public key, in which case the data is held secure while the public key is changed, or by restricting access to it by the operating system.
A database (DB) application must protect the confidentiality of sensitive data and also must provide reasonably accurate aggregates that can be used for decision making. One approach to achieve this goal is to use a statistical database system (SDB). An SDB allows users to access aggregates for subsets of records; the database administrator (DBA) sets a minimum threshold rule on the size of the subset for which aggregates can be accessed. As an example, in an SDB, if a query returns less than or equal to 89 records, then no information is provided to the user for such a query.
A database that obfuscates data is conventionally known as a secret database. A secret database is ideally efficient (stores the data in an efficient manner with minimal overhead), provides a query language (e.g., SQL) interface, is repeatable, i.e., it returns identical results for identical queries, and protects the confidentiality of individual records.
A secret database may be implemented in a parallel fashion as in a parallel set of query pre and post filters. These may be implemented as distributed hardware components given this ability for the obfuscation to be built to handle very large databases and run the queries against the database in a distributed way.
There are a number of known techniques to obfuscate data. In controlled rounding, the cell entries of a two-way table are rounded in such a way that the rounded arrays are forced to be additive along rows and columns and to the grand total (Cox and Ernst, 1982; Cox, 1987). In random rounding, cell values are rounded up or down in a random fashion; the rows (or columns) may not add up to the corresponding marginal totals. Salazar-Gonzales and Schoch (2004) developed a controlled rounding procedure for two-way tables based upon the integer linear programming algorithm. Gonzales and Cox (2005) developed software for protecting tabular data in two dimensions; this software is uses the linear programming algorithm and implements several techniques for protection of tabular data: complementary cell suppression, minimum-distance controlled rounding, unbiased controlled rounding, subtotals constrained controlled rounding, and controlled tabular adjustment.
Cox (1980) considered the problem of statistical disclosure control for aggregates or tabulation cells and discussed cell suppression methodology under which all cells containing sensitive information are suppressed from publication. Duncan and Lambert (1986) used Bayesian predictive posterior distributions for the assessment of disclosure of individual information, given aggregate data. Duncan and Mukherjee (2000) considered combining query restriction and data obfuscating to thwart stacks by data snoopers. Chowdhury et al. (1999) have developed two new matrix operators for confidentiality protection.
Franconi and Stander (2002) proposed methods for obfuscating business microdata based upon the method of multiple linear regression (MLR); their method consists of fitting an MLR equation to one variable based upon the values of the other variables in the database, using all of the records in the database.
There are three potential problems with this approach:
Muralidhar et al. (1999) developed a method for obfuscating multivariate data by adding a random noise to value data; their method preserves the relationships among the variables, and the user is given access to perturbed data. One potential problem with this approach is that a query may not be repeatable, i.e., identical queries may produce random outputs, in which case one can get very close to the true values by running identical queries a large number of times.
Thus, it is desirable to provide a system and method for obfuscating data so that a data request or query is repeatable, and access is allowed to users of the data while limiting the disclosure of confidential information on an individual has increased.
There is disclosed a method of obfuscation in which a standard data query may be submitted to a secret database with output data being obfuscated.
According to one exemplary embodiment there is disclosed a method of obfuscating data so that output values of a data request are obfuscated in a repeatable manner, via the use of an Obfuscating Function (OF) whilst maintaining the amount of obfuscation within a range so that the transformed values provide to a user information of a prescribed level of granularity.
There is further disclosed a method of obfuscating data comprising:
running an unconstrained query on data in a secret database to produce output data; and
obfuscating the output data using a repeatable obfuscation function to return obfuscated data in response to the query.
There is also disclosed an obfuscation system comprising: an input interface;
a query engine for receiving input data from the input interface;
memory interfaced to the query engine for storing data and supplying data to the query engine in response to a data request;
an output interface configured to receive output data from the query engine; and
an obfuscation engine for obfuscating data retrieved from memory and obfuscating it in a repeatable manner prior to supplying it to the output interface.
There is further disclosed software for implementing the methods, data produced by the methods, storage media embodying the data produced by the method, hardware for implementing the methods and printed media embodying data produced by the methods.
There is further disclosed an obfuscation system comprising a database, an obfuscation circuit and a user interface wherein the obfuscation circuit operates according to the method and an obfuscation circuit adapted to interface between a database and a user interface which obfuscates data values returned from a database in response to a user query operating in accordance with the method.
There is also disclosed a method of representing data having a first level of granularity at a second level of granularity, coarser than the first level of granularity, wherein the data is converted from the first level of granularity to the second level of granularity according to a rule other than the simple proximity of the data to the nearest value at the second level of granularity.
There is also disclosed a method of distributing the processing of the obfuscation such that it is distributed across multiple hardware or virtual hardware or circuit components. These components enable the obfuscation to be executed on very large databases or very large volumes of queries may be processed.
The accompanying drawings which are incorporated in and constitute part of the specification, illustrate embodiments of the invention and, together with the general description of the invention given above, and the detailed description of embodiments given below, serve to explain the principles of the invention.
The system and method for obfuscating data described is particularly applicable to a database and a query language, and more particularly to a structured query language (SQL) database and it is in this context that the system and method for obfuscating data will be described. It will be appreciated, however, that the system and method for obfuscating data has greater utility since it can be used to obscure any type of data however that data may be stored or generated.
The software or hardware implementation of the system and method of obfuscation of this invention can be implemented in a desktop environment, or a computer cluster.
The output of obfuscation engine 15 passes through output filter 16. The output filter 16 may apply a restriction to the output values using a linear function or a measured threshold value. The output filter may count the number of the frequency of the base data being filtered—for example a simple linear filter filtering records which are constructed of less than X records or a filter based on the variation in the data such that the results must be within certain statistical measures of each other, for example the base data can not vary by more than one standard deviation of the mean. Output filter 16 may also perform additional post query filtering such as distributing results based on filtering (e.g. distributing email, storing output data to different storage media etc.), additional filtering (i.e. only delivering results satisfying a data field criteria) etc. Output filter 16 may include a programmable streaming data processor. The output from output filter 16 may be output by output interface 17 for use by a user or other device.
It will be appreciated that components of the system may be implemented in hardware or software. Each of these processes may be run either singularly or in parallel. When the processes are run in parallel the results of the parallel process may be the same or similar independent of which process executed the request. However, it may be advantageous for the obfuscation engine to be implemented as a specific circuit to ensure obfuscation of all output data. Although the obfuscation engine is shown as a single engine it will be appreciated that data obfuscation may be performed by multiple nodes of a clustered computer system. The data may be abstract data and/or data obtained from real world sensors etc. The output data may drive a display, printer, or some real world device (e.g. where a sensitive location cannot be revealed but a vehicle or person or other kind of moveable vessel needs to be inhibited from travelling within a certain range of a sensitive location). In another kind of obfuscation relating to tracking of moveable objects the results of this tracking may be presented in aggregate such that obfuscation can be applied to enable output of information such as the number of vehicles or people or vessels in area without the recipients of said information being able to determine the specific time and or place an event or movement occurred.
Systems and methods of data obfuscation described herein are based upon tools used in mathematical modeling, and include:
Several different embodiments of the system and methods for obfuscating data are described to illustrate the system and method for obfuscating data. For example, the data may be obscured based upon random rounding and least squares regression involving one or more predictor variables. As another example, the data may be obscured based upon random rounding of frequency data and simple linear regression of value data. As yet another example, the data may be obscured using principal components regression (PCR) wherein the data may be multivariate data.
Using weighted regression each point may be given equal weight, a weighting inversely proportional to its value or a weighting inversely proportional to the mid-point of the class interval and directly proportional to the frequency of the class interval. The Obfuscation Function (OF) may minimize Total Weighted Error. The Total Weighted Error may be the Sum of Squared Errors, the Sum of Absolute Errors, the Sum of Squared Relative Errors or the Sum of Absolute Relative Errors. The method may be matrix algebra based, based upon computer search or based upon neural networks. Random errors may be added to true values to form a dependent variable y for weighted regression, using the true data value as the independent variable.
Weighted regression may also be based upon using the true data value as the dependent variable, some function of the true data value as the independent variable, and fitting a regression equation. Alternatively, weighted regression may also be based upon using the true data value as the dependent variable, some function of the true data value and values in other columns as the set of independent variables, and fitting a regression equation.
Weighted regression may be applied to a subset of records obtain an obfuscating function. Weighted regression may include selecting a subset of records which is a k-point summary of values, on which weighted regression is performed to get an obfuscating function.
Obfuscation may be implemented in one of many ways as follows:
In one embodiment, the obfuscating unit/function may use a least squares regression for obfuscating the base data and random rounding is then applied to output from regression to further reduce resolution. In broad terms, this embodiment uses a method of least squares regression in a computationally efficient way that allows the user to control the amount of obfuscating while maintaining repeatability of a query. The obfuscating unit in this embodiment provides a database application (DBA) such as a database management application with the flexibility of obfuscating data with or without adding a random noise to the values in the database, is easier to implement as it is based on regression which may be applied to all N records in the database in case N is moderate and to a subset of records in the database in case N is extremely large, and will yield identical outputs to identical queries, even if the value data is perturbed by adding a random noise.
In this embodiment, the obfuscating of value data is done by performing weighted regression. Weights for data points used in regression can be chosen in any one of two ways:
In a regression modeling application, a linear model is fitted to a dependent variable Y as a function of predictor variables X1, X2, . . . . Xp, where p can equal 1 (in which case obfuscating is done on one column) or p can be greater than 1 (in which case several columns need to be obscured at once). The data needed for regression consists of a set of n records {(X1,i, X2,i, . . . , Xp,i, Yi)}, where n is a positive integer, p<n≦N.
The method of weighted regression for the case of one predictor variable (p=1) is briefly described below:
y
i
=a+bx
i
+e
i
e
i
=y
i−(a+bxi)
To apply weighted regression, the variable xTRUE,i is used as a predictor or as a dependent variable, depending upon the obfuscating method used, where xTRUE,i is the true value of the data in record i, and the variables (X1,i, X2,i, . . . . Xp,i) can be chosen in one of several ways depending upon the following:
(a) p=number of columns of data to be obscured=1
The choice for Yi depends upon whether a random error will be added to perturb the data or not as follows:
As an example, the m predictors can be taken as the first m principal component scores (Johnson and Wichern, 2007) obtained from performing a principal components analysis (PCA) of the subset {(X1,i, X2,i, . . . , Xm,i, Yi), i=1, 2, . . . , n}. This MLR equation is then used as the output of an SQL query.
We will now provide the details of the above three embodiments.
In the first embodiment, the method uses to denote the true value of a column (variable) in a database corresponding to the i-th record, i=1, 2, . . . N, where N is the total number of records in the database. The method of weighted regression for data obfuscation can of course be applied to all of the N records. In the method for base data obfuscating in this embodiment, however, a representative subset of xTRUE,i values are selected and then a random error with variance proportional to the magnitude of xTRUE,i value is added to each of the values in the selected subset to obtain n pairs of data points (xi, yi) where xi=xTRUE,i and yi=xi+ei, i=1, 2, . . . n. The random errors ei can be generated by first generating ei from a normal population with mean 0 and common standard deviation σ, and then multiplying ei by √{square root over (xi)}. Since the errors thus generated have variance proportional to xi, the weighted least squares regression method is used; this involves minimizing the function
By setting the derivatives of H(a,b) with respect to a and b equal to 0, and solving the resulting system of the two linear equations in two unknowns a and b, we obtain the estimates of a and b:
The subset {x1, x2, . . . xn} can be selected in many ways. We will use the following simple method to select a subset of size n=20 for data obfuscating: For each column xTRUE in the database, determine its 20-point summary as described below:
The method in this embodiment of data obfuscating can now be implemented as follows:
1. Compute the 20-point summary of the data (xTRUE,i, yi), i=1, 2, . . . N, and obtain xi,i=1, 2, . . . 20.
2. Generate ei from the normal distribution with mean 0 and standard deviation σ.
3. Calculate yi=xi+ei √{square root over (xi)}.
4. Calculate weights
5. Calculate the weighted least squares estimates a and b using the equations (1) and (2) given above.
6. If the output of a query includes xTRUE,i then its obscured version xOBSCURED,i=â+{circumflex over (b)}XTRUE,i is used place of xTRUE,i.
Now, examples of the weighted regression based obfuscating of base data and obfuscating aggregate data using random rounding are described.
The data for this example was generated from the mixture normal distribution
f(x)=0.5f1(x)+0.25f2(x)+0.1f3(x)+0.1f4(x)+0.05f5(x)
where f1 (x) is normal with mean 5 and sd 1
and f5 (x) is normal with mean 100000 and sd 100.
A total of N=10000 data points were generated; this set of 10000 records is our database {xTRUE,ii=1, 2, . . . , 10000}. A histogram of this synthetic data is shown in
y
i
=x
i
+e
i
,i=1,2, . . . ,20
A straight line is then fitted to the (xi, yi) data where xi=XTRUE,i, by using the method of weighted least squares, with weights inversely proportional to the variance of the error terms.
The intermediate calculations for this example are shown below.
The calculations for a and b for the above data are shown below:
We now illustrate the regression based data obfuscating on the results obtained from a query. Suppose a query on our synthetic database produced the 15 records, shown in the first column of Table 1. The second column shows the values of Xobscured=−0.6071+1.1205×XTRUE computed from the weighted regression line calculated above. The last column shows the values of diff=XTRUE−Xobscured, which is the amount of obfuscating in the base data.
The percent relative difference is calculated from the formula
As mentioned earlier, the method may apply random rounding on output from weighted regression to further reduce the resolution, as shown in
In obfuscating the aggregate, frequency suppression will be used and frequency values below a preset threshold will be suppressed. To illustrate this procedure, an example of random rounding with frequency suppression at 90 is used. In this example, if the frequency of a query is less than 90, then the frequency will be suppressed and the output will be annulled. Also, the random rounding procedure used in this example has base of 10, and rounds up a frequency if the last digit of the frequency is even, and rounds down if it is odd.
Frequency suppression, however, may not provide sufficient protection against tracker attacks (Duncan and Mukherjee, 2000), since the answer to a query with size less than the specified threshold (90 in the above example) may be computed from a finite sequence of legitimate queries, i.e., queries of sizes above 90 each. A high frequency filter can be configured to hamper such attempts to determine the true values from the obfuscated values.
In the following table, we illustrate the method of random rounding as applied to values; here we use notation rrX for random rounded X, and base equals 5×mean.
In this embodiment, the method and system to obscure data uses a univariate statistical method for obfuscating data in one column of the database, without randomly perturbing the data.
Suppose a query produces 110 records. The obfuscating approach of the second embodiment can be used on a smaller subset of the data (e.g., a 5-point summary of the data), as demonstrated in Table 3 below. We have used g(x)=x0.25 in this example.
The obscured values for x are calculated from the above regression line:
x
obscured,i=−2846+688x0.25
The descriptive statistics of the residual xi−xobscured,i are given below:
In this embodiment, the method and system to obscure data uses a multivariate statistical method of PCR for obfuscating data in one or more columns without randomly perturbing the data.
The method of this invention can be carried out in steps (a) and (b).
Step (a): Perform Principal Components Analysis (PCA) of Data in Records Produced by a Query in the Following 8 Steps:
PC
i
=l
i
T
X=l
11
X
1
+l
21
X
2
+ . . . +l
p1
X
p.
percent of variation in the data set. A multiple regression equation is obtained for each of columns Xi. Taken together, the p principal components explain 100% of variation in the data.
Step (b): Run PCR for Each Column X as a Function of the First m PC-Scores PC1,i, PC2,i, . . . PCm,i:
X
j,i=βj,0+βj,1PC1,j+ . . . +βj,mPCm,i+ei
where
Appendix A shows an example of obfuscating multivariate data using the PCR-based approach of this invention.
The method also provides a PCR-based solution even for the case when only one column of the database needs obfuscating. As explained above, the PCR requires a minimum of 2 columns so the invention includes a way to work around this problem. This method is briefly described below:
1) Suppose a query produces n records with values Xr, where X is the column in the database that needs obfuscating. Create p−1 additional columns
g
j(Xi) where gj(X) is a non-linear function of X
where
Xi=value of the column X for the i-th record
j=1, 2, . . . , p−1; i=1, 2, . . . , n
p−1=the number of additional columns created
n=the number of records produced by the query
2) Perform PCA, save PC—scores, and then use Principal Components Regression (PCR) to obtain an equation for X as a function of the first m PC's.
The PCR based obfuscating of this invention will output aggregates that are computed from random-rounded versions of values predicted by the above MLR equation.
We created a small database with N=1000 records and p=6 variables from a multivariate normal distribution. The sample correlation matrix of the data generated is given in Table 4.
The results of PCA are shown in Table 5 (eigenvalues and proportion of variance explained) and Table 6 (PC loadings).
The linear models for to Xi (i=1, 2, . . . , 6) using the PC-scores as the predictors, along with their respective R2 values, are given in Tables 7-12.
To assess the performance of the proposed data obfuscating method, we calculated descriptive statistics for the N values of
error=xi,j−{circumflex over (x)}i,j
and also
relative error=100×|(xi,j−{circumflex over (x)}i,j)/xi,j
Table 13 shows the descriptive statistics of performance measures. The variables Q1 and Q3 in Table 10 are the first and third quartiles of the error and relative error terms.
Table 14 shows the descriptive statistics of the ‘true’ data in the simulated database, and Table 15 shows the descriptive statistics of the ‘obscured’ data. The variables Q1 and Q3 in Table 14 are the first and third quartiles of the error and relative error terms.
Table 5 shows that for the generated database, first 3 PC's account for 92.1% of the total variation in the data. We therefore used PC1, PC2, and PC3 as the potential predictors for MLR models for the 6 variables in the database. Table 13 shows the number of PC's used in the selected MLR models and the corresponding R2 values. It should be kept in mind that the amount of obfuscating in the variables is controlled by the number of PC's used in the regression models; smaller the number of PC's used, larger will be the error and the relative error terms.
It can be seen from Table 13 that the mean relative error is around 1% and the maximum relative error ranges from approximately 4% to 20%. Tables 14 and 15 show the close agreement between the true and obscured values.
The regression based obfuscating method of embodiments I and 2 requires a representative subset of values in the column of database to be obfuscated so that the amount of obfuscating can be controlled. In this embodiment, the regression will be performed on a frequency table representation or histogram of the data. The values in one column of a secret database typically come not from one homogeneous statistical population but a mixture of several statistical populations, which range from very small to very large values. When a histogram based on equal class width is created for such values, it is quite difficult to get a good resolution without using an extremely large number of class-intervals, which is not practical (see
M
j=(Lj+Uj)/2.
X
obfuscated,i
=â+{circumflex over (b)}X
TRUE,i.
We next describe two examples of frequency table based obfuscating of values in one column of a database.
The data for this example was generated from the mixture normal distribution
f(x)=0.5f1(x)+0.25f2(x)+0.1f3(x)+0.1f4(x)+0.05f5(x)
where f1 (x) is normal with mean 5 and sd 1
and f5 (x) is normal with mean 100000 and sd 100.
A total of N=10000 data points were generated; this set of 10000 records constitutes our database {XTRUE,ii=1, 2, . . . , 10000}.
A histogram based upon equal class-intervals with k=49 is shown in
Table 17 shows the intermediate calculations for computing the estimates of the intercept a and the slope b of the obfuscating straight line. The obscured values corresponding to each value in the database was the computed from the fitted regression line.
Table 18 shows the descriptive statistics of the amount of obfuscation over the entire synthetic database of 10000 records for varying a values.
Table 19 shows the error
and the percent relative error
in the aggregate of a random query of size 50 for varying a values.
The Zipf probability distribution, sometimes referred to as the “zeta distribution” is given by
x=1, 2, 3, . . . ; α>1 is a constant where
ç(α)=Riemann zeta-function defined as
The Zipf distribution can be used to model the probability distribution of rank data in which the probability of the n-th ranked item is given by
Gan et al (2006) discuss modeling the probability distribution of city-size by the Zipf distribution.
Hörmann and Derflinger (1996) developed a rejection-inversion method for generating random numbers from monotone discrete probability distributions. For this example, we used the acceptance-rejection method of Devroye (1986) to generate a synthetic database of 10000 records. This method is briefly described below:
1) Generate u1 and u2 from the uniform distribution on the interval (0, 1).
2) Set x=u1−1/(α−1),
3) Accept x if
The random variable x has the Zipf distribution with parameter a.
For Example 5, a synthetic database of 10000 integer values were generated using the method 5 for generating random numbers from the Zipf distribution with α=2.
Table 18 shows the intermediate calculations for computing the estimates of the intercept a and the slope b of the obfuscating straight line for data of Example 5. The obscured values corresponding to each value in the database was the computed from the fitted regression line.
Table 19 shows the descriptive statistics of the amount of obfuscating over the entire synthetic database of 10000 records for σ=20, 40, 60, 80, 100.
Table 20 shows the error
and the percent relative error
in the aggregate of a random query of size 50 for varying a values.
Obscuring straight line is
ŷ=xobscured=â+{circumflex over (b)}xTRUE
where
Obscuring straight line is
ŷ=xobscured=â+{circumflex over (b)}xTRUE
where
It will thus be seen that the present invention provides a method and system for obfuscating data that is repeatable, computationally efficient, provides a query language interface, can return identical results for identical records and preserves the confidentiality of the secret data. An independent obfuscation engine isolates obfuscation from the query engine and facilitates operation in a distributed computing environment. Dedicated obfuscation hardware reduces the risk of obfuscation being avoided.
While the present invention has been illustrated by the description of the embodiments thereof, and while the embodiments have been described in detail, it is not the intention of the Applicant to restrict or in any way limit the scope of the appended claims to such detail. Additional advantages and modifications will readily appear to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details, representative apparatus and method, and illustrative examples shown and described. Accordingly, departures may be made from such details without departure from the spirit or scope of the Applicant's general inventive concept.
This application is a Continuation of U.S. application Ser. No. 15/049,992, filed 22 Feb. 2016, which is a Continuation of U.S. application Ser. No. 12/992,513, filed 30 Mar. 2011, which is a National Stage Application of PCT/NZ2009/000077, filed 12 May 2009, which claims benefit of U.S. Application No. 61/052,613, filed 12 May 2008, and which applications are hereby incorporated by reference in their entireties. To the extent appropriate, a claim of priority is made to each of the above disclosed applications.
Number | Date | Country | |
---|---|---|---|
61052613 | May 2008 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15049992 | Feb 2016 | US |
Child | 15183449 | US | |
Parent | 12992513 | Mar 2011 | US |
Child | 15049992 | US |