Skip to content

Commit 42e72ea

Browse files
committed
corrected signature match metadata
1 parent 9bcb0e8 commit 42e72ea

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

Diff for: scripts/dovehawk.bro

+22-21
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##! Dovehawk Zeek Module V 1.01.002 2019 08 02 @tylabs dovehawk.io
1+
##! Dovehawk Zeek Module V 1.01.003 2019 12 17 @tylabs dovehawk.io
22
# This module downloads Zeek Intelligence Framework items and Signature Framework Zeek items from MISP.
33
# Sightings are reported back to MISP and optionally to a Slack webhook.
44
# This script could be easily modified to send hits to a central database / web dashboard or to add in indicators from other sources.
@@ -18,7 +18,7 @@ module dovehawk;
1818

1919

2020
export {
21-
global DH_VERSION = "1.01.002";
21+
global DH_VERSION = "1.01.003";
2222

2323
#removed randomness added to internal + double_to_interval(rand(1200))
2424
global load_signatures: function();
@@ -534,28 +534,29 @@ event signature_match(state: signature_state, msg: string, data: string)
534534
hit += fmt("|issuer:%s",ssl$issuer);
535535
}
536536
}
537+
}
537538

538-
if (conn?$smtp) {
539-
local smtp = conn$smtp;
540-
if (smtp?$from) {
541-
hit += fmt("|from:%s",smtp$from);
542-
}
543-
if (smtp?$subject) {
544-
hit += fmt("|subject:%s",smtp$subject);
545-
}
546-
if (smtp?$rcptto) {
547-
hit += fmt("|to:%s",smtp$rcptto);
548-
}
539+
540+
if (conn?$smtp) {
541+
local smtp = conn$smtp;
542+
if (smtp?$from) {
543+
hit += fmt("|from:%s",smtp$from);
544+
}
545+
if (smtp?$subject) {
546+
hit += fmt("|subject:%s",smtp$subject);
549547
}
548+
if (smtp?$rcptto) {
549+
hit += fmt("|to:%s",smtp$rcptto);
550+
}
551+
}
550552

551-
if (conn?$dns) {
552-
local dns = conn$dns;
553-
if (dns?$qtype_name) {
554-
hit += fmt("|q:%s",dns$qtype_name);
555-
}
556-
if (dns?$answers) {
557-
hit += fmt("|answers:%s",dns$answers);
558-
}
553+
if (conn?$dns) {
554+
local dns = conn$dns;
555+
if (dns?$qtype_name) {
556+
hit += fmt("|q:%s",dns$qtype_name);
557+
}
558+
if (dns?$answers) {
559+
hit += fmt("|answers:%s",dns$answers);
559560
}
560561
}
561562

0 commit comments

Comments
 (0)