Vincent Frick

22 papers C 1Journal 3Unranked 18
YearRankTypeTitle / Venue / Authors
2026 J jnl
IEEE Access
Milad Akrami, Ehsan Jamshidpour, Matheepot Phattanasak, Serge Pierfederici, Vincent Frick
2024 J jnl
IEEE Access
Milad Akrami, Ehsan Jamshidpour, Serge Pierfederici, Vincent Frick
2024 J jnl
IEEE Trans. Circuits Syst. II Express Briefs
Lakhdar Mamouri, Tedjani Mesbahi, Vincent Frick
2023 conf
NEWCAS
Lakhdar Mamouri, Vincent Frick
2021 conf
NEWCAS
Lakhdar Mamouri, Vincent Frick, Tedjani Mesbahi, Liana Wassouf, Ehsan Jamshidpour
2020 conf
NEWCAS
Wassim Khaddour, Foudil Dadouche, Wilfried Uhring, Vincent Frick, Morgan Madec
2020 C conf
ISCAS
Tobi Delbruck, Ibrahim Abe M. Elfadel, Shahzad Muzaffar, Germain Haessig, Bo Wang, Amine Bermak, Rui Graca, Luis A. Camuñas-Mesa, Bathiya Senevirathna, Pamela Abshire, Bernabé Linares-Barranco, Saeed Afshar, Shih-Chii Liu, Runchun Mark Wang, Piotr Dudek, Stephen J. Carey, José M. de la Rosa, Marc Dandin, Sheung Lu, Vincent Frick, Teresa Serrano-Gotarredona, Paula López, Melika Payvand, Advait Madhavan, Eric R. Fossum, Juan Camilo Vasquez Tieck, Ian Williams, Yan Liu, Timothy G. Constandinou, Alexander Serb, Ricardo Carmona-Galán, Robert Nawrocki, Walter D. Leon-Salas
2020 conf
NEWCAS
Wassim Khaddour, Wilfried Uhring, Foudil Dadouche, Vincent Frick, Morgan Madec
2019 conf
IEEE SENSORS
Laurent Osberger, Jean-Baptiste Schell, Vincent Frick
2017 conf
NEWCAS
Laurent Osberger, Jean-Baptiste Schell, Vincent Frick
2016 conf
ICECS
Vincent Frick, Patrick Leveque, Ugur Soysal, Thomas Heiser
2015 conf
NEWCAS
Laurent Osberger, Vincent Frick, Morgan Madec, Luc Hébrard
2014 conf
ICECS
Laurent Osberger, Vincent Frick
2014 conf
ICECS
Norbert Dumas, Vincent Frick, Jerome Heitz, Christophe Lallement, Luc Hébrard
2010 conf
ICECS
Nicolas Pillet, Mohsen Ayachi, Vincent Frick, Hervé Berviller, Jacques Felblinger, Jean-Philippe Blonde
2010 conf
ICECS
Vincent Frick, Huy Binh Nguyen, Luc Hébrard
2007 conf
ICECS
Vincent Frick, Hervé Berviller, Joris Pascal, Philippe Bougeot, Jean-Philippe Blonde, Julien Oster, Jacques Felblinger
2007 conf
ReCoSoC
Hervé Berviller, Vincent Frick, Philippe Bougeot, Jean-Philippe Blonde, Julien Oster, Jacques Felblinger
2006 conf
ICECS
Vincent Frick, Joris Pascal, Luc Hébrard, Jean-Philippe Blonde
2002 conf
ICECS
Jean-Baptiste Kammerer, Luc Hébrard, Vincent Frick, Philippe Poure, Francis Braun
2002 conf
ICECS
Vincent Frick, Philippe Poure, Luc Hébrard, Freddy Anstotz, Francis Braun
2001 conf
ICECS
Vincent Frick, Luc Hébrard, Philippe Poure, Francis Braun
redb/extractors/pe_extractors/pe_overlay.py
← Index redb/extractors/pe_extractors/pe_overlay.py python
from hashlib import md5, sha1, sha256
import inspect
from datetime import datetime, timezone
from typing import Any

import magic
from magika import Magika

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


class PEOverlayExtractor(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_overlay"
        self.log.debug(inspect.currentframe().f_code.co_name)

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

    def _extract_pe_overlay(self):
        self.log.debug(inspect.currentframe().f_code.co_name)
        overlay = self.pe.get_overlay()
        if overlay:
            return PEOverlay(
                _id=sha256(overlay).hexdigest(),
                overlay_size=len(overlay),
                overlay_entropy=self.calculate_entropy(overlay),
                overlay_offset=self.pe.get_overlay_data_start_offset(),
                overlay_mimetype=magic.from_buffer(overlay, mime=True),
                overlay_type=magic.from_buffer(overlay),
                overlay_magika=Magika().identify_bytes(overlay).output.ct_label,
                overlay_sha256=sha256(overlay).hexdigest(),
                overlay_sha1=sha1(overlay).hexdigest(),
                overlay_md5=md5(overlay).hexdigest(),
            )
        return None

    def extract(self):
        try:
            self.log.debug(inspect.currentframe().f_code.co_name)
            overlay = self._extract_pe_overlay()
            # self.export_to_elastic([overlay])  # Let the exporters handle this
            return overlay
        except Exception as e:
            self.log.error(f"Error extracting PE overlay: {e}")
            return None

    def prepare_export_data(self, exporter_type: str) -> Any:
        if exporter_type == "ElasticsearchExporter":
            return self.extract()
        elif exporter_type == "ClickHouseExporter":
            overlay = self.extract()
            if overlay is None:
                return None
            
            data = []
            current_time = datetime.now(timezone.utc)
            
            data.append([
                self.sha256,              # sha256
                self.md5,                 # md5
                self.sha1,                # sha1
                overlay.overlay_size,     # overlay_size
                overlay.overlay_entropy,  # overlay_entropy
                overlay.overlay_offset,   # overlay_offset
                overlay.overlay_mimetype, # overlay_mimetype
                overlay.overlay_type,     # overlay_type
                overlay.overlay_magika,   # overlay_magika
                overlay.overlay_sha256,   # overlay_sha256
                overlay.overlay_sha1,     # overlay_sha1
                overlay.overlay_md5,      # overlay_md5
                current_time             # analysis_date
            ])
            
            column_names = [
                'sha256', 'md5', 'sha1', 'overlay_size', 'overlay_entropy',
                'overlay_offset', 'overlay_mimetype', 'overlay_type', 'overlay_magika',
                'overlay_sha256', 'overlay_sha1', 'overlay_md5',
                'analysis_date'
            ]
            
            if not data:
                return None

            column_type_names = [
                'FixedString(64)', 'FixedString(32)', 'FixedString(40)',
                'UInt64', 'Float64', 'UInt64',
                'LowCardinality(String)', 'LowCardinality(String)', 'LowCardinality(String)',
                'FixedString(64)', 'FixedString(40)', 'FixedString(32)',
                'DateTime64(3, \'UTC\')'
            ]

            return (data, column_names, column_type_names)

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