Merge pull request #49 from eidurorng/fix-external-analysis-classification

Quick fix for everything getting classified as external analysis
pull/50/head
Raphaël Vinot 2021-01-26 09:56:08 +01:00 committed by GitHub
commit 5eabf6fb0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ class Mail2MISP():
to_ids=False, enforceWarninglist=False)
if email_object:
email_object.add_reference(attribute.uuid, 'contains')
elif domainname in self.config.externallist or self.urlsonly is False: # External analysis
elif domainname in self.config.externallist and self.urlsonly is False: # External analysis
attribute = self.misp_event.add_attribute('link', entry, category='External analysis',
to_ids=False, enforceWarninglist=False)
if email_object: