Intrusion Detection Systems Fundamentals
https://tryhackme.com/room/idsfundamentals
Types of IDS

Snort v2

Mode
Description
Use Case
Snort usage

Running Snort on PCAP files

Last updated
https://tryhackme.com/room/idsfundamentals




Last updated
sudo nano /etc/snort/rules/local.rules # to open local.rules in nano
# Add a new rule - This specific rule bellow will create an alert when Snort detects #any icmp packets from any source IP, any source port, going to our IP on any port
alert icmp any any -> 127.0.0.1 any (msg:"Loopback Ping Detected"; sid:10003; rev:1;)# This command will open a console where you can view the alerts. Note: omit -q for more information
sudo snort -q -l /var/log/snort -i lo -A console -c /etc/snort/snort.conf
# Open a new cli to test the rule and ping 127.0.0.1
ping 127.0.0.1# To analyse PCAP files run this command, subsitute FILENAME.pcap with the correct name.
sudo snort -q -l /var/log/snort -r FILENAME.pcap -A console -c /etc/snort/snort.conf
# Remember you can always use | grep command to find specific thing.