[Bro] 回复: Help with intel framework
Lee Shiry
lee at shiry.org
Mon Nov 19 10:18:56 PST 2018
Update:
I copied the script and dat file to another box and they seem to work
fine. I'm not sure why it is not working on the first box. It is not
logging any errors, and other things seem to work. I will try
recompiling and reinstalling.
The other problem is that I was not aware that the intel match had to be
an exact match. Does anyone know if it is possible to use a wildcard or
do a substring search with the intel match? I tried "*" as a wildcard,
that does not work.
Thanks for all the help!
On 11/19/18 1:09 AM, Zer0d0y wrote:
> Hi,
> This configuration works for me.
>
> # bro -v
> /opt/bro/bin/bro version 2.5-1001-debug
>
> 1.intel.bro
> @load frameworks/intel/seen
> @load frameworks/intel/do_notice
>
> redef Intel::read_files += {
> "/path/to/intel-bad-user-agents.dat"
> };
>
> 2.intel-bad-user-agents.dat
> #fieldsindicatorindicator_typemeta.do_noticemeta.source
> MozillaIntel::SOFTWARETHTTP::IN_USER_AGENT_HEADER
>
> 3.tcpdump -nnvv -i eth0 host "IP Address of google.com" and port 80 -w
> intel.pcap
>
> 4.curl -I -A "Mozilla" http://google.com
>
> 5.bro -C -r intel.pcap intel.bro
>
> ########################
> intel.log
>
> 1542606537.171248CkvxUu1MujtxrdxMgl192.168.8.258248192.168.8.180MozillaIntel::SOFTWAREHTTP::IN_USER_AGENT_HEADERbroIntel::SOFTWAREHTTP::IN_USER_AGENT_HEADER---
> #close2018-11-19-14-06-44
>
> ------------------
> --
> Zer0d0y
> Threat Detection & Hunting
>
> Zer0d0y at tianyulab.com
>
> 天御实验室 <https://github.com/tianyulab>
>
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Lee Shiry"<lee at shiry.org>;
> *发送时间:* 2018年11月17日(星期六) 凌晨1:23
> *收件人:* "bro"<bro at bro.org>;
> *主题:* [Bro] Help with intel framework
>
> Hi,
>
> I am trying to use Bro's intel framework and can't seem to get it to
> generate anything in the intel or notice logs. I'm on version 2.5.5
> in cluster mode. Everything else seems to work fine. I see all the
> logs, and notices are working for other event types. I have checked to
> make sure the dat file has only tabs in it to separate fields. I
> don't see anything coming up in the stderr or reporter log files. I
> must be missing something. Any help is appreciated.
>
> Here is what I have added to local.bro:
>
> ##################
> @load frameworks/intel/seen
> @load frameworks/intel/do_notice
>
> redef Intel::read_files += {
> "/usr/local/intel-bad-user-agents.dat",
> };
> ##################
>
>
> Here is the dat file:
>
> ##################
> # cat /usr/local/intel-bad-user-agents.dat
> #fields indicator indicator_type meta.do_notice meta.if_in
> 360Spider Intel::SOFTWARE T HTTP::IN_USER_AGENT_HEADER
> Mozilla Intel::SOFTWARE T HTTP::IN_USER_AGENT_HEADER
> ##################
>
> (I temporarily put Mozilla in there to generate lots of events for
> testing purposes)
>
>
> Thanks,
> lms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20181119/f0e96cf6/attachment.html
More information about the Bro
mailing list