Skip to content

Commit

Permalink
#300 add extraction of observables AS and asabusecontact
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Sep 3, 2018
1 parent 67bb738 commit d8217c4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions analyzers/DShield/DShield_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ def dshield_checkip(self, data):
r = requests.get(url)
return json.loads(r.text)

def artifacts(self, raw):
artifacts = []
if 'as' in raw:
artifacts.append({'type':'autonomous-system','value':str(raw['as'])})

if 'asabusecontact' in raw:
artifacts.append({'type': 'email', 'value':str(raw['asabusecontact'])})
return artifacts

def summary(self, raw):
taxonomies = []
value = "-"
Expand Down

0 comments on commit d8217c4

Please sign in to comment.