def _get_ssdeep(self):
"""
Generates the ssdeep fuzzy hash of the file.
@return: ssdeep fuzzy hash of the file
"""
if not IS_SSDEEP:
return None
try:
return ssdeep.ssdeep().hash_file(self.file_path)
except:
try:
import ssdeep
return ssdeep.hash_from_file(self.file_path)
except:
return None
return None
def _get_type(self):
"""
Retrieves the libmagic type of the file.
@return: file type
"""
if not IS_MAGIC:
return None
try:
ms = magic.open(magic.MAGIC_NONE)
ms.load()
return ms.buffer(self.file_data)
except:
try:
return magic.Magic().from_file(self.file_path)
except:
return None
return None
Clockwork Blue: Automating Security Defenses with SOAR and AI
It’s impractical to operate security operations alone, using manual human processes. Finding opportunities to automate SecOps is an underlying foundation of Zero Trust and an essential architecture...
Read MoreProfessional Services Sector Under Attack - Trustwave SpiderLabs Report 2024
Recent research by Trustwave SpiderLabs, detailed in their newly published report "2024 Professional Services Threat Landscape: Trustwave Threat Intelligence Briefing and Mitigation Strategies,"...
Read MoreAtlas Oil: The Consequences of a Ransomware Attack
Overview Atlas Oil, a major player in the oil and fuel distribution industry, fell victim to a ransomware attack orchestrated by the Black Basta group. This attack not only compromised sensitive...
Read More