Skip to content

Instantly share code, notes, and snippets.

@grigorescu
Last active December 22, 2015 15:59
Show Gist options
  • Save grigorescu/6496507 to your computer and use it in GitHub Desktop.
Save grigorescu/6496507 to your computer and use it in GitHub Desktop.
Bro Intelligence Framework tutorial - part 3

It’s very possible that hits on intelligence could be something that you want turned into a notice even though the basic intel framework does not provide that functionality. This is an example of data driven notice creation with the do_notice.bro script that is included with Bro.

We need to create a new intelligence file. Create intel-2.dat.

#fields<TAB>indicator<TAB>indicator_type<TAB>meta.source<TAB>meta.do_notice
fetchback.com<TAB>Intel::DOMAIN<TAB>my_special_source<TAB>T

The only difference from the previous intelligence file is the do_notice column.

Now create a new Bro script named intel-2.bro with the following script.

@load frameworks/intel/seen
@load frameworks/intel/do_notice

redef Intel::read_files += {
    "/home/bro/pcap/intel-2.dat"
};

Now run.

bro -r /opt/TrafficSamples/exercise-traffic.pcap intel-2.bro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment