Skip to content

Commit

Permalink
#879 use cortexutils build_artifact dedicated function
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Oct 14, 2020
1 parent 65c00ac commit 50740dd
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions analyzers/DShield/DShield_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,20 @@ def dshield_checkip(self, data):
def artifacts(self, raw):
artifacts = []
if 'as' in raw:
artifacts.append({'type':'autonomous-system','value':str(raw['as'])})

artifacts.append(
self.build_artifact(
'autonomous-system',
str(raw['as']
)
)
)
if 'asabusecontact' in raw:
artifacts.append({'type': 'mail', 'value':str(raw['asabusecontact'])})
artifacts.append(
self.build_artifact(
'mail',
str(raw['asabusecontact'])
)
)
return artifacts

def summary(self, raw):
Expand Down

0 comments on commit 50740dd

Please sign in to comment.