Skip to content

Commit

Permalink
Bugfix: Fix issue with results that do not have a malware_family or c…
Browse files Browse the repository at this point in the history
…lassification property
  • Loading branch information
idiom committed Nov 20, 2023
1 parent f2fcc9b commit 99742d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.1.1 - 2023-11-19
- Bugfix: Fix issue with results that do not have a malware_family or classification property

## 1.1.0 - 2023-10-09

- Added support for String Searching
Expand Down
8 changes: 5 additions & 3 deletions src/unpacme_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ def PopulateForm(self):
if entry['malware_family'].lower() not in family_lower:
family_lower.append(entry['malware_family'].lower())
malware_family.append(entry['malware_family'])
except KeyError:
logger.debug("No malware family")
except AttributeError:
logger.debug("No malware family")

Expand Down Expand Up @@ -653,11 +655,11 @@ def build_result(self, result: Dict[str, Any], search_string: str):
family = ""
for entry in r['malwareid']:

label = entry['malware_family']
label = entry.get('malware_family', None)
if not family:
family = label

classification = entry['classification_type']
classification = entry.get('classification_type', None)
if classification:
classification_type = classification

Expand Down Expand Up @@ -1088,7 +1090,7 @@ class UnpacMeByteSearchPlugin(ida_idaapi.plugin_t):
wanted_name = "UnpacMe Byte Search"
wanted_hotkey = ""

_version = "1.1.0"
_version = "1.1.1"

def _banner(self):
return f"""
Expand Down

0 comments on commit 99742d1

Please sign in to comment.