Skip to content

Commit

Permalink
#56 Virusshare() and short reports + bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Jun 20, 2017
1 parent c10ac23 commit 355913c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 63 deletions.
2 changes: 1 addition & 1 deletion analyzers/Virusshare/Virusshare.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Nils Kuhnert, CERT-Bund",
"license": "AGPL-V3",
"url": "https://github.com/BSI-CERT-Bund/cortex-analyzers",
"version": "1.0",
"version": "2.0",
"baseConfig": "Virusshare",
"config": {},
"description": "Search for MD5 hashes in Virusshare.com hash list",
Expand Down
15 changes: 14 additions & 1 deletion analyzers/Virusshare/virusshare.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,20 @@ def __init__(self):
self.filelist = os.listdir(self.path)

def summary(self, raw):
return {'isonvs': raw["isonvs"]}
taxonomy = {"level": "safe", "namespace": "Virusshare", "predicate": "Search", "value": 0}
taxonomies = []
if raw["isonvs"]:
if raw["isonvs"] == "unknown":
taxonomy['value'] = "\"{}\"".format("Not MD5")
taxonomy['level'] = "suspicious"
else:
taxonomy['value'] "\"{}\"".format("Found")
taxonomy['level'] = "malicious"
else:
taxonomy['value'] = "\"{}\"".format("Not found")

taxonomies.append(taxonomy)
return {'taxonomies': taxonomies}

def run(self):
searchhash = ''
Expand Down
58 changes: 0 additions & 58 deletions thehive-templates/Virusshare_1_0/long.html

This file was deleted.

3 changes: 0 additions & 3 deletions thehive-templates/Virusshare_1_0/short.html

This file was deleted.

0 comments on commit 355913c

Please sign in to comment.