Skip to content

Commit

Permalink
Now is_pup method only returns a Boolean, does not return None if no …
Browse files Browse the repository at this point in the history
…tags
  • Loading branch information
malicialab committed Mar 23, 2023
1 parent a10aa4a commit c7c37fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions avclass/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,12 @@ def is_pup(tag_pairs, taxonomy):
Checks if highest ranked CLASS tag contains "grayware"
and is above a predefined threshold
Return:
True/False/None
It returns False unless it can determine it is PUP
"""
threshold = 0.5
# If no tags, return false
if len(tag_pairs) < 1:
return None
return False
max_ctr = tag_pairs[0][1]
for (tag,ctr) in tag_pairs:
(path, cat) = taxonomy.get_info(tag)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "avclass-malicialab"
version = "2.7.2"
version = "2.7.3"
description = "AVClass is a Python package and command line tool to tag / label malware samples."
readme = "README.md"
authors = [{ name = "MaliciaLab" }]
Expand Down

0 comments on commit c7c37fd

Please sign in to comment.