Network Security
Network Security
Network Security
Chapter Summary
In this chapter, we covered computer networking and securing the network. A network is
simply two or more computers linked together to share data, information or resources. There
are many types of networks, such as LAN, WAN, WLAN and VPN, to name a few. Some of the
devices found on a network can be hubs, switches, routers, firewalls, servers, endpoints (e.g.,
desktop computer, laptop, tablet, mobile phone, VOIP or any other end-user device). Other
network terms you need to know and understand include ports, protocols, ethernet, Wi-Fi, IP
address and MAC address.
The two models discussed in this chapter are OSI and TCP/IP. The OSI model has seven layers
and the TCP/IP four. They both take the 1s and 0s from the physical or network interface layer,
where the cables or Wi-Fi connect, to the Application Layer, where users interact with the
data. The data traverses the network as packets, with headers or footers being added and
removed accordingly as they get passed layer to layer. This helps route the data and ensures
packets are not lost and remain together. IPv4 is slowly being phased out by IPv6 to improve
security, improve quality of service and support more devices.
As mentioned, Wi-Fi has replaced many of our wired networks, and with its ease of use, it also
brings security issues. Securing Wi-Fi, e.g., using WPA2, is very important.
We then learned about some of the attacks on a network, e.g., DoS/DDoS attacks, fragment
attacks, oversized packet attacks, spoofing attacks, and man-in-the middle attacks. We also
discussed the ports and protocols that connect the network and services that are used on
networks, from physical ports, e.g., LAN port, that connect the wires, to logical ports, e.g., 80
or 443, that connect the protocols/services.
We then examined some possible threats to a network, including spoofing, DoS/DDoS, virus,
worm, Trojan, on-path (man-in-the-middle) attack, and side-channel attack. The chapter went
on to discuss how to identify threats, e.g., using IDS/NIDS/HIDS or SIEM, and prevent threats,
e.g., using antivirus, scans, firewalls, or IPS/NIPS/HIPS. We discussed on-premises data centers
and their requirements, e.g., power, HVAC, fire suppression, redundancy and MOU/MOA. We
reviewed the cloud and its characteristics, to include service models: SaaS, IaaS and PaaS; and
deployment models: public, private, community and hybrid. The importance of an MSP and
SLA were also discussed.
Network Devices:
• Hubs
• Switches
• Routers
• Firewalls
• Servers
• Printers
• Fax Machines
• Gateways
• Repeaters
• Bridges
• Modems
• Access Points
• Endpoints (e.g., desktop computer, laptop, tablet, cellphone, VOIP, or any other end-
user device)
Network Models:
• OSI and TCP/IP
Secure Alternative
Insecure Port Protocol Protocol
Port
Secure File Transfer
21 - FTP File Transfer Protocol 22* - SFTP
Protocol
23 – Telnet Telnet 22* - SSH Secure Shell
Simple Mail Transfer
25 – SMTP 587 – SMTP SMTP with TLS
Protocol
Network Time
37 – Time Time Protocol 123 – NTP
Protocol
53 – DNS Domain Name Service 853 - DoT DNS over TLS (DoT)
HyperText Transfer HyperText Transfer
80 – HTTP 443 – HTTPS
Protocol Protocol (SSL/TLS)
Internet Message
143 - IMAP 993 – IMAP IMAP for SSL/TLS
Access Protocol
Simple Network
161/162 - SNMP 161/162 - SNMP SNMPv3
Management Protocol
445 – SMB Server Message Block 2049 - NFS Network File System
Lightweight Directory
Lightweight Directory
389 – LDAP 636 - LDAPS Access Protocol
Access Protocol
Secure
7 Application DATA
6 Presentation Header
DATA
5 Session DATA
4 Transport DATA
3 Network DATA
2 Data Link DATA Footer
1 Physical DATA
Chapter 4: Graphics 9
Transmission Control Protocol/Internet Protocol (TCP/IP)
Model
Application
Layer FTP Telnet SNMP LPD
Presentation Application
Layer Layer
Transport Transport
TCP UDP
Layer Layer
Data Link
Layer Network
Fast Token
Interface Ethernet FDDI
Ethernet Ring
Physical Layer
Layer
Chapter 4: Graphics 10
Chapter Terms and Definitions
Application programming interface (API)
A set of routines, standards, protocols, and tools for building software applications to access a
web-based software application or web tool.
Bit
The most essential representation of data (zero or one) at Layer 1 of the Open Systems Intercon-
nection (OSI) model.
Broadcast
Broadcast transmission is a one-to-many (one-to-everyone) form of sending internet traffic.
Byte
The byte is a unit of digital information that most commonly consists of eight bits.
Cloud computing
A model for enabling ubiquitous, convenient, on-demand network access to a shared pool of
configurable computing resources (e.g., networks, servers, storage, applications, and services)
that can be rapidly provisioned and released with minimal management effort or service provider
interaction. NIST 800-145
Community cloud
A system in which the cloud infrastructure is provisioned for exclusive use by a specific community
of consumers from organizations that have shared concerns (e.g., mission, security requirements,
policy and compliance considerations). It may be owned, managed and operated by one or more
of the organizations in the community, a third party or some combination of them, and it may exist
on or off premises. NIST 800-145
De-encapsulation
The opposite process of encapsulation, in which bundles of data are unpacked or revealed.
Denial-of-Service (DoS)
The prevention of authorized access to resources or the delaying of time-critical operations.
(Time-critical may be milliseconds or it may be hours, depending upon the service provided.)
Source: NIST SP 800-27 Rev A
Encapsulation
Enforcement of data hiding and code hiding during all phases of software development and op-
erational use. Bundling together data and methods is the process of encapsulation; its opposite
process may be called unpacking, revealing, or using other terms. Also used to refer to taking any
set of data and packaging it or hiding it in another data structure, as is common in network proto-
cols and encryption.
Encryption
The process and act of converting the message from its plaintext to ciphertext. Sometimes it is
also referred to as enciphering. The two terms are sometimes used interchangeably in literature
and have similar meanings.
Fragment attack
In a fragment attack, an attacker fragments traffic in such a way that a system is unable to put data
packets back together.
Hardware
The physical parts of a computer and related devices.
Hybrid cloud
A combination of public cloud storage and private cloud storage where some critical data resides
in the enterprise’s private cloud while other data is stored and accessible from a public cloud stor-
age provider.
Man-in-the-Middle
An attack where the adversary positions himself in between the user and the system so that he can
intercept and alter data traveling between them. Source: NISTIR 7711
Microsegmentation
Part of a zero-trust strategy that breaks LANs into very small, highly localized zones using firewalls
or similar technologies. At the limit, this places firewall at every connection point.
Packet
Representation of data at Layer 3 of the Open Systems Interconnection (OSI) model.
Payload
The primary action of a malicious code attack.
Protocols
A set of rules (formats and procedures) to implement and control some type of association (that is,
communication) between systems. NIST SP 800-82 Rev. 2
Public cloud
The cloud infrastructure is provisioned for open use by the general public. It may be owned, man-
aged, and operated by a business, academic, or government organization, or some combination
of them. It exists on the premises of the cloud provider. NIST SP 800-145
Software
Computer programs and associated data that may be dynamically written or modified during exe-
cution. NIST SP 80--37 Rev. 2
Spoofing
Faking the sending address of a transmission to gain illegal entry into a secure system. CNSSI
4009-2015
VLAN
A virtual local area network (VLAN) is a logical group of workstations, servers, and network devices
that appear to be on the same LAN despite their geographical distribution.
VPN
A virtual private network (VPN), built on top of existing networks, that can provide a secure com-
munications mechanism for transmission between networks.
WLAN
A wireless area network (WLAN) is a group of computers and devices that are located in the same
vicinity, forming a network based on radio transmissions rather than wired connections. A Wi-Fi
network is a type of WLAN.
Zenmap
The graphical user interface (GUI) for the Nmap Security Scanner, an open-source application that
scans networks to determine everything that is connected as well as other information.
Zero Trust
Removing the design belief that the network has any trusted space. Security is managed at each
possible level, representing the most granular asset. Microsegmentation of workloads is a tool of
the model.