Raimund J. Ober

40 papers B 1C 3Journal 19Unranked 17
YearRankTypeTitle / Venue / Authors
2022 J jnl
SIAM J. Imaging Sci.
Alix Marie d'Avigneau, Sumeetpal S. Singh, Raimund J. Ober
2021 J jnl
IEEE Trans. Computational Imaging
Milad R. Vahid, Bernard Hanzon, Raimund J. Ober
2020 J jnl
SIAM J. Imaging Sci.
Milad R. Vahid, Bernard Hanzon, Raimund J. Ober
2017 C conf
ISCAS
Dongyun Lin, Zhiping Lin, Ramraj Velmurugan, Raimund J. Ober
2015 C conf
ISCAS
Zhiping Lin, Yau Wong, Raimund J. Ober
2015 J jnl
IEEE Signal Process. Mag.
Raimund J. Ober, Amir Tahmasbi, Sripad Ram, Zhiping Lin, Elizabeth Sally Ward
2013 J jnl
Multidimens. Syst. Signal Process.
Sripad Ram, Elizabeth Sally Ward, Raimund J. Ober
2013 J jnl
IEEE Trans. Signal Process.
Ed A. K. Cohen, Raimund J. Ober
2013 C conf
ISCAS
Zhiping Lin, Yau Wong, Raimund J. Ober
2012 conf
ISBI
Sripad Ram, Sally E. Ward, Raimund J. Ober
2012 conf
ISBI
Yau Wong, Zhiping Lin, Raimund J. Ober
2012 J jnl
Multidimens. Syst. Signal Process.
Jerry Chao, Sally E. Ward, Raimund J. Ober
2012 conf
ISBI
Ed A. K. Cohen, Raimund J. Ober
2012 conf
ACSCC
Ed A. K. Cohen, Raimund J. Ober
2011 J jnl
IEEE Trans. Signal Process.
Yau Wong, Zhiping Lin, Raimund J. Ober
2010 J jnl
IEEE Trans. Inf. Technol. Biomed.
Jerry Chao, Sally E. Ward, Raimund J. Ober
2009 conf
ISBI
Jerry Chao, Sripad Ram, Sally E. Ward, Raimund J. Ober
2008 conf
ISBI
Jerry Chao, Sripad Ram, Sally E. Ward, Raimund J. Ober
2008 conf
ACSCC
Sripad Ram, Prashant Prabhat, Jerry Chao, Anish V. Abraham, E. Sally Ward, Raimund J. Ober
2007 conf
ISBI
Sripad Ram, Sally E. Ward, Raimund J. Ober
2006 J jnl
Multidimens. Syst. Signal Process.
Sripad Ram, Elizabeth Sally Ward, Raimund J. Ober
2006 conf
ISBI
Sripad Ram, Sally E. Ward, Raimund J. Ober
2006 J jnl
IEEE Trans. Signal Process.
Qiyue Zou, Zhiping Lin, Raimund J. Ober
2005 J jnl
IEEE Signal Process. Lett.
Zhiping Lin, Qiyue Zou, Elizabeth Sally Ward, Raimund J. Ober
2005 conf
ISCAS (4)
Raimund J. Ober, Zhiping Lin, Qiyue Zou
2005 J jnl
Multidimens. Syst. Signal Process.
Raimund J. Ober, Xuming Lai, Zhiping Lin, E. Sally Ward
2005 conf
ISCAS (2)
Qiyue Zou, Zhiping Lin, Raimund J. Ober
2004 B conf
ICIP
Raimund J. Ober, Xuming Lai, Zhiping Lin, Sally E. Ward
2004 J jnl
Syst. Control. Lett.
L. R. Hunt, Sally E. Ward, Raimund J. Ober
2004 conf
ISBI
Raimund J. Ober, Sripad Ram, Sally E. Ward
2003 J jnl
IEEE Trans. Signal Process.
Raimund J. Ober, Qiyue Zou, Zhiping Lin
2003 conf
ICASSP (3)
Zhiping Lin, Qiyue Zou, Raimund J. Ober
2003 conf
ISCAS (3)
Qiyue Zou, Zhiping Lin, Raimund J. Ober
2002 J jnl
Syst. Control. Lett.
Raimund J. Ober
2001 J jnl
SIAM J. Control. Optim.
Bernard Hanzon, Raimund J. Ober
2001 conf
CDC
Viswanath Ramakrishna, Raimund J. Ober, Kathryn L. Flores, Herschel Rabitz
2000 conf
CDC
Viswanath Ramakrishna, Kathryn L. Flores, Herschel Rabitz, Raimund J. Ober
2000 conf
CDC
Raimund J. Ober, Viswanath Ramakrishna, E. Sally Ward
1993 J jnl
Autom.
J. A. Sefton, Raimund J. Ober
1993 J jnl
Autom.
J. A. Sefton, Raimund J. Ober
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"