H. Choi

18 papers C 1Misc 2Journal 7Unranked 8
YearRankTypeTitle / Venue / Authors
2025 J jnl
Comput. Aided Civ. Infrastructure Eng.
Y. Ma, S. Park, A. Bae, K. Kwon, H. Choi
2025 J jnl
Comput. Aided Civ. Infrastructure Eng.
K. Kwon, Y. Yeom, Y. J. Shin, A. Bae, H. Choi
2021 conf
IISA
Chulhee Lee, Guiwon Seo, H. Choi, Sungwook Youn, K. Lee
2020 conf
IISA
Chulhee Lee, Guiwon Seo, H. Choi, Sungwook Youn, K. Lee
2019 Misc conf
IVCNZ
A. Abduraimjonov, H. Choi, Jae-Pil Ko
2015 J jnl
Database J. Biol. Databases Curation
Jose M. Villaveces, Rafael C. Jiménez, Pablo Porras, Noemi del-Toro, Margaret J. Duesbury, Marine Dumousseau, Sandra E. Orchard, H. Choi, Peipei Ping, N. C. Zong, Manor Askenazi, Bianca Habermann, Henning Hermjakob
2015 conf
3DUI
Charilaos Papadopoulos, H. Choi, J. Sinha, Kiwon Yun, Arie E. Kaufman, Dimitris Samaras, Bireswar Laha
2011 J jnl
IEEE Trans. Inf. Forensics Secur.
H. Choi, K. Choi, J. Kim
2006 J jnl
J. Oper. Res. Soc.
So Young Sohn, H. Choi
2005 J jnl
Microelectron. J.
H. Choi, Eui Kwan Koh, Yong Min Cho, Junggeun Jin, Dongjin Byun, Minjoong Yoon
2004 Misc conf
ICISC
Youngchan Han, Choonwoo Ryu, Jihyun Moon, Hakil Kim, H. Choi
2002 conf
Communications, Internet, and Information Technology
Y. Lee, H. Choi, J. Na, S. Sohn
1999 J jnl
IEEE J. Solid State Circuits
Changhyun Kim, Kye-Hyun Kyung, W.-P. Jeong, J.-S. Kim, Byung-Sik Moon, Joon-Wan Chai, S.-M. Yim, Jung-Hwan Choi, K.-H. Han, C.-J. Park, Hong-Sun Hwang, H. Choi, Sung-Burn Cho, Clemenz L. Portmann, Soo-In Cho
1997 conf
ICONIP (2)
J. Lee, J. Chang, H. Sung, H. Choi
1997 conf
ICONIP (1)
D. Han, S. Hong, K. Park, H. Choi
1997 conf
ICONIP (2)
S. Kim, H. Sung, K. Park, H. Choi
1997 conf
ICONIP (2)
T. Koo, J. Jeon, J. Kim, H. Choi
1991 C conf
ISMIS
Barry Richards, Yuejun Jiang, H. Choi
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