How to Install Bro IDS 2.5 on Ubuntu 16.0x James Bower, September 5, 2016April 21, 2023 I decided to write out the steps I took to for installing Bro IDS 2.5 on Ubuntu 16.0x. Before we begin installing Bro from source we need to make sure we have all the correct dependencies.On Ubuntu 16.0x you can run the following:sudo apt-get install cmake make gcc g++ flex git bison libpcap-dev libssl-dev python-dev swig zlib1g-devInstalling NotificationsIn order to get notification emails from Bro we’ll install Sendmailsudo apt-get install sendmailInstalling GeoIPHaving GeoIP on your Bro box is a great addition.sudo apt-get install libgeoip-devsudo chown -R sniper:sniper /usr/share/GeoIP/cd /usr/share/GeoIP/mv GeoIP.dat GeoIP.dat.oldmv GeoIPv6.dat GeoIPv6.dat.oldwget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gzwget http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gzgunzip GeoLiteCity.dat.gzgunzip GeoLiteCityv6.dat.gzmv GeoLiteCity.dat GeoIPCity.datmv GeoLiteCityv6.dat GeoIPCityv6.datInstalling IPSumDumpwget http://www.read.seas.harvard.edu/~kohler/ipsumdump/ipsumdump-1.85.tar.gzgunzip ipsumdump-1.85.tar.gztar -xvf ipsumdump-1.85.tarcd ipsumdump-1.85/./configuremakesudo make installInstalling GPerftoolssudo apt-get install libgoogle-perftools-devInstalling PF_Ringgit clone https://github.com/ntop/PF_RING.gitcd PF_RING/kernel/make && sudo make installcd ../userland/lib./configure --prefix=/opt/pfringsudo make installcd ../libpcap./configure --prefix=/opt/pfringsudo make installcd ../tcpdump./configure --prefix=/opt/pfringsudo make installsudo ldconfigsudo modprobe pf_ringTo check if you have everything you need, enter:modinfo pf_ring && cat /proc/net/pf_ring/infoInstalling Bro from Sourcegit clone --recursive git://git.bro.org/brocd bro./configure --with-pcap=/opt/pfringmakesudo make installMake sure that Bro is configured to use PF_Ringldd /usr/local/bro/bin/bro | grep pcapBro IDS Image 1 – Confirming Pfring InstallationNow adjust your PATH environmentexport PATH=/usr/local/bro/bin:$PATHecho 'export PATH=/usr/local/bro/bin:$PATH' >> ~/.bashrcNow to test that GeoIP is working.bro -e "print lookup_location(8.8.8.8);"[country_code=US, region=CA, city=Mountain View, latitude=37.384499, longitude=-122.088097]Configuring BroNext we need to configure BroThe first step is letting Bro know which interface it needs to monitor.sudo nano /usr/local/bro/etc/node.cfg# Example BroControl node configuration. # # This example has a standalone node ready to go except for possibly changing # the sniffing interface. # This is a complete standalone configuration. Most likely you will # only need to change the interface. [bro] type=standalone host=localhost interface=eth0Running Broctlbroctl(I got the below error message concerning permissions since I was running as a non-root user.)Bro IDS Image 2 – Local User Permission ErrorSo I modified the permissions with “chown”.sudo chown -R sniper:sniper /usr/local/bro/spool/sudo chown -R sniper:sniper /usr/local/bro/logs/sudo setcap cap_net_raw,cap_net_admin=eip /usr/local/bro/bin/brosudo setcap cap_net_raw,cap_net_admin=eip /usr/local/bro/bin/broctlBro IDS Image 3 – Running BroNow we just need to start Brobroctl[BroControl] >install[BroControl] >statusBro IDS Image 4 – Checking Bro StatusAnd we’re in business.And as always, thank you for taking the time to read this. If you have any comments, questions, or critiques, please reach out to me on our FREE ML Security Discord Server – HERE NIDS
NIDS Threat Hunting with Bro IDS February 20, 2017April 21, 2023This post is a quick look at how I personally use Bro IDS for threat hunting. Specifically some of the queries I run when I start a hunt by data set. A quick note on Bro. Bro IDS is a pretty amazing piece of software for threat hunting and my… Read More
NIDS How to Visualize Network PCAP Files in Kali Linux September 15, 2014April 21, 2023So this past weekend I attended the Security Onion Conference in Augusta, GA. While sitting in the back listening to some great speakers, @pentestfail and I were hacking away on a side project of his that involved analyzing a decent number of PCAP files. As usual I was doing my… Read More