Module4 (t2 Chap 9.1-9.6,9.8,9.9)
Module4 (t2 Chap 9.1-9.6,9.8,9.9)
CLOUD SECURITY
1
CONTENTS
• Security has been a concern since the early days of computing, when a
computer was isolated in a room and a threat could be posed only by malicious
insiders.
• Malware can migrate easily from one system to another cross-national borders,
and infect systems all over the globe.
• Malware, such as the Stuxnet virus, targets industrial control systems
controlled by software .
• Cyberwarfare -“actions by a nation-state to penetrate another nation’s
computers or networks for the purposes of causing damage or
disruption”.
• A computer cloud is a target-rich environment for malicious individuals and
criminal organizations.
3
• Major concern for existing users and for potential new users of cloud
computing services.
• Outsourcing computing to a cloud generates new security and privacy
concerns.
• Standards, regulations, and laws governing the activities of organizations
supporting cloud computing have yet to be adopted.
• There is the need for international regulations adopted by the countries where
data centers of cloud computing providers are located.
• Service Level Agreements (SLAs) do not provide adequate legal protection for
cloud computer users, often left to deal with events beyond their control.
4
CLOUD SECURITY RISKS
• Traditional threats : experienced by any system connected to the Internet.
• Impact -vast amount of cloud resources and the large user population.
• The traditional threats begin at the user site. The user must protect before
connect to the cloud and to interact with the application running on the
cloud.
• The favorite means of attack are distributed denial-of-service (DDoS) attacks,
which denying services to its users.; phishing; SQL injection or cross-site
scripting.
• Phishing -gain information from a site database. Such information could
be names and credit card numbers, Social Security Numbers (SSN), or
other personal information stored by online merchants or other service
providers.
• SQL injection -used against a Web site. An SQL command entered in a
Web form causes the contents of a database used by attacker or altered.
5
• Cross-site scripting -against Web sites. A browser permits the attacker to
• New threats :cloud servers host multiple VMs; multiple applications may
run under each VM. Multi-tenancy and VMM vulnerabilities open new
attack channels for malicious users. Identifying the path followed by an
attacker more difficult in a cloud environment.
• Authentication and authorization :the procedures in place for one
individual does not extend to an enterprise.
• Third-party control : generates a spectrum of concerns caused by the lack
of transparency and limited user control.
• Availability of cloud services: system failures, power outages, and other
catastrophic events could shutdown services for extended periods of time.
Data lock-in occurs, availability is that users cannot be assured that
an application hosted on the cloud will return correct results.
6
• Cloud Security Alliance (CSA) 2010 report identifies seven top threats to CC:
1. The abusive use of the cloud - the ability to conduct nefarious(criminal) activities
from the cloud. AWS instances or applications launch DDoS attacks or to
distribute spam and malware.
2. APIs that are not fully secure - may not protect the users during a range of activities
starting with authentication and access control to monitoring and control of the
application during runtime.
3. Malicious insiders - cloud service providers do not disclose their hiring standards
and policies, so this can be a serious threat.
4. Shared technology- due to multitenant access supported by virtualization.
7
5. Account hijacking- significant threat, and cloud users must be
aware of and guard against all methods of stealing credentials.
6. Data loss or leakage - if the only copy of the data is stored on the cloud,
then sensitive data is permanently lost when cloud data replication fails
followed by a storage media failure.
7. Unknown risk profile - exposure to the ignorance or underestimation of
the risks of cloud computing.
8
AT TA CK S I N A CL O U D CO MP U T I NG E N V I RO N ME N T
Three actors involved- user, service and cloud infrastructure; six types of
attacks possible.
• The user can be attacked by:
Service - SSL certificate spoofing(Obtaining fake certificates), attacks on
browser caches, or phishing attacks.
The cloud infrastructure - attacks that either originates at the cloud or
spoofs to originate from the cloud infrastructure.
The service can be attacked by:
A user- buffer overflow, SQL injection, and privilege escalation are the
common types of attacks.
The cloud infrastructure - the most serious line of attack. Limiting access
to resources, privilege-related attacks, data distortion, injecting additional 9
operations.
The cloud infrastructure can be attacked by:
• A user -targets the cloud control system.
• A service -requesting an excessive amount of resources
and causing the exhaustion of the resources.
10
Diagram- 2 marks
11
AUDITABILITY OF CLOUD ACTIVITIES
12
S EC U R I TY - TH E TO P C O N C ERN F O R C LO U D U S ER S
• Existing laws stating that the CSP must exercise reasonable security
may be difficult to implement in a case where there is a chain of
outsourcing to companies in different countries.
• Finally, a CSP may be required by law to share private data with law
enforcement agencies.
• To minimize security risks regarding data handling by the CSP.
• First, users should evaluate the security policies and the mechanisms
the CSP has in place to enforce these policies.
• Then users should analyze the information that would be stored and
processed on the cloud.
14
• The contract between the user and the Cloud Service Provider (CSP) :
CSP obligations to handle securely sensitive information and its
obligation to comply to privacy laws.
CSP liabilities for mishandling sensitive information.
CSP liabilities for data loss.
The rules governing ownership of the data.
The geographical regions where information and backups can be
stored.
15
Minimize security risks:
• user may try to avoid processing sensitive data on a cloud. e.g.,
processing of medical or personnel records.
• sensitive data to be stored on a public or hybrid cloud, then, whenever
feasible, data should be encrypted using either a fully homomorphic
encryption scheme or secure two-party computations.
16
P R I VA C Y A N D P R I VA C Y I M PA C T A S S E S S ME N T
17
• The main aspects of privacy are: the lack of user control, potential
unauthorized secondary use, data proliferation, and dynamic
provisioning.
• The lack of user control -user-centric data control is incompatible with cloud
usage. Once data is stored on the CSP’s servers, the user loses control of the
exact location, and in some instances the user could lose access to the data. For
example, in case of the Gmail service,
• Data proliferation refers to the rapid creation and storage of large amounts of 18
• The need for tools capable to identify privacy issues in information systems.
• There are no international standards for such a process, though different
countries and organization require PIA reports.
• The centerpiece of A proposed PIA tool is based on a SaaS service.
The users accessing to the PIA tool must fill in a questionnaire.
The system used a knowledge base (KB) created and maintained by domain
experts.
The system uses templates to generate additional questions necessary and to
fill in the PIA report.
An expert system infers which rules are satisfied by the facts in the database
and provided by the users and executes the rule with the highest priority.
20
TRUST
21
• A trust relationship goes though three phases:
1.Building phase, when trust is formed.
2.Stability phase, when trust exists.
3.Dissolution phase, when trust declines.
• An entity must work very hard to build trust, but may lose the trust
very easily.
22
• There are different reasons for and forms of trust.
• Deterrence-based- costly penalties for breach of trust exceed any potential
benefits from opportunistic behavior.
• Calculus-based trust-the action involving the other party is in the self-interest
of that party.
• Relational trust After a long sequence of interactions, between entities can
develop based on the accumulated experience of dependability and reliance on
each other.
• Persistent trust is trust based on the long-term behavior of an entity,
• Dynamic trust is based on a specific context, e.g., a state of the system or the
effect of technological developments.
23
INTERNET TRUST
24
• To remedy the loss of clues, security mechanisms for access control,
transparency of identity, and surveillance.
• Access control- keep intruders and mischievous agents out.
• Identity transparency- requires that the relationship between a virtual agent
and a physical person should be carefully checked through methods such as
biometric identification.
• Digital signatures and digital certificates are used for identification.
• Surveillance - intrusion detection or on logging and auditing. The first option
is based on real-time monitoring, the second on offline sifting through audit
records.
• Credentials are used when an entity is not known. Credentials are issued by a
trusted authority and describe the qualities of the entity using the credential.
25
HOW TO DETERMINE TRUST
28
• Commercial OS do not support a multi-layered security; only distinguish
between a completely privileged security domain and a completely
unprivileged one.
• Trusted paths, mechanisms supporting user interactions with trusted
software, is critical to system security.
• If such mechanisms do not exist, malicious software can impersonate
trusted software.
• Some systems provide trust paths -login authentication and password
changing and allow servers to authenticate their clients.
29
• The solution to decompose a complex mechanism into several components
with well-defined roles.
• The access control mechanism consist of enforcer and decider components.
The enforcer will gather the required information about the agent attempting
the access and will pass this information to the decider. Finally, it will carry
out the actions requested by the decider.
• A trusted-path mechanism is required to prevent malicious software invoked
by an authorized application. A trusted path is also required to prevent an
impostor from impersonating the decider agent. A similar solution is proposed
for cryptography usage.
30
• Java Virtual Machine (JVM) accepts byte code in violation of language
semantics; moreover, it cannot protect itself from tampering by other
applications.
• Closed-box platforms- cellular phones, game consoles, and automated
Teller machines (ATMs) could have embedded cryptographic keys reveal
their true identity to authenticate the software running on them.
• Such facilities are not available to open-box platforms, the traditional
hardware designed for commodity operating systems.
• A highly secure operating system is necessary but not sufficient unto itself
• Application-specific security is also necessary.
• Security implemented above the operating system is better
• Ex: Electronic commerce that requires a digital signature on each
transaction.
• Commodity OS offer low assurance. 31
• OS is a complex software system consisting of millions of lines of
code, and it is vulnerable to a wide range of malicious attacks.
• An OS poorly isolates one application from another, and once an
application is compromised, the entire physical platform and all
applications running on it can be affected.
• The platform security level is thus reduced to the security level of the
most vulnerable application running on the platform.
32
VIRTUAL MACHINE SECURITY
• Hybrid and hosted VMs, expose the entire system to the vulnerability of the host
OS.
• In a traditional VM the Virtual Machine Monitor (VMM) controls the access to the
hardware and provides a stricter isolation of VMs from one another than the
isolation of processes in a traditional OS.
A VMM controls the execution of privileged operations and can enforce
memory isolation as well as disk and network access.
The VMMs are considerably less complex and better structured than traditional
operating systems thus, in a better position to respond to security attacks.
A major challenge a VMM sees only raw data regarding the state of a guest
operating system while security services typically operate at a higher logical
level, e.g., at the level of a file rather than a disk block.
• A secure TCB (Trusted Computing Base) is a necessary condition for security in a
virtual machine environment; if the TCB is compromised then the security of the33
entire system is affected.
(a) Virtual security services provided by the VMM; (b) A dedicated security VM.
34
• VM technology provides a stricter isolation of virtual machines from one
another than the isolation of processes in a traditional operating system.
• VMM controls the execution of privileged operations and can thus enforce
memory isolation as well as disk and network access.
• The VMMs are considerably less complex and better structured than
traditional operating systems; thus, they are in a better position to respond to
security attacks.
• A major challenge is that a VMM sees only raw data regarding the state of a
guest operating system, whereas security services typically operate at a
higher logical level, e.g., at the level of a file rather than a disk block.
• A guest OS runs on simulated hardware, and the VMM has access to the
state of all virtual machines operating on the same hardware.
• The state of a guest virtual machine can be saved, restored, cloned, and
encrypted by the VMM.
35
• Surveys VM-based intrusion detection systems such as Livewire and
Siren, which exploit the three capabilities of a virtual machine for
intrusion detection: isolation, inspection, and interposition.
• The VMM has the ability to review the state of the guest VMs, and
interposition means that the VMM can trap and emulate the privileged
instruction issued by the guest VMs.
36
VMM-BASED THREATS
• Starvation of resources and denial of service for some VMs.
• Probable causes:
(a) badly configured resource limits for some VMs.
(b) a rogue VM with the capability to bypass resource limits set in VMM.
• VM side-channel attacks: malicious attack on one or more VMs by a rogue VM
under the same VMM.
• Probable causes:
(a) lack of proper isolation of inter-VM traffic due to misconfiguration of the
virtual network residing in the VMM.
(b) limitation of packet inspection devices to handle high speed traffic, e.g.,
video traffic.
(c) presence of VM instances built from insecure VM images, e.g., a VM
image having a guest OS without the latest patches.
37
39
MORE ADVANTAGES OF VIRTUALIZATION
40
UNDESIRABLE EFFECTS OF VIRTUALIZATION
41
IMPLICATIONS OF VIRTUALIZATION ON
SECURITY
• Infection may last indefinitely some of the infected VMs may be dormant at the time when
the measures to clean up the systems are taken and then, at a later time, wake up and infect
other systems; the scenario can repeat itself.
• In a traditional computing environment a steady state can be reached. In this steady state all
systems are brought up to a desirable state. This desirable state is reached by installing the
latest version of the system software and then applying to all systems the latest patches. Due
to the lack of control, a virtual environment may never reach such a steady state.
• A side effect of the ability to record in a file the complete state of a VM is the possibility to
roll back a VM. This allows a new type of vulnerability caused by events recorded in the
memory of an attacker.
• Virtualization undermines the basic principle that time sensitive data stored on any system
should be reduced to a minimum.
42
SECURITY RISKS POSED BY SHARED
IMAGES
• Image sharing is critical for the IaaS cloud delivery model. For example, a user of AWS
has the option to choose between
Amazon Machine Images (AMIs) accessible through the Quick Start.
Community AMI menus of the EC2 service.
• Many of the images analyzed by a recent report allowed a user to undelete files, recover
credentials, private keys, or other types of sensitive information with little effort and
using standard tools.
• A software vulnerability audit revealed that 98% of the Windows AMIs and 58% of
Linux AMIs audited had critical vulnerabilities.
• Security risks:
Backdoors and leftover credentials.
Unsolicited connections.
Malware. 43
SECURITY RISKS POSED BY A MANAGEMENT
OS
45
END OF MODULE 4
46