120 likes | 300 Views
Shoab Ahmed - 624 Tutorial. An Intrusion Detection System. Overview. What is Snort? Uses? Architecture Components. Snort?. Network intrusion detection system.
E N D
Shoab Ahmed - 624 Tutorial An Intrusion Detection System
Overview • What is Snort? • Uses? • Architecture • Components
Snort? • Network intrusion detection system. • Detects malicious activity such as denial of service attacks, port scans or even attempts to crack into computers by monitoring network traffic. • Open Source now developed by Sourcefire.
Can be used as? • IDS – intrusion detection system. • IPS – intrusion prevention system. • Packet sniffer: capture and display packets from the network with different levels of detail on the console • Packet logger: log data in text file. • Honeypot monitor: deceiving hostile parties
Architecture From: Nalneesh Gaur, Snort: Planning IDS for your enterprise, http://www.linuxjournal.com/article/4668, 2001.
Components • Packet Decoder: takes packets from different types of network interfaces (Ethernet, SLIP,PPP…), prepare packets for processing • Preprocessor: • (1) prepare data for detection engine; • (2) detect anomalies in packet headers; • (3) packet defragmentation; • (4) decode HTTP URI; • (5) reassemble TCP streams. • Detection Engine: the most important part, applies rules to packets • Logging and Alerting System • Output Modules: process alerts and logs and generate final output.
Rules • Rules are created by known intrusion signatures. • Usually place in snort.conf configuration file. • Written in one single line. Eg.
Commands • Install snort on VM1 sudo apt-get install snort -y • Assign IP of the interface to sniff. • Start snort in quite mode,on eth1, view console snort –q –A console –i eth1 –c /etc/snort/snort.conf
Nmap • Nmap (Network Mapper) is a security scanner. • Probing computer networks • Host discovery • Service and OSdetection • Port Scans
Commands • Host and OS scan Nmap –v –A 192.168.56.10 • Network scan Nmap –sP 192.168.56.0/24