Rafael Llobet

28 papers B 5Misc 1Journal 14Unranked 8
YearRankTypeTitle / Venue / Authors
2025 J jnl
Medical Biol. Eng. Comput.
Jose Ramón Navarro-Cerdán, Pedro Pons-Suñer, Laura Arnal, Joaquim Arlandis, Rafael Llobet, Juan-Carlos Perez-Cortes, Francisco Lara-Hernández, Celeste Moya-Valera, Maria Elena Quiroz-Rodriguez, Gemma Rojo-Martinez, Sergio Valdés, Eduard Montanya, Alfonso L. Calle-Pascual, Josep Franch-Nadal, Elias Delgado, Luis Castaño, Ana-Bárbara García-García, Felipe Javier Chaves
2025 J jnl
Expert Syst. J. Knowl. Eng.
Joaquim Arlandis, Rafael Llobet, Jose Ramón Navarro-Cerdán, Laura Arnal, François Signol, Juan-Carlos Perez-Cortes
2025 J jnl
BMC Medical Informatics Decis. Mak.
Pedro Pons-Suñer, François Signol, Noemi Alvarez, Claudia Sargas, Sara Dorado, Jose Vicente Gil Ortí, Juan A. Delgado Sanchis, Marta Llop, Laura Arnal, Rafael Llobet, Juan-Carlos Perez-Cortes, Rosa Ayala, Eva Barragán
2025 J jnl
J. Imaging
Andrés Larroza, Francisco Javier Pérez-Benito, Raquel Tendero, Juan-Carlos Perez-Cortes, Marta Román, Rafael Llobet
2023 J jnl
Comput. Biol. Medicine
François Signol, Laura Arnal, J. Ramon Navarro-Cerdan, Rafael Llobet, Joaquim Arlandis, Juan-Carlos Perez-Cortes
2022 J jnl
Comput. Methods Programs Biomed.
Hector Lopez-Almazan, Francisco Javier Pérez-Benito, Andrés Larroza, Juan-Carlos Perez-Cortes, Marina Pollán, Beatriz Pérez-Gómez, Dolores Salas-Trejo, María Casals, Rafael Llobet
2022 J jnl
IEEE Access
Vicent Ortiz Castelló, Francisco Javier Pérez-Benito, Omar del Tejo Catalá, Ismael Salvador Igual, Rafael Llobet, Juan-Carlos Perez-Cortes
2021 J jnl
IEEE Access
Omar del Tejo Catalá, Ismael Salvador Igual, Francisco Javier Pérez-Benito, David Millán Escrivá, Vicent Ortiz Castelló, Rafael Llobet, Juan-Carlos Perez-Cortes
2020 J jnl
Comput. Methods Programs Biomed.
Francisco Javier Pérez-Benito, François Signol, Juan-Carlos Perez-Cortes, Alejandro Fuster Baggetro, Marina Pollán, Beatriz Pérez-Gómez, Dolores Salas-Trejo, María Casals, Inmaculada Martínez, Rafael Llobet
2019 J jnl
Comput. Methods Programs Biomed.
Francisco Javier Pérez-Benito, François Signol, Juan-Carlos Perez-Cortes, Marina Pollán, Beatriz Pérez-Gómez, Dolores Salas-Trejo, María Casals, Inmaculada Martínez, Rafael Llobet
2016 J jnl
Inf. Fusion
J. Ramon Navarro-Cerdan, Rafael Llobet, Joaquim Arlandis, Juan-Carlos Perez-Cortes
2015 conf
MIE
María de la Iglesia-Vayá, José María Salinas, Gonzalo M. Rojas, Juan-Carlos Perez-Cortes, Rafael Llobet, Miguel Cazorla, Jacobo Martínez, Luis Martí-Bonmatí, Ignacio Blanquer, Manuel Regaña, José Miguel Puig
2015 J jnl
Expert Syst. Appl.
J. Ramon Navarro-Cerdan, Joaquim Arlandis, Rafael Llobet, Juan-Carlos Perez-Cortes
2014 J jnl
Comput. Methods Programs Biomed.
Rafael Llobet, Marina Pollán, Joaquín Antón, Josefa Miranda-García, María Casals, Inmaculada Martínez, Francisco Ruiz-Perales, Beatriz Pérez-Gómez, Dolores Salas-Trejo, Juan-Carlos Perez-Cortes
2011 conf
DEXA Workshops
Juan-Carlos Perez-Cortes, Rafael Llobet, J. Ramon Navarro-Cerdan, Joaquim Arlandis
2010 conf
DEXA Workshops
Ismael Salvador, Juan-Carlos Perez-Cortes, Sergio Sáez-Barona, Diego Carrion, Leandro Gracia, Jose-Vicente Gavila, Jose Luis Guardiola, Joan-Vicent Puertos, Victor Diaz, Marc Albero, Luis Andreu, Joaquim Arlandis, Javier Cano-Perez, Rafael Llobet, Jose-Ramon Cerdan-Navarro
2010 conf
SSPR/SPR
Rafael Llobet, J. Ramon Navarro-Cerdan, Juan-Carlos Perez-Cortes, Joaquim Arlandis
2010 B conf
ICPR
Rafael Llobet, Jose-Ramon Cerdan-Navarro, Juan-Carlos Perez-Cortes, Joaquim Arlandis
2010 conf
SSPR/SPR
Joaquim Arlandis, Juan-Carlos Perez-Cortes, J. Ramon Navarro-Cerdan, Rafael Llobet
2010 B conf
ICFHR
J. Ramon Navarro-Cerdan, Joaquim Arlandis, Juan-Carlos Perez-Cortes, Rafael Llobet
2010 B conf
ICFHR
Juan-Carlos Perez-Cortes, Rafael Llobet, J. Ramon Navarro-Cerdan, Joaquim Arlandis
2007 J jnl
Int. J. Medical Informatics
Rafael Llobet, Juan-Carlos Perez-Cortes, Alejandro H. Toselli, Alfons Juan
2005 conf
IbPRIA (2)
Rafael Llobet, Roberto Paredes, Juan-Carlos Perez-Cortes
2003 Misc conf
IbPRIA
Rafael Llobet, Alejandro H. Toselli, Juan-Carlos Perez-Cortes, Alfons Juan
2002 conf
SSPR/SPR
Javier Cano-Perez, Juan-Carlos Perez-Cortes, Joaquim Arlandis, Rafael Llobet
2000 conf
SSPR/SPR
Juan-Carlos Perez-Cortes, Rafael Llobet, Joaquim Arlandis
2000 B conf
ICPR
Joaquim Arlandis, Juan-Carlos Perez-Cortes, Rafael Llobet
2000 B conf
ICPR
Juan-Carlos Perez-Cortes, Juan-Carlos Amengual, Joaquim Arlandis, Rafael Llobet
redb/extractors/pe_extractors/pe_imports.py
← Index redb/extractors/pe_extractors/pe_imports.py python
import inspect
from typing import Any, List, Tuple
from datetime import datetime, timezone

from redb.extractors.enum import Tag
from redb.extractors.pe_extractor import PEExtractor
from redb.models.dataclasses import PEImport


class PEImportExtractor(PEExtractor):

    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,
            pe,
        )
        self.elastic_index = self.index_prefix + "-pe_imports"
        self.log.debug(inspect.currentframe().f_code.co_name)

    def tag(self):
        return Tag.PE_IMPORT.value

    def _extract_imports(self):
        self.log.debug(inspect.currentframe().f_code.co_name)

        imports_symbols = []
        imports_lib = []
        imports_total = 0
        # pe_import = None
        try:
            directory_entry_import = getattr(self.pe, "DIRECTORY_ENTRY_IMPORT", [])
            imports_total = len(directory_entry_import)
            for entry in directory_entry_import:
                symbols = []
                tmp_import = {}
                libname = entry.dll.decode() if entry.dll else ""
                imports_lib.append(libname)
                # replace . with _ to avoid issues with elastic
                # entryname = entryname.replace(".", "_")
                for symbol in entry.imports:
                    if symbol.name:
                        symbols.append(symbol.name.decode())
                # imports_symbols[entryname] = symbols
                tmp_import[libname] = symbols
                imports_symbols.append(tmp_import)
            return PEImport(
                pe_imports_total=imports_total,
                pe_import_libraryName=imports_lib if imports_lib else None,
                pe_import_functions=imports_symbols if imports_symbols else None,
            )
        except Exception as e:
            self.log.error(f"Extract imports error {self.hash.sha256} Exception: {e}")
        return pe_import

    def extract(self):
        try:
            self.log.debug(inspect.currentframe().f_code.co_name)
            return self._extract_imports()
        except Exception as e:
            self.log.error(f"Extract imports error {self.hash.sha256} Exception: {e}")
            return None

    def prepare_export_data(self, exporter_type: str) -> Any:
        if exporter_type == "ElasticsearchExporter":
            return self.extract()
        elif exporter_type == "ClickHouseExporter":
            imports = self.extract()
            if (
                imports is None
                or imports.pe_imports_total == 0
                or (
                    imports.pe_import_libraryName is None
                    and imports.pe_import_functions is None
                )
            ):
                return None

            # Flatten the data - one row per function import
            data = []
            current_time = datetime.now(timezone.utc)

            for lib_funcs in imports.pe_import_functions:
                for lib, funcs in lib_funcs.items():
                    for func in funcs:
                        data.append(
                            [
                                self.sha256,  # sha256
                                self.md5,  # md5
                                self.sha1,  # sha1
                                lib,  # library_name
                                func,  # function_name
                                current_time,  # analysis_date
                            ]
                        )

            column_names = [
                "sha256",
                "md5",
                "sha1",
                "library_name",
                "function_name",
                "analysis_date",
            ]

            column_type_names = [
                "FixedString(64)",
                "FixedString(32)",
                "FixedString(40)",
                "LowCardinality(Nullable(String))",
                "LowCardinality(Nullable(String))",
                "DateTime64(3, 'UTC')",
            ]

            if not data:
                return None

            return (data, column_names, column_type_names)

    def get_clickhouse_table(self) -> str:
        return "redb_pe_imports"