new: [tag] Added an id tag the event if multiple m2m instances are used

pull/60/head
Steve Clement 2021-09-30 14:55:39 +09:00
parent d095c7fac3
commit edffb3ac4d
No known key found for this signature in database
GPG Key ID: 69A20F509BE4AEE9
2 changed files with 3 additions and 1 deletions

View File

@ -76,6 +76,7 @@ class Mail2MISP():
self.misp_event.distribution = self.config.default_distribution
self.misp_event.threat_level_id = self.config.default_threat_level
self.misp_event.analysis = self.config.default_analysis
self.misp_event.add_tag(self.config.id_tag)
def sighting(self, value, source):
if self.offline:

View File

@ -6,8 +6,9 @@ misp_key = 'YOUR_KEY_HERE' # The MISP auth key can be found on the MISP web int
misp_verifycert = True
spamtrap = False
default_distribution = 0
default_threat_level = 3
default_threat_level = 4
default_analysis = 1
id_tag = 'host:m2m:tld'
freetext = False
body_config_prefix = 'm2m' # every line in the body starting with this value will be skipped from the IOCs