In Lee

44 papers Misc 3Journal 30Unranked 9
YearRankTypeTitle / Venue / Authors
2025 J jnl
IT Prof.
In Lee
2025 J jnl
IT Prof.
In Lee
2024 J jnl
IT Prof.
In Lee
2023 J jnl
Comput. Secur.
In Lee
2022 J jnl
Inf. Secur. J. A Glob. Perspect.
In Lee
2022 J jnl
Inf.
In Lee
2022 J jnl
Big Data Cogn. Comput.
In Lee, George Mangalaraj
2021 J jnl
Internet Things
In Lee
2021 J jnl
J. Theor. Appl. Electron. Commer. Res.
In Lee
2020 J jnl
Future Internet
In Lee
2019 J jnl
J. Cloud Comput.
In Lee
2019 J jnl
Internet Things
In Lee
2018 J jnl
Ind. Manag. Data Syst.
In Lee
2017 J jnl
Ind. Manag. Data Syst.
In Lee
2017 conf
UCC (Companion")
In Lee
2016 J jnl
Int. J. Knowl. Based Organ.
In Lee, Chandra S. Amaravadi
2016 J jnl
Int. J. Inf. Syst. Soc. Chang.
In Lee
2015 J jnl
Int. J. Inf. Technol. Decis. Mak.
In Lee, Choong Kwon Lee, Sangjin Yoo, Moo-Jin Choi
2014 conf
HAPTICS
In Lee, Seungmoon Choi
2013 conf
World Haptics
In Lee, Seungmoon Choi
2013 J jnl
IEEE Trans. Hum. Mach. Syst.
Hojin Lee, Gabjong Han, In Lee, Sunghoon Yim, Kyungpyo Hong, Hyeseon Lee, Seungmoon Choi
2012 conf
HAPTICS
In Lee, Kyungpyo Hong, Seungmoon Choi
2012 conf
HAPTICS
Sunghwan Shin, In Lee, Hojin Lee, Gabjong Han, Kyungpyo Hong, Sunghoon Yim, Jongwon Lee, Young Jin Park, Byeong Ki Kang, Dae Ho Ryoo, Dae Whan Kim, Seungmoon Choi, Wan Kyun Chung
2012 J jnl
IEEE Trans. Engineering Management
In Lee, Byoung-Chan Lee
2011 Misc conf
ISUVR
Hojin Lee, Gabjong Han, In Lee, Sunghoon Yim, Kyungpyo Hong, Seungmoon Choi
2011 J jnl
Decis. Support Syst.
In Lee
2011 J jnl
Int. J. E Bus. Res.
In Lee
2010 ch.
Economic Models and Algorithms for Distributed Systems
In Lee
2010 J jnl
Comput. Hum. Behav.
Changsu Kim, Mirsobit Mirusmonov, In Lee
2010 conf
HAPTICS
Gabjong Han, Jaebong Lee, In Lee, Seokhee Jeon, Seungmoon Choi
2009 J jnl
Comput. Educ.
Byoung-Chan Lee, Jeong-Ok Yoon, In Lee
2009 conf
WHC
In Lee, Inwook Hwang, Kyung-Lyoung Han, Oh Kyu Choi, Seungmoon Choi, Jin S. Lee
2007 J jnl
Commun. ACM
In Lee
2007 conf
FBIT
In Lee, Seungmoon Choi
2005 J jnl
IEEE Trans. Engineering Management
In Lee
2005 J jnl
Int. J. Simul. Process. Model.
In Lee
2005 J jnl
J. Electron. Commer. Organ.
In Lee
2005 ch.
Encyclopedia of Information Science and Technology (V)
In Lee
2004 J jnl
Bus. Process. Manag. J.
In Lee
2001 Misc conf
SAC
In Lee, Jatinder N. D. Gupta, Amar D. Amar
2001 J jnl
Comput. Oper. Res.
In Lee
1999 Misc conf
SAC
In Lee
1997 J jnl
IEEE Trans. Syst. Man Cybern. Part B
In Lee, Riyaz Sikora, Michael J. Shaw
1993 conf
ICGA
In Lee, Riyaz Sikora, Michael J. Shaw
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"