Skip to content

Commit

Permalink
#66 add summary() and new short report in Abuse Finder
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Jun 28, 2017
1 parent c80af57 commit b24c050
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/Abuse_Finder/Abuse_Finder.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Abuse_Finder",
"version": "1.0",
"version": "2.0",
"author": "CERT-BDF",
"url": "https://github.com/CERT-BDF/Cortex-Analyzers",
"license": "AGPL-V3",
Expand Down
8 changes: 8 additions & 0 deletions analyzers/Abuse_Finder/abusefinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@

class AbuseFinderAnalyzer(Analyzer):

def summary(self, raw):

taxonomies = []
if raw['abuse_finder'] and raw['abuse_finder'].get('abuse'):
for abuse in raw['abuse_finder']['abuse']:
taxonomies.append(self.build_taxonomy("info", "Abuse_Finder", "Address", abuse))
return {"taxonomies": taxonomies}

def abuse(self):
if self.data_type == "ip":
return ip_abuse(self.getData())
Expand Down

0 comments on commit b24c050

Please sign in to comment.