Docsity

Network Auditing Essentials: Securing Routers, Switches, and Firewalls, Lecture notes of Computer science

Toggle sidebar
bg1
1
Abdul-Rahman Mahmood
Assistant Professor, Computer Science, FAST-NU
[email protected] reddit.com/user/alphapeeler
alphapeeler.sf.net/pubkeys/pkey.htm www.flickr.com/alphapeeler
pk.linkedin.com/in/armahmood http://alphapeeler.tumblr.com
bqb-tsid-asp [email protected]
alphapeeler [email protected]
alphapeeler abdulmahmood-sss
armahmood786 [email protected]
http://alphapeeler.sf.net/ pinterest.com/alphapeeler
IS Audit & Control
Unravel the complexity of network equipment.
Understand critical network controls.
Review specific controls for routers, switches, and
firewalls.
Objectives
It started in 1962, when Paul Baranof the RAND
Corporation was commissioned by the U.S. Air Force
to study how to maintain control over aircraft and
nuclear weapons after a nuclear attack.
In 1968, ARPA (Advanced Research Projects Agency)
awarded the ARPANET (Advanced Research Projects
Agency Network) contract to BBN (Bolt, Beranek, and
Newman).
The physical network was constructed in 1969, linking
four nodes: the University of Californiaat Los
Angeles, Stanford Research Institute (SRI), the
University of California at Santa Barbara, and the
University of Utah. The network was wired together
using only 50-kbps circuits.
Background - Internet
In 1973, development began on the protocol later
termed the Transmission Control Protocol/Internet
Protocol (TCP/IP), but it was 1977 before it was
demonstrated.
Ten years later, in 1983, TCP/IP became the core
Internet Protocol on ARPANET
ARPANET was divided into two networks, MILNET
and ARPANET. MILNET was intended to serve the
needs of the military, and ARPANET was intended to
support the advanced research component that later
was to include commerce..
Background - Internet
International Standards Organization’s (ISO) Open
System Interconnection (OSI) model.
Protocols
Hosts communicate with each other by first using a
common language, or protocol.
OSI Model
Seven-layer OSI model describes how data moves from
one system to another system.
Two common layered models are the ISO OSI model
and the TCP/IP model.
Network Auditing Essentials
pf3
pf4
pf5

Partial preview of the text

Download Network Auditing Essentials: Securing Routers, Switches, and Firewalls and more Lecture notes Computer science in PDF only on Docsity!

Abdul-Rahman Mahmood Assistant Professor, Computer Science, FAST-NU [email protected] reddit.com/user/alphapeeler alphapeeler.sf.net/pubkeys/pkey.htm www.flickr.com/alphapeeler pk.linkedin.com/in/armahmood http://alphapeeler.tumblr.com bqb-tsid-asp [email protected] alphapeeler [email protected] alphapeeler abdulmahmood-sss armahmood786 [email protected] http://alphapeeler.sf.net/ pinterest.com/alphapeeler

IS Audit & Control

 Unravel the complexity of network equipment.  Understand critical network controls.  Review specific controls for routers, switches, and firewalls.

Objectives

 It started in 1962 , when Paul Baran of the RAND Corporation was commissioned by the U.S. Air Force to study how to maintain control over aircraft and nuclear weapons after a nuclear attack.  In 1968 , ARPA (Advanced Research Projects Agency) awarded the ARPANET (Advanced Research Projects Agency Network) contract to BBN (Bolt, Beranek, and Newman).  The physical network was constructed in 1969 , linking four nodes: the University of California at Los Angeles, Stanford Research Institute (SRI), the University of California at Santa Barbara, and the University of Utah. The network was wired together using only 50-kbps circuits.

Background - Internet

 In 1973, development began on the protocol later termed the Transmission Control Protocol/Internet Protocol (TCP/IP), but it was 1977 before it was demonstrated.  Ten years later, in 1983, TCP/IP became the core Internet Protocol on ARPANET  ARPANET was divided into two networks, MILNET and ARPANET. MILNET was intended to serve the needs of the military, and ARPANET was intended to support the advanced research component that later was to include commerce..

Background - Internet

 International Standards Organization’s (ISO) Open System Interconnection (OSI) model.  Protocols  Hosts communicate with each other by first using a common language, or protocol.  OSI Model  Seven-layer OSI model describes how data moves from one system to another system.  Two common layered models are the ISO OSI model and the TCP/IP model.

Network Auditing Essentials

OSI Model

 Routers connect and route data between networks using Layer 3 network addresses, usually IP addresses.  Once data is routed to the destination network, the data goes to a switch where the destination host resides.  Everything at the switch level typically is handled with the MAC address, represented by OSI Layer 2.

Routers and Switches

Data encapsulation  Help segment networks and users into appropriate security zones.  National Institute of Standards and Technology (NIST) Publication 800-41-Rev1.  Used for perimeter protection or for creating concentric rings of various levels of trust within a network.  Firewalls have developed into specialized functions that include protecting virtualized machines from each other on virtual networks or protecting web hosts from network attacks specifically targeting web traffic.

Routers and Switches

 Packet filtering firewalls are essentially routers operating at Layer 3 using set ACLs. Decisions are made to allow and disallow traffic based on the source and destination IP address, protocol, and port number.

Packet Filtering Firewalls

 Stateful inspection, also stateful packet inspection (SPI) or dynamic packet-filtering firewalls, operate at Layers 3 and 4. Your router at home allows you to establish and maintain a session externally with another address. The “state” refers to identifying and tracking sessions that occur in Layers 4 (transport) and 5 (session). The rules are changed dynamically when you establish an outbound connection to enable packets from the destination IP address to be returned to you. All other traffic is stopped from reaching your computer, protecting you from the dangers inherent in the Internet.

Stateful Inspection Firewalls

 Application-level firewalls combine the functionality of the typical firewall operating in the lower OSI layers with the power and deep inspection of application awareness.  Now, based on information at the application level, such as known malicious traffic, decisions can be made to allow or disallow traffic. An example might be an appliance or host that screens web traffic before it hits your web server. Based on the behavior and content of the web traffic, decisions might be made dynamically to refuse access to the web server.

Application Firewalls

 4. Ensure that good SNMP management practices are followed.  SNMP V1 and V2 sends community string in clear text.  SNMP V3 adds message integrity, authentication, and encryption to the packets.  SNMP community strings should follow standard password policies for strength and change frequency.  Management with SNMP should be restricted with an access list, and no management should be allowed from an untrusted network.  Refer to CISCO guidelines.

General Network Equipment Audit Steps

 Grant read-only access to all clients. With the following configuration, the system responds to SNMP Get, GetNext, and GetBulk requests that contain the community string public: snmp { community public { authorization read-only; } }

SNMP community strings 1

 Grant all clients read-write access to the ping MIB and jnxPingMIB. With the following configuration, the system responds to SNMP Get, GetNext, GetBulk, and Set requests that contain the community string private and specify an OID contained in the ping MIB or jnxPingMIB hierarchy: snmp { view ping-mib-view { oid pingMIB include; oid jnxPingMIB include; community private { authorization read-write; view ping-mib-view; } } }

SNMP community strings 2

 The following configuration allows read-only access to clients with IP addresses in the range 1.2.3.4/24, and denies access to systems in the range fe80::1:2:3:4/64: snmp { community field-service { authorization read-only; clients { default restrict; 1.2.3.4/24; # Allow access by all clients in 1.2.3.4/24 except fe80::1:2:3:4/64 restrict;

fe80::1:2:3:4/64 is not allowed

} } }

SNMP community strings 3

 https://www.paessler.com/tools/snmptester

SNMP

Tester

 5. Review procedures for creating user accounts & ensuring that accounts are created only when there’s a legitimate need. Accounts should be removed or disabled in a timely fashion.  Obtain a sample of accounts, and verify that they are owned by active employees and that those employees’ job positions have not changed since the account’s creation.  Accounts should never be shared among administrators.  individual IDs should be created for every user requiring access to the network device  Network device should use a central authentication server for user accounts (AAA server, e.g, RADIUS, TACACS).

General Network Equipment Audit Steps

 Some network infrastructures may use TACACS+ for AAA on routers and switches. It allows anyone with a Remote Access Services (RAS)  Solution: enabled NT account to log onto the router in nonprivileged mode. An additional “enable” password is then required for privileged access. An example  Individual IDs might look something like this in the configuration file: username password 7  CISCO Type 7 passwords use a very weak algorithm that can be easily reversed  Cisco Type 7 Password Decrypt / Decoder / Crack Tool https://www.firewall.cx/cisco/cisco-routers/cisco-type7-password- crack.html  Solution: These IDs should be created with a privilege level of 1 (which is the default), forcing the enable password to be required for additional access.

TACACS+ config issues

 The following command will install the tac-plus service:  #apt-get install tac-plus /usr/sbin/tac_plus -C /etc/tac-plus/tacacs.conf -d 16  The following command shows debugging information of the tac-plus service tail -f /var/tmp/tac-plus.log  to kill.... kill -USR1 cat /etc/tac-plus.pid  To restart... /etc/init.d/tac-plus restart

TACACS Installation

 Files /var/log/tac-plus/account.log (must make this file writable) /var/tmp/tac_plus.log (service logfile) /etc/init.d/tac-plus (startup script) /etc/tac-plus/tacacs.conf (users and global settings) /usr/sbin/tac_plus (executable) create des encrypted password: htpasswd -n debianhelp

TACACS Files

#This user can do anything user = admins { default service = permit login = des 70e4lCVGyWSKM } #this user can only run 'show ip' and 'show interface' user = users { default service = deny login = cleartext test cmd = show { permit ip permit interface deny .* } }

Server Config file

(/etc/tac-plus/tacacs.conf)