{"id":432,"date":"2024-11-26T22:24:36","date_gmt":"2024-11-26T22:24:36","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/cmayo\/?p=432"},"modified":"2024-11-26T22:24:36","modified_gmt":"2024-11-26T22:24:36","slug":"snort-practice-using-open-source-intrusion-prevention-system-ips","status":"publish","type":"post","link":"https:\/\/sites.wp.odu.edu\/cmayo\/2024\/11\/26\/snort-practice-using-open-source-intrusion-prevention-system-ips\/","title":{"rendered":"SNORT: Practice Using Open-Source Intrusion Prevention System (IPS)"},"content":{"rendered":"\n<p>Using Snort was a great way to practice real world skills in network monitoring and automating alerts with an IPS.<\/p>\n\n\n\n<p>Snort is a widely used open-source Intrusion Prevention System (IPS) that can use both custom set rules and community-set rules to find and analyze malicious traffic. Snort can be used as a packet sniffer, packet logger, and be a line of defense against network attacks. In this project, I will show how to download and install this free resource, as well as how to monitor and set rules for catching network traffic.<\/p>\n\n\n\n<p>First, I recommend getting your snort account setup at <a href=\"https:\/\/www.snort.org\/\">www.snort.org<\/a> so you can purchase the free product and be able to use.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"572\" src=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-1.png\" alt=\"\" class=\"wp-image-433\" srcset=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-1.png 975w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-1-300x176.png 300w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-1-768x451.png 768w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-1-511x300.png 511w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/figure>\n\n\n\n<p>Step 2.\u00a0 Download and run the Snort 2.9.20.exe to install snort on your end device.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"974\" height=\"511\" src=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-2.png\" alt=\"\" class=\"wp-image-434\" srcset=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-2.png 974w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-2-300x157.png 300w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-2-768x403.png 768w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-2-572x300.png 572w\" sizes=\"(max-width: 974px) 100vw, 974px\" \/><\/figure>\n\n\n\n<p>Next, after successful download, Snort requires you to download npcap for packet captures dependency.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"403\" src=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-3.png\" alt=\"\" class=\"wp-image-435\" srcset=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-3.png 975w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-3-300x124.png 300w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-3-768x317.png 768w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-3-600x248.png 600w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/figure>\n\n\n\n<p>Make sure to download the correct version for your OS. I am running on Windows 10, so I downloaded the windows 10 version (x64)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"563\" src=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-4.png\" alt=\"\" class=\"wp-image-436\" srcset=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-4.png 975w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-4-300x173.png 300w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-4-768x443.png 768w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-4-520x300.png 520w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/figure>\n\n\n\n<p>Next download the community rules from the snort website, then extract them to your snort \/rules folder.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"563\" src=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-5.png\" alt=\"\" class=\"wp-image-437\" srcset=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-5.png 975w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-5-300x173.png 300w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-5-768x443.png 768w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-5-520x300.png 520w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/figure>\n\n\n\n<p>Next, open up the Snort.conf file to configure the rules for the IPS to capture traffic.<\/p>\n\n\n\n<p>Including the host IP address, the blacklist and whitelist.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"951\" height=\"1024\" src=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-6-951x1024.png\" alt=\"\" class=\"wp-image-438\" srcset=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-6-951x1024.png 951w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-6-279x300.png 279w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-6-768x827.png 768w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-6.png 975w\" sizes=\"(max-width: 951px) 100vw, 951px\" \/><\/figure>\n\n\n\n<p>Make sure to configure the Firewall rules as well , I put them in the Snort\\Rules folder.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"541\" src=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-7.png\" alt=\"\" class=\"wp-image-439\" srcset=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-7.png 975w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-7-300x166.png 300w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-7-768x426.png 768w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-7-541x300.png 541w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/figure>\n\n\n\n<p>Now I am going to show you how to run snort and start analyzing traffic.\u00a0 First, open your command line as an Admin, and run <strong>cd C:\\snort\\bin<\/strong> to change directories to where snort is located on your host drive.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"638\" src=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-8.png\" alt=\"\" class=\"wp-image-440\" srcset=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-8.png 975w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-8-300x196.png 300w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-8-768x503.png 768w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-8-458x300.png 458w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/figure>\n\n\n\n<p>After that, use the snort \u2013W command to verify the interfaces snort is running on. For this demonstration I will run on interface 5 as I configured it on the config file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"541\" src=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-9.png\" alt=\"\" class=\"wp-image-441\" srcset=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-9.png 975w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-9-300x166.png 300w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-9-768x426.png 768w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-9-541x300.png 541w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/figure>\n\n\n\n<p>Lastly, run snort \u2013i 4 c:\/Snort\/rules\/bin\/snort.conf -A to start monitoring the network traffic based on the config file.<\/p>\n\n\n\n<p>***IT should look something like this, however mine is having issues as I keep getting the same error.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"442\" src=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-10.png\" alt=\"\" class=\"wp-image-442\" srcset=\"https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-10.png 975w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-10-300x136.png 300w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-10-768x348.png 768w, https:\/\/sites.wp.odu.edu\/cmayo\/wp-content\/uploads\/sites\/25864\/2024\/11\/image-10-600x272.png 600w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Using Snort was a great way to practice real world skills in network monitoring and automating alerts with an IPS. Snort is a widely used open-source Intrusion Prevention System (IPS) that can use both custom set rules and community-set rules to find and analyze malicious traffic. Snort can be used as a packet sniffer, packet&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/sites.wp.odu.edu\/cmayo\/2024\/11\/26\/snort-practice-using-open-source-intrusion-prevention-system-ips\/\">Read More<\/a><\/div>\n","protected":false},"author":21758,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","wds_primary_category":0},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/sites.wp.odu.edu\/cmayo\/wp-json\/wp\/v2\/posts\/432"}],"collection":[{"href":"https:\/\/sites.wp.odu.edu\/cmayo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wp.odu.edu\/cmayo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/cmayo\/wp-json\/wp\/v2\/users\/21758"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/cmayo\/wp-json\/wp\/v2\/comments?post=432"}],"version-history":[{"count":1,"href":"https:\/\/sites.wp.odu.edu\/cmayo\/wp-json\/wp\/v2\/posts\/432\/revisions"}],"predecessor-version":[{"id":443,"href":"https:\/\/sites.wp.odu.edu\/cmayo\/wp-json\/wp\/v2\/posts\/432\/revisions\/443"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/cmayo\/wp-json\/wp\/v2\/media?parent=432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/cmayo\/wp-json\/wp\/v2\/categories?post=432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/cmayo\/wp-json\/wp\/v2\/tags?post=432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}