Data Privacy
Data Privacy
1.1 Introduction
Organizations dealing with banking, insurance, retail, healthcare, and
manufacturing across the globe collect large amounts of data about their
customers. This is a valuable asset to the organizations as these data can
be mined to extract a lot of insights about their customers. For example,
mining these data can throw light on customers’ spending/buying, credit
card usage, and investment patterns and health issues, to name a few. This
information is used by companies to provide value-added services to their
customers, which in turn results in higher revenue and profit. But these data
might contain customers’ personal identification information, and when in
the hands of a data snooper, they can be exploited.
Large companies across the globe outsource their IT and business pro-
cess work to service providers in countries like India, China, Brazil, etc. The
outsourced work may involve application maintenance and development,
testing, data mining/analysis, statistical analysis, etc. Business applications
contain sensitive information, such as personal or financial and health-
related data. Sharing such data can potentially violate individual privacy and
lead to financial loss to the company. Serious concerns have been expressed
by general public about exposing person-specific information. The issue of
data leakage, either intentional or accidental exposure of sensitive informa-
tion, is becoming a major security issue.
An IDC survey [19] claims that data leakage is the number one threat,
ranked higher than viruses, Trojan horses, and worms. To address the privacy
of an individual’s data, governments across the globe have mandated regula-
tions that companies have to adhere to: HIPAA (Health Insurance Portability
and Accountability Act) in the United States, FIPPA (Freedom of Information
and Protection of Privacy Act) in Canada, Sarbanes–Oxley Act, Video Privacy
Protection, U.S. Declaration of Human Rights, and the EU’s Data Protection
Directive are just a few examples. Companies need to look into methods and
tools to anonymize sensitive data. Data anonymization techniques have been
the subject of intense investigation in recent years for many kinds of struc-
tured data, including tabular, transactional data, and graph data.
1
2 Data Privacy: Principles and Practice
Government—Compliance
Customer/Record owner and regulations
Adversary/Data snooper
Company—Banks, insurance,
healthcare, or retail
Data analysts
Data anonymizer
Data Data
Pro Data Data s es
du
cti Data Data at aba
on dd
dat
aba m ize Testers
ses o ny
An
Business operations
employee
FIGURE 1.1
Data privacy—stakeholders in the organization.
Data anonymizer: A person who anonymizes and provides data for analysis
or as test data.
Data analyst: This person uses the anonymized data to carry out data m ining
activities like prediction, knowledge discovery, and so on. Following govern-
ment regulations, such as the Data Moratorium Act, only anonymized data
can be used for data mining. Therefore, it is important that the provisioned
data support data mining functionalities.
Tester: Outsourcing of software testing is common among many companies.
High-quality testing requires high-quality test data, which is present in pro-
duction systems and contains customer-sensitive information. In order to test
the software system, the tester needs data to be extracted from production
systems, anonymized, and provisioned for testing. Since test data contain
customer-sensitive data, it is mandatory to adhere to regulatory compliance
in that region/country.
Business operations employee: Data analysts and software testers use anony-
mized data that are at rest or static, whereas business operations employees
access production data because they need to support customer’s business
requirements. Business operations are generally outsourced to BPO (busi-
ness process outsourcing) companies. In this case too, there is a requirement
to protect customer-sensitive data but as this operation is carried out during
run-time, a different set of data protection techniques are required to protect
data from business operations employees.
Adversary/data snooper: Data are precious and their theft is very common.
An adversary can be internal or external to the organization. The anonymiza-
tion design should be such that it can thwart an adversary’s effort to identify
a record owner in the database.
Companies spend millions of dollars to protect the privacy of customer
data. Why is it so important? What constitutes personal information? Personal
information consists of name, identifiers like social security number, geo-
graphic and demographic information, and general sensitive information, for
example, financial status, health issues, shopping patterns, and location data.
Loss of this information means loss of privacy—one’s right to freedom from
intrusion by others. As we will see, protecting one’s privacy is nontrivial.
others know your health issues or financial status? All these are sensitive
data and should be well protected as they could fall into the wrong hands
and be exploited. Let us look at a sample bank customer and an account
table. The customer table taken as such has nothing confidential as most of
the information contained in it is also available in the public voters data-
base and on social networking sites like Facebook. Sensitiveness comes in
when the customer table is combined with an accounts table. A logical rep-
resentation of Tables 1.1 and 1.2 is shown in Table 1.3.
Data D in the tables contains four disjointed data sets:
TABLE 1.1
Customer Table
Explicit Identifiers Quasi-Identifiers
ID First Name DOB Gender Address Zip Code Phone
1 Ravi 1970 Male Fourth Street 66001 92345-67567
2 Hari 1975 Male Queen Street 66011 98769-66610
3 John 1978 Male Penn Street 66003 97867-00055
4 Amy 1980 Female Ben Street 66066 98123-98765
TABLE 1.2
Account Table
Sensitive Data
Account Account Account Credit Nonsensitive
ID Number Type Balance Limit Data
1 12345 Savings 10,000 20,000
2 23456 Checking 5,000 15,000
3 45678 Savings 15,000 30,000
4 76543 Savings 17,000 25,000
Introduction to Data Privacy 7
TABLE 1.3
Logical Representation of Customer and Account Tables
Explicit
Identifiers Quasi-Identifiers Sensitive Data
Zip Account Account Account Credit
ID Name DOB Gender Address Code Number Type Balance Limit
1 Ravi 1970 Male Fourth 66001 12345 Savings 10,000 20,000
Street
2 Hari 1975 Male Queen 66011 23456 Checking 5,000 15,000
Street
3 John 1978 Male Penn Street 66003 45678 Savings 15,000 30,000
4 Amy 1980 Female Ben Street 66066 76543 Savings 17,000 25,000
The first two data sets, the EI and QI, uniquely identify a record owner and
when combined with sensitive data become sensitive or confidential. The
data set D is considered as a matrix of m rows and n columns. Matrix D is a
vector space where each row and column is a vector
Each of the data sets, EI, QI, and SD, are matrices with m rows and i, j, and
k columns, respectively. We need to keep an eye on the index j (represent-
ing QI), which plays a major role in keeping the data confidential.
Apart from assuring their customers’ privacy, organizations also have
to comply with various regulations in that region/country, as mentioned
earlier. Most countries have strong privacy laws to protect citizens’ per-
sonal data. Organizations that fail to protect the privacy of their customers
or do not comply with the regulations face stiff financial penalties, loss of
reputation, loss of customers, and legal issues. This is the primary reason
organizations pay so much attention to data privacy. They find themselves
in a Catch-22 as they have huge amounts of customer data, and there is a
compelling need to share these data with specialized data analysis com-
panies. Most often, data protection techniques, such as cryptography and
anonymization, are used prior to sharing data. In this book, we focus only
on anonymization.
Anonymization is a process of logically separating the identifying
information (PII) from sensitive data. Referring to Table 1.3, the anony-
mization approach ensures that EI and QI are logically separated from
SD. As a result, an adversary will not be able to easily identify the record
owner from his sensitive data. This is easier said than done. How to
effectively anonymize the data? This is the question we explore through-
out this book.
8 Data Privacy: Principles and Practice
TABLE 1.4
Example of Anonymity
Personal Identity Sensitive Data
Zip Account Account Account Credit
SSN Name DOB Gender Address Code Number Type Balance Limit
X X X X X X
X X X X X X
X X X X X X
X X X X X X
Note: X, identity is protected.
TABLE 1.5
Example of Privacy
Personal Identity Sensitive Data
Zip Account Account Account Credit
SSN Name DOB Gender Address Code Number Type Balance Limit
X X X X
X X X X
X X X X
X X X X
Note: X, sensitive data are protected.
Introduction to Data Privacy 9
of birth, gender, and zip code have the capacity to uniquely identify indi-
viduals. Combine that with SD, such as income, and a Warren Buffet or Bill
Gates is easily identified in the data set. By de-identifying, the values of QI
are modified carefully so that the relationship is till maintained by identities
cannot be inferred.
In Equation 1.1, the original data set is D which is anonymized, resulting
in data set D′ = T(D) or T([DEI][DQI][DSD]), where T is the transformation func-
tion. As a first step in the anonymization process, EI is completely masked
and no longer relevant in D′. As mentioned earlier, no transformation is
applied on SD and it is left in its original form. This results in D′ = T([DQI]),
which means that transformation is applied only on QI as EI is masked
and not considered as part of D′ and SD is left in its original form. D′ can
be shared as QI is transformed and SD is in its original form but it is very
difficult to identify the record owner. Coming up with the transformation
function is key to the success of anonymization design and this is nontrivial.
We spend a lot of time on anonymization design, which is generally applied
on static data or data at rest.
The other scenario is protecting SD, as shown in Table 1.5, which is applied
on data in motion. The implementation of this is also very challenging.
It is dichotomous as organizations take utmost care in protecting the
privacy of their customers’ data, but the same customers provide a whole
lot of personal information when they register on social network sites like
Facebook (of course, many of the fields are not mandatory but most peo-
ple do provide sufficient personal information), including address, phone
numbers, date of birth (DOB), details of education and qualification, work
experience, etc. Sweeney [2] reports that zip code, DOB, and gender are
sufficient to uniquely identify 83% of population in the United States. With
the amount of PII available on social networking sites, a data snooper with
some background knowledge could use the publicly available information
to re-identify customers in corporate databases.
In the era of social networks, de-identification becomes highly challenging.
But access to a customer’s trade account during these processes would expose
a lot of sensitive information and this is not acceptable to the customer,
and the regulation in the country will not permit such access. Therefore, these
data have to be protected. But the question is how and what data are to be
protected? A technique known as tokenization is used here wherein the sen-
sitive data that should not be seen by the BPO employee are replaced with
a token. This token has no relationship with the original data, and outside
the context of the application the token has no meaning at all. All these are
executed during run-time. Like privacy preserving data mining and test data
management, protection of sensitive data is a subject in itself and is covered
in depth in this book.
Tokenization is a technique that replaces the original sensitive data with non-
sensitive placeholders referred to as tokens. The fundamental difference
between tokenization and the other techniques is that in tokenization, the origi-
nal data are completely replaced by a surrogate that has no connection to the
original data. Tokens have the same format as the original data. As tokens are
not derived from the original data, they exhibit very powerful data protection
features. Another interesting point of tokens is, although the token is usable
within its native application environment, it is completely useless elsewhere.
Therefore, tokenization is ideal to protect sensitive identifying information.
Op
t
1 Op imum
tim
um priva
uti c y,
lity
Privacy
0
0 Utility 1
FIGURE 1.5
Privacy versus utility map.
TABLE 1.6
Original Table with Strong Correlation between QI and SD
Name Zip Code Gender Income
Chen 56001 Male 25K
Jenny 56015 Female 8K
Alice 56001 Female 30K
Ram 56011 Male 5K
Introduction to Data Privacy 17
Table 1.6 shows four individuals. Although many rows have not been shown
here, let us assume that the ZIP CODE and INCOME are correlated, in that
the ZIP CODE 56001 primarily consists of high-income individuals. Table 1.7
is a modified version of Table 1.6. Let us not worry about the techniques used
to anonymize data, but focus just on the results. We can see that the names
have been changed, the original ZIP CODES have been replaced with differ-
ent values and INCOME values are unchanged.
Let us assess gains and losses for this anonymization design.
Privacy gain: Names are substituted (hence protected), financial standing is
not attributed to another zip code, and geographical location is anonymized.
Utility loss: Gender information is preserved, names are substituted while pre-
serving demographic clues, correlation is preserved but the zip code is different.
Another design can have just “XXXX” for all names, 56001 for all zip codes,
and “Male” for all gender values. We can agree that this anonymization
design scores well in terms of privacy, but utility is pathetic. Privacy gain:
Names are completely suppressed, financial standing cannot be inferred,
and geographical location is not compromised. Utility loss: Presence of
females in the population, meaningless names lose demographic clues, flat
value of zip code annuls the correlation.
This shows that anonymization design drives the extent of privacy and
utility, which are always opposed to each other. The two designs also show
that privacy or utility need not be 0 and 1 as in encryption; rather, both are
shades of gray as stated earlier. A good design can achieve a balance between
them and achieve both goals to a reasonable extent.
One way to quantify privacy is on the basis of how much information an
adversary can obtain about the SD of an individual from different dimen-
sions in the data set [5–8]. These references state that SD fields can be iden-
tified (or estimated/deduced) using QI fields. This is a very simple way
to quantify privacy. In fact, this model does not capture many important
dimensions, such as background knowledge of the adversary, adversary’s
knowledge of some of the sensitive data, the complexity of the data structure,
etc. We discuss this in sufficient detail in Chapter 4.
The utility loss of a particular anonymization technique is measured
against the utility provided by the original data set. A measure of utility
TABLE 1.7
Anonymized Table with Generalized Values—Correlation
between QI and SD Is Broken
Name Zip Code Gender Income
Yang 56000 Male 25K
Emma 56010 Female 8K
Olivia 56000 Female 30K
Krishna 56010 Male 5K
18 Data Privacy: Principles and Practice
TABLE 1.8
Background Knowledge of the Adversary
about the Distribution of SD Fields
Name Zip Code Gender Disease
John Smith 46001 Male Hypertension
Tom Henry 46005 Male Gastritis
Alice Williams 46001 Female Cancer
Little Wood 46011 Male Asthma
Introduction to Data Privacy 19
Business domain
Utility
Application
requirement
Privacy
requirement
FIGURE 1.6
Drivers for anonymization design.
have very little utility. In this context, irrespective of which tool an organi-
zation uses, there is a need for a mechanism to monitor privacy versus util-
ity for various privacy requirements. Unfortunately, quantifying privacy
and utility is nontrivial. Therefore, it is critical to provide assurance of high
quality of data anonymization during the initial phase of the anonymiza-
tion life cycle. To support this, we felt it is necessary to define a set of design
principles. These principles will provide the required guidelines for the
data anonymizer to adopt the correct design for a given anonymization
requirement.
As software architects, we start the architecting process by following a
set of architecture principles that will guide us to come up with the correct
design for the system. We base our work here on a similar approach. In [12],
the authors classify principles into two broad types—scientific and norma-
tive. Scientific principles are laws of nature and form the fundamental truths
that one can build upon. Normative principles act as a guide and need to be
enforced. Similarly, a data anonymizer needs guidance, and the anonymiza-
tion design principles should be enforced to ensure proper anonymization
design. These principles are fundamental in nature and are applicable to all
aspects of anonymization. They connect the high-level privacy and utility
requirements to low-level implementation.
Introduction to Data Privacy 21
• Principle Name
• Rationale
• Implications
TABLE 1.9
Sample Sparse High-Dimensional Transaction Database
in a Supermarket
Name P1 P2 P3 P4 P5 P6 Pn
Hari 1 1
Nancy 1 1
Jim 1 1
Introduction to Data Privacy 23
1. High dimensionality.
2. Sparsity.
3. Conventional privacy preservation techniques used for relational
tables that have fixed schema are not applicable on transaction data.
TABLE 1.10
Sample Longitudinal Data Set in the Healthcare Domain
Systolic Diastolic
ID Name DOB ZIP Service Date Diseases (mmHg) (mmHg)
1 Bob 1976 56711 30/05/2012 Hypertension 180 95
2 Bob 1976 56711 31/05/2012 Hypertension 160 90
3 Bob 1976 56711 01/06/2012 Hypertension 140 85
4 Bob 1976 56711 02/06/2012 Hypertension 130 90
5 Bob 1976 56711 03/06/2012 Hypertension 125 85
6 Bob 1976 56711 04/06/2012 Hypertension 120 80
7 Alice 1969 56812 31/03/2012 Hypertension 160 90
24 Data Privacy: Principles and Practice
Consider the longitudinal data set D, which has three disjoint sets of data
(EI, QI, and SD). EI are completely masked to prevent identification. QI
are anonymized using generalization and suppression to prevent iden-
tity disclosure. In the case of longitudinal data, anonymizing identity attri-
butes alone is not sufficient to prevent an adversary from re-identifying the
patient. An adversary can still link some of the sensitive attributes to the
publicly available data, that is, medical records. Now comes the need to pre-
vent attributes disclosure. For longitudinal data, an anonymization design
that prevents identity as well as attributes disclosure is required [16]. There
are a number of techniques to prevent identity disclosure, such as perturba-
tive and nonperturbative techniques. Effective anonymization techniques
are required to prevent attributes disclosure, but these techniques should
also ensure that they preserve the characteristics of longitudinal data.
Hari Ram
Jane Jack
Bob Alice
FIGURE 1.7
Graph network with original data.
A B
F C
E D
FIGURE 1.8
Modified graph network.
26 Data Privacy: Principles and Practice
1. Identity disclosure
2. Link disclosure
3. Content/attribute disclosure
TABLE 1.11
Sample Time Series Data Table Showing Weekly Sales of Companies
Company
ID Name Address Week 1 Week 2 Week 3 Week 4 Week 5
1 ABC Park Street, 56001 10,000 12,000 17,000 8,000 11,000
2 ACME Kings Street, 56003 15,000 17,000 18,000 20,000 21,000
3 XYZ Main Street, 56022 20,000 23,000 25,000 26,000 30,000
4 PQR Queen Street, 56021 14,000 18,000 19,000 19,500 21,000
• High dimensionality
• Retaining the statistical properties of the original time series data
like mean, variance, and so on
• Supporting various types of queries like range query or pattern
matching query
• Preventing identity disclosure and linkage attacks
References
1. J.M. Skopek, Anonymity: The production of goods and institutional design,
Fordham Law Review, 82(4), 1751–1809, 2014, [Link]
vol82/iss4/4/.
2. L. Sweeney, k-Anonymity: A model for protecting privacy, International Journal
of Uncertainty, Fuzziness and Knowledge Based Systems, 10 (5), 557–570, 2002.
CHAPTER 1
Data Governance and
Simple Privacy Approaches
Data privacy is a large and long-lived field. I want you to picture it like an old road,
packed with interesting side streets and diversions but hard to navigate if you don’t
know the way. This chapter is your initial orientation to this road. In this chapter and
throughout this book, I’ll help you map important parts of the privacy landscape, and
you’ll find areas where you want to learn more and deviate from the original path.
Applying this map within your organization means uncovering who is doing
what, what their responsibilities are, and what data privacy needs exist in your
organization.1
You might have heard the phrase data governance only once or hundreds of times,
but it is often left unexplained or open for interpretation. In this chapter, you’ll learn
where data governance overlaps with data privacy for practical data science purposes
and learn simpler approaches for solving privacy problems with data, such as pseudo‐
nymization. You’ll also learn how governance techniques like documentation and
lineage tracking can help identify privacy problems or ways to implement privacy
techniques at the appropriate step.
1 Throughout this book, I’ll use the term organization as a word to describe your workplace. If you are at a
small agile data science consultancy, a massive corporation, or a midsize nonprofit, you will have a vastly dif‐
ferent experience. This book should be useful for all groups—take the advice and learnings and use your own
knowledge of your work to fit them to your size and culture.
1
If you already know or work in data governance, I recommend
skimming or skipping this chapter. If governance and data man‐
agement are new to you, this chapter will show you the founda‐
tions needed to apply the advanced techniques you’ll learn in later
chapters.
This chapter will help give you tools and systems to identify, track, and manage sensi‐
tive data. Without this foundation, it will be difficult to assess privacy risk and miti‐
gate those concerns. Starting with governance makes sense, because privacy fits well
into the governance frameworks and paradigms, and these areas of work support one
another in data systems.
2 Privacy by Design is a set of principles developed by Ann Cavoukian outlining measures technologists can use
to ensure systems are architected and software is designed with privacy in mind from the beginning. You will
hear it used quite often in conversations with experienced governance experts. I recommend taking time to
read and explore these principles and determine how they fit your data work. These principles are included in
Chapter 11.
You are likely already focused on many of these questions since data is a major part
of your job. You might have personally suffered from a lack of data documentation,
incomplete understanding of how a certain database came to be, and issues with data
labeling and quality. Now you have a new word to use to describe these qualities:
governance!
Working on the governance side of data administration or management is really
about focusing on how to collect and update information about the data throughout
its lifecycle. The regulatory, privacy, and security concerns shape that information
and ensure governance decisions and frameworks expedite measures like individual
data rights and appropriate usage of data. If your data does not come from individu‐
als, there may be other concerns with regard to proprietary data or related security
issues that guide governance initiatives.
When you think about governing data in a concrete way, you begin to look at tasks
such as documenting the ever-changing data flows at your organization. It seems
obvious and easy, but on closer look it is anything but.
3 Your organization might have their own definition of sensitive data that varies from the one used in this
book. Ensure you use appropriate terms internally when bringing up these topics.
4 This work was published by some of the researchers who later worked on Cambridge Analytica. See: Kosinki
et al., “Private traits and attributes are predictable from digital records of human behavior”, 2013.
Identifying PII
PII falls under a particular legal category in most data protection regulations, which
requires close attention when data governance is implemented at an organization. If
your organization collects any personal data—even for employees—then this data
often has special governance requirements. Frequently, there is a lack of documenta‐
tion or categorization of PII because it often shows up in text files, log files, or other
unstructured data, which are all notoriously poorly documented.
There are several tools built explicitly for PII discovery in unstructured data using a
variety of methods. I’ve also seen teams successfully build their own tools and sys‐
tems for PII discovery. Many tools use fairly brittle methods like regular expressions
(which are strings used to match patterns) or string entropy (for finding things like
application programming interface [API] keys, cryptographic keys, or passwords). I
have also successfully built deep learning models to identify PII in message text. Your
results with these approaches will vary and should be evaluated depending on your
use cases.
PII discovery is never perfect and never will be. It’s important to
talk with your risk teams (privacy, legal, security) about this fact,
whether you purchase a PII discovery toolkit or build your own.
It’s safest to treat human-input data as extremely sensitive (e.g., as
PII), regardless of the “cleaning processes.” If you would like to use
human-input data without extra protections associated with PII,
you need to properly identify risks and ensure they are addressed
and appropriately tested.
If you are working with a backlog of undocumented data and you fear there is a lot of
PII contained therein, take a look at an easy-to-use open source tool. After you see
how far that will take you, determine whether you need to invest in a more advanced
or expensive approach. I can recommend Microsoft’s Presidio, which also includes
some basic pseudonymization techniques covered later in this chapter.
The best approach to manage and track PII is to actually track the data as it comes in
and to label and manage this data as it traverses the system so you don’t need to
aggressively search or discover it later. One of the ways you can start the habit and
culture of detecting PII early and often is to build a culture of documentation around
data collection and data use. Table 1-1 gives you a good start. To develop a compre‐
hensive approach, you might involve numerous parts of your organization, including
2
1.1 Cybersecurity, Information Security, and Network Security 3
Cybersecurity is the prevention of damage to, unauthorized use of, exploitation of, and—if
needed—the restoration of electronic information and communications systems, electronic
communications services, wire communication, and electronic communication, including
information contained therein, to ensure its availability, integrity, authentication, confiden-
tiality, and nonrepudiation.
Cybersecurity encompasses information security, with respect to electronic information, and network
security. Information security also is concerned with physical (e.g., paper-based) information. However,
in practice, the terms cybersecurity and information security are often used interchangeably.
Security Objectives
The cybersecurity definition just given introduces three key objectives that are at the heart of infor-
mation and network security:
■ Confidentiality: Also known as data confidentiality, the property that information is not made
available or disclosed to unauthorized individuals, entities, or processes. A loss of confidential-
ity is the unauthorized disclosure of information.
■ Integrity: This term covers two related concepts:
■ Data integrity: Ensures that data (both stored and in transmitted packets) and programs
are changed only in a specified and authorized manner. A loss of data integrity is the
unauthorized modification or destruction of information.
■ System integrity: Ensures that a system performs its intended function in an unimpaired
manner, free from deliberate or inadvertent unauthorized manipulation of the system.
■ Availability: Ensures that systems work promptly and that service is not denied to authorized
users. A loss of availability is the disruption of access to or use of information or an information
system.
4 CHAPTER 1 Security and Cryptography Concepts
Note
We can define information as communication or representation of knowledge such as facts, data,
or opinions in any medium or form, including textual, numerical, graphic, cartographic, narrative,
or audiovisual; and data as information with a specific representation that can be produced,
processed, or stored by a computer. Security literature typically does not make much of a
distinction between the two, nor does this book.
These three concepts form what is often referred to as the CIA triad. These three concepts embody
the fundamental security objectives for both data and information and computing services.
For example, the NIST (National Institute of Standards and Technology) standard FIPS 199
(Standards for Security Categorization of Federal Information and Information Systems) lists
confidentiality, integrity, and availability as the three security objectives for information and for
information systems.
Although the use of the CIA triad to define security objectives is well established, many in the
security field feel that additional concepts are needed to present a complete picture, as illustrated
in Figure 1.1. The list that follows describes two of the most commonly mentioned additional
security concepts:
ity
tial
en In
te
nfid gr
Co ity
Acc
Information
oun
and Network
ity
Security
tabi
ntic
lity
he
Aut
Availability
■ Authenticity: The property of being genuine and being able to be verified and trusted; confi-
dence in the validity of a transmission, a message, or a message originator. This means verify-
ing that users are who they say they are and that each input arriving at the system came from a
trusted source.
■ Accountability: The security goal that generates the requirement for actions of an entity to
be traced uniquely to that entity. This supports nonrepudiation, deterrence, fault isolation,
1.1 Cybersecurity, Information Security, and Network Security 5
intrusion detection and prevention, and after-action recovery and legal action. Because truly
secure systems are not yet an achievable goal, it must be possible to trace a security breach to a
responsible party. Systems must keep records of their activities to permit later forensic analysis
to trace security breaches or to aid in transaction disputes.
1. Security is not as simple as it might first appear to the novice. The requirements seem to be
straightforward; indeed, most of the major requirements for security services can be given self-
explanatory, one-word labels: confidentiality, authentication, nonrepudiation, integrity. But the
mechanisms used to meet those requirements can be quite complex, and understanding them
may involve rather subtle reasoning.
2. In developing a particular security mechanism or algorithm, designers must always consider
potential attacks on those security features. In many cases, successful attacks are designed by
looking at the problem in a completely different way and exploiting an unexpected weakness in
the mechanism.
3. Because of point 2, the procedures used to provide particular services are often counterintuitive.
Typically, a security mechanism is complex, and it is not obvious from the statement of a par-
ticular requirement that such elaborate measures are needed. It is only when the various aspects
of the threat are considered that elaborate security mechanisms make sense.
4. Having designed various security mechanisms, it is necessary to decide where to use them. This
is true both in terms of physical placement (e.g., at what points in a network are certain security
mechanisms needed?) and in a logical sense (e.g., should containers or virtual machines be used
to isolate personal information, or should an integrated access control mechanism be used to
protect all types of data, with access determined by user roles and privileges?).
5. Security mechanisms typically involve more than a particular algorithm or protocol.
They also require that participants be in possession of some secret information (e.g., an
encryption key), which raises questions about the creation, distribution, and protection of
that secret information. There also may be a reliance on communications protocols, whose
behavior may complicate the task of developing the security mechanism. For example, if
the proper functioning of a security mechanism requires setting time limits on the transit
time of a message from sender to receiver, then any protocol or network that introduces
variable, unpredictable delays might render such time limits meaningless. It is worth
mentioning here that security mechanisms are generally not secret, and indeed they may
be open source, but secrecy is provided by maintaining the security of encryption keys, as
discussed subsequently.
6 CHAPTER 1 Security and Cryptography Concepts
6. Information and network security are essentially a battle of wits between a perpetrator who tries
to find holes and a designer or an administrator who tries to close them. The great advantage
that the attacker has is that he or she need find only a single weakness, while the designer must
find and eliminate all weaknesses to achieve perfect security.
7. There is a natural tendency on the part of users and system managers to perceive little benefit
from security investment until a security failure occurs.
8. Security requires regular, even constant, monitoring, and this is difficult in today’s short-term,
overloaded environment.
9. Security is still too often an afterthought to be incorporated into a system after the design is
complete rather than being an integral part of the design process.
10. Many users and even security administrators view strong security as an impediment to efficient
and user-friendly operation of an information system or use of information.
These difficulties apply equally as well to information privacy. The difficulties just enumerated will be
encountered in numerous ways as we examine the various privacy threats and mechanisms throughout
this book.
■ Security attack: Any action that compromises the security of information owned by an
organization.
■ Security mechanism: A process (or a device incorporating such a process) that is designed to
detect, prevent, or recover from a security attack.
■ Security service: A processing or communication service that enhances the security of the
data processing systems and the information transfers of an organization. Security services are
intended to counter security attacks, and they make use of one or more security mechanisms to
provide the services.
In the literature, the terms threat and attack are commonly used, with the following meanings:
■ Threat: Any circumstance or event that has the potential to adversely impact organiza-
tional operations (including mission, functions, image, or reputation), organizational assets,
1.2 Security Attacks 7
individuals, other organizations, or the nation through an information system via unauthorized
access, destruction, disclosure, modification of information, and/or denial of service.
■ Attack: Any kind of malicious activity that attempts to collect, disrupt, deny, degrade, or
destroy information system resources or the information itself.
Sections 1.2 through 1.4 provide an overview of the concepts of attacks, services, and mechanisms.
The key concepts that are covered in these sections are summarized in Figure 1.2.
Traffic Denial of
Masquerade
analysis service
(a) Attacks
Access Data
Authentication control confidentiality
Data Availability
Nonrepudiation
integrity service
(b) Services
Routing Access
Traffic padding Notarization
control control
(c) Mechanisms
X.800 classifies security attacks as either passive attacks or active attacks. A passive attack attempts to
learn or make use of information from the system but does not affect system resources. An active attack
attempts to alter system resources or affect their operation.
8 CHAPTER 1 Security and Cryptography Concepts
Passive Attacks
Passive attacks are in the nature of eavesdropping on, or monitoring of, transmissions. The goal of the
attacker is to obtain information that is being transmitted. Two types of passive attacks are the release
of message contents and traffic analysis:
Passive attacks are very difficult to detect because they do not involve any alteration of the data.
Typically, the message traffic is sent and received in an apparently normal fashion, and neither the
sender nor the receiver is aware that a third party has read the messages or observed the traffic pattern.
However, it is possible to prevent the success of these attacks, usually by means of encryption. Thus,
the emphasis in dealing with passive attacks is on prevention rather than detection.
Active Attacks
Active attacks involve some modification of stored or transmitted data or the creation of false data.
There are four categories of active attacks: replay, masquerade, modification of messages, and denial
of service.
■ A masquerade takes place when one entity pretends to be a different entity. A masquerade
attack usually includes one of the other forms of active attack. For example, authentication
sequences can be captured and replayed after a valid authentication sequence has taken place,
thus enabling an authorized entity with few privileges to obtain extra privileges by impersonat-
ing an entity that has those privileges.
■ Replay involves the passive capture of a data unit and its subsequent retransmission to produce
an unauthorized effect.
■ Data modification simply means that some portion of a legitimate message is altered or that
messages are delayed or reordered to produce an unauthorized effect. For example, a message
stating “Allow John Smith to read confidential file Accounts” might be modified to say “Allow
Fred Brown to read confidential file Accounts.”
1.2 Security Attacks 9
Active attacks present the opposite characteristics of passive attacks. Whereas passive attacks are
difficult to detect, measures are available to prevent their success. On the other hand, it is quite
difficult to prevent active attacks absolutely because to do so would require physical protection of all
IT systems, communication facilities, and paths at all times. Instead, the goal is to detect them and to
recover from any disruption or delays caused by them. Because detection has a deterrent effect, it may
also contribute to prevention.
Figure 1.3 illustrates the types of attacks in the context of a client/server interaction. A passive attack
(part b of Figure 1.3) does not disturb the information flow between the client and server but is able to
observe that flow.
Client Server
Attacker Attacker
(b) Passive attack (eavesdrop, traffic analysis) (c) Active attack (masquerade,
data modification)
Attacker Attacker
A masquerade can take the form of a man-in-the-middle attack (see part c of Figure 1.3). In this type
of attack, the attacker intercepts masquerades as the client to the server and as the server to the client.
Another form of masquerade is illustrated in part d of Figure 1.3. Here, an attacker is able to access
server resources by masquerading as an authorized user.
Data modification may involve a man-in-the middle attack, in which the attacker selectively modifies
communicated data between a client and server (see part c of Figure 1.3). Another form of data modi-
fication attack is the modification of data residing on a server or another system after an attacker gains
unauthorized access (see part d of Figure 1.3).
Part e of Figure 1.3 illustrates the replay attack. As in a passive attack, the attacker does not disturb
the information flow between client and server but does capture client messages. The attacker can then
subsequently replay any client message to the server.
Part d of Figure 1.3 also illustrates denial of service in the context of a client/server environment. The
denial of service can take two forms: (1) flooding the server with an overwhelming amount of data and
(2) triggering some action on the server that consumes substantial computing resources.
Service Description
Authentication A person’s identity is determined before access is granted.
Access Control Persons are allowed or denied access to resources for specific purposes.
Data Confidentiality Information is only available to persons intended to use or see it.
Data Integrity Information is modified only in appropriate ways by persons authorized to change it.
Nonrepudiation A person cannot perform an action and then later deny performing the action.
Availability Apps, services, and hardware are ready when needed and perform acceptably.
Authentication
The authentication service is concerned with ensuring that a communication is authentic. In the case
of a single message, such as a warning or an alarm signal, the function of the authentication service is
to ensure the recipient that the message is from the source that it claims to be from. In the case of an
ongoing interaction, such as the connection of a client to a server, two aspects are involved. First, at the
time of connection initiation, the service ensures that the two entities are authentic—that is, that each is
the entity that it claims to be. Second, the service must ensure that the connection is not interfered with
1.3 Security Services 11
in such a way that a third party can masquerade as one of the two legitimate parties for the purpose of
unauthorized transmission or reception.
X.800 defines two specific authentication services:
■ Peer entity authentication: Provides for the corroboration of the identity of a peer entity
in an association. Two entities are considered peers if they implement the same protocol in
different systems. Peer entity authentication is provided for use at the establishment of, or
at times during the data transfer phase of, a connection. It attempts to provide confidence
that an entity is not performing either a masquerade or an unauthorized replay of a previ-
ous connection.
■ Data origin authentication: Provides for the corroboration of the source of a data unit. It does
not provide protection against the duplication or modification of data units. This type of service
supports applications like electronic mail, where there are no ongoing interactions between the
communicating entities.
Access Control
Access control is the ability to limit and control the access to host systems and applications via commu-
nications links. To achieve this, each entity trying to gain access must first be identified, or authenti-
cated, so that access rights can be tailored to the individual.
Data Confidentiality
Confidentiality is the protection of transmitted data from passive attacks. With respect to the content
of a data transmission, several levels of protection can be identified. The broadest service protects all
user data transmitted between two users over a period of time. For example, when a logical network
connection is set up between two systems, this broad protection prevents the release of any user data
transmitted over the connection.
The other aspect of confidentiality is the protection of traffic flow from analysis. This requires that an
attacker not be able to observe the source and destination, frequency, length, or other characteristics of
the traffic on a communications facility.
Data Integrity
A connection-oriented integrity service—one that deals with a stream of messages—ensures that
messages are received as sent, with no duplication, insertion, modification, reordering, or replays. The
destruction of data is also covered under this service. Thus, the connection-oriented integrity service
addresses both message stream modification and denial of service. On the other hand, a connectionless
integrity service—one that deals with individual messages without regard to any larger context—
generally provides protection against message modification only.
12 CHAPTER 1 Security and Cryptography Concepts
We can make a distinction between service with and without recovery. Because the integrity service
relates to active attacks, we are concerned with detection rather than prevention. If a violation of
integrity is detected, then the service may simply report this violation, and some other portion of
software or human intervention is required to recover from the violation. Alternatively, there
are mechanisms available to recover from the loss of integrity of data, as we will review subsequently.
The incorporation of automated recovery mechanisms is, in general, the more attractive alternative.
Nonrepudiation
Nonrepudiation prevents either a sender or a receiver from denying a transmitted message. Thus, when
a message is sent, the receiver can prove that the alleged sender in fact sent the message. Similarly,
when a message is received, the sender can prove that the alleged receiver in fact received the message.
Availability Service
Availability means that a system or a system resource is accessible and usable upon demand by an
authorized system entity, according to performance specifications for the system; that is, a system is
available if it provides services according to the system design whenever users request them. A variety
of attacks can result in loss of or reduction in availability. Some of these attacks are amenable to auto-
mated countermeasures, such as authentication and encryption, whereas others require some sort of
physical action to prevent or recover from loss of availability of elements of a distributed system.
X.800 treats availability as a property to be associated with various security services. However, it
makes sense to call out specifically an availability service—that is, a service that protects a system to
ensure its availability. This service addresses the security concerns raised by denial-of-service attacks.
It depends on proper management and control of system resources and thus depends on access control
service and other security services.
■ Routing control: A control that enables selection of particular physically or logically secure routes
for certain data and allows routing changes, especially when a breach of security is suspected.
■ Notarization: The use of a trusted third party to ensure certain properties of a data exchange.
■ Access control: A variety of mechanisms that enforce access rights to resources.
Cryptography: 1. The discipline that embodies the principles, means, and methods for the
transformation of data in order to hide their semantic content, prevent their unauthorized
use, or prevent their undetected modification. 2. The discipline that embodies the prin-
ciples, means, and methods for the providing information security, including confidenti-
ality, data integrity, non-repudiation, and authenticity.
Cryptographic algorithm: A well-defined computational procedure, pertaining to cryp-
tography, that takes variable inputs, often including a cryptographic key, and produces an
output.
Cryptography is an essential component in the secure storage and transmission of data and in the
secure interaction between parties. Sections 1.5 through 1.10 provide brief technical introductions
to important aspects of the use of cryptography and cryptographic algorithms. For a more detailed
treatment, see Cryptography and Network Security: Principles and Practice [STAL20].
Cryptographic algorithms can be divided into three categories, as illustrated in Figure 1.4 and described
in the list that follows:
Pseudo- Digital
random number Stream cipher signature
generator symmetric
encryption Key
exchange
Message
authentication User
code authentication
■ Keyless: An algorithm that does not use any keys during cryptographic transformations.
■ Single-key: An algorithm in which the result of a transformation is a function of the input data
and a single key, known as a secret key.
■ Two-key: An algorithm in which, at various stages of the calculation, two different but related
keys are used, referred to as the private key and the public key.
Keyless Algorithms
Keyless algorithms are deterministic functions that have certain properties that are useful for cryptography.
One important type of keyless algorithm is the cryptographic hash function. A hash function turns a
variable amount of text into a small, fixed-length value called a hash value, hash code, or digest. A
cryptographic hash function has additional properties that make it useful as part of another crypto-
graphic algorithm, such as a message authentication code or a digital signature.
A pseudorandom number generator produces a deterministic sequence of numbers or bits that has
the appearance of being a truly random sequence. Although the sequence appears to lack any definite
pattern, it will repeat after a certain sequence length. Nevertheless, for some cryptographic purposes,
this apparently random sequence is sufficient.
Single-Key Algorithms
Single-key cryptographic algorithms depend on the use of a secret key. This key may be known to a
single user; for example, this is the case when protecting stored data that is only going to be accessed
by the data creator. Commonly, two parties share the secret key so that communication between the
two parties is protected. For certain applications, more than two users may share the same secret key. In
this case, the algorithm protects data from those outside the group who share the key.
Encryption algorithms that use a single key are referred to as symmetric encryption algorithms. With
symmetric encryption, an encryption algorithm takes as input some data to be protected and a secret
key and produces an unintelligible transformation on that data. A corresponding decryption algorithm
uses the transformed data and the same secret key to recover the original data.
Another form of single-key cryptographic algorithm is the message authentication code (MAC). A
MAC is a data element associated with a data block or message. The MAC is generated by a cryp-
tographic transformation involving a secret key and, typically, a cryptographic hash function of the
message. The MAC is designed so that someone in possession of the secret key can verify the integrity
of the message. Thus, the MAC algorithm takes as input a message and a secret key and produces the
MAC. The recipient of the message plus the MAC can perform the same calculation on the message;
if the calculated MAC matches the MAC accompanying the message, this provides assurance that the
message has not been altered.
1.6 Symmetric Encryption 15
Two-Key Algorithms
Two-key algorithms involve the use of two related keys. A private key is known only to a single user
or entity, whereas the corresponding public key is made available to a number of users. Encryption
algorithms that use two related keys are referred to as asymmetric encryption algorithms. Asymmetric
encryption can work in two ways:
■ An encryption algorithm takes as input some data to be protected and the private key and pro-
duces an unintelligible transformation on that data. A corresponding decryption algorithm uses
the transformed data and the corresponding public key to recover the original data. In this case,
only the possessor of the private key can have performed the encryption, and any possessor of
the public key can perform the decryption.
■ An encryption algorithm takes as input some data to be protected and a public key and produces
an unintelligible transformation on that data. A corresponding decryption algorithm uses the
transformed data and the corresponding private key to recover the original data. In this case,
any possessor of the public key can have performed the encryption, and only the possessor of
the private key can perform the decryption.
Asymmetric encryption has a variety of applications. One of the most important is the digital signature
algorithm. A digital signature is a value computed with a cryptographic algorithm and associated with
a data object in such a way that any recipient of the data can use the signature to verify the data’s
origin and integrity. Typically, the signer of a data object uses the signer’s private key to generate the
signature, and anyone in possession of the corresponding public key can verify the validity of that
signature.
Asymmetric algorithms can also be used in two other important applications. Key exchange is the
process of securely distributing a symmetric key to two or more parties. User authentication is the
process of authenticating that a user attempting to access an application or a service is genuine and, simi-
larly, that the application or service is genuine.
Adversary
Encryp-
Data X Encryption ted Decryption X Data
block Algorithm data Algorithm block
block
Y = E(K, X)
Secret key K
shared by
sender and
recipient
Secure Channel
Key
Source
■ Plaintext: The original message or data block that is fed into the algorithm as input.
■ Encryption algorithm: The algorithm that performs various substitutions and transformations
on the plaintext.
■ Secret key: An input to the encryption algorithm. The exact substitutions and transformations
performed by the algorithm depend on the key.
■ Ciphertext: The scrambled message produced as output. It depends on the plaintext and the
secret key. For a given data block, two different keys will produce two different ciphertexts.
■ Decryption algorithm: The inverse of the encryption algorithm. It uses the ciphertext and the
secret key to produce the original plaintext.
■ A strong encryption algorithm is required. At a minimum, the algorithm should be such that an
opponent who knows the algorithm and has access to one or more ciphertexts would be unable to
decipher the ciphertext or figure out the key. This requirement is usually stated in a stronger form:
The opponent should be unable to decrypt ciphertext or discover the key even if he or she is in
possession of a number of ciphertexts together with the plaintext that produced each ciphertext.
1.7 Asymmetric Encryption 17
■ The sender and receiver must have obtained copies of the secret key in a secure fashion and
must keep the key secure. If someone can discover the key and knows the algorithm, all com-
munication using this key is readable.
The generation and distribution of secret keys are essential elements of a symmetric cryptography
scheme. Typically, a key generation algorithm generates a random number and derives a secret key
from that number. For two parties to communicate, there are a number of possibilities for key distri-
bution, including:
■ One party generates the key and securely transfers it to the other party.
■ The two parties engage in a secure key exchange protocol that enables them to jointly generate
a key known only to the two parties.
■ A third party generates the key and securely transfers it to the two communicating parties.
Figure 1.5 illustrates the first alternative. One way to establish a secure channel of communication is
if the two parties already share an older secret key, and the party that generates the key can encrypt the
new key with the older key. Another alternative is the use of public-key cryptography to encrypt the
key. Public-key cryptography is discussed subsequently.
Figure 1.5 also indicates the existence of a potential adversary that seeks to obtain the plaintext. It
is assumed that the adversary can eavesdrop on the encrypted data and knows the encryption and
decryption algorithms that were used.
There are two general approaches an adversary can use to attack a symmetric encryption scheme. One
approach is cryptanalysis. Cryptanalytic attacks rely on the nature of the algorithm plus perhaps some
knowledge of the general characteristics of the plaintext or even some sample plaintext/ciphertext
pairs. This type of attack exploits the characteristics of the algorithm to attempt to deduce a specific
plaintext or to deduce the key being used. If an attack succeeds in deducing the key, the effect is cata-
strophic: All future and past messages encrypted with that key are compromised. The second method,
known as the brute-force attack, involves trying every possible key on a piece of ciphertext until an
intelligible translation into plaintext is obtained. On average, half of all possible keys must be tried
to achieve success. Thus, a secure symmetric encryption scheme requires an algorithm that is secure
against cryptanalysis and a key of sufficient length to defeat a brute-force attack.
Alice's
public key
ring
Bob’s private key
Joy
Ted
Mike Bob
Data Bob's Encrypted Data
block public key block block
Encryption Decryption
Algorithm Algorithm
Alice Bob
Bobs's
public key
ring
Alice’s private key
Joy
Ted
Mike Alice
Data Encrypted Data
Alice’s
block block block
public key
Encryption Decryption
Algorithm Algorithm
Alice Bob
■ Plaintext: This is the readable message or data block that is fed into the algorithm as input.
■ Encryption algorithm: The encryption algorithm performs various transformations on the
plaintext.
■ Public key and private key: This is a pair of keys that have been selected so that if one is used
for encryption, the other is used for decryption. The exact transformations performed by the
encryption algorithm depend on the public or private key that is provided as input.
1.7 Asymmetric Encryption 19
■ Ciphertext: This is the scrambled block produced as output. It depends on the plaintext and the
key. For a given message, two different keys will produce two different ciphertexts.
■ Decryption algorithm: This algorithm accepts the ciphertext and the matching key and pro-
duces the original plaintext.
1. Each user generates a pair of keys to be used for the encryption and decryption of messages.
2. Each user places one of the two keys in a public register or another accessible file. This is the
public key. The companion key is kept private. As part a of Figure 1.6 suggests, each user main-
tains a collection of public keys obtained from others.
3. If Alice wishes to send a confidential message to Bob, Alice encrypts the message using Bob’s
public key.
4. When Bob receives the message, he decrypts it using his private key. No other recipient can
decrypt the message because only Bob knows Bob’s private key.
The process works (produces the correct plaintext on output) regardless of the order in which the
pair of keys is used. With this approach, all participants have access to public keys, and private keys
are generated locally by each participant and therefore need never be distributed. As long as a user’s
private key remains protected and secret, incoming communication is secure. At any time, a system can
change its private key and publish the companion public key to replace its old public key. Table 1.2
summarizes some of the important aspects of symmetric and asymmetric encryption.
As with symmetric encryption, asymmetric key generation involves the use of a random number. In this
case, the key generation algorithm computes a private key from a random number and then computes
a public key as a function of the private key. Without knowledge of the private key, it is infeasible to
calculate the public key. On the other hand, knowledge of the public key does not enable calculation
of the private key.
Public-key encryption can be used in another way, as illustrated in part b of Figure 1.6. Suppose that Alice
wants to send a message to Bob and, although it isn’t important that the message be kept secret, she wants
Bob to be certain that the message is indeed from her. In this case, Alice uses her private key to encrypt
the message. When Bob receives the ciphertext, he finds that he can decrypt it with Alice’s public key,
thus proving that the message must have been encrypted by Alice: No one else has Alice’s private key,
and therefore no one else could have created a ciphertext that could be decrypted with Alice’s public key.
As with symmetric encryption algorithms, the security of public-key encryption is a function of the
strength of the algorithm and the length of the private key. Public-key cryptographic algorithms are
considerably slower than symmetric algorithms for a given data block length. Accordingly, public-
key cryptography is almost always limited to use with small blocks of data, such as a secret key or, as
discussed subsequently, a hash value.
Requirement Description
Variable input size H can be applied to a block of data of any size.
Fixed output size H produces a fixed-length output.
Efficiency H(x) is relatively easy to compute for any given x, making both hardware
and software implementations practical.
Preimage resistant (one-way For any given hash value h, it is computationally infeasible to find y
property) such that H(y) = h.
Second preimage resistant For any given block x, it is computationally infeasible to find y ≠ x with
(weak collision resistant) H(y) = H(x).
Collision resistant (strong col- It is computationally infeasible to find any pair (x, y) such that
lision resistant) H(x) = H(y).
Pseudorandomness Output of H meets standard tests for pseudorandomness; that is, the
output appears to be a random sequence of bits.
1.8 Cryptographic Hash Functions 21
Figure 1.7 indicates two common ways in which hash functions are used. Part a of Figure 1.7 illus-
trates the use of a hash function to ensure the data integrity of a block of data, generally referred to
as message authentication. The two important aspects of message authentication are to verify that the
contents of the message have not been altered and that the source is authentic. The hash function can
also verify a message’s timeliness (to see if it has been artificially delayed and replayed) and sequence
relative to other messages flowing between two parties by including timestamps and sequence numbers
in the message.
Source A Destination B
Message
Message
Message
H
E D
Message
Message
V
Valid/
Kprivate invalid
H
Kpublic
S
Message authentication using a hash value proceeds as follows. First, generate a hash value for the
source message. Next, encrypt the hash value using a secret key shared by a cooperating partner. Then,
transmit the message plus encrypted hash value to the destination. The recipient decrypts the incoming
encrypted hash value, generates a new hash value from the incoming message, and compares the two
hash values. If only the receiver and the sender know the identity of the secret key, and if the received
code matches the calculated code, then:
■ The receiver is assured that the message has not been altered. If an attacker alters the mes-
sage but does not alter the code, then the receiver’s calculation of the code will differ from the
22 CHAPTER 1 Security and Cryptography Concepts
received code. For a secure hash function, it is infeasible for an attacker to alter the message in
such a way that the hash value is not altered.
■ The receiver is assured that the message is from the alleged sender. Because no one else knows
the secret key, no one else could prepare a message with a proper code.
■ If the message includes a sequence number (as is used with TCP), then the receiver can be assured
of the proper sequence because an attacker cannot successfully alter the sequence number.
A second important use for hash functions is in the digital signature process, explained next.
SP 800-131A also includes recommendations for random bit generation algorithms, message authenti-
cation codes, key agreement algorithms, and key encryption algorithms.
24 CHAPTER 1 Security and Cryptography Concepts
Implementation Considerations
SP 800-12 (An Introduction to Information Security) lists the following as important management
considerations for implementing cryptography within an organization:
■ Selecting design and implementation standards: It is almost always advisable not to rely on
a proprietary cryptographic algorithm, especially if the algorithm itself is secret. Standardized
algorithms, such as AES, SHA, and DSS, have been subject to intense scrutiny by the profes-
sional community, and managers can have a high degree of confidence that the algorithms
themselves, used with the recommended lengths, are secure. NIST and other organizations
have developed numerous standards for designing, implementing, and using cryptography and
for integrating it into automated systems. Managers and users of systems should choose the
appropriate cryptographic standard based on cost-effectiveness analysis, trends in the standard’s
acceptance, and interoperability requirements.
■ Deciding between hardware, software, and firmware implementations: The trade-offs
among security, cost, simplicity, efficiency, and ease of implementation need to be studied by
managers acquiring various security products meeting a standard.
■ Managing keys: Key management is the process of administering or managing cryptographic
keys for a cryptographic system or application. It involves the generation, creation, protection,
storage, exchange, replacement, and use of keys and enables selective restriction for certain
keys. In addition to access restriction, key management also involves the monitoring and
recording of each key’s access, use, and context. A key management system also includes key
servers, user procedures, and protocols, including cryptographic protocol design. This complex
topic is beyond the scope of this book; see Effective Cybersecurity: A Guide to Using Best
Practices and Standards [STAL19] for a discussion.
■ Security of cryptographic modules: A cryptographic module contains the cryptographic
algorithm(s), certain control parameters, and temporary storage facilities for the key(s) being
used by the algorithm(s). The proper functioning of cryptography requires the secure design,
implementation, and use of the cryptographic module. This includes protecting the mod-
ule against tampering. A useful tool is the NIST Cryptographic Module Validation Program
(CMVP), which validates vendor offerings using independent accredited laboratories. The
validation is against the security requirements in FIPS 140-2 (Security Requirements for Cryp-
tographic Modules). FIPS 104-2 provides a detailed set of requirements at four security levels,
against which vendor hardware, firmware, and software offerings can be evaluated.
In 2018, NIST announced a project to solicit designs for lightweight cryptographic algorithms. NIST is
planning to develop and maintain a portfolio of lightweight algorithms and modes that are approved for
limited use. Each algorithm in the portfolio will be tied to one or more profiles, which consist of algo-
rithm goals and acceptable ranges for metrics. NISTIR 8114 (Report on Lightweight Cryptography)
indicates that the initial focus is the development of symmetric encryption and secure hash functions.
NIST has issued a preliminary set of two profiles for these algorithms: one for implementations in both
hardware and software and one for hardware-only implementations.
Public-Key Certificates
A public-key certificate is a set of data that uniquely identifies an entity. The certificate contains
the entity’s public key and other data and is digitally signed by a trusted party, called a certification
authority, thereby binding the public key to the entity.
Public-key certificates are designed to provide a solution to the problem of public-key distribution.
Typically, in a public-key scheme, multiple users need to have access to the public key of a given entity
A, whether to encrypt data to send to A or to verify a digital signature signed by A. Each holder of a
public/private key pair could simply broadcast its public key for anyone to read. The problem with this
approach is that it would be easy for some attacker X to impersonate A and to broadcast X’s public key
26 CHAPTER 1 Security and Cryptography Concepts
improperly labeled as A’s public key. To counter this, it would be possible to set up some trusted central
authority that would interact with each user to authenticate and then maintain a copy of A’s public key.
Any other user could then consult the trusted central authority over a secure, authenticated communi-
cation channel to obtain a copy of the key. It should be clear that this solution would not scale efficiently.
An alternative approach is to rely on public-key certificates that can be used by participants to exchange
keys without contacting a public-key authority, in a way that is as reliable as if the keys were obtained
directly from a public-key authority. In essence, a certificate consists of a public key plus an identifier
of the key owner, and the whole block is signed by a trusted third party. Typically, the third party is a
certification authority (CA), such as a government agency or a financial institution, that is trusted by
the user community. A user can present his or her public key to the authority in a secure manner and
obtain a certificate. The user can then publish the certificate. Anyone needing this user’s public key can
obtain the certificate and verify that it is valid by way of the attached trusted signature. A participant
can also convey its key information to another by transmitting its certificate. Other participants can
verify that the certificate was created by the authority.
Figure 1.8 illustrates the overall scheme for generation of a public-key certificate. The certificate for
Bob’s public key includes unique identifying information for Bob, Bob’s public key, identifying infor-
mation about the CA, and certificate information, such as expiration date. This information is then signed
by computing a hash value of the information and generating a digital signature using the hash value and
the CA’s private key. Bob can then either broadcast this certificate to other users or attach the certificate
to any document or data block he signs. Anyone who needs to use Bob’s public key can be assured that
the public key contained in Bob’s certificate is valid because the certificate is signed by the trusted CA.
Bob's ID
Unsigned certificate: information
contains user ID,
user's public key Bob's public key
H
H CA information
Certificate
information Verify algorithm
S V indicates whether
the signature is
Generate hash Signed certificate valid
code of unsigned
certificate
The standard ITU-T X.509 (The Directory: Public-Key and Attribute Certificate Frameworks) has
become universally accepted for formatting public-key certificates.
1.11 Public-Key Infrastructure 27
PKI Architecture
A PKI architecture defines the organization and interrelationships among CAs and PKI users. PKI
architectures satisfy the following requirements:
■ Any participant can read a certificate to determine the name and public key of the certificate’s owner.
■ Any participant can verify that the certificate originated from the certification authority and is
not counterfeit.
■ Only the certification authority can create and update certificates.
■ Any participant can verify that the certificate is currently valid.
Figure 1.9 provides a typical architecture for a PKI, the essential components of which are defined in
the list that follows:
Public key
CA’s
Public key
Bob’s
Bob’s
public key
public key
certificate
certificate
Application
for
certificate
Signing
Party
Bob
Bob’s Document
Public key
public key signed with Relying
Private key certificate Bob’s private Party Alice
key
■ End entity: An end user, a device (such as a router or server), a process, or any item that can
be identified in the subject name of a public-key certificate. End entities can also be consumers
of PKI-related services and, in some cases, providers of PKI-related services. For example, a
registration authority is considered to be an end entity from the point of view of the certification
authority.
■ Certification authority (CA): An authority trusted by one or more users to create and
assign public-key certificates. Optionally the certification authority may create the subjects’
keys. A CA digitally signs a public-key certificate, which effectively binds the subject name
to the public key. CAs are also responsible for issuing certificate revocation lists (CRLs).
A CRL identifies certificates previously issued by the CA that are revoked before their
expiration date. A certificate could be revoked because the user’s private key is assumed to
be compromised, the user is no longer certified by this CA, or the certificate is assumed
to be compromised.
■ Registration authority (RA): An optional component that can be used to offload many of the
administrative functions that a CA ordinarily assumes. The RA is normally associated with
the end entity registration process. This includes the verification of the identity of the end entity
attempting to register with the PKI and obtain a certificate for its public key.
■ Repository: Any method for storing and retrieving PKI-related information, such as public-key
certificates and CRLs. A repository can be an X.500-based directory with client access via
Lightweight Directory Access Protocol (LDAP). It also can be something simple, such as
a means for retrieval of a flat file on a remote server via File Transfer Protocol (FTP) or
Hypertext Transfer Protocol (HTTP).
■ Relying party: Any user or agent that relies on the data in a certificate in making decisions.
Figure 1.9 illustrates the interaction of the various components. Consider a relying party Alice that
needs to use Bob’s public key. Alice must first obtain in a reliable, secure fashion a copy of the public
key of the CA. This can be done in a number of ways, depending on the particular PKI architecture
and enterprise policy. If Alice wishes to send encrypted data to Bob, Alice checks with the repository
to determine whether Bob’s certificate has been revoked, and if not, she obtains a copy of Bob’s certif-
icate. Alice can then use Bob’s public key to encrypt data sent to Bob. Bob can also send to Alice a
document signed with Bob’s private key. Bob may include his certificate with the document or assume
that Alice already has or can obtain the certificate. In either case, Alice first uses the CA’s public key
to verify that the certificate is valid and then uses Bob’s public key (obtained from the certificate) to
validate Bob’s signature.
Rather than using a single CA, an enterprise may need to rely on multiple CAs and multiple reposi-
tories. CAs can be organized in a hierarchical fashion, with a root CA that is widely trusted signing the
public-key certificates of subordinate CAs. Many root certificates are embedded in web browsers, so
they have built-in trust of those CAs. Web servers, email clients, smartphones, and many other types
of hardware and software also support PKI and contain trusted root certificates from the major CAs.
Chapter 2
Information Privacy Concepts
Learning Objectives
After studying this chapter, you should be able to:
■ Explain the difference between privacy by design and privacy engineering
■ Understand how privacy-related activities fit into the system development life cycle
■ Define privacy control
■ Discuss the areas of overlap between security and privacy and the areas that are distinct
to either security or privacy
■ Explain the trade-off between privacy and utility
■ Explain the distinction between privacy and usability
This chapter provides a roadmap for the remainder of the book, introducing the key information
privacy concepts and indicating how they relate to one another. The chapter begins by defining key
terms in the field of information privacy. Then, Sections 2.2 and 2.3 introduce the concepts of privacy
by design and privacy engineering. Sections 2.4 through 2.6 deal with the relationship between privacy
and security, the trade-off between privacy and utility, and the concept of usable privacy.
32
2.1 Key Privacy Terminology 33
This book is concerned with a concept of privacy referred to as information privacy. ITU-T Recom-
mendation X.800 (Security Architecture for Open Systems Interconnection) defines privacy as the right
of individuals to control or influence what information related to them may be collected and stored and
by whom and to whom that information may be disclosed. A U.S. National Research Council report
(At the Nexus of Cybersecurity and Public Policy: Some Basic Concepts and Issues) [CLAR14] indi-
cates that in the context of information, the term privacy usually refers to making ostensibly private
information about an individual unavailable to parties that should not have that information. Privacy
interests attach to the gathering, control, protection, and use of information about individuals.
Information privacy generally pertains to what is known as personally identifiable information (PII),
as opposed to, say, video surveillance. PII is information that can be used to distinguish or trace an
individual’s identity. NIST SP 80-122 (Guide to Protecting the Confidentiality of Personally Identi-
fiable Information) gives the following examples of information that might be considered PII:
■ Name, such as full name, maiden name, mother’s maiden name, or alias
■ Personal identification number, such as Social Security number (SSN), passport number,
driver’s license number, taxpayer identification number, patient identification number, and
financial account or credit card number
■ Address information, such as street address or email address
■ Asset information, such as Internet Protocol (IP) or media access control (MAC) address or
other host-specific persistent static identifier that consistently links to a particular person or to a
small, well-defined group of people
■ Telephone numbers, including mobile, business, and personal numbers
■ Personal characteristics, including photographic images (especially of the face or other distin-
guishing characteristic), x-rays, fingerprints, or other biometric image or template data
(e.g., retinal scan, voice signature, facial geometry)
■ Information identifying personally owned property, such as vehicle registration number or title
number and related information
■ Information about an individual that is linked or linkable to one of the above (e.g., date of birth,
place of birth, race, religion, weight, activities, geographic indicators, employment information,
medical information, education information, financial information)
In dealing with the privacy of PII, two new concepts have emerged: privacy by design (PbD) and privacy
engineering. The goal of privacy by design is to take privacy requirements into account throughout the
system development process, from the conception of a new IT system through detailed system design,
implementation, and operation. ISO 29100 (Information Technology—Security Techniques—Privacy
Framework) views PbD as the practice of considering privacy safeguarding measures at the time of the
design of the system; that is, designers should consider privacy compliance during the design phase for
systems processing PII rather than address compliance only at a subsequent stage.
66 CHAPTER 3 Information Privacy Requirements and Guidelines
■ Individual participation: As with the principle of openness, this principle implies that there
is a user-friendly process for individual participation. Participation includes the rights to obtain
confirmation of whether the data controller has one’s personal data; have one’s personal data
communicated to him or her; and challenge data relating to him or her and have data modified
or erased, if appropriate.
■ Accountability: This principle dictates that the individual (data controller) who is in charge of
determining how personal data are going to be processed and used will be held responsible for
ensuring that the data are processed in an authorized, fair, and legitimate manner. Of course,
breaches of privacy will raise issues of accountability not only for the data controller but for the
organization as a whole. Accountability refers to accountability supported by legal sanctions, as
well as to accountability established by codes of conduct and contractual obligations.
European Union
One of the most comprehensive initiatives is the European Union (EU) General Data Protection Regu-
lation (GDPR), approved by the EU Parliament in 2016, with an effective enforcement date of May
2108. The GDPR is designed to harmonize data privacy laws across Europe, to protect and empower
the data privacy of all EU citizens, and to reshape the way organizations, both public and private,
across the region approach data privacy.
The presentation “10 Key Facts Businesses Need to Note About the GDPR” from the 2016 European
Identity & Cloud Conference [KINA16] summarizes important aspects of GDPR that organizations
that do business in Europe need to be aware of:
■ The GDPR applies to all companies worldwide that process personal data of EU residents,
both EU citizens and non-citizens. Any company that works with information relating to EU
residents must comply with the requirements of the GDPR, making it the first global data
protection law. This aspect alone is contributing significantly to all companies around the world
taking data privacy more seriously.
■ The GDPR widens the definition of personal data compared to prior regulations by EU member
states. As a result, parts of IT that have been unaffected by data protection laws in the past will
need attention from businesses to ensure their compliance with the new regulation.
3.4 Privacy Regulations 67
■ The GDPR tightens the rules for obtaining valid consent to using personal information. Having
the ability to prove valid consent for using personal information is likely to be one of the big-
gest challenges presented by the GDPR. The GDPR states that the consent of the data subject
means any freely given, specific, informed, and unambiguous indication of his or her wishes
by which the data subject, either by a statement or by a clear affirmative action, signifies agree-
ment to personal data relating to him or her being processed.
■ The GDPR requires public authorities processing personal information to appoint a data protec-
tion officer (DPO), as well as other entities, when core activities require regular and systematic
monitoring of data subjects on a large scale or consist of processing on a large scale of special
categories of data.
■ The GDPR mandates data protection impact assessments. Data controllers must conduct
assessments where privacy breach risks are high in order to minimize risks to data subjects.
This means before organizations can implement projects involving personal information,
they must conduct a privacy risk assessment and work with the DPO to ensure that they are
in compliance as projects progress. Chapter 11 covers data protection impact assessments in
detail.
■ The GDPR requires organizations to notify the local data protection authority of a data breach
within 72 hours of discovering it. This means organizations need to ensure that they have
technologies and processes in place that will enable them to detect and respond to a data
breach.
■ The GDPR introduces the right to be forgotten. Also known as data erasure, the right to be
forgotten entitles the data subject to have the data controller erase his/her personal data, cease
further dissemination of the data, and potentially have third parties halt processing of the data.
The conditions for erasure include the data no longer being relevant to original purposes for
processing or a data subject withdrawing consent. This means organizations will have to get
fresh consent before they can alter the way they are using the data they have collected. It also
means organizations have to ensure that they have the processes and technologies in place to
delete data in response to requests from data subjects.
■ The GDPR requires that privacy be included in systems and processes by design. At its core,
privacy by design—referred to as data protection by design in the GDPR—calls for the inclu-
sion of data protection from the onset of the designing of systems rather than an addition.
The GDPR is an important landmark in the evolving integration of privacy in cybersecurity. Even orga-
nizations unaffected by this regulation should be aware of its provision and consider them in designing
their own privacy controls. Chapter 14 examines the GDPR in detail.
agencies and contractor companies working under federal contract. Others impose mandates on private
organizations as well as government agencies and departments. These include:
■ The Privacy Act of 1974: Specifies the rules that a federal agency must follow to collect, use,
transfer, and disclose an individual’s PII.
■ The Fair and Accurate Credit Transaction Act of 2003 (FACTA): Requires entities engaged
in certain kinds of consumer financial transactions (predominantly credit transactions) to be
aware of the warning signs of identity theft and to take steps to respond to suspected incidents
of identity theft.
■ The Health Insurance Portability and Accountability Act of 1996 (HIPAA): Requires cov-
ered entities (typically medical and health insurance providers and their associates) to protect
the security and privacy of health records.
■ The Family Educational Rights and Privacy Act of 1974 (FERPA): Protects students and
their families by ensuring the privacy of student educational records.
■ The Gramm Leach Bliley Act of 1999 (GLBA): Imposes privacy and information security
provisions on financial institutions; designed to protect consumer financial data.
■ Federal Policy for the Protection of Human Subjects: Published in 1991 and codified in sep-
arate regulations by 15 federal departments and agencies, outlines the basic ethical principles
(including privacy and confidentiality) in research involving human subjects.
■ The Children’s Online Privacy Protection Act (COPPA): Governs the online collection of
personal information from children under the age of 13.
■ The Electronic Communications Privacy Act: Generally, prohibits unauthorized and inten-
tional interception of wire and electronic communications during the transmission phase and
unauthorized accessing of electronically stored wire and electronic communications.
In addition, there are numerous state laws and regulations that impact business. By far, the most
important of these is the California Consumer Privacy Act (CCPA). Chapter 15 examines the most
important federal privacy laws as well as the CCPA.
Learning Objectives
After studying this chapter, you should be able to:
■ Understand the organization of the GDPR and its supporting guideline documents
■ Explain the principles of the GDPR
■ Explain the rights of data subjects defined in the GDPR
■ Summarize the roles of the controller and processor
■ Present an overview of the data protection impact assessment process
The General Data Protection Regulation (GDPR) is a European Commission regulation for the protec-
tion of data in the European Union (EU). The European Commission published the GDPR on April 27,
2016, and it entered into force on May 25, 2018. The GDPR builds on the foundations of and repeals
its predecessor, Directive 95/46/EC, which had provided the basis for EU member states’ data protec-
tion laws. As a regulation instead of a directive, the GDPR enters directly into force without the need
for implementation in law by the member states. This regulation makes data protection stronger and
more specific in some areas while expanding the rights of consumers over their data. Thus, while many
of the provisions look familiar, taken together, they radically change the impact of data protection
within the EU.
The GDPR is enforceable in all the nations in the European Economic Area (EEA), which consists of
the 28 member states of the EU, plus Iceland, Liechtenstein, and Norway. The GDPR also regulates the
flow of personal data outside the EU. Its main objective is to protect the privacy of citizens of the EU
and unify the data regulation rules of the EU’s member nations. Its rules apply to private organiza-
tions and government agencies, including the police and military. Mandates in the GDPR apply to all
personal data of EU citizens, whether or not the organization collecting the data in question is located
412
14.1 Key Roles and Terms in the GDPR 413
within the EU, as well as all people whose data is stored within the EU, whether or not they are actually
EU citizens.
Note
The official designation of the GDPR is Regulation (EU) 2016/679 of the European Parliament and
of the Council of 27 April 2016.
This chapter focuses on areas of the GDPR that are of particular interest to information privacy
designers and implementers. The first three sections provide an overview, discussing key roles and
terms in the GDPR, the structure of the GDPR document, and the objectives and scope of the GDPR.
Sections 14.4 through 14.6 focus on the rights of data subjects, including a description of the principles
used to define these rights, restrictions on collecting and processing certain types of personal data, and
the specific rights of data subjects that are protected by the GDPR. The remaining sections detail the
operational and management requirements imposed by the GDPR. Section 14.7 looks at the roles and
responsibilities of the controller, the processor, and the data protection officer. Section 14.8 deals with
the GDPR requirements for a data protection impact assessment.
■ Third party: A natural or legal person, public authority, agency, or body other than the data
subject, controller, processor, and persons who, under the direct authority of the controller or
processor, are authorized to process personal data.
■ Data protection officer (DPO): An independent member of the privacy team who reports
directly to senior management. The responsibilities of the DPO include:
■ Assisting the controller or the processor in monitoring internal compliance with the
GDPR
■ Providing advice where requested regarding to the data protection impact assessment and
monitoring its performance
■ Cooperating with the supervisory authority and acting as a contact point. A supervisory
authority is a government entity with the authority to enforce the GDPR
■ Prioritizing activities and focusing efforts on issues that present increased data protection
risks
■ Creating inventories and holding a register of processing operations based on information
provided by the various departments in the organization responsible for the processing of
personal data
■ Supervisory authority: An independent public authority established by a EU member state
that is responsible for monitoring the application of the GDPR. Some, but not all, EU mem-
ber states refer to this body as a data protection authority (DPA), although this term does not
appear in the GDPR.
The GDPR uses some terms that differ from those that were heretofore common in the information
privacy literature and regulations. Table 14.1 shows GDRP terms and equivalent terms in common use.
Note
In the English-language version of the regulation, the articles occupy 57 pages, and the recitals
occupy 31 pages.
Table 14.2 summarizes the topics covered by each chapter and indicates the corresponding articles and
recitals.
To provide more detailed guidance, the Article 29 Data Protection Working Party issued a number of
documents. This advisory body was made up of a representative from the data protection authority of
each EU member state, the European Data Protection Supervisor, and the European Commission. In
2018, it was replaced by the European Data Protection Board (EDPB) under the GDPR. The EDPB has
issued additional guidance documents. With respect to the focus of this book, the most relevant docu-
ments are the following:
■ Guidelines 2/2019 on the Processing of Personal Data Under Article 6(1)(b) of the GDPR in
the Context of the Provision of Online Services to Data Subjects
■ Guidelines 3/2018 on the Territorial Scope of the GDPR (Article 3)
■ Guidelines on Transparency Under Regulation 2016/679 (wp260rev.01)
■ Guidelines on Automated Individual Decision-Making and Profiling for the Purposes of Regu-
lation 2016/679 (wp251rev.01)
14.3 GDPR Objectives and Scope 417
Objectives
The GDPR has the following key objectives:
■ Provide the fundamental right to the protection of personal data for every individual
■ Harmonize the protection of fundamental rights and freedoms of natural persons in
respect of processing activities and to ensure the free flow of personal data between mem-
ber states
■ Balance privacy rights against other fundamental rights, in accordance with the principle of
proportionality
■ Define a strong and more coherent data protection framework in the EU, backed by strong
enforcement, given the importance of creating the trust that will allow the digital economy to
develop across the internal market
■ Enable, to the extent possible, natural persons to have control of their own personal data
■ Ensure consistent and homogenous application of the rules for the protection of the funda-
mental rights and freedoms of natural persons with regard to the processing of personal data
throughout the European Union
■ Strengthening and setting out in detail the rights of data subjects and the obligations of those
who process and determine the processing of personal data, as well as equivalent powers for
monitoring and ensuring compliance with the rules for the protection of personal data and
equivalent sanctions for infringements in the member states
■ Take account of the specific needs of micro, small, and medium-sized enterprises in the appli-
cation of the GDPR
418 CHAPTER 14 The EU General Data Protection Regulation
■ Material scope: The actions covered by a particular law or regulation. In the context of this
chapter, material scope refers to the types of processing of personal data that are covered by the
GDPR.
■ Territorial scope: The jurisdictional reach of a law or regulation. In the context of this chapter,
territorial scope refers to what physical locations of enterprises and data subjects are covered by
the GDPR.
Material Scope
The GDPR applies to the processing of personal data wholly or partly by automated means and to the
processing other than by automated means of personal data that form part of a filing system or are
intended to form part of a filing system. Recital 15 clarifies this as follows:
In order to prevent creating a serious risk of circumvention, the protection of natural per-
sons should be technologically neutral and should not depend on the techniques used. The
protection of natural persons should apply to the processing of personal data by automated
means, as well as to manual processing.
The regulation defines a filing system as “any structured set of personal data which are accessible
according to specific criteria, whether centralized, decentralized or dispersed on a functional or geo-
graphical basis.” One example is chronologically ordered sets of manual records containing personal
data; in this case, records are accessible by date.
There are four key elements to the GDPR definition of personal data:
■ Any information: In essence, the GDPR considers any data that can be used to identify
an individual as personal data. It includes, for the first time, things such as genetic, mental,
14.3 GDPR Objectives and Scope 419
cultural, economic, and social information. There may be a wide variety in terms of the nature
and content of the information, as well as its technical format.
■ Relating to: This phrase implies that the regulation applies to information that relates to an
individual on the basis of its content, purpose, or result. This phrase also covers information
that may have an impact on the way in which an individual is treated or evaluated.
■ Identified or identifiable: Recital 26 states that to determine whether a person is identifiable,
account should be taken of all the means reasonably likely to be used to identify the person.
To ascertain whether means are reasonably likely to be used to identify the natural person,
account should be taken of all objective factors, such as the costs of and the amount of time
required for identification, taking into consideration the available technology at the time of the
processing and technological developments. Thus, personal data include not only data that by
itself identifies a person but also data that, together with other available information and means,
can be used to identify the person. The principles of protection do not apply to data rendered
anonymous in such a way that the data subject is no longer identifiable.
■ Natural person: Personal data apply to natural persons, not to non-human legal persons.
In the United States and many other countries, a somewhat restrictive view is taken of PII, which fre-
quently focuses on whether the data is actually linked to an identified person. However, EU privacy
laws and regulations, culminating in the GDPR, are more expansive and broadly define PII to encom-
pass all data that can be used to make a person identifiable. As pointed out in “Reconciling Personal
Information in the United States and European Union,” from the California Law Review [SCHW14],
in the EU interpretation, “even if the data alone cannot be linked to a specific individual, if it is rea-
sonably possible to use the data in combination with other information to identify a person, then the
information is PII.”
The regulation does not apply in certain cases, such as in some cases related to national security, for-
eign policy, or certain law enforcement activities of member states. In addition, the regulation does not
apply to a natural person in the course of a purely personal or household activity.
Territorial Scope
The processing of EU residents’ data anywhere in the world is subject to the GDPR. The GDPR applies
to organizations that are established solely outside EU territory if they “(i) offer goods or services to
EU residents; or (ii) monitor the behavior of EU residents.” Table 14.3 illustrates the territorial scope
requirement. Note that a business unit within an organization needs to consider whether any other
entity—whether in the same organization or another organization—with which it collaborates in the
processing of data is covered by the GDPR.
420 CHAPTER 14 The EU General Data Protection Regulation
The subject of territorial scope is a complex one. Two useful sources are the EDPB document
Guidelines 3/2018 on the Territorial Scope of the GDPR (Article 3) and “What Does Territorial Scope
Mean Under the GDPR?” from The Privacy Advisor [KISH18].
GDPR
Informed
Fair, lawful Purpose about data Access
transparent limitation collection
Data Accuracy Rectification Erasure
minimization
Principles Rights
Chapter 2 of the GDPR defines a set of principles that govern the processing of personal data. These
principles are similar to the fair information practice principles (FIPPs) set forth by the OECD (see
Table 3.2 in Chapter 3, “Information Privacy Requirements and Guidelines”) and consist of the
following:
■ Fair, lawful, and transparent processing: The requirement to process personal data fairly and
lawfully is extensive. It includes, for example, an obligation to tell data subjects what their per-
sonal data will be used for.
■ Purpose limitation: Personal data collected for one purpose should not be used for a new,
incompatible, purpose. Further processing of personal data for archiving, scientific, historical,
or statistical purposes is permitted, subject to appropriate laws and regulations.
■ Data minimization: Subject to limited exceptions, an organization should process only per-
sonal data that it actually needs to process in order to achieve its processing purposes.
■ Accuracy: Personal data must be accurate and, where necessary, kept up to date. Every reason-
able step must be taken to ensure that personal data that are inaccurate are either erased or recti-
fied without delay.
■ Storage limitation: Personal data must be kept in a form that permits identification of data
subjects for no longer than is necessary for the purposes for which the data were collected or
for which they are further processed. Data subjects have the right to erasure of personal data, in
some cases sooner than the end of the maximum retention period.
■ Integrity and confidentiality: Technical and organizational measures must be taken to protect
personal data against accidental or unlawful destruction or accidental loss, alteration, unauthor-
ized disclosure, or access
■ Accountability: The controller is obliged to demonstrate that its processing activities are com-
pliant with the data protection principles.
Fairness
Organization should collect and process data in the spirit of fairness to the data subjects. The GDPR
does not explicitly indicate what is meant by the term fair. The EDPB document Guidelines on
Automated Individual Decision-Making and Profiling for the Purposes of Regulation 2016/679
(wp251rev.01) discusses the potential for profiling to be unfair and create discrimination, such as by
denying people access to employment opportunities, credit, or insurance or by targeting them with
excessively risky or costly financial products. Under the GDPR, profiling is any automated evalua-
tion of a natural person, especially when the goal of the processing is predictive or used for targeting
purposes. Profiling works by creating derived or inferred data about individuals that has not been
422 CHAPTER 14 The EU General Data Protection Regulation
provided directly by the data subjects themselves. Individuals have different levels of comprehen-
sion and may find it challenging to understand the complex techniques involved in profiling and
automated decision-making processes.
The document gives the example of a data broker that sells consumer profiles to financial compa-
nies without consumer permission or knowledge of the underlying data. The data broker puts indi-
viduals into categories based on their personal data and may put them at an unwarranted financial
disadvantage.
In general, processing that may cause injury to an individual or a group of individuals may be unfair.
For example, a resume-aggregating service may collect and use an individual’s gender as a factor
in matching applicants to employers, but the algorithm used may be inadvertently biased against
women.
Another aspect of the principle of fairness relates to the reasonable expectations of the data subject.
This includes the data subjects understanding the possible adverse consequences of personal data that
are processed for a given purpose (Recital 47). It also includes that the controller should have due
regard to the relationship and potential effects of imbalance between the data subject and the controller
with respect to processing personal data for purposes other than the original one (Recital 50).
Lawful
The GDPR requires an organization to identify a legal basis for processing at the time of collection,
before processing occurs, and must furnish the data subject with both the purpose of the processing and
its legal basis at the time data are collected. Article 6 lays out six different legal bases that satisfy the
lawfulness requirement. At least one of the following must apply:
■ The data subject has given informed consent to the processing of his or her personal data for
one or more specific purposes. Note that consent is only one alternative for lawfulness. WP259
(Guidelines on Consent Under Regulation 2016/679) provides a detailed discussion of this
topic.
■ Processing is necessary for the performance of a contract to which the data subject is party or in
order to take steps at the request of the data subject prior to entering into a contract.
■ Processing is necessary for compliance with a legal obligation to which the controller is
subject.
■ Processing is necessary in order to protect the vital interests of the data subject or of another
natural person.
■ Processing is necessary for the performance of a task carried out in the public interest or in the
exercise of official authority vested in the controller.
14.5 Restrictions on Certain Types of Personal Data 423
■ Processing is necessary for the purposes of the legitimate interests pursued by the controller
or by a third party, except where such interests are overridden by the interests or fundamental
rights and freedoms of the data subject, which require protection of personal data, in particular
where the data subject is a child.
Transparency
Transparency implies that the organization provide data subjects with information about the processing
of their personal data that complies with the following rules:
The EDPB document Guidelines on Transparency Under Regulation 2016/679 (wp260rev.01) gives a
number of examples that satisfy the transparency requirement, including discussing privacy notices on
websites. A link to this privacy statement/notice should be clearly visible on each page of a website
under a commonly used term (such as Privacy, Privacy Policy, or Data Protection Notice). Positioning
or color schemes that make a text or link less noticeable or hard to find on a web page are not consid-
ered easily accessible.
■ The processing is based on consent (i.e., the processing is based on the first of the alternative
conditions for lawfulness described in Section 14.4).
64 Roger Taylor
Ideas of privacy and the harms associated with a loss of privacy have changed over
time and in response to technological developments. In antiquity, private matters
were those areas of life over which the public and the state had limited or no legiti-
mate remit. Aristotle’s distinction between the household and the state is often
cited as an early formulation of this view.1 A more developed idea in the same vein
is John Stuart Mill’s view that there are areas of life where the intrusion of law or
public censure can only reduce human happiness—areas where the individual’s
autonomy and individuality should not just be recognised but encouraged.2 It
remains an important idea today and has been used in court to limit government
interference in matters of family planning and sexual relations.3
The idea that privacy was about control over information developed in response
to new technology. In 1890, Brandeis and Warren’s proposals for a right to privacy4
under US law was prompted by fears of: ‘the too enterprising press, the photogra-
pher, or the possessor of any other modern device for recording or reproducing
scenes or sounds’ which had, they said, created circumstances in which ‘gossip
is no longer the resource of the idle and of the vicious, but has become a trade’.
Brandeis and Warren sought a legal basis for protection against the sharing of
information that falls short of being slanderous but where the subject has a right
to protection from ‘the effect of the publication upon his estimate of himself and
upon his own feeling’.
Seventy years later, William Prosser reviewed the legal use of privacy5 and found
that press intrusion remained a central concern for the US courts. He also identi-
fied another issue. Alongside protection from intrusion, embarrassment, or being
placed in a false light, he found that the courts had recognised the right to be pro-
tected against the ‘appropriation of someone’s name or likeness’.
Prosser’s examples of this include the use of someone’s pictures in an advertise-
ment without permission or adopting a name in order to fraudulently pose as
someone’s relative. Identity theft was a rare event in his day but with the rise of
digital technology, it has become a constant and daily concern for anyone engaged
in online activity.
Lack of privacy has been linked to a variety of problems throughout history.
However, these problems have little else that connects them. The danger of the
state legislating about my sex life, the danger of press intrusion and the danger of
my credit card details being stolen online have little in common apart from the link
1 Aristotle Politics.
2 John Stuart Mill, On Liberty (1869).
3 e.g. Griswold v. Connecticut (1965) 381 U.S. 479 on contraception or Roe v. Wade (1973) 410 U.S.
to privacy. For that reason, the mechanism used to protect against these harms—
constitutional limitations on the legislature, press regulation, data protection
laws—have nothing in common apart from their connection to the idea of privacy.
The rise of digital technology and artificial intelligence is creating a new set of
potential harms that can arise from the misuse of personal information. The fact
that these concerns are discussed under the heading of ‘privacy’ does not imply
that the remedy will have anything in common with the mechanisms we have used
to protect against previous dangers.
Facebook stated in evidence to the FTC in 2010 ‘Given the vast differences
between Justice Brandeis’s conception of privacy and the way the concept applies
to users on the social web, privacy cannot be viewed in one static way across every
interaction that a user might have. Instead, an effective framework for privacy on
the social web must focus on users’ expectations, which depends on the nature and
context of the relationships that users have with the companies and other services
with which they interact’.6
Public views of the dangers of sharing information with online services have been
extensively researched in the US, Europe and elsewhere. In testimony to a con-
gressional inquiry,7 Professor Alan Westin summarises the US polling evidence as
follows: ‘we have concern about privacy, but also a desire to enjoy the benefits of a
consumer society, and the question is, how do Americans divide in those balances
between those two values?’
Polling in the UK has yielded similar conclusions—that people are concerned
about sharing data and the risks to data security; that they want risks minimised
but recognise they are a necessary evil; and that the justification for taking these
risks is the degree of personal benefit that results.8
The benefits the public wish to see are not just personal. Many are both public
as well as personal, for example better public services or crime prevention; and
some primarily public, such as research.9 But personal benefit was what people
were most interested in. For example, one survey found ‘more tailored services’
6 Facebook, ‘Response to the Federal Trade Commission preliminary FTC staff report ‘protecting
consumer privacy in an era of rapid change: a proposed framework for Businesses and Policymakers’
(2011) available at: [Link]
ftc-staff-report-protecting-consumer-privacy-era-rapid-change-proposed-framework/00413-58069.
pdf [Accessed 2 Feb. 2017].
7 US Congress Subcommitee on Commerce, Trade and Consumer Protection of the Committee on
Energy and Commerce, ‘Opinion Surveys: What consumers have to say about information privacy’
(2001).
8 ScienceWise, ‘Big Data Public views on the collection, sharing and use of personal data by govern-
was the most popular justification for data sharing with ‘public benefit’ coming
second with half as many responses.10
The specific benefits identified in public opinion surveys include better and/
or cheaper services and products (both from government and companies),11
more tailored/personalised services and communications,12 preventing crime
and exposing dishonesty13 and transactional convenience.14 The dangers are loss
of control over data leading to either privacy invasion (people knowing things
you would wish them not to) or economic harms through identity theft, fraud
or other misuse of data;15 nuisance marketing and poorly targeted advertising;16
and discrimination whether by government or commercial organisations such as
insurers.17 Worries about these dangers were exacerbated by a sense that data con-
trollers were not to be trusted or were not being open about how data was being
used.18
This balancing of the benefits against the risks is often described in terms of a
rational ‘trade-off ’ that the public are willing to make.19 However, many surveys
and commentators have pointed out that public attitudes often appear to reflect
irrational and contradictory viewpoints rather than a rational trade-off between
competing priorities.
The ‘privacy paradox’20 refers to the fact that people in surveys express strong
levels of concern about lack of control over their private data while at the same
time showing a strong appetite for products such as social media or store cards
that depend, in most cases quite transparently, on the individuals sharing per-
sonal data.
Evidence of contradictory opinions can also be found within the survey data.
A UK survey found that receiving more personalised services and recommen-
dations was the most common reason for favouring company use of personal data
10 Deloitte, ‘Data Nation 2012: our lives in data’ (2012) available at: [Link]
content/dam/Deloitte/uk/Documents/deloitte-analytics/[Link].
11 Lee Rainie and M Duggan, ‘Privacy and Information Sharing’ (2015) Pew Research Center. Availa-
and Linking Personal Data’; Deloitte 2012 (n 11), Lee Rainie (n 12).
13 Wellcome Trust; ‘Summary Report of Qualitative Research into Public Attitudes to Personal Data
and Linking Personal Data’; Deloitte ‘Data Nation 2012: our lives in data’; Daniel Cameron, Sarah Pope
and Michael Clemence ‘Dialogue on Data’ (2014) Ipsos MORI Social Research Institute.
14 Wellcome Trust, ‘Summary Report of Qualitative Research into Public Attitudes to Personal Data
and Linking Personal Data’; Deloitte, ‘Data Nation 2012: our lives in data’;; Rainie, ‘Privacy and Infor-
mation Sharing’).
16 Wellcome Trust, ‘Summary Report of Qualitative Research into Public Attitudes to Personal Data
Monday, 11(9).
No Privacy without Transparency 67
even though people were more than twice as likely to be dissatisfied as satisfied
with the way that companies used browsing data to personalise communications.21
Another found that 41% of people agreed that: ‘Organisations I interact
with clearly explain why they collect and share data about me’. But, in the same
survey, most people said that they would prefer not to share data because they
‘don’t know what happens with it’. The authors described these findings as a ‘clear
contradiction’.22 The same survey found that loss or theft of data was the number
one concern and yet the institutions the public most trusted to hold data (govern-
ment and public services) had the worst record for data breaches.
The contradiction is especially stark in research by the Annenberg School of
Communications,23 which found that 55% of US citizens disagreed (38% of them
strongly) that ‘It’s okay if a store where I shop uses information it has about me to
create a picture of me that improves the services they provide for me’. But when
asked if they would take discounts in exchange for allowing their supermarket to
collect information about their grocery purchases, 43% said yes. This included
many people who had disagreed with the first statement.
These apparent contradictions may reflect, as some have suggested, a lack of under-
standing. Surveys of the US public find low levels of appreciation of how privacy
policies work24 and, in particular, the way in which companies share anonymised
data to generate user profiles which predict behaviours or characteristics.25
An alternative explanation, supported by the Annenberg research, is that con-
sumers are resigned to the current way in which data sharing works but believe
they are being offered a poor deal. They are theoretically happy to engage in data
sharing and recognise it can be of benefit. But rather than engaging in a rational
weighing of risks and benefits, they are frustrated by the fact that they have insuf-
ficient information to make an informed judgement. They suspect they are being
offered a bad bargain—that there is a better deal that could be achieved but which
no-one is putting on the table. Surveys consistently find high levels of distrust:
public suspicion that their data is being used in ways that are not disclosed; aware-
ness that this may affect them adversely; and a sense that they do not have suffi-
cient control over what goes on.26
To an individual faced by a system which they believe is unfairly rigged against
them, but where they believe there is probably still a net benefit in participating,
Identity in the European Union’ (2011); Mary Madden and Lee Rainie, ‘Americans’ Attitudes About
Privacy, Security and Surveillance’ (2015) Pew Research Center.
68 Roger Taylor
the rational response is to insist that the terms of trade are unreasonable, but to
take part none-the-less. This is the behaviour we observe.
Such behaviour is not paradoxical or contradictory. It is rational and consist-
ent with a world in which promises not to share personal data still leave room
for companies to trade detailed anonymised records which are then used to infer
with varying degrees of accuracy highly personal things, such as whether or not
someone is pregnant.27 The observed behaviour is rational and consistent with a
situation in which the public are being offered a data ‘trade-off ’, but are denied
the means to assess whether or not it is beneficial.28 As one research participant
said about sharing data with companies: ‘none of them have ever told me how
I benefit’.29
There are two elements of the way the discourse is framed in surveys and policy
discussion which can exacerbate this sense of powerlessness. First, there is the
role of informed consent and the reliance on a mechanism in which individuals
exercise personal control over how their data is used. This approach is of limited
value if the individual is faced with a set of data-sharing options all of which are
sub-optimal.
Second, there is the focus on legal control over the purpose or uses to which
personal data is applied. Such control can be ineffective if the problem is not the
purpose to which the data is being put but the manner in which it is used for that
purpose. To explore this possibility, we can define two quite distinct problems that
users can encounter with the use of their personal data—the first we call insecure
use, the second imprecise use.
1. Insecure use of data. This causes harms through unauthorised or illegal use
whether that be through loss or theft of data or use by data controllers out-
side of areas for which they have legal authority. Harms here would include
identity theft and fraud or sharing with third parties without permission and
could result in financial loss, nuisance marketing or discrimination.
2. Imprecise use of data. This is use of data within legally authorised purposes,
but in a manner that none-the-less harms the data subject through the
poor quality of the application e.g. personalisation algorithms that produce
advertising of no interest to the data subject; medical algorithms that have a
27 Charles Duhigg, ‘How companies learn your secrets’ New York Times (Feb 16 2012) [Link]
[Link]/2012/02/19/magazine/[Link].
28 Dara Hallinan and Michael Friedewald, ‘Public Perception of the Data Environment and
Information Transactions: A Selected-Survey Analysis of the European Public’s Views on the Data
Environment and Data Transactions’ (2012) Communications & Strategies, No. 88, 4th Quarter 2012,
pp. 61–78.
29 Jamie Bartlett, The Data Dialogue (Demos 2012).
No Privacy without Transparency 69
high error rate in diagnosis; financial algorithms that make inaccurate risk
assessments; or security algorithms that have low precision in identifying
threats. These problems can also result in financial loss, nuisance marketing
or discrimination.
There are examples in the public opinion surveys of harms that are as likely to
arise from imprecise use of data for a desired purpose as from unauthorised use
of data. For example, ‘more tailored and personalised services or recommenda-
tions’ is cited in one survey as one of the primary benefits from sharing data,30
while in another ‘nuisance marketing’ and the inappropriate ‘targeting’ of indi-
viduals by companies was seen as principle risk.31 While nuisance marketing may
be manageable to some degree through limiting the purposes for which data is
used, nuisance marketing may equally arise as the result of imprecise targeting of
communication and advertising to people who are actively seeking such targeting
as a benefit. If my only remedy is to define ever more precisely the information
I wish to receive, I may still fail and find I am pestered because I do not control the
way in which such options are framed. Even if I succeed in adequately defining the
content, frequency and style of communications I wish to receive, it will be a pyr-
rhic victory since I will have had to perform exactly the work that the personalisa-
tion algorithm claimed to be able to do for me—which was the original reason for
agreeing to share data. What I require is a reliable way to assess the precision of the
algorithm before consenting.
A similar tension can be found in other areas. The use of personal data to identify
fraud, to unearth dishonesty and to stop people cheating has received support in
surveys while at the same time, people expressed concern that use of data might lead
to ‘discrimination’.32 This does not just refer to discrimination against protected
characteristics, but refers to any unfair difference in treatment such as rejection of
credit or insurance, rejection of benefits claims, or differential pricing. The issue at
stake here is not whether in principle it is a good idea to use data for these purposes.
It is a question of whether data used in this way is done well or poorly. When using
data profiling to determine whether to accept or reject insurance risks or benefits
claims, the difference between discrimination and unearthing dishonesty is not a
difference in purpose, approach or generic consequence. The difference is the preci-
sion of the risk estimates and propensity scores generated by the algorithms.
The potential harm from insecure use features prominently in consumer sur-
veys. Harm from imprecise use of data is less often identified as a specific category
of risk. However, this may reflect the structure of the survey questions which typi-
cally present loss or theft of data as a separate category, rather than a clear public
view about the relative risks presented by these two issues.
There is substantial evidence of the potential harm that can arise from data-
driven systems which are designed to do something the public regard as beneficial,
but do so with insufficient precision. Health applications have, in particular, been
subjected to a degree of scrutiny and found wanting. Applications that aim to
treat psychological illnesses were highly variable in their effectiveness and were,
in some cases, based on weak scientific evidence with the risk that they might
be doing ‘more harm than good’.33 Three out of four apps designed to diagnose
melanoma were found to wrongly categorise 30% of melanomas or more as
‘unconcerning’.34 Diagnosis and triage apps have been found to perform poorly in
general.35 Wearable technology to support weight loss has been found to diminish
the impact of weight loss programmes.36
Data-driven applications designed to provide information may also be doing
their customers a disservice. If I use an online media platform that promises to
make me better informed, I risk, instead, being provided with a stream of infor-
mation that leaves me less well informed37 but more emotionally secure in the
correctness of my own beliefs.38 The harm here does not relate to unauthorised
use of data. I want my personal data to be used to identify relevant information.
However, the execution may fall short of what I hoped for in ways that are harmful
and which I have no way of discerning.
There is, additionally, evidence of websites using personal information to engage
in price discrimination against customers. This can be regarded as a form of lack
of precision, since the customer is sharing data online in the hope of accessing
keener pricing but is instead subjected to an algorithm which identifies them as an
appropriate target for higher prices. Although evidence of this is not widespread,
it does occur and there is potential for it to increase.39
In summary, there is substantial evidence that a significant risk of sharing data
with automated decision-making systems is lack of precision. It is not possible to
estimate whether the risks associated with imprecise use are greater or less than
the risks associated with insecure use. However, the relative risk of imprecision
increases to the extent that personal data is used more widely to drive automated
decisions by intelligent machines. And while it is true that with further data
symptom checkers for self diagnosis and triage: audit study’ (2015) BMJ 351:h34800.
36 JM Jakicic JM, KK Davis et al ‘ Effect of Wearable Technology Combined With a Lifestyle
Intervention on Long-term Weight Loss The IDEA Randomized Clinical Trial’, (2016) JAMA (11):
1161–1171. doi:10.1001/jama.2016.12858.
37 David Lazer, ‘The rise of the social algorithm’ (2015) Science Vol. 348, Issue 6239, pp. 1090–1091
DOI: 10.1126/science.aab1422.
38 Eli Pariser, The Filter Bubble: What the Internet Is Hiding From You (Viking 2012).
39 The White House (Executive Office of the President of the United States), Big data and differential
pricing (2015).
No Privacy without Transparency 71
The need to control how data is used has been central to data protection from the
start. The US HEW Fair Information Practices40 established the principle that data
subjects should know what data was collected and how it was used; they should
be able to correct data; and they should be assured that it would not be used for
any other purpose without consent. The OECD41 built on this, emphasising that
data collection and processing must be limited and lawful; that data processing
should for a specific limited purpose; that data subjects are entitled to know what
data is collected, how it is used and to review and correct information; and that
data should not be used for any other purpose except by consent or legal authority.
These same principles inform EU data protection regulations including the GDPR
under which data processing is illegal unless it falls under one of the specified cat-
egories of use; that it should be proportional to such use; that data subjects have
rights to be informed, to correct data and, where appropriate, limit use through
withholding of consent.42
This framework was developed prior to the widespread use of automated
decision-making systems and is designed to ensure secure use of data, as defined
above. It is not designed to protect against the imprecise use of data in automated
decision-making.
Where the logic of any such decision system is static and sufficiently simple to
be disclosed and understood, a description of the use of the data might be suf-
ficient to enable data subjects, citizens and regulators to assess the likely precision
40 Department of Health, Education and Welfare (US), Report of the Secretary’s Advisory Committee
on Automated Personal Data Systems, Records, Computer, and the Rights of Citizens (1973).
41 OECD Recommendation of the council concerning guidelines governing the protection of privacy and
of 27 April 2016 on the protection of natural persons with regard to the processing of personal data
and on the free movement of such data, and repealing Directive 95/46/EC [2016] OL J 119/12 (GDPR).
72 Roger Taylor
of the approach and any risks that might result. This may be helpful in informing
consent decisions or political opinions. However, with more sophisticated deci-
sion algorithms this is not possible.
A. The GDPR
New rights and protections afforded by the GDPR do not remedy this deficit. The
regulations are designed to protect the Fundamental Rights and Freedoms defined
in the EU charter. The rights specifically referenced (in recital 4) include
‘In particular the respect for private and family life, home and communications, the pro-
tection of personal data, freedom of thought, conscience and religion, freedom of expres-
sion and information, freedom to conduct a business, the right to an effective remedy
and to a fair trial, and cultural, religious and linguistic diversity.’
The two fundamental rights most frequently referenced in GDPR are Article 8
rights to data protection (e.g. recitals 39, 65, 71) and Article 25 rights to non-
discrimination (e.g. recital 71). Processing that does not have legal authority and
processing with legal authority that results in discrimination against protected
characteristics are clearly identified as breaching the regulations.
Some of the language used suggests there may be broader protections against
the adverse consequences of data processing. In particular, recitals 75 and 85 pro-
vide a list of risks including the following:
where the processing may give rise to discrimination, identity theft or fraud, financial loss,
damage to the reputation, loss of confidentiality of personal data protected by professional
secrecy, unauthorised reversal of pseudonymisation, or any other significant economic or
social disadvantage;
The reference to data processing that gives rise to ‘any other significant economic
or social disadvantage’ might suggest an intention to provide wide scope for pro-
tection against legal processing that performs poorly with negative results for the
data subject. This is listed as an additional issue over and above discrimination or
unauthorised use.
Recital 71 may also appear to address the question of precision in algorithmic
decision-making:
In order to ensure fair and transparent processing in respect of the data subject, taking into
account the specific circumstances and context in which the personal data are processed, the
controller should use appropriate mathematical or statistical procedures for the profiling,
implement technical and organisational measures appropriate to ensure, in particular, that
factors which result in inaccuracies in personal data are corrected and the risk of errors is
minimised …
However, it is far from clear that imprecise propensity scores could be regarded
as ‘inaccuracies’ in personal data any more than a record of a diagnosis given by
No Privacy without Transparency 73
a doctor would be regarded as incorrect personal data on the grounds that the
doctor had a poor record of accurate diagnosis. The reference to ‘risk of errors’
would seem to apply to this same sense of ‘inaccuracies’ in data. An organisation
that was assiduous in ensuring the correct recording of the output of a relatively
imprecise algorithm would appear to be justified in claiming it was minimising
the risk of error under this definition. Any such claim would fall short of what the
public would expect ‘minimising the risk of error’ to mean.
The supposed new right to an ‘explanation’ with regard to automated decision-
making (Art. 13-15 and 22) does not resolve the problem. It is true that data sub-
jects must be informed of any ‘consequences’ of data processing. However close
analysis43 finds that this requirement does not go further than the requirements
of some existing data protection regimes and implies nothing more than a generic
explanation of processing: for example, that the consequence of a credit check is
that you may or may not get a loan. It does not protect against the risk that such
an algorithm is imprecise with the result that it produces credit scores that unfairly
penalise data subjects.
The right not to be subjected to automated decision-making (Art. 22) is also
of no help if I want to benefit from automated decision-making but only to do so
secure in the knowledge that the algorithms used are sufficiently precise and not
harmful.
Finally, there are some welcome clarifications to your rights of data access
(Art.15). But, as described in more detail in section 3 below, data about yourself
can rarely, if ever, provide a basis for querying the precision and accuracy of a
complex decision-making algorithm since such an assessment requires knowl-
edge of how the algorithm operates at a population level, not at an individual
level.
The lack of clear steps to address imprecision means that the GDPR falls short of
the ambition of recital 4 that ‘The processing of personal data should be designed
to serve mankind’. It leaves ample room for poor quality processing that complies
with the law and yet results in nuisance marketing, poor medical advice, unde-
served credit ratings, rejected insurance applications or information flows that
distort perceptions and mislead.
In passing, it is worth noting that the illegality of discrimination against
protected characteristics but the lack of protection against the broader impact of
imprecise algorithms has the potential to produce peculiar results. For example, if
an algorithm designed to identify low priced insurance systematically performed
43 Sandra Wachter, Brent Mittelstadt and Luciano Floridi, ‘Why a Right to Explanation of Automated
Decision-Making Does Not Exist in the General Data Protection Regulation’ (2016). International
Data Privacy Law, Forthcoming. Available at SSRN: [Link] Against:
Dimitra Kamarinou, Christopher Millard and Jatinder Singh, Machine Learning with Personal Data,
this volume.
74 Roger Taylor
Transparency and informed consent are central features of data protection regimes
around the world, providing the basis for fair processing of data in the absence of
any more specific legal permission.44 Discussions of the value of consent often
assume that it allows a user to assess the risks and benefits of a particular agree-
ment to share data. In the words of the Canadian regulator: ‘being informed about
and understanding an organization’s policies and practices allow individuals to
provide meaningful consent. Individuals should be able to understand the risks
and benefits of sharing their personal information with the organization and be in
a position to freely decide whether to do so’.45
The gap between this intent and the reality has been widely noted. Criticism of
consent has ‘reached a crescendo on both sides of the Atlantic’ and ‘perhaps more
surprisingly the critique of notice and consent has more recently been echoed by
regulators, industry and privacy advocates’.46
Much of the attention has focussed on the complexity of the information users
are expected to understand; the imbalance in power between organisations seek-
ing consent and individuals; the broad nature of the consents sought and the non-
obvious nature of what these consents might enable.47 It has also been observed
that the reliance on privacy notices as a form of consumer protection risks giving
false assurance and undermining effective consumer protection.48 These problems
are further exacerbated by the increasing number of objects that automatically
and continuously collect data making the point at which consent should be sought
less clear.49
44 Eg US Privacy Act, 1974; EU Data Protection Directive art 7; GDPR art 6; Asia Pacific Economic
gl_oc_201405/.
46 Fred H Cate, ‘Big data consent and the future of data protection’ in Cassidy R. Sugimoto, Hamid
R. Ekbia, Michael Mattioli (eds), Big Data Is Not a Monolith (MIT press 2016).
47 Ibid.
48 Omri Ben-Shahar and Carl Schneider, More Than You Wanted to Know: The Failure of Mandated
tives’ (2006) Telematics and Informatics 23 196–210; E Luger and T Rodden, ‘Terms of Agreement:
No Privacy without Transparency 75
This has prompted calls to rely less on consent in which the individual is
expected to assess the acceptability of the risk/benefit trade off, and to instead put
more weight on regulation and accountability regimes in which service providers
take on the responsibility for ensuring such trade-offs fall within parameters set
by law and regulation.50
The GDPR has responded to that need by placing greater emphasis on the
duties of the data controller to demonstrate compliance and giving greater powers
on regulators to intervene. The requirement to keep audit trails of data processing
could, perhaps, provide a mechanism whereby regulators could examine the
question of the precision of algorithmic decision-making. However, in the
broader context of the regulations, the purpose of such powers would seem to
be to ensure that data is processed securely and is done so in a way that does not
infringe fundamental rights. It falls short of securing rights to information about
the precision of decision-making algorithms.
To illustrate the regulatory gap this creates, we can compare the use of
consent for medical intervention with the use of consent under data protection
regulations. With the former, there is typically an explicit requirement that the
patient be informed not only about the nature of the procedure and the rationale
but also about the risks that it presents. This does not refer simply to the risks of
the procedure going wrong or the doctor doing something that the patient had
not wanted. It refers also to the risks that arise if the procedure goes entirely as
intended.
It is also of note that in the literature on medical ethics, there is strong
recognition that consent and oversight are not alternatives but complementary
activities. There is a clear understanding that consent only operates effectively
within a context of trust established by effective regulation of those same risks that
patients are expected to accept as part of informed consent. Consent to treatment
is to a large degree based on trust in the individuals, professions and institutions
of medicine.51 In this context, trust has been defined as ‘a willing dependency on
another’s actions’ which ‘is limited to the area of need and is subject to overt and
covert testing. The outcome of trust is an evaluation of the congruence between
the expectations of the trusted person and actions.’52
The accountability mechanisms of medical regulation by professions and
governments, along with a medical culture that recognises the importance
Rethinking Consent for Pervasive Computing’ (2013) Interacting with Computers, 25(3); Richard
Gomer, MC Schraefel and Enrico Gerding, ‘Consenting Agents: Semi-Autonomous Interactions for
Ubquitous Consent’ (2014) UbiComp [Link]
50 Cate (n 47).
51 Kennet Calman, ‘Communication of risk: choice, consent, and trust’ (2002) The Lancet,
Volume 360, Issue 9327, 166–168.
52 JE Hupcey, J Penrod, JM Morse and C Mitcham, ‘An exploration and advancement of the concept
of scientific inquiry, ethics and care, provide the ‘overt and covert testing’ that
support the development of trust. An analogous accountability regime in privacy
regulation would aim to make consent a meaningful assessment of the congruence
between our expectations of what users of personal data are doing and what is
in fact occurring. Data protection regulation will not be able to achieve this if it
does not address risks of imprecise use of data—risks that the public regard as
significant issues for data protection.
One possible explanation for the focus on use based consent, rather than risk
based consent, in data protection regulations would be a view that risks of unau-
thorised use are matters relevant to privacy and risks relating to authorised use
should be viewed as consumer protection issues. In this view, privacy regulation
should concern itself primarily with preventing information being used illegally,
beyond consent or without due care to security. The question of whether use of
personal data within legal consented services is beneficial or harmful is matter for
consumer protection organisations.
This same view might take comfort from the view that market competition
might be expected to drive imprecise decision systems out of the market in favour
of more precise mechanisms. We will outline in the next section why market forces
are likely in many cases to favour less precision rather than more.
The arguments against separating consumer protection issues from data pro-
tection issues are practical. First, there is the consideration that this distinction
does not map well to the way in which the public think about the risks of data use
as described in Section 1 above.
Second, the practical mechanisms to address imprecision are the same as those
used to address insecure use of data. Consent and transparency around use of
data are unlikely to cease being important parts of any regulatory regime. In that
context, separating the risks of imprecise use from insecure use is confusing and
cumbersome.
Thirdly, the regulatory mechanism to ensure transparency about the precision
of decision-making systems will need to address questions of ownership and
control of the underlying data sets on which those systems operate. The skills
and expertise to police the various ways in which automated decision-making
can harm individuals do not divide neatly into those relevant to ‘consumer’
issues as opposed to those relevant to a more restricted definition of ‘privacy’
issues.
It is true that consumer protection research mechanisms can be of value. This
includes conducting research among the users of an application or putting an
application through a range of scenarios. This last approach was used by the EU
No Privacy without Transparency 77
to investigate whether Google was distorting search results in favour of its own
shopping service.53
However, these approaches have limitations when applied to sophisticated AI
driven surveillance systems which continuously generate information about the
quality and nature of their decisions. While it is technically possible to gather
information about the quality of these systems without access to the data on which
they run, this approach has the disadvantage of being economically inefficient and
inherently less reliable.
It therefore makes sense to explore how privacy regulation can address the ques-
tion of risks and benefits as a totality considering both risks to security and risks of
imprecision within the same framework of regulations. The next section sets out
in more detail the challenges this creates.
53 European Commission press release Antitrust: Commission fines Google €2.42 billion for abusing
dominance as search engine by giving illegal advantage to own comparison shopping service 27 June 2017.
54 Shoshana Zuboff, ‘Big other: surveillance capitalism and the prospects of an information civiliza-
55 This model is based on a model presented in Roger Taylor and Tim Kelsey Transparency and the
Model
surveillance
system Define/re-define
signature (i.e.
attributes of
target category)
Identify members
Test error rate of
with relevant
signature/target
attributes
Monitoring
Intervention
Observe outcomes
for category
members compared Observe/intervene
to non- with target group
members/other
categories
To estimate the net benefit of a surveillance system we need to know how often it
incorrectly estimates a propensity and intervenes in a way that is non-beneficial or
harmful or fails to intervene when it would be beneficial. We need to know both
its false positive rate and its false negative rate along with the costs associated with
each type of error.
Such estimates do not exist in the public domain for most surveillance systems,
but healthcare is one area where they do exist. The results show that information
about the purpose of surveillance does not provide reliable information about
the benefit of such a system. Breast screening programmes have been assumed
to be beneficial based on estimates from past studies. Meta-analysis of the out-
comes from breast screening suggest that it may be causing more harm than good
80 Roger Taylor
because the likelihood that it will recommend unnecessary tests is more costly to
people than the likelihood it will detect cancer earlier than would have occurred
without screening.56 A description of the purposes of breast screening or the way
the data was used could never reveal this.
Information about false positives and negatives is equally useful in assessing the value
of a surveillance system that makes recommendations regarding news, diet, investment,
or exercise regimes. Before consenting to an application that segments the population
on the basis of their exercise regime and heart rate to make exercise recommendations,
I would be wise to ask the extent to which people who follow its advice see improved
heart health as opposed to suffering heart attacks as compared to those who do not.
There are reasons to believe that, even with the best intentions, surveillance
systems have the potential for significant harm. The example of breast cancer
screening shows how even in a relatively transparent and closely regulated area
of activity, it is possible that surveillance systems intended to protect people may
be harmful. Judging whether the harm that results from false negatives and false
positives outweighs the benefit of correct categorisation is not something that can
be done reliably from cursory examination. It relies on repeated interrogation of
the impact across populations.
There is an additional problem in market driven situations. Market competi-
tion may incentivise algorithms that make users happy but this can be wholly
consistent with harming the individuals concerned. Algorithms will typically be
optimised against a measure that is at best a proxy for the benefit that the data
subject wishes to receive. For example, an application making recommendations
about my exercise regime based on information about my heart rate and my
exercise may be optimised to produce the greatest improvement in heart health
or it may be optimised to produce the highest resubscription rate by users. It
might be assumed that if users like it, it is doing them good. However, it is equally
possible that users are delighted by recommendations that are damaging to their
health.
In a similar way, concerns about filter bubbles can be characterised as a mis-
match between a customer desire to be kept informed and the aim of the algo-
rithm to keep the customer happy as measured by their tendency to click on links.
The latter may mean hiding information from them that displeases them.
Finally, even if an algorithm is calibrated against exactly the outcome that the
data subject is interested in, the optimal level of false positives and false nega-
tives for the operator of a surveillance system is likely to differ from the socially
optimal level that the data subject would choose. Take for example, a commercial
56 PC Gotzsche and K Jorgensen, ‘Screening for breast cancer with mammography’, Cochrane
surveillance system designed to help people identify the most suitable product at
the lowest price. The data subject’s interests are met by doing just that. The inter-
ests of the operator of the system would be met by identifying the combination
of product and price that yields the optimum combination of customer loyalty
and profit margin. The risks of misaligned incentives become troubling when
applied to the promotion of potentially addictive products such as gambling,
loans or alcohol.
As a result, it is unlikely that the GDPR will achieve its ambition of ensuring
that: ‘The processing of personal data should be designed to serve mankind.’
Indeed, given the likely spread of AI decision-making systems to a wide range
of mechanisms from self-driving cars and medical diagnostics to share trad-
ing and employment decisions, there is a risk that without stronger transpar-
ency the processing of personal data will be a significant cause of harm to
mankind.
We can identify three steps that could help in enabling accurate assessment of
the risks and benefits of data-driven surveillance systems. First, establishing
independent rights to access data for audit and assurance will be of great value.
This step has been recommended by a number of commentators including, for
example, Wachter57 who suggests that regulations should ‘allow for examination
of automated decision-making systems, including the rationale and circumstances of
specific decisions, by a trusted third party. … The powers of Supervisory Authorities
could be expanded in this regard.’
This might allow for a meaningful explanation of the consequences of data pro-
cessing from an unconflicted source. It is unclear the extent to which the authors
are recommending third parties be allowed access to raw data, but the implication
is that they would have such access since it is proposed as a mechanism to allow
scrutiny without compromising commercial confidentiality.
This approach is of value because the data held within a surveillances system
provides a unique insight into how the system is operating which it would not be
possible to replicate through external testing of a system. Requirements placed on
organisations to produce analyses of impact according to fixed regulatory formu-
lae run the risk of prompting gaming more than transparency.
However, the success of this approach would depend on the level of data access
and the analytical competence of the third party. There is a risk that if this right
57 Wachter, ‘Why a Right to Explanation of Automated Decision-Making Does Not Exist in the