Isabel H. Manssour

11 papers B 1C 1Journal 1Unranked 8
YearRankTypeTitle / Venue / Authors
2026 conf
VISAPP (1)
Murilo Santos Regio, Thomas Trappenberg, Isabel H. Manssour
2025 conf
MedInfo
Bernardo Consoli, Vinícius Pedroso, Artur Kniest, Renata Vieira, Rafael H. Bordini, Isabel H. Manssour
2025 C conf
WEBIST
André F. Rollwagen, Gabriel Zurawski, Stéfano de P. Carraro, Roberto Tietzmann, Marcelo C. Fontoura, Isabel H. Manssour
2025 conf
VISIGRAPP (2): VISAPP
Murilo Santos Regio, Isabel H. Manssour
2025 J jnl
J. Interact. Syst.
Gabriel Zurawski, Vinícius Pedroso, Eduarda Patricio, Giovanna Castro, André F. Rollwagen, Isabel H. Manssour
2025 conf
ICEIS (2)
Gabriela Birnfeld Kurtz, Stéfano de P. Carraro, Carlos Roberto G. Teixeira, Leonardo D. Bandeira, Bernardo L. Müller, Roberto Tietzmann, Milene Selbach Silveira, Isabel H. Manssour
2025 conf
MedInfo
Rodrigo Henrich, Rafael H. Bordini, Isabel H. Manssour
2024 B conf
COMPSAC
Vinicius Chrisosthemos Teixeira, Gabriel Fonseca Silva, Isabel H. Manssour, Soraia H. Musse, Márcio Sarroglia Pinho
2023 conf
SBAC-PADW
Renato B. Hoffmann, Leonardo G. Faé, Isabel H. Manssour, Dalvan Griebler
2023 conf
CSEDU (1)
Pedro Henrique M. Sanvido, Isabel H. Manssour
2022 conf
BRACIS (1)
Luís Fernando Bittencourt, Otávio Parraga, Duncan D. Ruiz, Isabel H. Manssour, Soraia Raupp Musse, Rodrigo C. Barros
redb/extractors/pe_extractor.py
← Index redb/extractors/pe_extractor.py python
import logging
from abc import ABCMeta, abstractmethod
import inspect

import magic
import pefile
from dotnetfile import DotNetPE

from redb.extractors.extractor import Extractor

logger = logging.getLogger(__name__)


@abstractmethod
class PEExtractor(Extractor, metaclass=ABCMeta):

    def __init__(
        self,
        filepath,
        log,
        exporters=None,
        index_prefix=None,
        elastic_index=None,
        known_benign=False,
        known_malicious=False,
        pe=None,
    ):
        super().__init__(
            filepath,
            log,
            exporters,
            index_prefix,
            elastic_index,
            known_benign,
            known_malicious
        )
        self.pe = pe if pe else self._generate_pefile_object()
        self.dotnet = None

    def _generate_pefile_object(self):
        pe = None
        try:
            pe = pefile.PE(self.filepath)
            if not pe:
                raise pefile.PEFormatError("Empty file?")
        except pefile.PEFormatError as e:
            self.log.error(f"Format error {self.hash.sha256} Full error : {e}")
        return pe

    def _generate_dotnetfile_object(self):
        self.log.debug(inspect.currentframe().f_code.co_name)
        dotnet = None
        error = None
        try:
            dotnet = DotNetPE(self.filepath)
            if not dotnet:
                raise Exception("Empty file?")
        except Exception as e:
            self.log.error(
                f"Format error dotnet file {self.hash.sha256} Full error : {e}"
            )
            error = e
        return dotnet, error

    def _check_dotnet(self):
        try:
            file_type = magic.from_buffer(self.binary)
            if ".Net" in file_type:
                return True
            for entry in self.pe.OPTIONAL_HEADER.DATA_DIRECTORY:
                # IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR is typically 14
                if (
                    entry.name == "IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR"
                    and entry.Size > 0
                ):
                    return True
            return False
        except AttributeError as e:
            self.log.error(
                f"AttributeError error dotnet file {self.hash.sha256} Full error : {e}"
            )
            return False

    def _is_signed(self):
        address = self.pe.OPTIONAL_HEADER.DATA_DIRECTORY[
            pefile.DIRECTORY_ENTRY["IMAGE_DIRECTORY_ENTRY_SECURITY"]
        ].VirtualAddress
        if address == 0:
            return False
        return True

    def _has_overlay(self):
        return bool(self.pe.get_overlay())