4 ms·
Can anyone explain how this is better than analyzing wireshark captures within wireshark? What is zeek and can I use it to analyze wireshark captures?
by ghostpepper 7y ago
Can anyone explain how this is better than analyzing wireshark captures within wireshark?
What is zeek and can I use it to analyze wireshark captures?
- tptacek 7y agoWireshark dissects protocols and gives debugging traces. Zeek (FKA "Bro") is an intrusion detection system that analyzes debugging traces (which it generates itself, not through Wireshark dissectors) to generate usefully semantic data, ranging from "which hosts are fetching this URL" to "where are there signs of this vulnerability being exploited". Both Wireshark and Zeek use libpcap, which is the de facto standard for raw packet captures, so yes, the same data you'd be feeding to Wireshark to browse, you can also feed to Zeek to analyze.
- e12e 7y agoHadn't heard of zeek before - actually find this submarine article useful - it hints better at where and how, than the official zeek documentation. I still don't know what storage space I should budget for a gbps-month of zeek monitoring logs, though (I understand they're typically filtered... But also text?). https://www.csoonline.com/article/3313050/zeek-a-free-powerful-way-to-monitor-networks-detect-threats.html https://www.csoonline.com/article/3313050/zeek-a-free-powerf... As to the where - I guess I need to find some port that can give me a mirror of traffic.... But not that easy with heterogeneous lan+cloud+SaaS setup to figure out where/how to source "all" network traffic :/
- geraldcombs 7y agoIt might be more useful to think of Brim in terms of "a different zoom level" than "better than". Wireshark focuses on showing as much detail as it can about every packet that you see. If you have a lot of packets this will burn a corresponding amount of CPU time and memory. Brim, Packet Analyzer (mentioned in another comment), and other tools zoom out a bit and let you process a larger number of packets, but with less detail. If needed you can pass the interesting and relevant ones to Wireshark for more detailed inspection and analysis. Disclosures: Wireshark pays for my mortgage. My employer makes Packet Analyzer. I'm friends with people at Brim.
- Macphisto 7y agoThe long and short of it is Zeek(used to be call Bro) provides session based analysis whereas wireshark is primarily packet based. With a few exceptions, they both generally do the same thing but in different ways. Zeek is at the bones, an event-based engine with a scripting language (think node-js but from the 80s!) - the scripting language is actually what provides the logs generated by Zeek. One key aspect of Zeek is that it can be deployed within a network to passively generate logs. As an incident response consultant, the few times I've worked with a client with Zeek logs, our ability to answer some critical questions in short order was increased dramatically! Back in my Sysadmin days, I used to run Zeek (when it was called Bro) to provide network logs for security review but also for general network analysis. You can definitely run a pcap capture by wireshark through Zeek. you'd run `zeek -r <yourpcap>` and you'll end up with some lovely TSV separated logs in your current working directory! Full transparency: I'm not part of the Zeek team, but I did author the original Zeek scripting guide for them back in 2012 or so. For my money, the Zeek team is building some of the better network appliances and detection/logging capabilities available.
- LoveKebab 7y agoZeek is actually super powerful. It’s more of a Network Security Monitoring tool (NSM) than a Wireshark equivalent It’s primary use case is to have a server(s) ingesting all traffic in a network and forwarding the traffic metadata to something like an Elastic Stack. What makes it so powerful though, is that it actually has its own scripting language that allows you create automations based off what type of traffic is observed and these can be super intricate