Isaac Kofi Nti

24 papers Journal 17Unranked 7
YearRankTypeTitle / Venue / Authors
2026 J jnl
Discov. Artif. Intell.
Isaac Kofi Nti, Selena Ramanayake
2026 J jnl
Future Internet
Isaac Kofi Nti, Murat Ozer, Chengcheng Li
2025 J jnl
CoRR
Isaac Kofi Nti
2025 conf
SIGCITE
Saheed Popoola, Ashwitha Vollem, Isaac Kofi Nti
2024 J jnl
IEEE Trans. Comput. Soc. Syst.
Isaac Kofi Nti, Arjun Remadevi Somanathan
2024 conf
AIBThings
Sivani Chava, Isaac Kofi Nti, Murat Ozer
2024 conf
MLMI
Kemi Akanbi, Odunayo Gabriel Adepoju, Isaac Kofi Nti
2024 J jnl
Int. J. Medical Eng. Informatics
Isaac Kofi Nti, Adebayo Felix Adekoya, Owusu Nyarko-Boateng, Ponnadurai Ramasami
2024 conf
AIBThings
Yakubu Joseph Itodo, Isaac Kofi Nti
2024 J jnl
Int. J. Appl. Decis. Sci.
Isaac Kofi Nti, Kwabena Adu, Peter Nimbe, Owusu Nyarko-Boateng, Adebayo Felix Adekoya, Peter Appiahene
2024 conf
AIBThings
Naga Sri Harsha Sankabathula, Isaac Kofi Nti, Murat Ozer
2023 J jnl
Int. J. Electron. Heal.
Isaac Kofi Nti, Owusu Nyarko-Boateng, Adebayo Felix Adekoya, Benjamin Asubam Weyori, Henrietta Pokuaa Adjei
2022 J jnl
Big Data Min. Anal.
Isaac Kofi Nti, Juanita Ahia Quarcoo, Justice Aning, Godfred Kusi Fosu
2022 J jnl
J. Intell. Manuf.
Isaac Kofi Nti, Adebayo Felix Adekoya, Benjamin Asubam Weyori, Owusu Nyarko-Boateng
2022 J jnl
Int. Arab J. Inf. Technol.
Isaac Kofi Nti, Owusu Narko-Boateng, Adebayo Felix Adekoya, Arjun Remadevi Somanathan
2021 J jnl
J. Big Data
Isaac Kofi Nti, Adebayo Felix Adekoya, Benjamin Asubam Weyori
2021 J jnl
Appl. Comput. Syst.
Bridgitte Owusu-Boadu, Isaac Kofi Nti, Owusu Nyarko-Boateng, Justice Aning, Victoria Boafo
2021 conf
ACIT
Isaac Kofi Nti, Owusu Nyarko-Boateng, Samuel Boateng, Faiza Umar Bawah, Promise Ricardo Agbedanu, Nicodemus Songose Awarayi, Peter Nimbe, Adebayo Felix Adekoya, Benjamin Asubam Weyori, Vivian Akoto-Adjepong
2021 conf
ACIT
Isaac Kofi Nti, Owusu Nyarko-Boateng, Adebayo Felix Adekoya, R. Arjun
2020 J jnl
J. Big Data
Isaac Kofi Nti, Adebayo Felix Adekoya, Benjamin Asubam Weyori
2020 J jnl
Artif. Intell. Rev.
Isaac Kofi Nti, Adebayo Felix Adekoya, Benjamin Asubam Weyori
2020 J jnl
Open Comput. Sci.
Isaac Kofi Nti, Adebayo Felix Adekoya, Benjamin Asubam Weyori
2020 J jnl
Appl. Comput. Syst.
Isaac Kofi Nti, Adebayo Felix Adekoya, Benjamin Asubam Weyori
2020 J jnl
Int. J. Soc. Media Interact. Learn. Environ.
Isaac Kofi Nti, Adebayo Felix Adekoya, Michael Opoku, Peter Nimbe
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())