Skip to content

Commit

Permalink
#805 #806 extract interesting orbservables from reports
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Oct 18, 2020
1 parent ba418d8 commit abe1edd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions analyzers/CIRCLPassiveSSL/circl_passivessl.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,30 @@ def summary(self, raw):

return {"taxonomies": taxonomies}


def artifacts(self, raw):
artifacts = []
if 'certificates' in raw:
for c in raw.get('certificates'):
artifacts.append(
self.build_artifact(
'hash',
str(c.get('fingerprint'))
)
)

if 'query' in raw:
for ip in raw.get('query').get('seen'):
artifacts.append(
self.build_artifact(
'ip',
str(ip)
)

)
return artifacts


def run(self):
if self.data_type == 'certificate_hash' or self.data_type == 'hash':
data = self.get_data()
Expand Down

0 comments on commit abe1edd

Please sign in to comment.