









































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!










































1. Macrodata and microdata protection (Video Lesson 1-4)
Often statistical data (or data for statistical purpose) are released. Such released data can be used to infer
information that was not intendent for disclosure. Disclosure of statistical data can:
sources.
The disclosure risk (releasing something that was not intended for release) from the released data should be
very low. The solution to achieve this task is to protect data through various techniques.
The release of data for statistical purpose can happen through:
control information (directly) released.
publication.
1.1. Statistical DBMS
A statistical DBMS is a DataBase Management System that provides access to statistics about a group of
individuals. The access is provided through a query. Statistical DBMS should not reveal information about
any particular individual.
Confidential information about an individual can be deduced from:
[Statistical DBMS example].
Queries are sensitive when they reveal\infer, confidential information. Also, combination of queries might
be sensitive.
1.2. Macrodata protection
Macrodata were the main used technique in the past and consists of data released in tabular form and
through statistical DBMS. They are mainly obtained through aggregation of microdata , which are specified
stored data which increases flexibility and availability of information for recipients. Microdata is subject to a
greater risk of privacy breaches ( linking attacks ). Microdata release is preferred since they allow the
recipient to perform the preferred analysis (more flexible), while macrodata directly provides a performed
analysis. On the other hand, macrodata is more protected with respect to microdata, that have more privacy
risks.
Macrodata tables can be classified into the following two groups (types of tables):
respondents that have the same value over all attributes in the table.
the table. Usually released with the corresponding count table.
1.3. Macrodata Disclosure Protection Techniques: Tables of Counts or Frequencies
Protection operates in three steps:
Sampling. Publishing a portion of the whole collected data.
Identification of sensitive cells :
a. Special rules.
b. Threshold rules.
a. Table restructuring.
b. Suppression.
c. Rounding.
d. Confidentiality Edit.
1.3.1 Sampling (pre-processing).
It consists in extracting a portion from the whole collected data ( sample ), on which count, or frequency
table are then computed. It is the first level of protection. And it is used both in micro and macro data.
The estimates are made by multiplying individual responses by a sampling weight ( protection parameter )
before aggregating them. If the weights are not revealed, individual respondents’ data are less identifiable
from published tables. Important is that estimates achieve a specified accuracy , otherwise they are not
published since they are not considered meaningful.
1.3.2. Identification of sensitive cells: Special rules.
Special rules define restriction on the level of detail that can be provided in the table. They depend on the
agency (who released data) and the kind of table (kind of information). [Special rules – Example].
Identification of sensitive cells: Threshold rules. A threshold specifies a minimum number of respondents
that must be in each cell. If threshold is not satisfied the cell must be protected, since it is sensitive, and
therefore not released. [Table with disclosures – example].
1.3.3. Protection of sensitive cells
Table restructuring and category combination : to protect confidentiality, the table can be restructured,
and rows combined (“rolling up categories”). [Table restructuring – example].
Cell suppression : primary suppression consisting of directly suppressing the sensitive cells, but this
technique is not sufficient since it is possible to calculate the value of the suppressed cell through simple
equation within cells and marginal totals. An additional protection technique is complementary
suppression , which consists in suppressing an additional cell for each row or column with a suppressed
sensitive cell ( primary suppression ). Although more secure than the primary version, it is still difficult to
guarantee protection. Moreover, the selection of cells for complementary suppression is complicated.
Linear programming techniques automatically selects the cells, while audit techniques can be applied to
evaluate the proposed cells for suppression to evaluate the required protection. It may lead to data loss. [Cell
suppression: table without disclosures – example].
Random/Controlled Rounding : to reduce data loss due to suppression, use rounding of values to a
multiple of sensitivity threshold. Rounding can be: [Rounding – example]
values in a row/column may be different from the published marginal totals (recipients may lose
confidence in the data).
it masquerades the effect of the agent on the special rules. Linear programming methods are used to
identify a controlled rounding for a table (no guarantee to find a suitable rounding).
Note : all cell values must be a multiple of the threshold value. The disadvantages related to control the
rounding are:
optimal solution.
Confidentiality edits : It is applied directly to the collected microdata that is used to compute macrodata
(through aggregation). Developed by the U.S. Census Bureau to provide protection of tables prepared from
the 1990 census, it consists in two different approaches:
parameter q represents the error in estimation before the cell is published. Formally, a cell is
protected if:
q
i = c + 2
N
x
i
p
x
1
The pq rule reduces to the p percent rule if q = 100 (i.e., no estimate ability). [pq – example].
these respondents contribute a large percentage (
k % or more) of total cell value, the cell is
considered sensitive. Intuitive rule: if a cell is dominate by one respondent, the published total is an
upper estimate for her value. n is selected to be larger than the number of any suspected coalitions.
Typical values for n are 1 or 2. [(n, k) rule – example].
1.4.2. Protect sensitive cells (secondary suppression)
Once we have identified sensitive cells, there are two options:
(complementary suppression).
Other non-sensitive cells must be selected for suppression to ensure that the respondent level data in
sensitive cells cannot be estimated too accurately (i.e., a respondent’s data cannot be estimated too closely).
Sensitive cells might be leaked since:
o Implicitly published unions of suppressed cells may be sensitive according to the sensitivity
rule adopted.
o The row and column equations represented by the published table may be solved and the
value for a suppressed cell estimated too accurately.
Any complementary suppression is acceptable if the sensitive cells are protected. For small tables the
selection of complementary cells can be done manually, since data analysts know which cells are of greatest
interest (and should not be used for complementary suppression). Manual selection of complementary cells
is acceptable as long as the resulting table provides sufficient protection to sensitive cells. Finally, an
automated audit should be applied to ensure this is true.
1.4.3. Verify result :
Audit : if totals are published the sum of the (primary or secondary) suppressed cells can be derived , that
is, it checks if the marginal totals cannot be used to extract the value of sensitive cells (reverse engineering).
Apply the sensitivity rule to these sums to ensure that they are not sensitive :
Audit is simple for small tables, while possibly computationally intractable for large tables.
Information loss : the selection of the complementary cells should result in minimum information loss , that
is, recipients cannot gain additional information from the released table. Since there is no unique definition
of information loss, we can define various way for preventing this from happening:
Information in parameter values : while suppression rules can be published, parameter values should be
kept confidential. This is achieved through encryption. [Protection of tables of magnitude data - example].
1.5. Microdata
Many situations requires today that the specific stored data themselves (microdata) be released. The
advantage of releasing microdata is an increased flexibility and availability of information for the recipient.
To protect the anonymity of the respondent, data holders often remove or encrypt explicit identifiers
(name, phone numbers, addresses). However, de-identifying data provides no guarantee of anonymity.
Released information often contains other quasi-identifying data (set of attributes, e.g., race, birth date, sex,
ZIP code) that can be linked to publicly available information to reidentify respondent. The data recipient
can determine (or restrict uncertainty) to which respondent some pieces of released data refer. This has
created and increasing demands to devote resources for an adequate protection of sensitive data. The
microdata protection technique follows two main strategies:
[Disclosure risk – example].
To limit the disclosure risk , the following procedures should be applied:
amount of respondent that has peculiar characteristics.
therefore increase disclosure risk).
Geographic location is a characteristic that:
not identify that area (e.g., average temperature of an area).
1.5.1. Classification of microdata protection techniques
Microdata protection techniques are based on the principle that reidentification can be countered by
reducing the amount of released information. The microdata protection techniques can be classified into two
main categories:
performing a transformation of the original table into a protected one. Then, we release the quasi-
original real-world data. The release data are representative of real-world data, although slightly
modified.
ones. We collect the data from the population. Then, we extract a statistical model from the collected
data and then build a sample by extracting from the distributions built on the original population for
releasing the dataset. The released data are not representative of real-world data, but they are
representative of the statistical model computed on the real-world data.
This protection techniques can operate on different data types:
defined on it (i.e., date of birth, temperature).
values and arithmetic operations do not have sense on it (i.e., marital status, race).
1.6. Microdata Disclosure Protection Techniques: Masking Techniques
The original data are transformed to produce new data that remains valid for statistical analysis, since they
should preserve the confidentiality of the respondents. These techniques can be classified as:
details are removed to reduce their precision.
Some of the non-perturbative masking techniques are:
the original microdata table. Since there is uncertainty about whether a specific respondent is in the
obtained from the original data and therefore released.
computed original data and another sample from the original data is computed, Finally, the union
between these two samples is computed and released.
In both cases it is necessary to build a model over the generated data.
2. Privacy in data publication (Video lessons 5 -9)
2.1. Information disclosure risk
Disclosure relates to attribution of sensitive information to a respondent (individual or organization). There
is disclosure when:
identify a respondent from the released data. Revealing that an individual is a respondent in a data
collection may violate confidentiality requirements:
o For macrodata , revealing an identity is generally not a problem , unless the identification
leads to divulging confidential information.
o For microdata , identification is generally regarded as a problem, since microdata records are
detailed; identity disclosure usually implies also attribute disclosure (it is a pre-condition).
data. It occurs when confidential information about a respondent is revealed and can be attributed
to her. Confidential information may be: i) revealed exactly ; ii) closely determined (limited error
range).
characteristics of a respondent even if no released record refers to the respondent. It occurs when
information can be inferred with high confidence from statistical properties of the released data.
Inferences are designed to predict aggregate behaviour (not individual attributes) and are then often
poor predictors of individual values. Inferential disclosure itself does not always represent a risk,
although combined with other information may increase potential for inference.
2.2. Reduce disclosure risk: restricted data and restricted access
The choice of statistical disclosure limitation methods depends on the nature of data products whose
confidentiality must be protected. Some microdata includes explicit identifiers (name, address, SSN).
Removing such identifiers is a first step in preparing for the release of microdata for which the
confidentiality of individual information must be protected.
Confidentiality can be protected by:
2.3. Anonymity problem
The amount of privately owned records that describe each citizen’s finance, interests, and demographics is
increasing every day. These data are de-identified before release, that is, any explicit identifier is removed.
De-identification is not sufficient (note that it is different from ). Most municipalities sell population
registers that include the identities of individuals along with basic demographics. These data can be used for
linking identities with de-identified information re-identification. [Anonymity – problem example].
2.4. Re-identification
The attributes in the original microdata table can be classified as:
- Identifiers (key): attributes that uniquely identify a microdata respondent (name, ID number). - Quasi-identifiers : attributes that, in combination, can be linked with external information to
reidentify all or some of the respondents to whom information refers or reduce the uncertainty over
their identities (ZIP, DoB, Sex).
- Confidential : attributes of the microdata table that contain sensitive information (disease). - Non-confidential : attributes that the respondents do not consider sensitive and whose release does
not cause disclosure.
Logically, the more attributes (quasi-identifiers) are used, the easier it becomes to re-identify an individual.
2.5.1. Generalization and suppression to enforce k -anonymity
Often, we combine
k -anonymity with generalization or suppression to manage the trade-off between utility
and protection. Generally, suppression is preferred to generalization since the latter has less utility.
the definition of a generalization hierarchy (it establishes the different steps\operations that needs
to be performed for reducing the amount of detail that is released for a given attribute).
reduce the amount of generalization necessary to satisfy the
k -anonymity constraint.
2.5.2. Domain generalization hierarchy
A generalization relationship
D
defines a mapping between domain
and its generalizations. Given two
domains
i
j
∈ Dom , D
i
D
j
states that the values in domain
j
are generalizations of values in
i
D
implies the existence, for each domain D , of a domain generalization hierarchy
D
=( Dom , ≤
D
(which relies on a total order relationship ):
i
j
z
∈ Dom : D
i
D
j
i
D
z
j
D
z
z
D
j
Given a domain tuple
1
n
i
∈ Dom , i = 1 , … ,n
, the domain generalization hierarchy
of DT is
DT
D
1
D
n
(complex structure called lattice ).
2.5.3. Value generalization hierarchy
A value generalization relationship
V
associates with each value in domain
i
a unique value in domain
j
, direct generalization of
i
V
implies the existence, for each domain D , of a value of generalization
hierarchy
D
D
has a tree structure , where the leaves are the value in the original domain
, and
the root (i.e., the most general value) is the value in the maximum element in
D
. [ Domain and value
generalization hierarchies – example].
2.5.4. Generalized table with suppression
Let
O
(original data) and
G
(generalized table with suppression of
O
) be two tables defined on the same
set of attributes. Table
G
is said to be a generalization (with tuple suppression) of table
O
if:
G
is at most that of
O
(some tuples may have been suppressed to generalize).
G
is equal to, or a generalization of, the domain of attribute A in
O
t
G
G
with
a different tuple
t
O
O
, such that the value of each attribute in
t
G
is equal
t
O
, or a generalization of,
the value of the corresponding attribute in
t
O
(some tuples in
O
might not have corresponding tuples
in
G
). [Generalized table with suppression – example].
2.5.5. Better to suppress or generalize?
Suppression is equivalent to generalization to the most (if unique) general value complete information
loss on the cell.
If generalization operates at the level of attribute (column) and suppression at the level of cell (value),
generalizing may increase information loss (it hits all the cells in the column). Assume a threshold of
suppression , if required suppression is:
2.5.6. Minimal generalization
Generalization and suppression cause information loss (therefore we should be conscious when we apply
it). The minimal solution is to suppress and generalize as needed, not more.
2.5.7. k-minimal generalization with suppression
Distance vector : Let
i
1
n
j
1
n
k -anonymous table) be two tables
such that
i
j
. The distance vector
j
from
i
is the vector
i , j
d
1
, … , d
n
d
z
, z = 1 , … , n is
the length of the unique path between
dom ( A
z
¿ i )¿ and
dom
z
j
hierarchy
D
z
. Let
i
and
j
bet two tables such that
i
j
, and let MaxSup be the specified threshold
of acceptable suppression.
j
is said to be a
k -minimal generalization of table
i
iff:
j
satisfies
k -anonymity enforcing minimal required suppression , that is,
j
satisfies
k -anonymity
and
z
i
z
i , z
i, j
z
satisfies
k -anonymity |
j
|
|
z
| (it preserves as many tuples
as possible).
|
i
|
|
j
|
≤ MaxSup
z
i
z
and
z
satisfies conditions 1 and 2
i , z
i , j
. That is, there isn’t a direct
dominance relation between the two distance vectors of the two tables since, looking at DGH, there
is not another generalization along the path from the k -anonymity’s table we are considering and the
original table. [Minimal generalization – example].
Therefore, k-minimal generalization with suppression allows to release tables that preserve information (no
suppression of entire tuples in case of
MaxSup = 0 minimal generalization , no high level of anonymity).
In case of k-minimal generalization we may have room for suppressing tuples.
2.5.8. Computing a preferred generalization
Different preference criteria can be applied in choosing a preferred minimal generalization, among which:
with the smallest total number of generalization steps (regardless of the hierarchies on which they
have been taken).
that minimizes the total number of relative steps (a step is made relative by dividing it over the
height of the domain hierarchy to which it refers).
(higher variability).
the greatest cardinality.
2.5.9. Classification of algorithm
Generalization and suppression can be applied at different levels of granularity :
all the values in the column, which have uniform domain over all tuples in the table; moreover,
different information has the same representation) or single cell (i.e., for a specific column, the table
may contain values at different generalization levels, leading to more precision and more information
release; moreover, data have different representation).
suppression operation removes a whole tuple), column (i.e., a suppression operation obscures all the
values of a column), or single cells (i.e., a k -anonymized table may wipe out only certain cells of a
given tuple/attribute).
[Mondrian multidimensional algorithm – example].
Mondrian algorithm is easy to use if it deals with continuous attributes with total order relationship among
the values in the domain because it is easy to give a representation of the dimensions in a graphic manner.
For categorical variable it is trickier because the representation strictly depends on the order in which the
values of the attributes are placed. Different orders may lead to different representations.
2.5.11. k-anonymity revisited.
k -anonymity requirement : each release of data must be such that every combination of values of quasi-
identifiers can be indistinctly matched to at least
k respondents. When generalization is performed at
attribute level ( AG ) this is equivalent to require each quasi-identifier
n -uple to have at least
k occurrences (it
is a necessary condition required from most of the algorithms that ensure anonymity).
When generalization is performed at cell level ( CG ), the existence of at least k occurrences is a sufficient
but not necessary condition; a less strict requirement would suffice:
sequence of values generalizing pt.
of values for which t is a generalization. [k-anonymity revisited – example].
2.6. Attribute disclosure
Homogeneity of the sensitive attribute values: All tuples with a quasi-identifier value in a
k -anonymous
table may have the same sensitive attribute value. Based on background knowledge (that could be also
personal characteristics that the recipient known about a certain respondent) of some additional external
information, a recipient can infer sensitive information about a respondent (directly or by joining
information).
2.6.1. l -diversity
A q -block (i.e., set of tuples with the same value for QI ) in T is l -diverse if it contains at least l different
“ well-represented ” values for the sensitive attribute in T.
q -block is
l -diverse if
removing a sensitive value, it remains ( l − 1 )-diverse).
With l -diversity a malicious adversary needs to eliminate at least l − 1 possible values to infer that a
respondent has a given value.
Table
is
l -diverse if all its
q -blocks are
l -diverse:
l -diversity is monotonic with respect to the generalization hierarchies considered for k -anonymity purposes.
Any algorithm for k -anonymity can be extended to enforce the l -diverse property, but l -diversity leaves
space to attacks based on the distribution of values inside q -blocks ( skewness and similarity attacks).
Skewness attack occurs when the distribution of sensitives attributes in a q -block is different than the
distribution in the original population (75% of tuples in q -block have diabetes people in the q -block have
higher probability of suffering from diabetes).
Similarity attack happens when a q -block has different but semantically similar values for the sensitive
attribute (diseases being either stomach ulcer or gastritis).
2.6.2. t -closeness
Group closeness : A q -block respects t -closeness if the distance between the distribution of the values of the
sensitive attribute in the q -block and in the considered population is lower than t , threshold.
Table T respects t -closeness if all its q -blocks respect t -closeness. t -closeness is monotonic with respect to
the generalization hierarchies considered for k -anonymity purposes. Any algorithm for k -anonymity can be
extended to enforce the t -closeness property, which however might be difficult to achieve.
2.6.3. External knowledge
The consideration of the adversary’s background knowledge (or external knowledge ) is necessary when
reasoning about privacy in data publishing. External knowledge can be exploited for inferring sensitive
information about individuals with high confidence :
mostly focused on positive inference):
o A respondent has a given value (or a value within a restricted set).
characteristic:
o A respondent does not have a given value.
External knowledge may include:
It is not possible to know a-priori what external knowledge the adversary possesses, therefore it is necessary
to provide the data owner with a means to specify adversarial knowledge.
2.6.3.1. External knowledge modelling
An adversary has knowledge about an individual ( target ) represented in a released table and knows the
individual’s
values predict sensitive values of the target. One way to counter external knowledge is
to model it through a logical expression. Knowledge may be about:
value.
o Genomic information also exposes information about the relatives and descendants of the
genome’s owner.
Other types of external knowledge may be identified. [External knowledge – example].
2.6.4. Multiple releases
Data may be subject to frequent changes and may need to be published on regular basis. The multiple
release of a microdata table may cause information leakage since a malicious recipient can correlate the
released datasets. [Multiple independent releases – example].
Multiple (i.e., longitudinal ) releases cannot be independent need to ensure multiple releases are safe
with respect to intersection attacks m -invariance is the technique used to preserve released from
intersection attacks.
2.6.5. Extended scenarios
k -anonymity, l -diversity, and t -closeness different variations:
out, even in the same released table).
2.7. Applications of k -anonymity
In addition to classical microdata release problem, the concept of k -anonymity and its extensions can be
applied in different scenarios, e.g.: social networks, data mining, location data, etc.
3. Privacy in data publication (Video lesson 9 - )
3.1. Differential privacy
3.1.1. Intuition behind differential privacy
An individual is more likely to be a respondent to a survey if it feels safe being in a database D , that is, if:
computation over “ D” no inference can be made about the individual. But if individuals had no
impact on the released results, then the results would have no utility!
information we can learn about that individual without access to R.
Therefore, the privacy of an individual is protected whenever the result R does not depend on her specific
information. Inferences about an individual from a differentially private computation are ( essentially )
limited to what could be inferred from everyone else’s data without her own data being included in the
computation (the difference between the output obtained from the data containing information about the
individual and the results R obtained from the data that do not contain the information could be released if
the difference\variation between the two datasets do not exceed a certain threshold, defined to be at most
ε ,
that is, privacy budget ). The privacy budget is our privacy parameter (like k in k -anonymity) that need
to be set when using differential privacy.
3.1.2. Differential privacy and randomness
Differentially private analyses add random noise (slightly modified original data using generalisation or
suppression techniques) to the result:
individual in the database.
dataset.
different results. It is often possible to calculate accuracy bounds for the analysis.
the data because it adds random noise at random time.
3.1.3. Differential privacy – definition
Let databases D and D’ be two neighbours database (e.g., they are the same apart from one of them not
having the data of a single individual). An algorithm A satisfies ε -differential privacy if for all pairs of
neighbours databases D and D’ , and for all outputs o :
P [ A
= o ] ≤ e
ε
'
where
is the probability. An adversary should not be able to use the output o to distinguish between D
and D’.
3.1.4. The privacy budget
ε
In this sense, the privacy budget ε determine how much noise is added to the computation trade-off
between privacy and accuracy. The smaller (larger) the ε the more (less) the noise:
ε less privacy, more utility.
For example:
3.1.5. How to achieve differential privacy
To achieve differential privacy, we need to calibrate the noise to the influence an individual can have on
the result (the presence of individuals who are very influential – outliers – is balanced by injecting a huge
amount of noise in the data). Global sensitivity characterizes the scale of the influence of one individual
( worst case ), and hence how much noise we must add. [Global sensitivity – examples].
Global sensitivity of an attribute GS ( A ) measures the maximum difference between the two results (real
world and opt-out). If we perform several analyses, the
simply adds up between analysis.
3.1.6. LaPlace mechanism with sensitivity
It is the most used technique for noise distribution since it can be tuned to reflect both privacy budget and
global sensitivity. Result R is sampled from a Laplace distribution with mean the true result (of the
application of the algorithm; the mean of noise addition is always 0) and some scale λ (determined by ε and
the global sensitivity of the computation):
Where Z is a random variable drawn from the Laplace distribution that represents noise (that grows
proportionally with the increase of
λ ), and
is the original result.
2 λ
e
−| z |
λ
, λ =
ε
→ λ↑ ↔ GS ( A ) ↑ ; λ ↓↔ ε ↑
3.2. Properties of differential privacy
of a differentially private computation cannot make it less differentially private.
privacy permits you to measure the amount of privacy guarantees provided by the sequential releases
of different computation/analysis evaluated over the same dataset. Differential privacy composes
well with itself. This aspect can be seen in two ways:
o Sequential composition : sequence of m computations over database D with overlapping
results. It performs multiple releases of results of analysis the dataset and the returned results
are overlapping. In this case the privacy budget sums up to obtain the privacy guarantee
obtained by overall set of releases to the respondents. Each count must be released in such a
way that first, second, … count is equal to ε (threshold value): [Sequential com – example].
ε
1
m
o Parallel composition : sequence of m computations over disjoint subsets of a database D.
The sequence of releases never touches the same individuals (not overlapping, completely
disjoint results). Each cell can be released with
ε
- differential privacy. The overall privacy
guarantee is the maximum of the privacy parameters used by the single algorithms: [parallel
com -example].
max
ε
1
, … , ε
m
individual but allows also reasoning about the privacy of groups. Privacy guarantees that apply to
an individual with ε apply to a group of size n with the privacy parameter becoming nε.
3.3. Differential privacy models
real-time interactions or ongoing communication between parties. These models are often used in
situations where data sharing or protection occurs independently or asynchronously. Generally, the
owner of the data acts as intermediary between the original dataset and the Released result for the
recipient. It is the data owner that performs computation and adds noise to the original data. The
recipient simply receives the output provided by the data owner.
actively engage with each other to protect privacy. These models often require real-time interactions
and collaborative efforts to ensure privacy. Generally, an engine that resides between the original
4. Authentication and Access Control
Security has different strategies and different objectives :
o Prevention : take measures that prevent your system from being damaged.
o Detection : take measures that detect when, how, and by whom your system has been
damaged.
o Reaction : take measures so that you can record your system from damages (increasing
protection).
o Confidentiality : prevent unauthorized disclosure of information.
o Integrity : prevent unauthorized modification of information.
o Availability : guarantee that information (or resources) is always available to authorized
users.
4.1. Authentication
Identification and Authentication provide the system with the ability of identifying its users and confirming
their identity:
this).
Users’ authentication is necessary for:
modifying it and running tools on it).
Cryptography is a set of mathematical techniques that transform a clear text into a non-intelligible
(encrypted text or ciphertext) by anyone who doesn’t know the encryption key used but the cryptography
algorithm. Cryptography is based on the use of a key to encrypt and decrypt messages. Encryption can be
classified in two types of algorithms:
decryption. The key is secret and known to both sender and receiver. It is less secure and less
expensive compared to asymmetric encryption.
encryption and the other for decryption. The private key is known only to the owner of the key pair,
while the public key is known to everybody. It may have different purposes, such as protecting
secrecy of messages (WhatsApp) or signature. It is generally more costly and more secure compared
to symmetric encryption.
Authentication establishes the identity of a party to another party, where a party can be either a user or a
machine. Often, mutual authentication is needed: authentication of a computer to a user can be needed to
prevent attacks (like spoofing, in which a computer masquerades as another one to acquire users’
passwords). Authentication can be considered the primary security service. Moreover, correctness of the
access control and the correctness of intrusion\violation control relies on a correct authentication.
Generally, authentication can be based on i) passwords; ii) possessions (i.e., tokens); iii) user characteristics.
The password-based authentication is based on pairs of:
It is the oldest and most widely used authentication method since it is cheap, simple, and easily
implementable. Although this advantages, it is the weakest method since passwords have multiple
vulnerabilities. Moreover, often password can be:
Anybody that acquires the password of a user can impersonate the user ( masquerading ) in getting the
access to the system.
The first step to limit password vulnerability is good password management : often passwords are
vulnerable because users do not put enough care (not changing passwords for a long time, sharing passwords
with colleagues and friends, choose weak passwords since they are easy to remember, use the same
password for several services, …).
The authentication based on possession is based on the possession by users of tokens. Each token has a
cryptographic key (stored in the token) that can be used to prove the identity of the token to a computer.
Usually, tokens are safer than passwords: by keeping control on the tokens users maintains control on their
identity.
Token-based authentication proves only the identity of the token , not the identity of the user. Tokens can be
stolen, lost, or forged; everybody who acquires a token can impersonate the user. To increase the security of
this technique, token-based authentication is combined with authentication based on knowledge ( two-factor
authentication ). To masquerade as a user, third parties need both to have the token and to know the
password.
The authentication based on user characteristics is based on biometric characteristics of the user, such as
physical characteristics (fingerprints, face recognition) or on behavioural characteristics (typing cadence,
signature). It requires an initial enrolment phase that performs several measures on the characteristics to
define\construct a profile ( template ).
Authentication compares the characteristics measured for the user with the stored template. Then, it
succeeds if they correspond, provided a tolerance interval (which must be tuned). Moreover, to ensure
security, a maximum number of failed attempts is imposed by the controller. Moreover, it is important to
have a backup authentication factor (in case the users fail to authenticate).
4.2. Access control
Access control evaluates access requests to the resources (digital or physical ones) by the authenticated
users and based on some access rules, it determines whether they must be granted or denied. An access
control system may be limited to control only direct access ; moreover, it may be enriched with:
context-aware decisions regarding access to resources or areas).
information flows within a system.
information by ensuring that the actions of one user or process do not interfere with the
confidentiality and integrity of another user's or process's data.
The correctness of access control rests on: