a bro script case study
play

A Bro Script Case Study Bro Workshop 2011 NCSA, Urbana-Champaign, - PowerPoint PPT Presentation

A Bro Script Case Study Bro Workshop 2011 NCSA, Urbana-Champaign, IL Bro Workshop 2011 No deep detail now, just enough to understand basic constructs. Important to focus on script structure and data flow. Bro Workshop 2011 2 Script


  1. A Bro Script Case Study Bro Workshop 2011 NCSA, Urbana-Champaign, IL Bro Workshop 2011

  2. • No deep detail now, just enough to understand basic constructs. • Important to focus on script structure and data flow. Bro Workshop 2011 2

  3. Script layout changes in 2.0 Bro Workshop 2011 3

  4. Important script directories. Found at: <prefix>/share/bro/ Bro Workshop 2011 4

  5. base/ directory • Everything is loaded by default. • Possible to disable with a Bro command line argument, but not recommended. • The scripts are only meant to enable analyzers, collect state, generate protocol logs, and provide reusable frameworks and function libraries. • base/ is not in the default $BROPATH! Bro Workshop 2011 5

  6. policy/ directory • Nothing here is loaded by default. • This is where many of the detections that Bro does out of the box take place. • Almost any functionality that doesn ʼ t fit into base/ goes here. Bro Workshop 2011 6

  7. site/ directory • This is where local configuration goes. • Files are not overwritten during installation. • We include a “suggested” configuration in site/ local.bro • It ʼ s mostly just a long list of @load statements. Bro Workshop 2011 7

  8. SSL Base Scripts Bro Workshop 2011 8

  9. Quick aside about module layout • __load__.bro is an auto load file. We can now load directories. • main.bro is a convention we use for consistency. There is no special __load__.bro language support for it. Found at: <prefix>/share/bro/base/protocols/ Bro Workshop 2011 9

  10. Create the skeleton

  11. Define the log

  12. Create a helper function

  13. SSL Client Hello

  14. SSL Server Hello

  15. Certificates

  16. server_name extension

  17. Finish the log

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend