COEN 252 Computer Forensics Tools for Package Analysis.

Slides:



Advertisements
Similar presentations
Network Layer: Address Mapping, Error Reporting, and Multicasting
Advertisements

Packet filtering using cisco access listsINET97 / track 2 # 1 packet filters using cisco access lists Fri 19 June 97.
Ch 20. Internet Protocol (IP) Internetworking PHY and data link layers operate locally.
Protocol layers and Wireshark Rahul Hiran TDTS11:Computer Networks and Internet Protocols 1 Note: T he slides are adapted and modified based on slides.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 2 The OSI Model and the TCP/IP.
Chapter 20 Network Layer: Internet Protocol
1 Network Address Translation (NAT) Relates to Lab 7. Module about private networks and NAT.
COEN 445 Lab 7 Wireshark Lab: IP Claude Fachkha.
Introduction to TCP/IP
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA TCP/IP Protocol Suite and IP Addressing Halmstad University Olga Torstensson
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.1 Module 9 TCP/IP Protocol Suite and IP Addressing.
Overview The TCP/IP Stack. The Link Layer (L2). The Network Layer (L3). The Transport Layer (L4). Port scanning & OS/App detection techniques. Evasion.
F3 Collecting Network Based Evidence (NBE)
Ubiquitous Computing Technology Research Institute Sungkyunkwan University Using Ethereal - Packet Capturing & Analysis Tool Sungkyunkwan University.
 Dynamic policies o Change as system security state/load changes o GAA architecture  Extended access control lists  Pre-, mid- and post-conditions,
COEN 252 Computer Forensics Using TCPDump / Windump for package analysis.
Department of Computer Science, The University of Houston 4. TCP/IP & Software Tools 1 Intrusion Detection Module Stephen Huang Department of Computer.
COEN 252 Computer Forensics Tools for Package Analysis.
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
Table of Contents 3 - IDS types 8 - Ethernet Frame 9 - IP frame 10 - TCP frame 11 - UDP frame 12 - ICMP Frame way handshake 15 - TCP flags 16 -
Hands-On Ethical Hacking and Network Defense Chapter 5 Port Scanning.
Transport Layer – TCP (Part1) Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Module A.  This is a module that some teachers will cover while others will not  This module is a refresher on networking concepts, which are important.
Overview of TCP/IP Protocols
Network Analyzer Example
Transport Layer TCP and UDP IS250 Spring 2010
Practical Networking. Introduction  Interfaces, network connections  Netstat tool  Tcpdump: Popular network debugging tool  Used to intercept and.
© 2006, The Technology Firm Ethereal The Technology Firm.
CAP6135: Malware and Software Vulnerability Analysis Network Traffic Monitoring Using Wireshark Cliff Zou Spring 2013.
ECE Prof. John A. Copeland fax Office: Klaus 3362.
CIS 193A – Lesson12 Monitoring Tools. CIS 193A – Lesson12 Focus Question What are the common ways of specifying network packets used in tcpdump, wireshark,
Gursharan Singh Tatla Transport Layer 16-May
Port Scanning.
1 Ethereal.  Freeware sniffing tool.  Captures live network traffic.  The user interface separates it from other sniffers.
University of Calgary – CPSC 441.  Wireshark (originally named Ethereal)is a free and open-source packet analyzer.  It is used for network troubleshooting,
CPSC 441 Tutorial TA: Fang Wang The content of these slides are taken from CPSC 526 TUTORIAL by Nashd Safa (Extended and partially modified)
Step-by-Step Intrusion Detection using TCPdump SHADOW.
Web application architecture
COEN 252 Computer Forensics Collecting Network-based Evidence.
COEN 252: Computer Forensics Network Analysis and Intrusion Detection with Snort.
1 LAN Protocols (Week 3, Wednesday 9/10/2003) © Abdou Illia, Fall 2003.
CAP6135: Malware and Software Vulnerability Analysis Network Traffic Monitoring Using Wireshark Cliff Zou Spring 2014.
1 Introduction to TCP/IP. 2 OSI and Protocol Stack OSI: Open Systems Interconnect OSI ModelTCP/IP HierarchyProtocols 7 th Application Layer 6 th Presentation.
Practice 4 – traffic filtering, traffic analysis
Sniffer, tcpdump, Ethereal, ntop
Network Analyzer :- Introduction to Wireshark. What is Wireshark ? Ethereal Formerly known as Ethereal GUINetwork Protocol Analyzer Wireshark is a GUI.
Advanced Packet Analysis and Troubleshooting Using Wireshark 23AF
COMP2322 Lab 1 Introduction to Wireshark Weichao Li Jan. 22, 2016.
Ethereal/WireShark Tutorial Yen-Cheng Chen IM, NCNU April, 2006.
Network Analyzer :- Introduction to Ethereal Computer Networking (Graduate Class)
Victoria Manfredi September 13, 2016.
Traffic Analysis– Wireshark
Port Scanning James Tate II
Introduction to TCP/IP networking
Multiplexing.
CAP6135: Malware and Software Vulnerability Analysis Network Traffic Monitoring Using Wireshark Cliff Zou Spring 2016.
Lab 2: Packet Capture & Traffic Analysis with Wireshark
COMP2322 Lab 6 TCP Steven Lee Mar 29, 2017.
Intro to Ethical Hacking
Introduction to TCP/IP
or call for office visit,
Wireshark Lab#3.
Overview of Networking & Operating System Security
Ethereal/WireShark Tutorial
Network Analyzer :- Introduction to Wireshark
Network Analyzer :- Introduction to Wireshark
Internet Protocol Formats
COEN 252 Computer Forensics
Network Architecture Models: Layered Communications
Transport Layer 9/22/2019.
Presentation transcript:

COEN 252 Computer Forensics Tools for Package Analysis.

Legal Preliminaries Intercepting network activities can be the equivalent of a wiretap. Distinguish between content monitoring and non-content monitoring. Non-content monitoring: “Pen register” or “Trap and Trace” Full content monitoring: Allows full reconstruction of sessions. Including reading web-based .

Main Tools tcpdump /windump Great, simple capture tool Standard format tcptrace Ethereal Great GUI capture tool

TCPDump / Windump Low level package sniffer. Good, if you see a new type of attack or try to diagnose a networking problem. Bad, since you have to look at all these packages and learn how to interpret them.

TCPDump / Windump: The Good Provides an audit trail of network activity. Provides absolute fidelity. Universally available and cheap.

TCPDump / Windump: The Bad Does not collect the payload by default. Does not scale well. State / connections are hidden. Very Limited analysis of packages. Collects a given number of bytes from each package: This could turn “trap and trace” monitoring into wiretaping.

Versions Unix Version 3.4. ftp.ee.lbl.gov/tcpdump.tar.Z ftp.ee.lbl.gov/tcpdump.tar.Z Windump

Shadow Collects tcpdump data in hourly files. Analyzes for anomalies Formats anomalous data in HTML Comes with Scripts Download it for free for UNIX

Shadow Collects data with tcpdump on a monitoring station. Analyzes them on the analysis station with: tcpdump filters Perl Analysis System Audit Tools

Running TCPDump tcpdump –x looks at packages in hex format

Running TCPDump Interpret packages in that format. Use the TCP/IP and tcpdump reference card from SANS.org.

Running tcpdump IP Header ICMP Header windump –x 20:20: IP dhcp engr.scu.edu > Bobadilla.scu.edu: icmp 108: echo request seq d0f 81d2 13d3 81d2 13c d5ee a 6b6c 6d6e 6f a6b 6c6d 6e6f

tcpdump Use reference card to identify fields IP Version 4 Header Length (Nr * 4B) 20:20: IP dhcp engr.scu.edu > Bobadilla.scu.edu: icmp 108: echo request seq d0f 81d2 13d3 81d2 13c d5ee a 6b6c 6d6e 6f a6b 6c6d 6e6f

tcpdump 20B header Type of Service Total Length: 0x80 = 128 decimal 20:20: IP dhcp engr.scu.edu > Bobadilla.scu.edu: icmp 108: echo request seq d0f 81d2 13d3 81d2 13c d5ee a 6b6c 6d6e 6f a6b 6c6d 6e6f

tcpdump Length of capture: tcpdump –s 68 Default is 68B We see only 54B, because the ethernet header is 14B long. Remember, this could become a legal problem if you see content.

tcpdump tcpdump –e host bobadilla Displays data link data filtered by host named bobadilla. Shows Source MAC Destination MAC Protocol 20:37: :8:74:3f:2:46 0:d:56:8:e4:db ip 142: IP dhcp engr.scu.edu > Bobadilla.scu.edu: icmp 108: echo request seq 5376

Tcpdump Fragmentation Total Length Total Length: Number of Bytes in Packet 20:42: IP Bobadilla.scu.edu.137 > : udp e 892b aae1 81d2 13c6 efff fffa a adb9 8ce b

Tcpdump Fragmentation Offset Header Length 0x33c = 828 (-20B for header) Offset: 1ce8  = 7400 Leading 000 are flags. Multiply by 8: Offset = :53: IP Bobadilla.scu.edu > dhcp engr.scu.edu: icmp (frag c ce d2 13c6 81d2 13d3 6e6f a 6b6c 6d6e 6f a6b 6c6d 6e6f

TCPDump Filters Capture only packages that are useful. Specify in the filter what items are interesting. Filters use common fields such as host or port. Filters also for individual bytes and bits in the datagram

TCPDump Filters Format 1: macro and value “tcpdump port 23” Only displays packages going to or from port 23.

TCPDump Filters Format 2: [offset:length] “ip[9] = 1” Selects any record with the IP protocol of 1. “icmp[0] = 8” Selects any record that is an ICMP echo requests. That’s why you should learn to use the reference card.

TCPDump Filters Reference single bits through bit masking. An example is TCP flag bits Byte 13 in a TCP header has the 8 flag fields. CWR,ECE,URG,ACK,PSH,RST,SYN,FIN

TCPDump Filters Assume we want to mask out the PSH field. Translate the mask into binary. 0x04

TCPDump Filters Set filter to tcp[13] & 0x40 != 0. Your turn: Filter for packets that have the Syn or the Ack flag set.

TCPDump Filters Your turn: Filter for packets that have the Syn or the Ack flag set. tcp[13] & 0x12 != 0

TCPDump Filters We can of course use exact values for filtering. tcp[13] = 0x20 looks only for tcp-packets that have the urg flag set.

TCPDump Filters Can combine filters with the and, or, not operators (tcp and tcp[13]&0x0f != 0 and not port 25) or port 20 Filter can be written in file, specified with the –F flag.

TCPDump Filters Use –F filename to specify a file containing the filter.

TCPDump Use the –w extension to capture into a file. Use the –c extension to limit the number of packets captured. Use –v, -vv, -vvv for verbosity. Use –x for ASCI values of package contents. Use –tttt to display time / day stamps. Use –r to specify capture file.

Target NMap Available in Windows and Unix version. Scans host with many different connections. Uses responses to determine OS. Target Acquisition. Network mapping.

TCPDump Filter against NMap Use Filters to check for NMap activity. For example, send a TCP packet with SYN|FIN|URG|PSH options set. Use packages with the first two TCP flags set of OS-mapping

tcptrace Uses a file with traffic captured from the network as input. Understands dumpfile formats like tcpdump, snoop, etherpeek, tcpdump, … Beluga:/Users/mani> tcptrace tigris.dmp 1 arg remaining, starting with 'tigris.dmp' Ostermann's tcptrace -- version Fri Jun 13, packets seen, 87 TCP packets traced elapsed wallclock time: 0:00: , 2295 pkts/sec analyzed trace file elapsed time: 0:00: TCP connection info: 1: pride.cs.ohiou.edu: elephus.cs.ohiou.edu:ssh (a2b) 30> 30< (complete) 2: pride.cs.ohiou.edu: a apple.com:http (c2d) 12> 15< (complete)

tcptrace Found two tcp connections. (a2b), (c2d) is a labelling scheme for ports. (complete) shows that the connection was gracefully shut down. Numbers are the number of packets sent and received. Beluga:/Users/mani> tcptrace tigris.dmp 1 arg remaining, starting with 'tigris.dmp' Ostermann's tcptrace -- version Fri Jun 13, packets seen, 87 TCP packets traced elapsed wallclock time: 0:00: , 2295 pkts/sec analyzed trace file elapsed time: 0:00: TCP connection info: 1: pride.cs.ohiou.edu: elephus.cs.ohiou.edu:ssh (a2b) 30> 30< (complete) 2: pride.cs.ohiou.edu: a apple.com:http (c2d) 12> 15< (complete)

tcptrace -l gives detailed statistics. -lW estimates the congestion window in addition. -o can filter out connections: tcptrace –o3,5,7 Filters out all but the third, fifth, and seventh connection.

tcptrace Allows quick and accurate view of tcp connections. With –u also analyzes udp traffic.

tcpflow Captures data transmitted as a TCP connection A flow Reconstructs the actual data stream. Can be used to reconstruct , http sessions, … w/tcpflow.1.html

Ethereal GUI tool that can do a lot of neat things Reconstruct TCP sessions Handles IP fragmentation …

Ethereal To follow a TCP stream, highlight packet. Select Analyze  Follow TCP Stream

Ethereal Filters Only packages that fit the filter are captured. Available filter fields are under Help  Supported Protocols

Ethereal Filters Comparisons are specified with 2 letter abbreviations or C-like syntax ip.addr== ip.addr!= frame.pkt_len ge 0x100 and tcp tr.dst[0:3] == xor tr.src[0:3] ==

Ethereal Filters Expressions can be combined with English or C-like syntax ip.addr eq and tcp.flags.fin tcp.flags.syn || tcp.flags.ack

Ethereal Filters Ethereal allows selection of subsequences. After a label, place a pair of brackets containing a comma separated list of range specifiers: eth.src[0:3] == 00:00:83 eth.src[1-2] == 00:83 eth.src[0:3,1-2,:4,4:,2] == 00:00:83:00:83:00:00:83:00:20:20:83

Ethereal Filter Expression Build filters with Filter Expression dialog box. Capture  Display Filters

Ethereal Filter Expression Build filters with Filter Expression dialog box. Capture  Display Filters  Add Expression

Ethereal