J. Wu

23 papers B 1C 3Journal 13Unranked 6
YearRankTypeTitle / Venue / Authors
2025 J jnl
Ann. Oper. Res.
Stavroula Yfanti, Menelaos Karanasos, J. Wu, P. Vourvachis
2023 J jnl
J. Parallel Distributed Comput.
Andrei Ignatov, Irina Maslova, Mikhail Posypkin, W. Yang, J. Wu
2019 conf
VLSI Circuits
Kevin Garello, Farrukh Yasin, Hubert Hody, Sebastien Couet, Laurent Souriau, Shamin H. Sharifi, Johan Swerts, Robert Carpenter, Sidharth Rao, Wonsub Kim, J. Wu, K. K. V. Sethu, M. Pak, N. Jossart, D. Crotti, Arnaud Furnémont, Gouri Sankar Kar
2018 conf
ECOC
X. Zeng, Y. Li, L. Feng, S. Wu, C. Yang, W. Li, W. Tong, J. Wu
2015 C conf
ETFA
J. Wu, X. Li, S. Xu, Meng Joo Er, L. Wei, W. F. Lu
2015 J jnl
IEEE Trans. Aerosp. Electron. Syst.
Jin Liu, J. C. Fang, Z. W. Kang, J. Wu, X. L. Ning
2013 J jnl
Comput. Geom.
Jesús A. De Loera, Brandon E. Dutra, Matthias Köppe, S. Moreinis, G. Pinto, J. Wu
2012 J jnl
IET Commun.
Y. Zhan, J. Wu, J. Lu
2011 J jnl
Secur. Commun. Networks
A. Srinivasan, F. Li, J. Wu
2011 J jnl
ACM Commun. Comput. Algebra
Jesús A. De Loera, Brandon E. Dutra, Matthias Köppe, S. Moreinis, G. Pinto, J. Wu
2009 J jnl
Expert Syst. Appl.
Guojun Gan, J. Wu, Z. Yang
2008 conf
ISCSLP
Z. Y. He, Z. G. Wang, W. Li, J. Wu
2008 J jnl
Int. J. Syst. Sci.
Changzheng He, J. Wu, J.-A. Müller
2007 J jnl
Control. Intell. Syst.
J. Wu, T. Ishihara, Q. M. Jonathan Wu
2007 conf
SCSC
Jimena L. Bastos, J. Wu, Noel N. Schulz, R. Liu, Antonello Monti
2007 J jnl
IEEE Trans. Commun.
J. Wu, H. Lee
2003 J jnl
Microelectron. J.
Z. G. Wang, J. Wu
2003 C conf
IGARSS
Baoyu He, J. Wu
2003 conf
DISCEX (2)
Ranga S. Ramanujan, Maher Kaddoura, J. Wu, C. Sanders, K. Millikin
2002 J jnl
Syst. Control. Lett.
Sheng Chen, J. Wu, G. Li
1998 conf
CICC
Richard C. Foss, J. Wu, J. Benzreba, G. Valcourt, P. Vlasenko, Y. Wang, Peter Gillingham
1994 B conf
PIMRC
M. J. Krapels, R. Prasad, J. Wu, A. Hamid Aghvami
1993 C conf
DEXA
J. Wu, L. Harbird
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