Naser Ezzati-Jivan

80 papers A* 1A 4B 10C 7Journal 29Unranked 29
YearRankTypeTitle / Venue / Authors
2026 B conf
ICPE
Morteza Noferesti, Mahsa Panahandeh, Naser Ezzati-Jivan
2026 J jnl
IEEE Trans. Software Eng.
Mahsa Panahandeh, Naser Ezzati-Jivan, Abdelwahab Hamou-Lhadj, James Miller
2026 J jnl
CoRR
Alireza Ezaz, Ghazal Khodabandeh, Majid Babaei, Naser Ezzati-Jivan
2025 A conf
ICPC
Issam Sedki, Abdelwahab Hamou-Lhadj, Otmane Aït Mohamed, Naser Ezzati-Jivan
2025 A* conf
ICSE
Madeline Janecek, Naser Ezzati-Jivan, Abdelwahab Hamou-Lhadj
2025 A conf
ICSME
Maryam Ekhlasi, Arnaud Fiorini, Michel R. Dagenais, Naser Ezzati-Jivan, Maxime Lamothe
2025 conf
AMCIS
Basil Syed, Daniel Arana Charlebois, Naser Ezzati-Jivan, Leila Tahmooresnejad, Anteneh Ayanso
2025 J jnl
CoRR
François Belias, Naser Ezzati-Jivan, Foutse Khomh
2025 B conf
ICPE
Tom Wallace, Beatrice M. Ombuki-Berman, Naser Ezzati-Jivan
2025 J jnl
CoRR
Tom Wallace, Naser Ezzati-Jivan, Beatrice M. Ombuki-Berman
2025 J jnl
CoRR
Saeid Jamshidi, Kawser Wazed Nafi, Arghavan Moradi Dakhel, Negar Shahabi, Foutse Khomh, Naser Ezzati-Jivan
2025 B conf
ICPE
Ghazal Khodabandeh, Alireza Ezaz, Majid Babaei, Naser Ezzati-Jivan
2025 J jnl
CoRR
Ghazal Khodabandeh, Alireza Ezaz, Majid Babaei, Naser Ezzati-Jivan
2024 conf
ICPE (Companion)
Marios-Eleftherios Fokaefs, Filipe Oliveira, Naser Ezzati-Jivan
2024 J jnl
Softw. Impacts
Yue Guan, Morteza Noferesti, Naser Ezzati-Jivan
2024 B conf
ICPE
Amirmahdi Khosravi Tabrizi, Naser Ezzati-Jivan, François Tetreault
2024 conf
ICPE (Companion)
Alireza Ezaz, Ghazal Khodabandeh, Naser Ezzati-Jivan
2024 B conf
IEEE Big Data
Tong Zhang, Sarwat Islam Dipanzan, Leila Tahmooresnejad, Naser Ezzati-Jivan
2024 conf
Canadian AI
Amir Haghshenas, Naser Ezzati-Jivan, Michel R. Dagenais
2024 conf
ICPE (Companion)
Mahsa Panahandeh, Naser Ezzati-Jivan, Abdelwahab Hamou-Lhadj, James Miller
2024 conf
ICSE Companion
Issam Sedki, Abdelwahab Hamou-Lhadj, Otmane Aït Mohamed, Naser Ezzati-Jivan, Mohammed A. Shehab
2024 conf
ICPE (Companion)
Mahsa Panahandeh, Naser Ezzati-Jivan, Abdelwahab Hamou-Lhadj, James Miller
2024 J jnl
J. Syst. Softw.
Morteza Noferesti, Naser Ezzati-Jivan
2024 conf
ICPE (Companion)
Ghazal Khodabandeh, Alireza Ezaz, Naser Ezzati-Jivan
2024 conf
ACL (1)
Brendan Park, Madeline Janecek, Naser Ezzati-Jivan, Yifeng Li, Ali Emami
2024 J jnl
CoRR
Brendan Park, Madeline Janecek, Naser Ezzati-Jivan, Yifeng Li, Ali Emami
2024 conf
NIER@ICSE
Kasra Darvishi, Morteza Noferesti, Naser Ezzati-Jivan
2023 B conf
IEEE Big Data
Pranjal Chakraborty, Naser Ezzati-Jivan, Sayed Vahid Azhari, François Tetreault
2023 conf
Middleware Industry
Yue Guan, Morteza Noferesti, Naser Ezzati-Jivan
2023 B conf
TrustCom
Raghav Bhardwaj, Morteza Noferesti, Madeline Janecek, Naser Ezzati-Jivan
2023 conf
ICPE (Companion)
Tom Wallace, Beatrice M. Ombuki-Berman, Naser Ezzati-Jivan
2023 C conf
SERA
Mohammed Adib Khan, Naser Ezzati-Jivan
2023 C conf
SCAM
Mohammed Adib Khan, Morteza Noferesti, Naser Ezzati-Jivan
2023 conf
ICPE (Companion)
Amirmahdi Khosravi Tabrizi, Naser Ezzati-Jivan
2023 A conf
ICPC
Issam Sedki, Abdelwahab Hamou-Lhadj, Otmane Aït Mohamed, Naser Ezzati-Jivan
2023 conf
ICPE (Companion)
Madeline Janecek, Sneh Patel, Naser Ezzati-Jivan
2022 J jnl
CoRR
Sneh Patel, Brendan Park, Naser Ezzati-Jivan, Quentin Fournier
2022 conf
Middleware Demos/Posters
Yue Guan, Naser Ezzati-Jivan
2022 J jnl
Concurr. Comput. Pract. Exp.
Raphaël Beamonte, Naser Ezzati-Jivan, Michel R. Dagenais
2022 C conf
SCAM
Riley VanDonge, Naser Ezzati-Jivan
2022 A conf
ICPC
Madeline Janecek, Naser Ezzati-Jivan, Abdelwahab Hamou-Lhadj
2022 J jnl
Perform. Evaluation
Majid Rezazadeh, Naser Ezzati-Jivan, Seyed Vahid Azhari, Michel R. Dagenais
2022 B conf
IC2E
Riley VanDonge, Naser Ezzati-Jivan
2021 C conf
QRS
Sneh Patel, Brendan Park, Naser Ezzati-Jivan, Quentin Fournier
2021 J jnl
Int. J. Parallel Program.
Raphaël Beamonte, Naser Ezzati-Jivan, Michel R. Dagenais
2021 J jnl
CoRR
Quentin Fournier, Naser Ezzati-Jivan, Daniel Aloise, Michel R. Dagenais
2021 B conf
IC2E
Madeline Janecek, Naser Ezzati-Jivan, Seyed Vahid Azhari
2021 J jnl
CoRR
Naser Ezzati-Jivan, Quentin Fournier, Michel R. Dagenais, Abdelwahab Hamou-Lhadj
2021 J jnl
Sensors
Yonni Chen Kuang Piao, Naser Ezzati-Jivan, Michel R. Dagenais
2021 conf
IEEE BigData
Seyed Vahid Azhari, Simar Bhamra, Naser Ezzati-Jivan, François Tetreault
2021 C conf
ISNCC
Simon Delisle, Naser Ezzati-Jivan, Michel R. Dagenais
2021 conf
SysCon
Yue Guan, Naser Ezzati-Jivan
2021 conf
SysCon
Francis Giraldeau, Naser Ezzati-Jivan, Michel R. Dagenais
2021 J jnl
J. Hardw. Syst. Secur.
Hossein Abbasi, Naser Ezzati-Jivan, Martine Bellaïche, Chamseddine Talhi, Michel R. Dagenais
2020 conf
iThings/GreenCom/CPSCom/SmartData/Cybermatics
Yves J. Bationo, Naser Ezzati-Jivan, Evan Galea, Michel R. Dagenais
2020 C conf
SCAM
Naser Ezzati-Jivan, Quentin Fournier, Michel R. Dagenais, Abdelwahab Hamou-Lhadj
2020 J jnl
Softwaretechnik-Trends
Ji Wang, Naser Ezzati-Jivan
2020 conf
ISSRE Workshops
Majid Rezazadeh, Naser Ezzati-Jivan, Evan Galea, Michel R. Dagenais
2020 J jnl
J. Cloud Comput.
Robin Gassais, Naser Ezzati-Jivan, Jose M. Fernandez, Daniel Aloise, Michel R. Dagenais
2019 conf
ISSRE Workshops
Quentin Fournier, Naser Ezzati-Jivan, Daniel Aloise, Michel R. Dagenais
2019 J jnl
Int. J. Parallel Program.
Fabien Reumont-Locke, Naser Ezzati-Jivan, Michel R. Dagenais
2019 J jnl
J. Syst. Archit.
Didier Nadeau, Naser Ezzati-Jivan, Michel R. Dagenais
2019 J jnl
J. Hardw. Syst. Secur.
Hossein Abbasi, Naser Ezzati-Jivan, Martine Bellaïche, Chamseddine Talhi, Michel R. Dagenais
2018 C conf
ICCE
Yves J. Bationo, Naser Ezzati-Jivan, Michel R. Dagenais
2018 conf
SysCon
Naser Ezzati-Jivan, Genevieve Bastien, Michel R. Dagenais
2017 J jnl
Softw. Qual. J.
Florian Wininger, Naser Ezzati-Jivan, Michel R. Dagenais
2017 conf
HPEC
Houssem Daoud, Naser Ezzati-Jivan, Michel R. Dagenais
2017 J jnl
Concurr. Comput. Pract. Exp.
Adrien Vergé, Naser Ezzati-Jivan, Michel R. Dagenais
2017 J jnl
Concurr. Comput. Pract. Exp.
Naser Ezzati-Jivan, Michel R. Dagenais
2016 conf
BigData Congress
Loic Prieur-Drevon, Raphaël Beamonte, Naser Ezzati-Jivan, Michel R. Dagenais
2016 conf
FiCloud Workshops
Cédric Biancheri, Naser Ezzati-Jivan, Michel R. Dagenais
2015 conf
BigData Congress
Kadjo Kouame, Naser Ezzati-Jivan, Michel R. Dagenais
2015 J jnl
Concurr. Comput. Pract. Exp.
Naser Ezzati-Jivan, Michel R. Dagenais
2014 conf
CCECE
Naser Ezzati-Jivan, Michel R. Dagenais
2013 J jnl
ACM SIGOPS Oper. Syst. Rev.
Naser Ezzati-Jivan, Michel R. Dagenais
2013 B conf
RV
Alexandre Montplaisir, Naser Ezzati-Jivan, Florian Wininger, Michel R. Dagenais
2013 conf
CCECE
Naser Ezzati-Jivan, Alireza Shameli-Sendi, Michel R. Dagenais
2013 conf
SocialCom
A. Montplaisir-Goncalves, Naser Ezzati-Jivan, Florian Wininger, Michel R. Dagenais
2012 J jnl
Adv. Softw. Eng.
Naser Ezzati-Jivan, Michel R. Dagenais
2010 J jnl
Wirel. Sens. Netw.
Masoume Jabbarifar, Alireza Shameli-Sendi, Alireza Sadighian, Naser Ezzati-Jivan, Michel R. Dagenais
tests/scripts/test_macho_extractors_local.py
← Index tests/scripts/test_macho_extractors_local.py python
#!/usr/bin/env python3
"""
Local MachO extractors test - test actual extractors without server connections
"""

import sys
import os
import logging
import hashlib
from datetime import datetime, timezone
from typing import Dict, Any, Optional
from unittest.mock import Mock, patch

# Add the redb directory to the path so we can import the extractors
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'redb'))

# Mock settings to avoid database connections
with patch.dict('os.environ', {'REDB_ENV': 'test'}):
    # Import the actual extractors
    from redb.extractors.macho_extractors.macho_features import MachOFeaturesExtractor
    from redb.extractors.macho_extractors.macho_segments import MachOSegmentExtractor
    from redb.extractors.macho_extractors.macho_imports import MachOImportExtractor
    from redb.extractors.macho_extractors.macho_exports import MachOExportExtractor
    from redb.extractors.macho_extractors.macho_dylibs import MachODylibExtractor
    from redb.extractors.macho_extractors.macho_signature import MachOSignatureExtractor
    from redb.extractors.macho_extractors.macho_universal import MachOUniversalExtractor

def setup_logging():
    """Setup basic logging configuration."""
    logging.basicConfig(
        level=logging.INFO,
        format='%(asctime)s - %(levelname)s - %(message)s'
    )
    return logging.getLogger(__name__)

class MockLogger:
    """Mock logger for testing without RedB dependencies."""
    def __init__(self):
        self.logger = logging.getLogger(__name__)
    
    def debug(self, msg):
        self.logger.debug(msg)
    
    def info(self, msg):
        self.logger.info(msg)
    
    def warning(self, msg):
        self.logger.warning(msg)
    
    def error(self, msg):
        self.logger.error(msg)

class MockExporter:
    """Mock exporter that does nothing."""
    def export(self, data):
        pass

def create_mock_extractor(extractor_class, filepath):
    """Create an extractor instance with mocked dependencies."""
    log = MockLogger()
    
    # Mock the exporters to avoid database connections
    mock_exporters = [MockExporter()]
    
    # Create the extractor with mocked dependencies
    extractor = extractor_class(
        filepath=filepath,
        log=log,
        exporters=mock_exporters,
        index_prefix="test",
        elastic_index="test_macho",
        known_benign=False,
        known_malicious=False
    )
    
    return extractor

def test_extractor(extractor_class, filepath, extractor_name):
    """Test a specific extractor."""
    log = setup_logging()
    log.info(f"Testing {extractor_name}...")
    
    try:
        # Create the extractor with mocked dependencies
        extractor = create_mock_extractor(extractor_class, filepath)
        
        if not extractor.macho:
            log.error(f"{extractor_name}: No MachO object created")
            return False

        # Test the actual extract method
        result = extractor.extract()
        
        if result:
            log.info(f"{extractor_name}: Successfully extracted data")
            print(f"\n{'='*60}")
            print(f"=== {extractor_name.upper()} RESULTS ===")
            print(f"{'='*60}")
            
            if isinstance(result, list):
                print(f"📊 Extracted {len(result)} items")
                print()
                for i, item in enumerate(result):
                    print(f"📦 Item {i+1}:")
                    print(f"   {'─'*40}")
                    # Handle dataclass objects in lists
                    if hasattr(item, '__dataclass_fields__'):
                        from dataclasses import asdict
                        item_dict = asdict(item)
                        for key, value in item_dict.items():
                            if isinstance(value, (list, dict)):
                                if isinstance(value, list):
                                    print(f"   🔹 {key}: List with {len(value)} items")
                                    print(f"      {value}")
                                elif isinstance(value, dict):
                                    print(f"   🔹 {key}: Dict with {len(value)} keys")
                                    for k, v in value.items():
                                        print(f"      {k}: {v}")
                            else:
                                print(f"   🔹 {key}: {value}")
                    else:
                        # Regular dict
                        for key, value in item.items():
                            if isinstance(value, (list, dict)):
                                if isinstance(value, list):
                                    print(f"   🔹 {key}: List with {len(value)} items")
                                    print(f"      {value}")
                                elif isinstance(value, dict):
                                    print(f"   🔹 {key}: Dict with {len(value)} keys")
                                    for k, v in value.items():
                                        print(f"      {k}: {v}")
                            else:
                                print(f"   🔹 {key}: {value}")
                    print()
            else:
                print("📊 Extracted data:")
                print()
                # Handle dataclass objects
                if hasattr(result, '__dataclass_fields__'):
                    # It's a dataclass, use dataclasses.asdict
                    from dataclasses import asdict
                    result_dict = asdict(result)
                    for key, value in result_dict.items():
                        if isinstance(value, (list, dict)):
                            if isinstance(value, list):
                                print(f"🔹 {key}: List with {len(value)} items")
                                print(f"   {value}")
                            elif isinstance(value, dict):
                                print(f"🔹 {key}: Dict with {len(value)} keys")
                                for k, v in value.items():
                                    print(f"   {k}: {v}")
                        else:
                            print(f"🔹 {key}: {value}")
                        print()
                else:
                    # It's a regular dict
                    for key, value in result.items():
                        if isinstance(value, (list, dict)):
                            if isinstance(value, list):
                                print(f"🔹 {key}: List with {len(value)} items")
                                print(f"   {value}")
                            elif isinstance(value, dict):
                                print(f"🔹 {key}: Dict with {len(value)} keys")
                                for k, v in value.items():
                                    print(f"   {k}: {v}")
                        else:
                            print(f"🔹 {key}: {value}")
                        print()
        else:
            log.warning(f"{extractor_name}: No data extracted")
            print(f"\n❌ {extractor_name}: No data extracted")
        
        return True
        
    except Exception as e:
        log.error(f"{extractor_name}: Error during extraction: {e}")
        import traceback
        traceback.print_exc()
        return False

def main():
    """Main function."""
    if len(sys.argv) < 2:
        print("Usage: python test_macho_extractors_local.py <macho_file> [extractor_name]")
        print("\nAvailable extractors:")
        print("  features    - Basic MachO header and metadata")
        print("  segments    - Segment information and analysis")
        print("  imports     - Imported functions and libraries")
        print("  exports     - Exported symbols")
        print("  dylibs      - Dynamic library dependencies")
        print("  signature   - Code signing information")
        print("  universal   - FAT/Universal binary information")
        print("  all         - Test all extractors")
        sys.exit(1)
    
    filepath = sys.argv[1]
    extractor_name = sys.argv[2] if len(sys.argv) > 2 else "all"
    
    if not os.path.exists(filepath):
        print(f"File not found: {filepath}")
        sys.exit(1)
    
    # Define extractors
    extractors = {
        'features': (MachOFeaturesExtractor, "MachO Features"),
        'segments': (MachOSegmentExtractor, "MachO Segments"),
        'imports': (MachOImportExtractor, "MachO Imports"),
        'exports': (MachOExportExtractor, "MachO Exports"),
        'dylibs': (MachODylibExtractor, "MachO Dylibs"),
        'signature': (MachOSignatureExtractor, "MachO Code Signature"),
        'universal': (MachOUniversalExtractor, "MachO Universal/FAT"),
    }
    
    if extractor_name == "all":
        print(f"Testing all extractors with file: {filepath}")
        success_count = 0
        for name, (extractor_class, display_name) in extractors.items():
            if test_extractor(extractor_class, filepath, display_name):
                success_count += 1
            print("-" * 50)
        
        print(f"\n✅ {success_count}/{len(extractors)} extractors completed successfully")
        
    elif extractor_name in extractors:
        extractor_class, display_name = extractors[extractor_name]
        success = test_extractor(extractor_class, filepath, display_name)
        
        if success:
            print(f"\n✅ {display_name} testing completed successfully")
        else:
            print(f"\n❌ {display_name} testing failed")
            sys.exit(1)
    else:
        print(f"Unknown extractor: {extractor_name}")
        print("Available extractors:", ", ".join(extractors.keys()) + ", all")
        sys.exit(1)

if __name__ == "__main__":
    main()