Intrusion Analysis Flashcards
ngrep purpose, strengths, weakness
Simple packet pattern matcher
Quick Commandline execution
Has no notion of anything but packets
ngrep -i
case insenstive
ngrep -I
read from pcap file
ngrep -x
print out file in hex
ngrep -X
treat match expression as hex
ngrep examine readable chars in payload
ngrep -I trace.pcap -W byline “”
ngrep examine for .exe
ngrep -I trace.pcap -W byline “.exe” -i
ngrep for NOPs
ngrep -I trace.pcap -xX “0x909090”
Unix Strings + grep
strings trace.pcap | grep “.exe”
What is p0f
passive OS fingerprinting
p0f pupose, strengths, weakness
Passive OS identification
Command line execution
Easily fooled, OS fingerprints not kept up
p0f use to get OS
p0f -s trace.pcap
tcpflow purpose, strength, weakness
Display/Store tcp conversations
command line execution
Not as sophisticated as wireshark
tcpflow use
tcpflow -C -r http.pcap
tcpreplay purpose, strength, weakness
replay captured packets out on network
light weight command line
tcpreplay uses
emulate attacker and victim
tests are repeatable
replay at arbitrary speeds
use to test IDS/IPS
Chaosreader purpose, strength, weakness
Present application data for some protocols
Good visual analysis of sessions, times, packets, protocols
Not maintained and short on some protocols
Netwitness purpose, strength, weakness
Reconstruct session for analysis
Can reconstruct, content search, filtering
commercial and free versions
Wireshark purpose, strength, weakness
Capture/view traffic
Free
Handles large pcaps slowly
What is pcap ring buffer
Wireshark or Tshark
buckets of defined size rotate in ring defined by time or size before each bucket rotates. Can use HDD or memory
Tshark ring buffer switch
-b
What is a flow
source IP source Port dst IP dst Port Protocol TCP Flags Total Bytes and Packets Times
Flow terminates when
FIN/RST
Inactivity for 63 seconds (depends on vendor)
Activity more than 30 minutes
SiLK tools
rwfilter - converts flow record for use by other tools. Output is not real human readable
rwp2yaf2silk - convert pcap to silk flow