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
2
2
# This module downloads Zeek Intelligence Framework items and Signature Framework Zeek items from MISP.
3
3
# Sightings are reported back to MISP and optionally to a Slack webhook.
4
4
# 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;
18
18
19
19
20
20
export {
21
- global DH_VERSION = " 1.01.002 " ;
21
+ global DH_VERSION = " 1.01.003 " ;
22
22
23
23
# removed randomness added to internal + double_to_interval(rand(1200))
24
24
global load_signatures: function ();
@@ -534,28 +534,29 @@ event signature_match(state: signature_state, msg: string, data: string)
534
534
hit += fmt (" |issuer:%s " ,ssl$issuer);
535
535
}
536
536
}
537
+ }
537
538
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);
549
547
}
548
+ if (smtp?$rcptto) {
549
+ hit += fmt (" |to:%s " ,smtp$rcptto);
550
+ }
551
+ }
550
552
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);
559
560
}
560
561
}
561
562
0 commit comments