Isaac Weiss

48 papers A* 6A 1B 4Journal 25Unranked 11
YearRankTypeTitle / Venue / Authors
2019 J jnl
CoRR
Isaac Weiss
2014 ch.
Computer Vision, A Reference Guide
Isaac Weiss
2007 J jnl
Int. J. Comput. Vis.
Yang Ran, Isaac Weiss, Qinfen Zheng, Larry S. Davis
2005 conf
ICIP (2)
Yang Ran, Qinfen Zheng, Isaac Weiss, Larry S. Davis, Wael Abd-Almageed, Liang Zhao
2005 J jnl
IEEE Trans. Pattern Anal. Mach. Intell.
Isaac Weiss, Manjit Ray
2005 conf
ICASSP (2)
Yang Ran, Qinfen Zheng, Isaac Weiss, Larry S. Davis
2004 conf
CVPR Workshops
Yang Ran, Isaac Weiss, Qinfen Zheng, Larry S. Davis
2003 J jnl
Pattern Recognit.
Prabir Bhattacharya, Azriel Rosenfeld, Isaac Weiss
2002 J jnl
Pattern Recognit. Lett.
Prabir Bhattacharya, Azriel Rosenfeld, Isaac Weiss
2001 J jnl
Pattern Recognit.
Nathan S. Netanyahu, Isaac Weiss
2001 J jnl
IEEE Trans. Pattern Anal. Mach. Intell.
Isaac Weiss, Manjit Ray
2000 conf
Digital and Image Geometry
Prabir Bhattacharya, Azriel Rosenfeld, Isaac Weiss
2000 J jnl
J. Math. Imaging Vis.
Daniel Keren, Ehud Rivlin, Ilan Shimshoni, Isaac Weiss
2000 B conf
ICPR
Isaac Weiss, Manjit Ray
1999 J jnl
J. Math. Imaging Vis.
Isaac Weiss
1998 conf
ECCV (2)
Isaac Weiss, Manjit Ray
1998 A* conf
ICRA
Daniel Keren, Ehud Rivlin, Ilan Shimshoni, Isaac Weiss
1998 conf
ICIP (3)
Daniel Keren, Ehud Rivlin, Ilan Shimshoni, Isaac Weiss
1998 B conf
ICPR
Gísli R. Hjaltason, Manjit Ray, Hanan Samet, Isaac Weiss
1997 J jnl
Comput. Vis. Image Underst.
Ehud Rivlin, Isaac Weiss
1997 J jnl
Image Vis. Comput.
Alfred M. Bruckstein, Ehud Rivlin, Isaac Weiss
1997 J jnl
Comput. Vis. Image Underst.
Zygmunt Pizlo, Azriel Rosenfeld, Isaac Weiss
1997 J jnl
Comput. Vis. Image Underst.
Zygmunt Pizlo, Azriel Rosenfeld, Isaac Weiss
1996 B conf
ICPR
Isaac Weiss
1996 J jnl
Mach. Vis. Appl.
David S. Doermann, Ehud Rivlin, Isaac Weiss
1996 B conf
ICPR
Alfred M. Bruckstein, Ehud Rivlin, Isaac Weiss
1995 J jnl
Pattern Recognit. Lett.
Azriel Rosenfeld, Isaac Weiss
1995 J jnl
IEEE Trans. Pattern Anal. Mach. Intell.
Ehud Rivlin, Isaac Weiss
1995 J jnl
Ann. Math. Artif. Intell.
Isaac Weiss
1994 conf
ICPR (2)
Nathan S. Netanyahu, Isaac Weiss
1994 J jnl
IEEE Trans. Pattern Anal. Mach. Intell.
Isaac Weiss
1993 J jnl
Int. J. Comput. Vis.
Isaac Weiss
1993 conf
Applications of Invariance in Computer Vision
Isaac Weiss
1993 A conf
ICDAR
David S. Doermann, Ehud Rivlin, Isaac Weiss
1993 J jnl
IEEE Trans. Pattern Anal. Mach. Intell.
Isaac Weiss
1993 A* conf
CVPR
Ehud Rivlin, Isaac Weiss
1992 conf
ICPR (3)
Isaac Weiss
1992 A* conf
CVPR
Isaac Weiss
1992 conf
ICPR (1)
Peter Meer, Isaac Weiss
1992 J jnl
J. Vis. Commun. Image Represent.
Peter Meer, Isaac Weiss
1990 J jnl
IEEE Trans. Pattern Anal. Mach. Intell.
Isaac Weiss
1990 conf
ICPR (2)
Peter Meer, Isaac Weiss
1989 J jnl
IEEE Trans. Pattern Anal. Mach. Intell.
Isaac Weiss
1988 J jnl
Comput. Vis. Graph. Image Process.
Isaac Weiss
1988 J jnl
Int. J. Comput. Vis.
John Aloimonos, Isaac Weiss, Amit Bandyopadhyay
1988 A* conf
CVPR
Isaac Weiss
1988 A* conf
CVPR
Isaac Weiss
1985 A* conf
IJCAI
Isaac Weiss
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"