Indu Bala

23 papers Journal 21Unranked 2
YearRankTypeTitle / Venue / Authors
2026 J jnl
Neurocomputing
Subarna Khanra, Vijay Kumar Kukreja, Indu Bala
2025 J jnl
CoRR
Indu Bala, Lewis Mitchell, Marianne H. Gillam
2025 conf
GECCO Companion
Nitin Gupta, Indu Bala, Bapi Dutta, Luis Martínez, Anupam Yadav
2025 J jnl
CoRR
Nitin Gupta, Indu Bala, Bapi Dutta, Luis Martínez, Anupam Yadav
2025 J jnl
CoRR
Dikshit Chauhan, Bapi Dutta, Indu Bala, Niki van Stein, Thomas Bäck, Anupam Yadav
2025 J jnl
CoRR
Subarna Khanra, Vijay Kumar Kukreja, Indu Bala
2025 J jnl
Int. J. Syst. Assur. Eng. Manag.
Akshat Aggarwal, Eshaan Awasthi, Deepika Kukreja, Jyoti Kedia, Indu Bala
2025 J jnl
Comput. Mater. Continua
Indu Bala, Wathsala Karunarathne, Lewis Mitchell
2025 J jnl
CoRR
Siying Liu, Shisheng Zhang, Indu Bala
2024 J jnl
Multim. Tools Appl.
Samiya Majid Baba, Indu Bala, Gaurav Dhiman, Ashutosh Sharma, Wattana Viriyasitavat
2024 J jnl
Soc. Netw. Anal. Min.
Indu Bala, Thu-Lan Kelly, Ty Stanford, Marianne H. Gillam, Lewis Mitchell
2024 J jnl
CoRR
Wathsala Karunarathne, Indu Bala, Dikshit Chauhan, Matthew Roughan, Lewis Mitchell
2024 J jnl
Evol. Intell.
Indu Bala, Anupam Yadav, Joong Hoon Kim
2024 conf
GECCO Companion
Indu Bala, Dikshit Chauhan, Lewis Mitchell
2024 J jnl
CoRR
Indu Bala, Dikshit Chauhan, Lewis Mitchell
2023 J jnl
J. Ambient Intell. Humaniz. Comput.
Indu Bala, Kiran Ahuja
2022 J jnl
Evol. Intell.
Indu Bala, Anupam Yadav
2022 J jnl
J. King Saud Univ. Comput. Inf. Sci.
Indu Bala, Ashutosh Sharma, Alexey A. Tselykh, Byung-Gyu Kim
2021 J jnl
Int. J. Commun. Syst.
Indu Bala, Kiran Ahuja
2020 J jnl
Neural Comput. Appl.
Indu Bala, Anupam Yadav
2019 J jnl
Wirel. Networks
Indu Bala, Manjit Singh Bhamrah, Ghanshyam Singh
2017 J jnl
Wirel. Networks
Indu Bala, Manjit Singh Bhamrah, Ghanshyam Singh
2017 J jnl
Wirel. Pers. Commun.
Indu Bala, Manjit Singh Bhamrah, Ghanshyam Singh
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())