CMPT 280
Introduction to
Computer
Security
Module 1
Overview
Chapter 1 of the textbook
The NIST Internal/Interagency Report
NISTIR 7298 (Glossary of Key Information
Security Terms , May 2013) defines the term
computer security as follows:
Measures and controls that ensure
confidentiality, integrity, and
availability of information system
assets including hardware, software,
firmware, and information being
processed, stored, and
communicated
Key Security Concepts
Confidentiality
• Preserving
authorized
restrictions on
information
access and
disclosure,
including means
for protecting
personal privacy
and proprietary
information
Integrity
• Guarding against
improper
information
modification or
destruction,
including ensuring
information
nonrepudiation
and authenticity
Availability
• Ensuring timely
and reliable
access to and use
of information
Exercise 1.1
Consider a desktop publishing system used to
produce documents for various organizations.
• Give an example of a type of publication for which
confidentiality of the stored data is the most
important requirement.
• Give an example of a type of publication in which
data integrity is the most important requirement.
•
Give an example in which system availability is the
most important requirement.
Levels of Impact
Low
Moderate
High
The loss could be
expected to have a
limited adverse
effect on
organizational
operations,
organizational
assets, or
individuals
The loss could be
expected to have a
serious adverse
effect on
organizational
operations,
organizational
assets, or
individuals
The loss could be
expected to have a
severe or
catastrophic
adverse effect on
organizational
operations,
organizational
assets, or
individuals
Exercise 1.2
For each of the following assets, assign a low, moderate,
or high impact level for the loss of confidentiality,
availability, and integrity, respectively.
• A law enforcement organization managing extremely
sensitive investigative information.
• An information system used for large acquisitions in a
contracting organization contains both sensitive, presolicitation phase contract information and routine
administrative information.
o Assess the impact for the two data sets separately and the information system
as a whole
• Computer security is not as
• Attackers only need to find
•
•
•
•
•
simple as it might first
appear to the novice
Potential attacks on the
security features must be
considered
Procedures used to provide
particular services are often
counterintuitive
Physical and logical
placement needs to be
determined
Additional algorithms or
protocols may be involved
•
•
•
a single weakness, the
developer needs to find all
weaknesses
Users and system managers
tend to not see the benefits
of security until a failure
occurs
Security requires regular
and constant monitoring
Is often an afterthought to
be incorporated into a
system after the design is
complete
Thought of as an
impediment to efficient
and user-friendly operation
Exercise 1.3
• Consider an automated teller machine (ATM) in which
users provide a personal identification number (PIN)
and a card for account access. Give examples of
o confidentiality
o integrity,
o availability
requirements associated with the system and, in each
case, indicate the degree of importance of the
requirement.
• Repeat the exercise for a telephone switching system
that routes calls through a switching network based on
the telephone number requested by the caller.
Table 1.1
Computer
Security
Terminology
RFC 4949, Internet
Security Glossary,
May 2000
Assets of a Computer
System
Hardware
Communication facilities and networks
Software
Data (Asset)
Vulnerabilities, Threats
and Attacks
• Categories of vulnerabilities
• Corrupted (loss of integrity)
• Leaky (loss of confidentiality)
• Unavailable or very slow (loss of availability)
• Threats
• Capable of exploiting vulnerabilities
• Represent potential security harm to an asset
• Attacks (threats carried out)
• Passive – attempt to learn or make use of information from the system
that does not affect system resources
• Active – attempt to alter system resources or affect their operation
• Insider – initiated by an entity inside the security parameter
• Outsider – initiated from outside the perimeter
Countermeasures
Means used to
deal with
security attacks
• Prevent
• Detect
• Recover
Residual
vulnerabilities
may remain
May itself
introduce new
vulnerabilities
Goal is to
minimize
residual level of
risk to the
assets
Table 1.2
Threat
Consequences,
and the
Types of
Threat Actions
That Cause
Each
Consequence
Based on
RFC 4949
**Table is on page 20 in the textbook.
Table 1.3
Computer and Network Assets, with Examples of Threats
Passive and Active
Attacks
Passive Attack
• Attempts to learn or make
use of information from the
system but does not affect
system resources
• Eavesdropping on, or
monitoring of, transmissions
• Goal of attacker is to obtain
information that is being
transmitted
• Two types:
o Release of message contents
o Traffic analysis
Active Attack
• Attempts to alter system
resources or affect their
operation
• Involve some modification
of the data stream or the
creation of a false stream
• Four categories:
o
o
o
o
Replay
Masquerade
Modification of messages
Denial of service
Table 1.4
Security
Requirements
(FIPS PUB 200)
(page 1 of 2)
(Table can be found on page 26 in the
textbook.)
Table 1.4
Security
Requirements
(FIPS PUB 200)
(page 2 of 2)
(Table can be found on page 27 in the
textbook.)
Fundamental Security
Design Principles
Economy of
mechanism
Fail-safe
defaults
Complete
mediation
Open design
Separation of
privilege
Least privilege
Least common
mechanism
Psychological
acceptability
Isolation
Encapsulation
Modularity
Layering
Least
astonishment
Exercise 1.4
• Consider the following general code for allowing
access to a resource:
DWORD dwRet = IsAccessAllowed(...);
if (dwRet == ERROR_ACCESS_DENIED) {
// Security check failed.
// Inform user that access is denied.
} else {
// Security check OK.
}
• Explain the security flaw in this program.
• Which security design principle is broken?
• Rewrite the code to avoid the flaw
Attack Surfaces
Consist of the reachable and exploitable vulnerabilities in
a system
Examples:
Open ports on
outward facing Web
and other servers,
and code listening
on those ports
Services available on
the inside of a
firewall
Code that processes
incoming data,
email, XML, office
documents, and
industry-specific
custom data
exchange formats
Interfaces, SQL, and
Web forms
An employee with
access to sensitive
information
vulnerable to a
social engineering
attack
Attack Surface Categories
Network
Attack Surface
Software
Attack Surface
Vulnerabilities over an
enterprise network, wide-area
network, or the Internet
Vulnerabilities in application,
utility, or operating system
code
Included in this category are
network protocol vulnerabilities,
such as those used for a denialof-service attack, disruption of
communications links, and
various forms of intruder attacks
Human Attack
Surface
Vulnerabilities created by
personnel or outsiders, such as
social engineering, human
error, and trusted insiders
Particular focus is Web server
software
Exercise 1.5
Develop an attack tree for gaining access to the
contents of a physical safe.
o Consider all possible attack surfaces
o Consider as many as possible threats and vulnerabilities.
How would your answer change if this would be a
“smart” safe which you can control using an app
on your phone which connects to a dedicated
server maintained by the manufacturing company?
Computer Security Strategy
Exercise 1.6
For each of the following assets, assign a low, moderate,
or high impact level for the loss of confidentiality,
availability, and integrity, respectively.
• A financial organization managing routine
administrative information (not privacy-related
information).
• A power plant contains a SCADA (supervisory control
and data acquisition) system controlling the distribution
of electric power for a large military installation. The
SCADA system contains both real-time sensor data and
routine administrative information. Assess the impact for
the two data sets separately and the information
system as a whole.
o Assess the impact for the two data sets separately and the information system
as a whole
Summary
• Computer security
concepts
o Definition
o Challenges
o Model
• Threats, attacks,
and assets
o Threats and attacks
o Threats and assets
• Security functional
requirements
• Fundamental
security design
principles
• Attack surfaces
and attack trees
o Attack surfaces
o Attack trees
• Computer
security strategy
o Security policy
o Security
implementation
o Assurance and
evaluation
Next Module
• Network Fundamentals
• Reading:
•
http://tcpipguide.com/free/index.htm