Week_3
Week_3
The Internet, sometimes called simply "the Net," is a worldwide system of computer networks -- a
network of networks in which users at any one computer can get information from any other computer (and
sometimes talk directly to users at other computers). Computers connected to the internet are called clients and
servers. A simplified diagram of how they interact might look like this:
• Clients are the typical web user's internet-connected devices (for example, your computer connected to your
Wi-Fi, or your phone connected to your mobile network) and web-accessing software available on those
devices (usually a web browser like Firefox or Chrome).
• Servers are computers that store webpages, sites, or apps. When a client device wants to access a webpage, a
copy of the webpage is downloaded from the server onto the client machine to be displayed in the user's web
browser.
The Internet can be seen as having two major components: Network protocols and
Hardware. The protocols, such as the TCP/IP suite, present sets of rules that devices must follow in order to
complete tasks. Without this common collection of rules, machines would not be able to communicate.
The protocols are also responsible for translating the alphabetic text of a message into electronic signals that
can be transmitted over the Internet, and then back again into legible, alphabetic text. Hardware, the second
major component of the Internet, includes everything from the computer or smartphone that is used to access
the Internet to the cables that carry information from one device to another. Additional types of hardware
include satellites, radios, cell phone towers, routers and servers.
These various types of hardware are the connections within the network. Devices such as computers,
smartphones and laptops are end points, or clients, while the machines that store the information are the
servers. The transmission lines that exchange the data can either be wireless signals from satellites or 4G and
cell phone towers, or physical lines, such as cables and fiber optics.
The process of transferring information from one device to another relies on packet switching. Each computer
connected to the Internet is assigned a unique IP address that allows the device to be recognized. When one
device attempts to send a message to another device, the data is sent over the Internet in the form of
manageable packets. Each packet is assigned a port number that will connect it to its endpoint.
A packet that has both a unique IP address and port number can be translated from alphabetic text into
electronic signals by travelling through the layers of the OSI model from the top application layer to the
bottom physical layer. The message will then be sent over the Internet where it is received by the Internet
service provider's (ISP) router. The router will examine the destination address assigned to each packet and
determine where to send it.
Eventually, the packet reaches the client and travels in reverse from the bottom physical layer of the OSI model
to the top application layer. During this process, the routing data -- the port number and IP address -- is
stripped from the packet, thus allowing the data to be translated back into alphabetic text and completing the
transmission process.
Computer Network Architecture is defined as the physical and logical design of the software, hardware,
protocols, and media of the transmission of data. Simply we can say that how computers are organized and how
tasks are allocated to the computer.
Peer-To-Peer network o Peer-To-Peer network is a network in which all the computers are linked together with
equal privilege and responsibilities for processing the data.
o Peer-To-Peer network is useful for small environments, usually up to 10 computers.
o Peer-To-Peer network has no dedicated server. o Special permissions are assigned to each computer for sharing
the resources, but this can lead to a problem if the computer with the resource is down.
Client/Server Network o Client/Server network is a network model designed for the end users called clients, to
access the resources such as songs, video, etc. from a central computer known as Server.
o The central controller is known as a server while all other computers in the network are called clients.
o A server performs all the major operations such as security and network management.
o A server is responsible for managing all the resources such as files, directories, printer, etc.
o All the clients communicate with each other through a server. For example, if client1 wants to send some data
to client 2, then it first sends the request to the server for the permission. The with the client 2.
1. Access Control: Permitting only authorized personnel to access. Physical security keeps safe from
unauthorized access. Restricting access to critical servers and using strong passwords can prevent many
attacks.
2. Damage data bits.
3. Environmental issues: Environmental issues at the Physical layer include fire, smoke, water, Less control
over environmental factors such as temperature, humidity, dust, and ventilation can cause frequent failures.
4. Disconnection of Physical Links.
1. ARPs/ARP spoofing
ARP spoofing is targeted to rogue switch to forward packets to a different VLAN. Security vulnerability occurs
at the lower layer of OSI model but affects upper layer security. To prevent these attack, configuration is
performed to ignore gratuitous ARPs. Edge VLAN (Private VLANs) segregation and ARP inspection to mitigate
this threat.
2. MAC Flooding
MAC flooding is the attack on the network [Link] Flooding occurs when the MAC table of a switch
reaches its capacity and then floods. A malicious user can sniff the flooded traffic to gather network sensitive
information.
TCP/IP is a large family of protocols that is named after its two most important members. Figure 1 shows the
TCP/IP protocols used by CICS. TCP/IP, in terms of the layered Open Systems Interconnection (OSI) model,
which is widely used to describe data communication systems. For CICS users who might be more accustomed
to SNA, the left side of figure shows the SNA layers, which correspond very closely to the OSI layers.
FIREWALL
Almost every medium and large-scale organization has a presence on the Internet and has an organizational network
connected to it. Network partitioning at the boundary between the outside Internet and the internal network is essential
for network security. Sometimes the inside network (intranet) is referred to as the “trusted” side and the external Internet
as the “untrusted” side.
Types of Firewall
Firewall is a network device that isolates organization’s internal network from larger outside network/Internet. It can be a
hardware, software, or combined system that prevents unauthorized access to or from internal network.
All data packets entering or leaving the internal network pass through the firewall, which examines each packet and blocks
those that do not meet the specified security criteria.
Deploying firewall at network boundary is like aggregating the security at a single point. It is analogous to locking an
apartment at the entrance and not necessarily at each door.
Firewall is considered as an essential element to achieve network security for the following reasons − • Internal network
and hosts are unlikely to be properly secured.
• Internet is a dangerous place with criminals, users from competing companies, disgruntled ex-employees,
spies from unfriendly countries, vandals, etc.
• To prevent an attacker from launching denial of service attacks on network resource.
• To prevent illegal modification/access to internal data by an outsider attacker.
In this type of firewall deployment, the internal network is connected to the external network/Internet via a router
firewall. The firewall inspects and filters data packet-by-packet.
Packet-filtering firewalls allow or block the packets mostly based on criteria such as source / destination IP addresses,
protocol, source/destination port numbers, and various other parameters within the IP header.
The decision can be based on factors other than IP header fields such as ICMP message type, TCP SYN and ACK bits, etc.
• Selection criteria − It is a used as a condi on and pa ern matching for decision making.
• Action field − This part specifies ac on to be taken if an IP packet meets the selec on criteria. The ac on
could be either block (deny) or permit (allow) the packet across the firewall.
Packet filtering is generally accomplished by configuring Access Control Lists (ACL) on routers or switches. ACL is a table of
packet filter rules.
As traffic enters or exits an interface, firewall applies ACLs from top to bottom to each incoming packet, finds matching
criteria and either permits or denies the individual packets.
Stateless firewall is a kind of a rigid tool. It looks at packet and allows it if its meets the criteria even if it is not part of any
established ongoing communication.
Hence, such firewalls are replaced by stateful firewalls in modern networks. This type of firewalls offer a more in-depth
inspection method over the only ACL based packet inspection methods of stateless firewalls.
Stateful firewall monitors the connection setup and teardown process to keep a check on connections at the TCP/IP level.
This allows them to keep track of connections state and determine which hosts have open, authorized connections at any
given point in time.
They reference the rule base only when a new connection is requested. Packets belonging to existing connections are
compared to the firewall's state table of open connections, and decision to allow or block is taken. This process saves time
and provides added security as well. No packet is allowed to trespass the firewall unless it belongs to already established
connection. It can timeout inactive connections at firewall after which it no longer admit packets for that connection.
Application Gateways
An application-level gateway acts as a relay node for the application-level traffic. They intercept incoming and outgoing
packets, run proxies that copy and forward information across the gateway, and function as a proxy server, preventing any
direct connection between a trusted server or client and an untrusted host.
The proxies are application specific. They can filter packets at the application layer of the OSI model.
Application-specific Proxies
An application-specific proxy accepts packets generated by only specified application for which they are designed to copy,
forward, and filter. For example, only a Telnet proxy can copy, forward, and filter Telnet traffic.
If a network relies only on an application-level gateway, incoming and outgoing packets cannot access services that have
no proxies configured. For example, if a gateway runs FTP and Telnet proxies, only packets generated by these services can
pass through the firewall. All other services are blocked. Application-level Filtering
An application-level proxy gateway, examines and filters individual packets, rather than simply copying them and blindly
forwarding them across the gateway. Application-specific proxies check each packet that passes through the gateway,
verifying the contents of the packet up through the application layer. These proxies can filter particular kinds of commands
or information in the application protocols.
Application gateways can restrict specific actions from being performed. For example, the gateway could be configured to
prevent users from performing the ‘FTP put’ command. This can prevent modification of the information stored on the
server by an attacker.
Transparent
Although application-level gateways can be transparent, many implementations require user authentication before users
can access an untrusted network, a process that reduces true transparency. Authentication may be different if the user is
from the internal network or from the Internet. For an internal network, a simple list of IP addresses can be allowed to
connect to external applications. But from the Internet side a strong authentication should be implemented.
An application gateway actually relays TCP segments between the two TCP connections in the two directions (Client ↔
Proxy ↔ Server).
For outbound packets, the gateway may replace the source IP address by its own IP address. The process is referred to as
Network Address Translation (NAT). It ensures that internal IP addresses are not exposed to the Internet.
Circuit-Level Gateway
The circuit-level gateway is an intermediate solution between the packet filter and the application gateway. It runs at the
transport layer and hence can act as proxy for any application.
Similar to an application gateway, the circuit-level gateway also does not permit an end-to-end TCP connection across the
gateway. It sets up two TCP connections and relays the TCP segments from one network to the other. But, it does not
examine the application data like application gateway. Hence, sometime it is called as ‘Pipe Proxy’.
SOCKS
SOCKS (RFC 1928) refers to a circuit-level gateway. It is a networking proxy mechanism that enables hosts on one side of a
SOCKS server to gain full access to hosts on the other side without requiring direct IP reachability. The client connects to
the SOCKS server at the firewall. Then the client enters a negotiation for the authentication method to be used, and
authenticates with the chosen method.
The client sends a connection relay request to the SOCKS server, containing the desired destination IP address and
transport port. The server accepts the request after checking that the client meets the basic filtering criteria. Then, on
behalf of the client, the gateway opens a connection to the requested untrusted host and then closely monitors the TCP
handshaking that follows.
The SOCKS server informs the client, and in case of success, starts relaying the data between the two connections. Circuit
level gateways are used when the organization trusts the internal users, and does not want to inspect the contents or
application data sent on the Internet.
A firewall is a mechanism used to control network traffic ‘into’ and ‘out’ of an organizational internal network. In most
cases these systems have two network interfaces, one for the external network such as the Internet and the other for the
internal side.
The firewall process can tightly control what is allowed to traverse from one side to the other. An organization that wishes
to provide external access to its web server can restrict all traffic arriving at firewall expect for port 80 (the standard http
port). All other traffic such as mail traffic, FTP, SNMP, etc., is not allowed across the firewall into the internal network. An
example of a simple firewall is shown in the following diagram.
In the above simple deployment, though all other accesses from outside are blocked, it is possible for an attacker to
contact not only a web server but any other host on internal network that has left port 80 open by accident or otherwise.
Hence, the problem most organizations face is how to enable legitimate access to public services such as web, FTP, and e-
mail while maintaining tight security of the internal network. The typical approach is deploying firewalls to provide a
Demilitarized Zone (DMZ) in the network.
In this setup (illustrated in following diagram), two firewalls are deployed; one between the external network and the DMZ,
and another between the DMZ and the internal network. All public servers are placed in the DMZ.
With this setup, it is possible to have firewall rules which allow public access to the public servers but the interior firewall
can restrict all incoming connections. By having the DMZ, the public servers are provided with adequate protection instead
of placing them directly on external network.
The packet filtering firewalls operate based on rules involving TCP/UDP/IP headers only. They do not attempt to establish
correlation checks among different sessions.
Intrusion Detection/Prevention System (IDS/IPS) carry out Deep Packet Inspection (DPI) by looking at the packet contents.
For example, checking character strings in packet against database of known virus, attack strings.
Application gateways do look at the packet contents but only for specific applications. They do not look for suspicious data
in the packet. IDS/IPS looks for suspicious data contained in packets and tries to examine correlation among multiple
packets to identify any attacks such as port scanning, network mapping, and denial of service and so on.
IDS and IPS are similar in detection of anomalies in the network. IDS is a ‘visibility’ tool whereas IPS is considered as a
‘control’ tool.
Intrusion Detection Systems sit off to the side of the network, monitoring traffic at many different points, and provide
visibility into the security state of the network. In case of reporting of anomaly by IDS, the corrective actions are initiated
by the network administrator or other device on the network.
Intrusion Prevention System are like firewall and they sit in-line between two networks and control the traffic going
through them. It enforces a specified policy on detection of anomaly in the network traffic. Generally, it drops all packets
and blocks the entire network traffic on noticing an anomaly till such time an anomaly is addressed by the administrator.
Types of IDS
types of IDS.
• Signature-based IDS
It needs a database of known attacks with their signatures.
Signature is defined by types and order of packets characterizing a particular attack.
Limitation of this type of IDS is that only known attacks can be detected. This IDS can also throw up a false
alarm. False alarm can occur when a normal packet stream matches the signature of an attack.
Well-known public open-source IDS example is “Snort” IDS.
• Anomaly-based IDS
This type of IDS creates a traffic pattern of normal network operation.
During IDS mode, it looks at traffic patterns that are statistically unusual. For example, ICMP unusual load,
exponential growth in port scans, etc.
Detection of any unusual traffic pattern generates the alarm.
The major challenge faced in this type of IDS deployment is the difficulty in distinguishing between normal
traffic and unusual traffic.
Host based IDS
Network based IDS
What Is a VPN? - Virtual Private Network
A virtual private network, or VPN, is an encrypted connection over the Internet from a device to a network. The encrypted
connection ensure that sensitive data is safely transmitted.
It prevents unauthorized people from eavesdropping on the traffic and allows the user to conduct work remotely. VPN
technology is widely used in corporate environments.
VPN creates an encrypted connection that is called VPN tunnel, and all Internet traffic and communication is passed
through this secure tunnel.
Tunneling and Virtual Private Networks (Figure ) are also implicated in OSI Layer 2. Tunneling is a method using the Internet
framework to transfer data from one network to another. Tunneling encapsulates packets in a base protocol format within
some other protocol over the Internet. Virtual Private Networks (VPN) encapsulates packets within an IP packet. Virtual
Private Networks exist on OSI Layers 2 and 3 and are dependent on what VPN protocols are used. OSI Layer 5 also supports
a VPN protocol (Figure 5). VPNs work hard to prevent hackers from gaining access to data crossing the Internet.
Figure 5 VPN Connection [5] At the Data layer of the OSI model, Point-to-Point Tunneling Protocol (PPTP) and Layer Two
Tunneling Protocol (L2TP) are implemented. PPTP is popular because Microsoft was one of the developers of this protocol
and PPTP is used on their OS platforms. PPTP supports non-IP standards but does not support a single standard that will
work across platforms. L2TP was created by Cisco to improve upon PPTP. L2TP also supports non-IP standards but includes
Frame Relay, ATM, and Sonet. Like PPTP, L2TP does not support a single standard. IPsec VPN protocol is more popular with
less expensive routers and will be discussed further in the next section. Because the appliances normally used to implement
VPNs are routers and firewalls, further discussion will occur in the next section under Layer 3 (Router/Firewall Security).
TYPES OF VPN
1. Remote Access VPN
Remote Access VPN permits a user to connect to a private network and access all its services and
resources remotely. The connection between the user and the private network occurs through the Internet
and the connection is secure and private. Remote Access VPN is useful for home users and business
users both. An employee of a company, while he/she is out of station, uses a VPN to connect to his/her
company’s private network and remotely access files and resources on the private network. Private users
or home users of VPN, primarily use VPN services to bypass regional restrictions on the Internet and
access blocked websites. Users aware of Internet security also use VPN services to enhance their Internet
security and privacy.
2. Site to Site VPN
A Site-to-Site VPN is also called as Router-to-Router VPN and is commonly used in the large
companies. Companies or organizations, with branch offices in different locations, use Site-to-site VPN
to connect the network of one office location to the network at another office location.
Intranet based VPN: When several offices of the same company are connected using Site-to-Site
VPN type, it is called as Intranet based VPN.
Extranet based VPN: When companies use Site-to-site VPN type to connect to the office of another
company, it is called as Extranet based VPN.
3. Cloud VPN
A Cloud VPN is a virtual private network that allows users to securely connect to a cloud-based
infrastructure or service. It uses the internet as the primary transport medium to connect the remote users
to the cloud-based resources. Cloud VPNs are typically offered as a service by cloud providers such as
Amazon Web Services (AWS) and Microsoft Azure. It uses the same encryption and security protocols
as traditional VPNs, such as IPsec or SSL, to ensure that the data transmitted over the VPN is secure.
Cloud VPNs are often used by organizations to securely connect their on-premises resources to cloud-
based resources, such as cloud-based storage or software-as-a-service (SaaS) applications.
4. Mobile VPN
Mobile VPN is a virtual private network that allows mobile users to securely connect to a private
network, typically through a cellular network. It creates a secure and encrypted connection between the
mobile device and the VPN server, protecting the data transmitted over the connection. Mobile VPNs
can be used to access corporate resources, such as email or internal websites, while the user is away
from the office. They can also be used to securely access public Wi-Fi networks, protecting the user’s
personal information from being intercepted. Mobile VPNs are available as standalone apps or can be
integrated into mobile device management (MDM) solutions. These solutions are commonly used by
organisations to secure their mobile workforce.
5. SSL VPN
SSL VPN (Secure Sockets Layer Virtual Private Network) is a type of VPN that uses the SSL protocol
to secure the connection between the user and the VPN server. It allows remote users to securely access
a private network by establishing an encrypted tunnel between the user’s device and the VPN server.
SSL VPNs are typically accessed through a web browser, rather than through a standalone client. This
makes them easier to use and deploy, as they don’t require additional software to be installed on the
user’s device. It can be used to access internal resources such as email, file servers, or databases. SSL
VPNs are considered more secure than traditional IPsec VPNs because they use the same encryption
protocols as HTTPS, the secure version of HTTP used for online transactions.
What Is IPsec?
Internet Protocol Security (IPsec) is a suite of protocols and services that provide security for IP
networks. It is a widely used virtual private network (VPN) technology. IP packets lack effective security
mechanisms and may be forged, stolen, or tampered with when being transmitted on a public
network, such as the Internet. To solve this problem, the communicating parties establish an IPsec
tunnel for encrypted transmission of IP packets. This ensures secure transmission of IP packets on an
insecure network, such as the Internet.
IPsec VPN protects point-to-point communication by establishing secure tunnels between hosts,
between hosts and network security gateways, or between network security gateways (such as routers
and firewalls). It operates at the IP layer to encrypt and authenticate data packets.
Compared with other VPN technologies, IPsec VPN is more secure because data is encrypted for
transmission in IPsec tunnels. However, the configuration and networking deployment of IPsec VPN
are more complex.
IPsec VPN
In the following figure, the IPsec sender uses the encryption algorithm and encryption key to encrypt
an IP packet, that is, it encapsulates the original data. Then the sender and receiver use the same
authentication algorithm and authentication key to process the encrypted packets to obtain the
integrity check value (ICV). If the ICVs obtained at both ends are the same, the packet is not tampered
with during transmission, and the receiver decrypts the packet. If the ICVs are different, the receiver
discards the packet.
(** This hash, an integrity check value (ICV), can be either Message Authentication Code (MAC) or a
digital signature.)
SSL stands for Secure Sockets Layer and, in short, it's the standard technology for keeping an internet
connection secure and safeguarding any sensitive data that is being sent between two systems,
preventing criminals from reading and modifying any information transferred, including potential
personal details. The two systems can be a server and a client (for example, a shopping website and
browser) or server to server (for example, an application with personal identifiable information or with
payroll information).
It does this by making sure that any data transferred between users and sites, or between two systems
remain impossible to read. It uses encryption algorithms to scramble data in transit, preventing
hackers from reading it as it is sent over the connection. This information could be anything sensitive
or personal which can include credit card numbers and other financial information, names and
addresses.
TLS (Transport Layer Security) is just an updated, more secure, version of SSL. We still refer to our
security certificates as SSL because it is a more commonly used term, but when you are buying SSL
from DigiCert you are actually buying the most up-to-date TLS certificates with the option of ECC, RSA
or DSA encryption.
HTTPS (Hyper Text Transfer Protocol Secure) appears in the URL when a website is secured by an SSL
certificate. The details of the certificate, including the issuing authority and the corporate name of the
website owner, can be viewed by clicking on the lock symbol on the browser bar.
IPsec VPN
SSL VPN
• Security
IPsec works at the network layer to protect all data transmitted between sites. IPsec VPN
requires remote users to install a dedicated VPN client or deploy a VPN gateway at the site.
User access is checked by the client or gateway in terms of user authentication rules,
security policy rules, or content security filtering. Therefore, IPsec VPN is more secure. SSL
VPN does not require dedicated clients or gateways at access sites. Therefore, SSL VPN is
more vulnerable to security threats.
• Access control
IPsec works at the network layer and cannot implement fine-grained access control based
on applications. SSL VPN is more flexible in fine-grained access control. Network
administrators can classify network resources into different types based on application
types. Each type of resources has different access permissions.
Wired networks feel secure; after all, you can’t easily listen to this traffic. You could connect to a
switchport, but the only unicast traffic you’ll see is the traffic between your computer and the
switch. You will see multicast and broadcast traffic from within the VLAN, though.
Anyone can see the data that travels through the air, which is why wireless security is so important.
Someone can monitor wireless traffic, and you won’t even notice that it’s happening.
Wireless Topologies
The 802.11 standard identifies two main wireless topology modes: infrastructure mode and
Independent Basic Service Set (IBSS). IBSS is also knows as ad hoc mode. With the ubiquity of
wireless networks, mesh topologies are now common.
Infrastructure Mode
With infrastructure mode, wireless clients interconnect via an AP. Figure 22-4 illustrates
infrastructure mode terminology. Notice that the configuration of the APs to share the same SSID
allows wireless clients to roam between BSAs.
• Basic service set (BSS): This consists of a single AP interconnecting all associated wireless
clients.
• Basic service area (BSA): This is the area that is bound by the reach of the AP’s signal. The
BSA is also called a cell (the gray area in Figure 22-4).
• Basic service set identifier (BSSID): This is the unique, machine-readable identifier for the
AP that is in the format of a MAC address and is usually derived from the AP’s wireless MAC
address.
• Service set identifier (SSID): This is a human-readable, non-unique identifier used by the
AP to advertise its wireless service.
• Distribution system (DS): APs connect to the network infrastructure using the wired DS,
such as Ethernet. An AP with a wired connection to the DS is responsible for translating
frames between 802.3 Ethernet and 802.11 wireless protocols.
• Extended service set (ESS): When a single BSS provides insufficient coverage, two or more
BSSs can be joined through a common DS into an ESS. An ESS is the union of two or more
BSSs interconnected by a wired DS. Each ESS is identified by its SSID, and each BSS is
identified by its BSSID.
In the 802.11 standard, Independent Basic Service Set (IBSS) is defined as two devices connected
wirelessly in a peer-to-peer (P2P) manner without the use of an AP. One device takes the role of
advertising the wireless network to clients. The IBSS allows two devices to communicate directly
without the need for any other wireless devices, as shown in Figure 225. IBSSs do not scale well
beyond 8 to 10 devices.
Mesh
Having a wired DS connecting all APs is not always practical or necessary. Instead, APs can be
configured to connect in mesh mode. In this mode, APs bridge client traffic between each other, as
shown in Figure 22-6.
Each AP in the mesh maintains a BSS on one channel used by wireless clients. Then the APs bridge
between each other using other channels. The mesh network runs its own dynamic routing protocol
to determine the best path to the wired network.
wireless traffic has to go through the AP, instead of directly between the sender and receiver.
Anyone in range of the AP or other wireless clients can receive the signal.
This can be a problem. For example, imagine we have a user who sends a password to a
Remote Server: The wireless user transmits a password to the remote server. Because the attacker
is in range of our wireless network, he can capture the password.
How can we securely transmit data through the air and ensure that it remains private and is not
tampered with? The 802.11 standard offers security mechanisms that
provide authentication, encryption, and integrity. In this lesson, I’ll give you an overview of these
three items.
Authentication
To use a wireless network, the wireless client has to discover a BSS(Basic service set (BSS): This
consists of a single AP interconnecting all associated wireless clients).
APs advertise beacons(Management Packets) with their SSID, and the wireless client selects the
wireless network it wants to connect to and associates with the AP. By
You probably want to authenticate your wireless clients, though. If you have a corporate network,
you don’t want just anyone to join the network. Only legitimate users should be able to use your
wireless network. After all, the wireless network might be connected to the wired network where you
can access all corporate resources.
What if you have guest users? If you want to offer a guest wireless network, you should configure a
second SSID, linked to a VLAN with restricted access.
APs can authenticate wireless clients before they associate with the AP. This keeps rogue clients
away from our wireless network.
There are many options for wireless authentication. You are probably familiar with the most
common choice, a pre-shared key. We configure the pre-shared key on the AP. Any wireless client
that wants to join
What happens when someone steals one of the wireless clients? That’s a problem because of two
main reasons:
There are stronger authentication options where we ask users for a username and password instead.
This helps. When a device is stolen, at least you can pinpoint which username was compromised and
reset the password for that username. You don’t have to reset the preshared key and configure it on
all wireless clients.
Wireless traffic is inherently different from traffic traveling over a wired infrastructure. Any wireless
device operating in the same frequency can hear the frames and potentially read them. Therefore,
WLANs need to be secured to allow only authorized users and devices and to prevent eavesdropping
and tampering of wireless traffic.
For wireless devices to communicate over a network, they must first associate with the AP. An
important part of the 802.11 process is discovering a WLAN and subsequently connecting to it.
During this process, transmitted frames can reach any device within range. If the wireless connection
is not secured, then others can read the traffic, as shown in Figure 22-11.
The best way to secure a wireless network is to use authentication and encryption systems.
Two types of authentication were introduced with the original 802.11 standard:
• Open system authentication: Should only be used in situations where security is of no concern. The
wireless client is responsible for providing security such as by using a virtual private network (VPN) to
connect securely.
• Shared key authentication: Provides mechanisms shown in Table 22-3 to authenticate and encrypt data
between a wireless client and an AP. However, the password must be pre-shared between the parties to
allow connection.
The original 802.11 specification designed to secure the data using the require the use of Protected
Wired Equivalent Rivest Cipher 4 (RC4) encryption method with a static key. However, the key Management
Privacy (WEP) never changes when exchanging packets. This makes WEP easy to hack. WEP Frames (PMF).
is no longer recommended and should never be used. However, devices
A Wi-Fi Alliance standard that uses WEP but secures the data with the much with WPA3 are not
Wi-Fi Protectedstronger Temporal Key Integrity Protocol (TKIP) encryption algorithm. yet readily available.
WPA and WPA2
Access (WPA) TKIP changes the key for each packet, making it much more difficult to hack.
Home routers
typically have two
The current industry standard for securing wireless networks. It uses the
choices for
WPA2 Advanced Encryption Standard (AES) for encryption. AES is currently
authentication: WPA
considered the strongest encryption protocol.
and WPA2. WPA2 is
The next generation of Wi-Fi security. All WPA3-enabled devices use the
the stronger of the
latest security methods, disallow outdated legacy protocols, and
WPA3 two. WPA2
authentication
methods included the following:
• Personal: Intended for home or small office networks, users authenticate using a preshared key (PSK). Wireless
clients authenticate with the wireless router using a preshared password. No special authentication server is
required.
• Enterprise: Intended for enterprise networks but requires a Remote Authentication Dial-In User Service (RADIUS)
authentication server. Although more complicated to set up, it provides additional security. The device must be
authenticated by the RADIUS server, and then users must authenticate using the 802.1X standard, which uses
Extensible Authentication Protocol (EAP) for authentication.
802.1X/EAP
With open and WEP authentication, wireless clients are authenticated locally at the AP without further intervention. The
scenario changes with 802.1X: The client uses open authentication to associate with the AP, and then the client
authentication process occurs at a dedicated authentication server. Figure 22-11 shows the three-party 802.1X
arrangement, which consists of the following entities:
WPA3
• WPA3-Personal: In WPA2-Personal, threat actors can listen in on the “handshake” between a wireless client and
the AP and use brute-force attacks to try to guess the PSK. WPA3-Personal thwarts such attacks by using
Simultaneous Authentication of Equals (SAE), a feature specified in the IEEE 802.11-2016. The PSK is never
exposed, making it impossible for the threat actor to guess.
• WPA3-Enterprise: WPA3-Enterprise still uses 802.1X/EAP authentication. However, it requires the use of a 192-
bit cryptographic suite and eliminates the mixing of security protocols for previous 802.11 standards. WPA3-
Enterprise adheres to the Commercial National Security Algorithm (CNSA) suite, which is commonly used in high-
security Wi-Fi networks.
• Open networks: Open networks in WPA2 send user traffic in unauthenticated plaintext. In WPA3, open or public
Wi-Fi networks still do not use any authentication. However, they do use Opportunistic Wireless Encryption (OWE)
to encrypt all wireless traffic.
• IoT onboarding: Although WPA2 included Wi-Fi Protected Setup (WPS) to quickly onboard devices that were not
previously configured, WPS is vulnerable to a variety of attacks and is not recommended. Furthermore, IoT
devices are typically headless, meaning they have no built-in GUI for configuration and need any easy way to get
connected to the wireless network. Device Provisioning Protocol (DPP) was designed to address this need. Each
headless device has a hard-coded public key. The key is typically stamped on the outside of the device or its
packaging as a Quick Response (QR) code. The network administrator can scan the QR code and quickly onboard
the device. Although DPP is not strictly part of the WPA3 standard, it will replace WPS over time.
Encryption is used to protect data. An intruder may be able to captured encrypted data, but he or she would not be able
to decipher it in any reasonable amount of time. The following encryption protocols are used with wireless authentication:
• Temporal Key Integrity Protocol (TKIP): TKIP is the encryption method used by WPA. It provides support for
legacy WLAN equipment and addresses the original flaws associated with the 802.11 WEP encryption method. It
makes use of WEP but encrypts the Layer 2 payload using TKIP and carries out a message integrity check (MIC) in
the encrypted packet to ensure that the message has not been altered.
• Advanced Encryption Standard (AES): AES is the encryption method used by WPA2. It is the preferred method
because it is a very strong method of encryption. It uses Counter Cipher Mode with Block Chaining Message
Authentication Code Protocol (CCMP), which allows destination hosts to recognize if the encrypted and
nonencrypted bits have been altered.
• The Galois/Counter Mode Protocol (GCMP): This is a robust authenticated encryption suite that is more secure
and more efficient than CCMP. GCMP is used in WPA3.
Table 4 summarizes the basic differences between WPA, WPA2, and WPA3. Each successive version is meant to replace
prior versions and offer better security features. You should avoid using WPA and use WPA2 instead—at least until WPA3
becomes widely available on wireless client devices, APs, and WLCs.
Integrity
Integrity has two facets:
Data Integrity: This property, that data has not been altered in an unauthorized manner while in storage, during
processing or while in transit. Another aspect of data integrity is the assurance that data can only be accessed and
altered by those authorized to do so. Often such integrity is ensured by use of a number referred to as a Message
Integrity Code or Message Authentication Code. These are abbreviated as MIC and MAC respectively.
System Integrity: This quality that a system has when performing the intended function in an unimpaired manner,
free from unauthorized manipulation.
Integrity is commonly an organizations most important security objective, after availability. Integrity is particularly
important for critical safety and financial data used for activities such as electronic funds transfers, air traffic control,
and financial accounting.
Confidentiality
Confidentiality is the requirement that private or confidential information should not to be disclosed to unauthorized
individuals. Confidentiality protection applies to data in storage, during processing, and while in transit.
For many organizations, confidentiality is frequently behind availability and integrityin terms of importance. For some
types of information, confidentiality is a very important attribute. Examples include research data, medical and
insurance records, new product specifications, and corporate investment strategies. In some locations, there may be a
legal obligation to protect the privacy of individuals.
Availability
Availability is a requirement intended to assure that systems work promptly and service is not denied to authorized
users. This objective protects against:
Availability is frequently an organizations foremost security objective. To make information available to those who
need it and who can be trusted with it, organizations use authentication and authorization.
Authentication
Authentication is proving that a user is whom s/he claims to be. That proof may involve something the user knows
(such as a password), something the user has (such as a “smartcard”), or something about the user that proves the
person’s identity (such as a fingerprint).
Authorization
Authorization is the act of determining whether a particular user (or computer system) has the right to carry out a
certain activity, such as reading a file or running a program. Authentication and authorization go hand in hand. Users
must be authenticated before carrying out the activity they are authorized to perform.
Web Security
• HTTP
• HTML
• Frames
• Browser Design
HTTP is a protocol that has survived longer than 20 years without changing much.
Browsers interact with web applications through the HTTP protocol, If users would enter their credit card details on a
website and an attacker would be able to intercept the data before it reaches the server, we would definitely be in
trouble.
A web client can authenticate a user to a web server using one of the following mechanisms:
Basic Authentication is not a secure authentication as user passwords are sent in simple base64 ENCODING (not
ENCRYPTED !), and there is no provision for target server authentication.
When a user attempts to access a protected web resource, the container checks the user’s authentication. If the user
is authenticated and possesses authority to access the resource, the requested web resource is activated and a
reference to it is returned.
Client-certificate authentication is a more secure method of authentication than either BASIC or FORM authentication.
It uses HTTP over SSL, in which the server and, optionally, the client authenticate one another with Public Key
Certificates.
Frames:
Web sites contain content from sources of varying trustworthiness. For example, many web sites contain
third-party advertising supplied by advertisement networks or their sub-syndicates. Other common aggregations of
third-party content include Flickr albums, Facebook badges, and personalized home pages offered by the three major
web portals.
More advanced uses of third-party components include Yelp's use of Google Maps to display restaurant locations and
the Windows Live Contacts gadget .
A web site combining content from multiple sources is called a mashup, with the party combining the content called
the integrator and integrated content called a gadget.
In simple mashups, the integrator does not intend to communicate with the gadgets and requires only that the
browser isolate frames. In more complex mashups, the integrator does intend to communicate with the gadgets and
requires secure inter-frame communication.
Browser security is the application of Internet security to web browsers in order to protect networked data
and computer systems from breaches of privacy or malware.
Security exploits of browsers often use JavaScript, sometimes with cross-site scripting (XSS) with a secondary
payload using Adobe Flash.
Security exploits can also take advantage of vulnerabilities (security holes) that are commonly exploited in all browsers
(including Mozilla Firefox, Google Chrome, Opera, Microsoft Internet Explorer, and Safari.
• Operating system is breached and malware is reading/modifying the browser memory space in privilege mode
• Operating system has a malware running as a background process, which is reading/modifying the browser memory
space in privileged mode
• Main browser executable can be hacked
• Browser components may be hacked
• Browser plugins can be hacked
• Browser network communications could be intercepted outside the machine
To provide an extra layer of security when users surf the web, organizations can provide a web browser that is hosted
in the cloud. This is known as remote browser isolation. Remote browsing lets users take advantage of the public
internet, while maintaining physical isolation from the user’s workstation or mobile device.
WIRELESS NETWORK
1. Wireless networks are computer networks that are not connected by any kind of cables.
2. WIRELESS NETWORK allows you to connect one or more computers or other devices such as mobiles,
laptops, printer so that you can share file and access to the internet it uses radio signals.
Advantages:
• Wireless security is the prevention of unauthorized access or damage to computers or data using wireless
networks, which include Wi-Fi networks.
• Wireless networks use radio waves to connect devices such as laptops to the Internet, the business network
and applications.
• There are two security standards that protect wireless networks:
• WPA (Wi-Fi Protected Access)
• WPA2 (Wi-Fi Protected Access 2)
5. A Wireless router connected to the modem receives the signal which is broadcasted using wireless protocol
such as 802.11 standard.
• Bluetooth enables hands free phone calls, connecting phones to earpieces and transmitting signals between
smart devices.
• Use cellular technology to provide access outside the range of a wireless LAN or wireless MAN.
• These networks enable users to make phone calls to other users connecting via wireless WAN or wired
telephone systems.
Wireless local area Within a floor, Wireless extension of IEEE 802.11 HIGH
networks building or LAN
(WiFi)
campus
Wireless wide area World wide Wireless network Cellular (UMTS, LOW
networks access cellular phones
LTE etc.)
etc.
CELLULAR NETWORK
A cellular network or mobile network is a communication network where the link to and from end nodes is
wireless.
A mobile or cellular network is a combination of mobile towers signals and connection of mobile tower
switching office (MTSO) with mobile sim data.
Wi-Fi is a wireless technology used to connect computers, tablets, smartphones and other devices to the internet.
Wi-Fi is the radio signal sent from a wireless router to a nearby device, which translates the signal into data you can
see and use.
The device transmits a radio signal back to the router, which connects to the internet by wire or cable.
It allows these devices--and many more--to exchange information with one another, creating a network.
A Wi-Fi network is simply an internet connection that’s shared with multiple devices in a home or business via a
wireless router.
The router is connected directly to your internet modem and acts as a hub to broadcast the internet signal to all your
Wi-Fi enabled devices.
This gives you flexibility to stay connected to the internet as long as you’re within your network coverage area.
Advantages of wi-fi
1. Increased efficiency
2. Better coverage
3. Flexibility
4. Cost savings
5. Hotspots
Disadvantages of wi fi
1. Installation problem
2. Security
3. Transmission speed
4. Coverage
LAN SYSTEM:
A local Area network (LAN) is a group of computers or other devices interconnected within a single, limited area,
typically via Ethernet or Wi-Fi.
A LAN is a computer network that consists of access points, cables, routers , and switches that enable devices to
connect to web servers and internal servers within a single building, campus, or home network, and to other LANs
via Wide Area Networks (WAN) or Metropolitan Area Network (MAN). Devices on a LAN, typically personal
computers and workstations, can share files and be accessed by each other over a single Internet connection. A
router assigns IP addresses to each device on the network and facilitates a shared Internet connection between all
the connected devices.
The function of local Area networks is to link computers together and provide shared access to printers, files and
other services. Local area network is categorized as either peer-to-peer or client-server. On a client-server local
area network, multiple client-devices are connected to a central server, in which application access, device access,
file storage, and network traffic are managed. Applications running on the local Area Network server provide
services such as database access, document sharing, email and printing. Devices on a peer-to-peer local area
network share data directly to a switch or router without the use of a central server.
Increased Storage Capacity: By pooling all data into a central data storage server, the number of storage servers
required is decreased and the efficiency of operations is increased.
Optimized Flexibility: Data can be accessed by any device from anywhere via Internet connection.
Streamlined Communication: Files and messages can be transferred in real time and accessed easily from anywhere
on any device.
RFID(RADIOFREQUENCYIDENTIFICATION)---
RFID (radio frequency identification) is a form of wireless communication that incorporates the use of electromagnetic
or electrostatic coupling in the radio frequency portion of the electromagnetic spectrum to uniquely identify an
object, animal or person.
Every RFID system consists of three components: a scanning antenna, a transceiver and a transponder. When the
scanning antenna and transceiver are combined, they are referred to as an RFID reader or interrogator.
There are two types of RFID readers -- fixed readers and mobile readers.
The RFID reader is a network-connected device that can be portable or permanently attached. It uses radio waves to
transmit signals that activate the tag.
Once activated, the tag sends a wave back to the antenna, where it is translated into data.
There are three main types of RFID systems: low frequency (LF), high frequency (HF) and ultra-high frequency
(UHF). Microwave RFID is also available.
Low-frequency RFID systems- These range from 30 KHzto 500 KHz, though the typical frequency is 125 KHz.
LF RFID has short transmission ranges, generally anywhere from a few inches to less than six feet
High-frequency RFID system -These range from 3 MHzto 30 MHz, with the typical HF frequency being 13.56
MHz. The standard range is anywhere from a few inches to several feet.
UHF RFID systems-These range from 300 MHz to 960 MHz, with the typical frequency of 433 MHz and can
generally be read from 25-plus feet away.
Microwave RFID systems- These run at 2.45 Ghzand can be read from 30-plus feet away.
If longer read ranges are needed, using tags with additional power can boost read ranges to 300-plus feet.
REFERENCES
1. [Link]
2. [Link]
4. [Link]
6. [Link]
Many web applications depend on operating system features, external programs, and processing of data queries submitted by users. When
a web application passes information from an HTTP request as part of an external request, set up a way to scrub and validate the message.
Otherwise an attacker can inject special (meta) characters, malicious commands/code, or command modifiers into the message.
While these attacks are not difficult to attempt, there are an increasing number of tools that scan for these flaws. An attacker can use these
techniques to obtain, corrupt, or destroy the contents of your database, compromise backend systems, or attack other users.
Successful injection attacks may completely compromise or destroy a system. It is important to test for and protect against these types of
attacks.
Examples
1. OS Command Injection - A malicious parameter could modify the actions taken by a system call that normally retrieves the
current user’s file to access another user’s file (e.g., by including path traversal ../ characters as part of a filename request).
Additional commands could be tacked on to the end of a parameter that is passed to a shell script to execute an additional shell
command (e.g., ; rm –r \*) along with the intended command.
2. SQL Injection - Is a particularly widespread and dangerous form of injection. To exploit a SQL injection flaw, an attacker needs
to find a parameter that the web application passes through to a database interaction. An attacker can then embed malicious SQL
commands into the content of the parameter, to trick the web application to forward a malicious query to the database. SQL
queries could be modified by adding additional ‘constraints’ to a where clause (e.g., OR 1=1) to gain access to or modify
unauthorized data.
SQL injection is a code injection technique that might destroy your database. SQL injection is one of the most common web hacking
techniques. SQL injection is the placement of malicious code in SQL statements, via web page input.
A SQL injection attack consists of insertion or “injection” of a SQL query via the input data from the client to the application. A
successful SQL injection exploit can read sensitive data from the database, modify database data (Insert/Update/Delete), execute
administration operations on the database (such as shutdown the DBMS), recover the content of a given file present on the DBMS file
system and in some cases issue commands to the operating system. SQL injection attacks are a type of injection attack, in which SQL
commands are injected into data-plane input in order to affect the execution of predefined SQL commands.
3. HTTP header
The HTTP host header injection is an attack in which a malevolent actor tampers with the host header in a client request. This misleads
the virtual host or intermediary system to serve poisoned content to the client in the response
HTTP header injection is a technique that can be used to facilitate malicious attacks such as cross-site scripting, web cache poisoning,
and more. These, in turn, may lead to information disclosure, use of your application in phishing attacks, and other severe consequences.
1. Cross-Site Scripting (XSS) - A type of injection, in which malicious scripts are injected into otherwise benign and trusted
websites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser
side script, to a different end user.1 Attacks of this type can hijack user sessions, log keystrokes, or perform malicious actions
on behalf of victim users.
Dos attacks
[Link]
Volume-based attacks: These use large amounts of fake traffic to overwhelm an online resource, like a server or website. The volume
of the attack is measured in bits per second.
Protocol or network-layer attacks: These send large numbers of packets to network infrastructure and infrastructure management
tools. Their size is measured in packets per second (PPS) and include Smurf DDoS attacks (network-layer attacks designed to flood a
targeted server with error messages) and SYN floods (which tie up networks with half-opened connection requests).
Application-layer attacks: These are similar to volume-based attacks but are conducted by flooding applications with malicious
requests. Their size is measured in requests per second (RPS).
Monitor and analyze network traffic: Network traffic can be supervised via a firewall or intrusion detection system. Administrators
can set up rules that create alerts for unusual traffic, identify traffic sources or drop network packets that meet a certain criteria.
Strengthen their security posture: This includes fortifying all internet-facing devices to prevent compromise, installing and
maintaining antivirus software, establishing firewalls configured to protect against DoS attacks and following robust security practices
to monitor and manage unwanted traffic.
Monitor traffic: Organizations can enroll in a service that detects or redirects the abnormal traffic flows typically associated with a DoS
attack, while allowing normal traffic to proceed on the network.
Establish a DoS attack response plan: The key is to create and also practice a disaster recovery plan for DoS attack that covers
communication, mitigation and recovery.
It may be difficult to spot a DoS attack, as interferences may initially appear non-malicious. You can use several criteria to determine if
you are being attacked with a DoS. The three most common symptoms of an attack, according to the United States Computer
Emergency Readiness Team (US-CERT), include:
There are many different types of DoS attack techniques. Following are several different examples of how a DoS can be executed,
depending on the vulnerability of the target server. Some of them have fallen out of use because their vulnerabilities have been removed,
whereas others persist and are being used.
These scan techniques use similar approaches to check whether ports at the attack target are open and can be exploited. They are used to
gather information as well as deny service.
For example, the ACK scan technique is used by attackers to gather information about a target’s firewall or Access Control List (ACL)
configuration. It features a scan via a packet with an acknowledgment (ACK) flag that seeks to identify hosts or ports that are filtered or
cannot be scanned in another way. Attackers watch the response from the router to understand the setup.
The type of information that can be gleaned from this, particularly when combined with an SYN scan, is the target’s type of firewall, its
rule-set, and what kind of packets can get through to the host.
At the same time, while collecting vulnerability information via a scan, the attackers may also flood a router’s open UDP/TCP ports to
make it crash. By initiating a connection attempt but not acknowledging the server response from open ports, attackers can keep the
ports open and continuously flood the server with new requests (also known as an SYN flood).
In a Smurf attack, the malicious party will target a network whose configuration allows packets to be sent to all devices (hosts) on the
network at once. That is accomplished by sending Internet Control Message Protocol (ICMP) packets to the IP broadcast address of the
network whereby they reach all computers.
These packets will have as their source address the IP address of the target (i.e., the source address will be fabricated). By default, the
devices on the network will then respond to the packets by replying to the spoofed source address. This will be to flood the target
machine with traffic and overload it or shut it down completely.
There are few differences between Smurf and what’s known as an ICMP flood or Ping of death.
An SYN flood, also known as a half-open attack, is a technique that exploits the Transmission Control Protocol (TCP)/IP three-way
handshake. During an SYN flood, an attacker repeatedly sends connection requests, i.e., SYN (synchronization) packets, to all ports on a
server. Typically, a server then responds with synchronization acknowledged (SYN/ACK) packets from every port that is currently
open. If a port is closed, it will respond with a reset (RST) packet.
Usually, a client responds to the SYN/ACK packet with an acknowledged (ACK) packet during the handshake. This is done to confirm
that it has received the server’s SYN/ACK, and then communication between them can commence.
However, during an SYN flood, attackers use fake IP addresses to send the initial SYN packets. As a result, the server never gets a
response to its SYN/ACK packets, and its ports remain open (occupied), and it cannot reset them (hence the name “half-open”). Before
the connection attempt times out, further SYN packets are sent to these ports, prompting the server to keep them open and attempt to
establish a connection.
This is because ports are saturated with these requests, leading to a denial of service.
The Teardrop attack exploits a vulnerability associated with older operating systems and TCP/IP implementations. When packets are too
large for intermediary systems like routers, the IP specification allows packet fragmentation. Afterward, fragments are reassembled.
However, a TCP/IP fragmentation reassembly bug can be found in many older systems. The bug consists of their inability to reassemble
packets whose offset fields overlap. Attackers exploit this bug when launching a Teardrop attack by sending packets with overlapping
and oversized payloads, making it impossible for the receiving system to reassemble them and ultimately leading to its crash.
Also known as an ARP spoofing attack, this technique involves sending Address Resolution Protocol (ARP) messages over a network to
link the attacker’s MAC address to the IP address of its target (whether a server or gateway, such as a router).
When this is executed successfully, the traffic intended to lead to the target is instead received by the attacker, which leads to a denial of
service. This type of attack can only be performed on local area networks that use ARS.
The Fraggle attack, also known as a UDP flood, uses the same approach as the Smurf attack by exploiting a vulnerability associated
with sending traffic to the IP broadcast address of the target (such as a router). The main difference is that it uses User Datagram
Protocol (UDP) traffic to flood a router or server instead of ICMP.
The effect is to spoof the IP address of the source of the request and then direct the traffic from the network back to the router, thereby
flooding it.
Both the Fraggle and the Smurf attacks have largely been left behind as routers no longer forward packets sent to their broadcast
address.h