Bro - Writing an Analyzer 2

18 Sept 2015 · 21 min
21:19

In this tutorial Jon Schipp demonstrates how to build a custom RIP protocol analyzer for Bro (now Zeek). He walks through the directory layout for a protocol analyzer (load.bro, dpd.sig, main.bro), creates a dynamic protocol detection (DPD) signature that matches RIP packets by inspecting the payload bytes for command, version, and zero fields, and saves the signature to enable the analyzer on non‑standard ports. He then edits main.bro to set up the init event, create a logging stream, and handle ripresponse events. New fields (version as a count and command as a string) are added to the ripinfo record, and a constants file (constants.bro) is introduced to map numeric command values (1,2) to human‑readable strings (request, response). The script is configured to attach the analyzer to the default RIP port 520, and the constants file is loaded. Finally, he runs Bro on a sample pcap (ripv2.cap), verifies that the analyzer fires, and shows the generated rip.log containing timestamps, UIDs, source/destination IPs and ports, command strings, and version numbers, confirming a functional RIP logging analyzer.

Chapters

More from Jon

youtube.com

Wrestling with Cybersecurity

4mo ago
youtube.com

What No One Knows the Podcast / Vodcast featuring The Tampa Bay Wave and Jon Schipp

6mo ago
youtube.com

Meeting the Exposure Management Challenge: Key Use Cases for Success | @OfficialRapid7 #SolutionSpotlight

1y ago
youtu.be

Spot Security Control Gaps and Non-Compliant Resources Across Your Attack Surface

2y ago
youtu.be

Maintain a Single Source of Truth for your Digital Estate

2y ago
youtu.be

Identify Accounts Without MFA Enabled Across Your Organization

2y ago
youtu.be

Understand Potential Blast Radius and Attackers' Cloud Network Spot Avenues

2y ago
youtu.be

Measure Security Data Accuracy and Quality with Rapid7 Exposure Command

2y ago
youtube.com

The Netsniff Ng Toolkit Jon Schipp DerbyCon 3

4y ago
youtube.com

OpenNSM (Scaling OSSEC)

10y ago
youtube.com

OpenNSM (Flow Indexer)

10y ago
See all content