Result:
1297262131.735271 SensitiveSignature 192.168.1.60: my signature
So the signature is triggered. However no file is created.
Am I missing something? I have read a lot of information and I didn't
find anything.
I'm assuming you're loading the signatures.bro script? If you are, it should be creating a file named signatures.log in the current working directory.
BTW, the Bro Reference Manual refers the Bro variable
signatures_files. However it seems that the correct one is
signature_files. Am I wrong?
Sorry about that. Much of that documentation will be going away before too long. We just started on a fairly major project to improve Bro and documentation is included in that, but we're in-progress on a lot of things at the moment.
You are right. It created a file named signatures.log in the current
working directory (not in the log directory). However, it's empty
The log directory is used by BroControl. If you execute the bro binary on the command line, it won't have all of the nice BroControl log rotation and functionality for managing and running production Bro instances.
Do I need to do something else?
Try loading the notice.bro script and see if you get the signature match output into the notice.log file. I'm not sure offhand why you aren't seeing the signature match in signatures.log.
signatures.sig:
signature sig-1-1 {
event "my signature"
payload /.*my/
}
I have also tried to change local.site.bro to: @load site @load signatures @load notice
redef signature_files += "/opt/bro/site/signatures.sig";
redef signature_actions += {
["sig-1-1"] = SIG_FILE,
};
The signature is only triggered once for the same host and for a given
period of time.
Is there a way to report every single signature match?
Sorry to sort of disappear on you for a few days. I haven't had a chance to test yet, but I'm surprised that you are only seeing this trigger once. Could you capture some traffic and send the signature you are using? By default, it should be triggering on every match for a host.
Ah! I believe that is normal. I don't think that the same signature will trigger multiple times in the same TCP connection.
Can you give any more details about the scenario in which you need this? The example doesn't have enough context for me to know if there is another way of implementing what you are trying to accomplish.
First I though it was a bug. I only realized that it only concerned
the same tcp connections after my first e-mail. But the behavior is
different for Suricata. That's why I asked if it was a bug or normal
behavior for Bro. But now it's crystal clear.