broThe Bro Network Security Monitor is an open source network monitoring framework. In a nutshell, Bro monitors packet flows over a network with a network tap installed with optional bonded network interfaces, and creates high-level “flow” events from them and stores the events as single tab-separated lines in a log file. You can then parse these log files to data mine for information about the network traffic on the network you are monitoring. These logs include not only a comprehensive record of every connection seen on the wire, but also application-layer transcripts such as all HTTP sessions with their requested URIs, key headers, MIME types, server responses, DNS requests with replies, SSL certificates, key content of SMTP sessions, and much more. For more information about Bro itself, read their extensive documentation.

Install the Dependencies

Bro needs a few dependencies the following command will install them.

Create Bro Directory

Create the directory where Bro will be installed and it writes its logs.

Install Bro

Bro is installed by downloading the current source code and building it with the make command. Make sure to check Bro’s download page to get the latest release version and adapt the following code accordingly.

Configure Bro

First, tell Bro which network interface to monitor (i.e. interface=br0).

Then, tell Bro which private IP range to monitor.

Finally, change the MailTo address and the logging config.

Start Bro

BroControl is used to start Bro. First, it needs to be installed.

Then, run the start command on system startup by adding /nsm/bro/bin/broctl start to /etc/rc.local

Add a cron job which performs maintenance tasks for bro.

Finally, restart the machine.

Test Bro

If all is well, you can tail the conn.log file and observe Bro logs streaming in real time.

What’s Next?

Bro is wonderful at producing network flow data, but reading through log files manually is pretty tedious. One excellent way to visualize and mine the data is with the ELK stack – Elasticsearch, Logstash and Kibana. Bro combined with the ELK stack makes a wonderful combination. If you need help installing the ELK stack and integrating Bro into it, check out How to Set Up the ELK Stack- Elasticsearch, Logstash and Kibana and Integrate Bro IDS with ELK Stack respectively. The following is a screenshot of a Kibana 4 Dashboard that was setup for Bro and the website bitcoinium.com.

ELK Stack for Bitcoinium

ELK Stack for Bitcoinium

Related Resources

Integrating Bro with the ELK Stack: http://knowm.org/integrate-bro-ids-with-elk-stack/
How to Created a Bonded Network Interface: http://knowm.org/how-to-create-a-bonded-network-interface/
How to Set Up the ELK Stack- Elasticsearch, Logstash and Kibana: http://knowm.org/how-to-set-up-the-elk-stack-elasticsearch-logstash-and-kibana

Related Posts

Subscribe To Our Newsletter

Join our low volume mailing list to receive the latest news and updates from our team.

3 Comments

Leave a Comment

Knowm 32X32 Crossbar

Knowm Newsletter

Are you ready for memristor AI processors? With our newsletter, you will be.