Raihana Ferdous

26 papers A* 1A 1B 4C 1Journal 5Unranked 13
YearRankTypeTitle / Venue / Authors
2025 conf
ICSTW
Raihana Ferdous, Fitsum Meshesha Kifetew, Davide Prandi, Angelo Susi
2025 J jnl
CoRR
Raihana Ferdous, Fitsum Meshesha Kifetew, Davide Prandi, Angelo Susi
2024 conf
RE Workshops
Raihana Ferdous, Giorgio Oronzo Spagnolo, Alessandro Borselli, Lucio Rota, Alessio Ferrari
2023 conf
SBFT
Raihana Ferdous, Chia-kang Hung, Fitsum Meshesha Kifetew, Davide Prandi, Angelo Susi
2023 J jnl
Sci. Comput. Program.
Raihana Ferdous, Chia-kang Hung, Fitsum Meshesha Kifetew, Davide Prandi, Angelo Susi
2022 J jnl
CoRR
I. S. W. B. Prasetya, Fernando Pastor Ricós, Fitsum Meshesha Kifetew, Davide Prandi, Samira Shirzadehhajimahmood, Tanja E. J. Vos, Premysl Paska, Karel Hovorka, Raihana Ferdous, Angelo Susi, Joseph Davidson
2022 conf
A-TEST@ESEC/SIGSOFT FSE
I. S. W. B. Prasetya, Fernando Pastor Ricós, Fitsum Meshesha Kifetew, Davide Prandi, Samira Shirzadehhajimahmood, Tanja E. J. Vos, Premysl Paska, Karel Hovorka, Raihana Ferdous, Angelo Susi, Joseph Davidson
2022 conf
SBST@ICSE
Raihana Ferdous, Chia-kang Hung, Fitsum Meshesha Kifetew, Davide Prandi, Angelo Susi
2022 A* conf
ASE
Raihana Ferdous, Fitsum Meshesha Kifetew, Davide Prandi, Angelo Susi
2021 B conf
SSBSE
Raihana Ferdous, Fitsum Meshesha Kifetew, Davide Prandi, I. S. W. B. Prasetya, Samira Shirzadehhajimahmood, Angelo Susi
2018 J jnl
CoRR
Raihana Ferdous, Venet Osmani, Oscar Mayora
2017 conf
ICC Workshops
Xi Li, Raihana Ferdous, Carla-Fabiana Chiasserini, Claudio Ettore Casetti, Francesca Moscatelli, Giada Landi, Ramon Casellas, Kei Sakaguchi, Shahzoob Bilal Chundrigar, Ricard Vilalta, Josep Mangues, Andres Garcia-Saavedra, Xavier Costa-Pérez, Leonardo Goratti, Domenico Siracusa
2016 conf
ICN
Davide Kirchner, Raihana Ferdous, Renato Lo Cigno, Leonardo Maccari, Massimo Gallo, Diego Perino, Lorenzo Saino
2015 J jnl
EAI Endorsed Trans. Ambient Syst.
Raihana Ferdous, Silvia Gabrielli, Rosa Maimone
2015 conf
EMBC
Raihana Ferdous, Venet Osmani, Jessica Beltrán-Márquez, Oscar Mayora
2015 conf
PervasiveHealth
Raihana Ferdous, Venet Osmani, Oscar Mayora
2014
Raihana Ferdous
2013 conf
TrustCom/ISPA/IUCC
Raihana Ferdous, Vallipuram Muthukkumarasamy, Elankayer Sithirasenan
2012 B conf
GLOBECOM
Raihana Ferdous, Renato Lo Cigno, Alessandro Zorat
2012 conf
ICMLA (1)
Raihana Ferdous, Renato Lo Cigno, Alessandro Zorat
2011 B conf
TrustCom
Raihana Ferdous, Vallipuram Muthukkumarasamy, Elankayer Sithirasenan
2010 B conf
NSS
Raihana Ferdous, Vallipuram Muthukkumarasamy, Abdul Sattar
2010 conf
AINA Workshops
Raihana Ferdous, Vallipuram Muthukkumarasamy, Abdul Sattar
2010 C conf
CIT
Raihana Ferdous, Vallipuram Muthukkumarasamy, Abdul Sattar
2006 A conf
AAMAS
Timothy William Cleaver, Abdul Sattar, Raihana Ferdous
2004 conf
ISIC
Tong Heng Lee, Kok Kiong Tan, Raihana Ferdous
redb/extractor_registry.py
← Index redb/extractor_registry.py python
"""
Extractor registry with lazy loading by file type.

Groups extractors by file type (pe, elf, macho, apk) and only imports
the relevant group when that file type is first encountered. This avoids
loading heavy dependencies (pefile, lief, androguard, etc.) into workers
that don't need them.
"""
import importlib
import logging

logger = logging.getLogger(__name__)

# Registry: group name -> list of (module_path, class_names)
_REGISTRY = {
    "pe": [
        ("redb.extractors.pe_extractors", [
            "PEFeaturesExtractor",
            "PEImportExtractor",
            "PEResourceExtractor",
            "PEOverlayExtractor",
            "PESectionExtractor",
            "PESignatureExtractor",
            "PEExtraFindings",
            "PEInconstistencyTestsExtractor",
            "PEDotNetExtractor",
        ]),
    ],
    "elf": [
        ("redb.extractors.elf_extractors", [
            "ELFFeaturesExtractor",
            "ELFSegmentExtractor",
            "ELFSectionExtractor",
            "ELFDependencyExtractor",
            "ELFSymbolExtractor",
            "ELFImportExtractor",
            "ELFExportExtractor",
            "ELFRelocationExtractor",
            "ELFNotesExtractor",
        ]),
    ],
    "macho": [
        ("redb.extractors.macho_extractors", [
            "MachOFeaturesExtractor",
            "MachOSegmentExtractor",
            "MachOImportExtractor",
            "MachOExportExtractor",
            "MachODylibExtractor",
            "MachOSignatureExtractor",
        ]),
    ],
    "apk": [
        ("redb.extractors.apk_extractors", [
            "APKFeaturesExtractor",
            "APKManifestExtractor",
            "APKPermissionsExtractor",
            "APKSignatureExtractor",
            "APKDexExtractor",
            "APKResourceExtractor",
            "APKNativeLibExtractor",
            "APKInconsistencyTestsExtractor",
        ]),
        ("redb.extractors.decompiler.DecompileAPK", [
            "DecompileAPK",
        ]),
    ],
    "js": [
        ("redb.extractors.js_extractors", [
            "JSFeaturesExtractor",
            "JSSuspiciousAPIsExtractor",
            "JSStringsExtractor",
            "JSDeobfuscationExtractor",
            "JSContentExtractor",
        ]),
    ],
}

# Map filetype labels (from Magika) to registry group names
FILETYPE_TO_GROUP = {
    "pebin": "pe",
    "elf": "elf",
    "macho": "macho",
    "apk": "apk",
    "javascript": "js",
}

# Cache: group name -> {class_name: class}
_group_cache = {}


def _load_group(group_name):
    """Import all extractors for a group. Cached after first call."""
    if group_name in _group_cache:
        return _group_cache[group_name]

    logger.debug(f"Loading extractor group: {group_name}")

    # Suppress androguard logging before importing APK extractors
    if group_name == "apk":
        from loguru import logger as loguru_logger
        loguru_logger.disable("androguard")

    classes = {}
    for module_path, class_names in _REGISTRY[group_name]:
        mod = importlib.import_module(module_path)
        for name in class_names:
            classes[name] = getattr(mod, name)

    _group_cache[group_name] = classes
    return classes


def get_filetype_modules(filetype):
    """Get the list of format-specific extractor classes for a filetype.

    Returns only analysis extractors (excludes decompilers like DecompileAPK).
    """
    group = FILETYPE_TO_GROUP.get(filetype)
    if not group:
        return []
    classes = _load_group(group)
    return [cls for name, cls in classes.items() if not name.startswith("Decompile")]


def get_extractor_class(name):
    """Look up a single extractor class by name across all groups.

    Checks cached groups first, then loads groups on demand.
    """
    # Check already-loaded groups first
    for group_classes in _group_cache.values():
        if name in group_classes:
            return group_classes[name]

    # Search all groups (triggers lazy loading)
    for group_name in _REGISTRY:
        classes = _load_group(group_name)
        if name in classes:
            return classes[name]

    return None