Network Forensics
Goals
- Understand network packets
- Perform network analysis
- Analyze routers for forensic evidence
- Examine firewall logs for evidence
Network Basics
Network Packet Analysis
- packets are divided into three sections
- header
- payload
- footer
- there are different types of packets, but all organized in the same way
Packet Headers
- a protocol data unit (PDU) can have several headers from each layer
- headers contain source and destination addresses
- TCP header contains
- source port
- destination port
- sequence number
- synchronization bits
- used to establish and terminate communications
- other fields
TCP Header Synchronization Bits
- URG
- traffic is marked as urgent
- rarely used
- ACK
- acknowledges the attempt to synchronize communications
- RST
- resets the connection
- SYN
- Synchronizes sequence numbers
- FIN
- No more data from sender
Network Attacks
Network Traffic Analysis Tools
- WireShark
- Nmap
- TCPDump
- Snort
- NetWitness
Network Traffic Analysis
Using Log Files as Evidence
- end-to-end investigation looks at entire attack
- how it starts
- intermediate devices
- result of attack
- evidence can result at each device
- logs show a variety of user activity
- found on computers, network equipment, security devices, etc.
Wireless
Router Forensics
Getting Evidence From The Router
- you do not shut down the device and image it
- be very careful not to alter anything
- Steps
- connect with the router to run commands
- Hyperterminal is a free tool that can be used to connect to routers
- since router is live, important to record everything you do
- Run commands
- for Cisco
show versionprovides information on hardware and software- platform
- OS version
- system image file
- interfaces
- RAM
- network and voice interfaces
show running-configgets the current executing configurationshow startup-configshows system’s startup configurationshow ip routeshows the routing tableshow clock detailshow reloadshow ip arpshow usersshow loggingshow ip interfaceshow interfacesshow tcp breif allshow ip socketsshow ip nat translations verboseshow ip cache flowshow ip cefshow snmp usershow snmp groupshow tech-support- is a new Cisco IOS command that combines many other commands
show version,show running-config,show stacks,show interface,show controller,show process cpu,show process memory,show buffers
- for Cisco
- connect with the router to run commands
Firewall Forensics
Collecting Data
- all traffic going through a firewall is part of a connection
- consists of
- two IP addresses
- two port numbers
- consists of
- concatenation of an IP address and a port number is called a socket
- is unique while active
- three ranges for port numbers:
- well-known ports
- 0-1023
- registered ports
- 1024-49151
- dynamic ports
- 49152-65535
- well-known ports
- check logs for connection attempts to suspicious ports