From 71c515d4d789ac5c521c1cc32b96d5f14025e59c Mon Sep 17 00:00:00 2001 From: Mike Hunhoff Date: Mon, 29 Jul 2024 12:19:53 -0600 Subject: [PATCH] vmray: improve comments __init__.py --- capa/features/extractors/vmray/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/capa/features/extractors/vmray/__init__.py b/capa/features/extractors/vmray/__init__.py index 88d2a8e2..06d581cc 100644 --- a/capa/features/extractors/vmray/__init__.py +++ b/capa/features/extractors/vmray/__init__.py @@ -56,6 +56,9 @@ class VMRayAnalysis: self._find_sample_file() + # VMRay analysis archives in various shapes and sizes and file type does not definitively tell us what data + # we can expect to find in the archive, so to be explicit we check for the various pieces that we need at + # minimum to run capa analysis if self.sample_file_name is None or self.sample_file_analysis is None: raise UnsupportedFormatError("VMRay archive does not contain sample file (file_type: %s)" % self.file_type)