Xiao Chen

59 papers A* 6A 4B 3Misc 1Journal 35Unranked 9
YearRankTypeTitle / Venue / Authors
2026 J jnl
CoRR
Feifei Li, Xiao Chen, Xiaoyu Sun, Xi Xiao, Shaohua Wang, Yong Ding, Sheng Wen, Qing Li
2026 J jnl
Empir. Softw. Eng.
Tao Tan, Xiao Chen
2026 J jnl
IEEE Trans. Veh. Technol.
Wenjun Zhang, Xinlu Mao, Xiao Chen, Chao Zhu
2025 J jnl
Autom. Softw. Eng.
Yonghui Liu, Xiao Chen, Yue Liu, Pingfan Kong, Tegawendé F. Bissyandé, Jacques Klein, Xiaoyu Sun, Li Li, Chunyang Chen, John C. Grundy
2025 J jnl
CoRR
Haowei Quan, Junjie Wang, Xinzhe Li, Terry Yue Zhuo, Xiao Chen, Xiaoning Du
2025 conf
SIGSOFT FSE Companion
Tianming Liu, Jiapeng Deng, Yanjie Zhao, Xiao Chen, Xiaoning Du, Li Li, Haoyu Wang
2025 J jnl
ACM Trans. Softw. Eng. Methodol.
Yonghui Liu, Xiao Chen, Pei Liu, Jordan Samhi, John C. Grundy, Chunyang Chen, Li Li
2025 J jnl
IEEE Trans. Aerosp. Electron. Syst.
Xiao Chen, Zenghao Hu, Chao Zhu, Sheng Ke, Tianhao Zhao, Jianwei Sun, Xin Li, Heng Liu
2025 J jnl
ACM Trans. Softw. Eng. Methodol.
Daihang Chen, Yonghui Liu, Mingyi Zhou, Yanjie Zhao, Haoyu Wang, Shuai Wang, Xiao Chen, Tegawendé F. Bissyandé, Jacques Klein, Li Li
2025 J jnl
IEEE CAA J. Autom. Sinica
Wei Zhou, Xiaogang Zhu, Qing-Long Han, Lin Li, Xiao Chen, Sheng Wen, Yang Xiang
2024 J jnl
IEEE Internet Things J.
Xiao Chen, Chao Zhu, Jie Ma, Guanju Shi, Zhenjie Yang, Xiang Gao, Yong Cui
2024 J jnl
IEEE Trans. Dependable Secur. Comput.
Lihong Tang, Xiao Chen, Sheng Wen, Li Li, Marthie Grobler, Yang Xiang
2024 A* conf
ASE
Mingyi Zhou, Xiang Gao, Xiao Chen, Chunyang Chen, John Grundy, Li Li
2024 J jnl
CoRR
Mingyi Zhou, Xiang Gao, Xiao Chen, Chunyang Chen, John C. Grundy, Li Li
2024 J jnl
CoRR
Han Hu, Han Wang, Ruiqi Dong, Xiao Chen, Chunyang Chen
2024 J jnl
ACM Trans. Softw. Eng. Methodol.
Han Hu, Han Wang, Ruiqi Dong, Xiao Chen, Chunyang Chen
2024 J jnl
Connect. Sci.
Lihong Tang, Tingmin Wu, Xiao Chen, Sheng Wen, Wei Zhou, Xiaogang Zhu, Yang Xiang
2024 A* conf
ASE
Feifei Li, Xiao Chen, Xi Xiao, Xiaoyu Sun, Chuan Chen, Shaohua Wang, Jitao Han
2024 J jnl
CoRR
Feifei Li, Xiao Chen, Xi Xiao, Xiaoyu Sun, Chuan Chen, Shaohua Wang, Jitao Han
2024 J jnl
CoRR
Daihang Chen, Yonghui Liu, Mingyi Zhou, Yanjie Zhao, Haoyu Wang, Shuai Wang, Xiao Chen, Tegawendé F. Bissyandé, Jacques Klein, Li Li
2024 A conf
ISSTA
Mingyi Zhou, Xiang Gao, Pei Liu, John Grundy, Chunyang Chen, Xiao Chen, Li Li
2024 J jnl
CoRR
Mingyi Zhou, Xiang Gao, Pei Liu, John C. Grundy, Chunyang Chen, Xiao Chen, Li Li
2023 J jnl
ACM Trans. Softw. Eng. Methodol.
Xiaoyu Sun, Xiao Chen, Li Li, Haipeng Cai, John Grundy, Jordan Samhi, Tegawendé F. Bissyandé, Jacques Klein
2023 A* conf
WWW
Rongjunchen Zhang, Tingmin Wu, Xiao Chen, Sheng Wen, Surya Nepal, Cécile Paris, Yang Xiang
2023 B conf
SECON
Ruoyi Zhang, Chao Zhu, Xiao Chen, Qingyuan Gong, Xinlei Xie, Xiangyuan Bu
2023 J jnl
IEEE Trans. Dependable Secur. Comput.
Lihong Tang, Tingmin Wu, Xiao Chen, Sheng Wen, Li Li, Xin Xia, Marthie Grobler, Yang Xiang
2023 conf
ESEC/SIGSOFT FSE
Xiaoyu Sun, Xiao Chen, Yonghui Liu, John C. Grundy, Li Li
2023 A conf
ISSTA
Mingyi Zhou, Xiang Gao, Jing Wu, John C. Grundy, Xiao Chen, Chunyang Chen, Li Li
2023 J jnl
CoRR
Mingyi Zhou, Xiang Gao, Jing Wu, John Grundy, Xiao Chen, Chunyang Chen, Li Li
2023 A* conf
ASE
Yonghui Liu, Xiao Chen, Pei Liu, John Grundy, Chunyang Chen, Li Li
2023 J jnl
CoRR
Yonghui Liu, Xiao Chen, Pei Liu, John Grundy, Chunyang Chen, Li Li
2023 J jnl
IEEE Trans. Software Eng.
Xiaoyu Sun, Xiao Chen, Yonghui Liu, John C. Grundy, Li Li
2023 J jnl
CoRR
Xiaoyu Sun, Xiao Chen, Yonghui Liu, John C. Grundy, Li Li
2022 J jnl
CoRR
Yonghui Liu, Xiao Chen, Yue Liu, Pingfan Kong, Tegawendé F. Bissyandé, Jacques Klein, Xiaoyu Sun, Chunyang Chen, John Grundy
2022 J jnl
IEEE Trans. Dependable Secur. Comput.
Chaoran Li, Xiao Chen, Derui Wang, Sheng Wen, Muhammad Ejaz Ahmed, Seyit Camtepe, Yang Xiang
2022 J jnl
CoRR
Xiaoyu Sun, Xiao Chen, Kui Liu, Sheng Wen, Li Li, John C. Grundy
2022 conf
ESEC/SIGSOFT FSE
Chaoran Li, Xiao Chen, Ruoxi Sun, Minhui Xue, Sheng Wen, Muhammad Ejaz Ahmed, Seyit Camtepe, Yang Xiang
2022 J jnl
CoRR
Xiaoyu Sun, Xiao Chen, Li Li, Haipeng Cai, John C. Grundy, Jordan Samhi, Tegawendé F. Bissyandé, Jacques Klein
2022 A* conf
ASE
Xiaoyu Sun, Xiao Chen, Yanjie Zhao, Pei Liu, John Grundy, Li Li
2022 J jnl
CoRR
Xiaoyu Sun, Xiao Chen, Yanjie Zhao, Pei Liu, John C. Grundy, Li Li
2021 Misc conf
SAC
Xiao Chen, Wanli Chen, Kui Liu, Chunyang Chen, Li Li
2021 A conf
ISSRE
Xiaoyu Sun, Xiao Chen, Kui Liu, Sheng Wen, Li Li, John Grundy
2021 J jnl
CoRR
Chaoran Li, Xiao Chen, Ruoxi Sun, Jason Xue, Sheng Wen, Muhammad Ejaz Ahmed, Seyit Camtepe, Yang Xiang
2021 A conf
ICWS
Xin Wang, Xiao Liu, Li Li, Xiao Chen, Jin Liu, Hao Wu
2020 J jnl
IEEE Trans. Inf. Forensics Secur.
Xiao Chen, Chaoran Li, Derui Wang, Sheng Wen, Jun Zhang, Surya Nepal, Yang Xiang, Kui Ren
2020 A* conf
ASE
Xin Wang, Jin Liu, Li Li, Xiao Chen, Xiao Liu, Hao Wu
2020 B conf
TrustCom
Yi Li, Xi Xiao, Xiaogang Zhu, Xiao Chen, Sheng Wen, Bin Zhang
2019 conf
ML4CS
Mingwu Zhang, Xiao Chen, Gang Shen, Yong Ding
2019 conf
CSS (2)
Lei Shi, Xiao Chen, Sheng Wen, Yang Xiang
2019 J jnl
IEEE Access
Rongjunchen Zhang, Xiao Chen, Sheng Wen, Xi Zheng, Yong Ding
2019 conf
ML4CS
Rongjunchen Zhang, Xiao Chen, Sheng Wen, James Zheng
2018 J jnl
CoRR
Xiao Chen, Chaoran Li, Derui Wang, Sheng Wen, Jun Zhang, Surya Nepal, Yang Xiang, Kui Ren
2018 J jnl
CoRR
Rongjunchen Zhang, Xiao Chen, Jianchao Lu, Sheng Wen, Surya Nepal, Yang Xiang
2015 conf
ICC
Chao Chen, Jun Zhang, Xiao Chen, Yang Xiang, Wanlei Zhou
2015 J jnl
IEEE/ACM Trans. Netw.
Jun Zhang, Xiao Chen, Yang Xiang, Wanlei Zhou, Jie Wu
2014 B conf
NSS
Di Wu, Xiao Chen, Chao Chen, Jun Zhang, Yang Xiang, Wanlei Zhou
2013 conf
CSE
Xiao Chen, Jun Zhang, Yang Xiang, Wanlei Zhou
2013 conf
CSS
Jun Zhang, Xiao Chen, Yang Xiang, Wanlei Zhou
2005 ch.
New Trends in Computer Networks
Xiao Chen, Mingwei Xu, Yong Cui
redb/extractors/elf_extractors/elf_imports.py
← Index redb/extractors/elf_extractors/elf_imports.py python
import inspect
from datetime import datetime, timezone
from typing import Any, List, Set

from elftools.elf.elffile import ELFFile
from elftools.common.exceptions import ELFError

from redb.extractors.enum import Tag
from redb.extractors.elf_extractor import ELFExtractor
from redb.models.dataclasses import ELFImport


class ELFImportExtractor(ELFExtractor):

    def __init__(
        self,
        filepath,
        log,
        exporters=None,
        index_prefix=None,
        elastic_index=None,
        known_benign=False,
        known_malicious=False,
        elf=None,
    ):
        super().__init__(
            filepath,
            log,
            exporters,
            index_prefix,
            elastic_index,
            known_benign,
            known_malicious,
            elf,
        )
        self.elf_imports = None
        self.elastic_index = self.index_prefix + "-elf_imports"
        self.log.debug(inspect.currentframe().f_code.co_name)

    def _get_import_libraries(self, elf) -> List[str]:
        """Extract imported libraries from dynamic section."""
        libraries = []

        try:
            # Get the dynamic section
            dynamic_section = elf.get_section_by_name('.dynamic')
            if not dynamic_section:
                return libraries

            # Extract DT_NEEDED entries (required libraries)
            for tag in dynamic_section.iter_tags():
                if tag.entry.d_tag == 'DT_NEEDED':
                    libraries.append(tag.needed)

        except Exception as e:
            self.log.error(f"Error extracting import libraries: {e}")

        return libraries

    def _get_imported_functions_from_symbols(self, elf) -> Set[str]:
        """Extract imported functions from dynamic symbol table."""
        imported_functions = set()

        try:
            # Get the dynamic symbol table
            dynsym_section = elf.get_section_by_name('.dynsym')
            if not dynsym_section or not hasattr(dynsym_section, 'iter_symbols'):
                return imported_functions

            # Look for undefined symbols (imports)
            for symbol in dynsym_section.iter_symbols():
                # Check if symbol is undefined (imported)
                if (symbol.entry.get('st_shndx', 0) == 'SHN_UNDEF' and
                    symbol.name and
                    symbol.entry.get('st_info', {}).get('bind') in ['STB_GLOBAL', 'STB_WEAK']):
                    imported_functions.add(symbol.name)

        except Exception as e:
            self.log.error(f"Error extracting imported functions from symbols: {e}")

        return imported_functions

    def _get_imported_functions_from_relocations(self, elf) -> Set[str]:
        """Extract imported functions from relocation sections."""
        imported_functions = set()

        try:
            # Look through relocation sections
            for section in elf.iter_sections():
                if hasattr(section, 'iter_relocations'):
                    try:
                        for relocation in section.iter_relocations():
                            # Get symbol associated with relocation
                            if hasattr(relocation, 'symbol') and relocation.symbol:
                                symbol_name = relocation.symbol.name
                                if symbol_name:
                                    imported_functions.add(symbol_name)
                    except Exception as e:
                        self.log.debug(f"Could not process relocations in section {section.name}: {e}")

        except Exception as e:
            self.log.error(f"Error extracting imported functions from relocations: {e}")

        return imported_functions

    def _get_plt_functions(self, elf) -> Set[str]:
        """Extract functions from PLT (Procedure Linkage Table) sections."""
        plt_functions = set()

        try:
            # Look for PLT-related sections
            plt_sections = ['.plt', '.plt.got', '.plt.sec']

            for section_name in plt_sections:
                section = elf.get_section_by_name(section_name)
                if section:
                    # PLT functions are typically associated with relocations
                    # We'll get them from the relocation analysis
                    pass

        except Exception as e:
            self.log.error(f"Error extracting PLT functions: {e}")

        return plt_functions

    def tag(self):
        return Tag.ELF_IMPORTS.value if hasattr(Tag, 'ELF_IMPORTS') else "elf_imports"

    def extract(self):
        try:
            self.log.debug(inspect.currentframe().f_code.co_name)

            def extract_data(elf):
                # Extract import libraries
                import_libraries = self._get_import_libraries(elf)

                # Extract imported functions from multiple sources
                imported_functions = set()

                # From dynamic symbols
                symbol_imports = self._get_imported_functions_from_symbols(elf)
                imported_functions.update(symbol_imports)

                # From relocations
                relocation_imports = self._get_imported_functions_from_relocations(elf)
                imported_functions.update(relocation_imports)

                # From PLT
                plt_imports = self._get_plt_functions(elf)
                imported_functions.update(plt_imports)

                # Convert to sorted lists for consistent output
                import_libraries_list = sorted(list(set(import_libraries)))
                import_functions_list = sorted(list(imported_functions))

                # Return ELFImport dataclass
                return ELFImport(
                    elf_imports_total=len(import_functions_list),
                    elf_import_libraries=import_libraries_list,
                    elf_import_functions=import_functions_list,
                )

            if not self._is_elf_file():
                return None

            result = self._with_elf_file(extract_data)
            if result is None:
                return None

            self.elf_imports = result
            return self.elf_imports

        except Exception as e:
            self.log.error(f"Error extracting ELF imports {self.hash.sha256}: {e}")
            return None

    def prepare_export_data(self, exporter_type: str) -> Any:
        self.log.debug(inspect.currentframe().f_code.co_name)

        if exporter_type == "ElasticsearchExporter":
            return self.elf_imports
        elif exporter_type == "ClickHouseExporter":
            try:
                if not self.elf_imports:
                    return None

                # Prepare data array
                data = [[
                    self.sha256,
                    self.md5,
                    self.sha1,
                    self.elf_imports.elf_imports_total,
                    self.elf_imports.elf_import_libraries,
                    self.elf_imports.elf_import_functions,
                    datetime.now(timezone.utc)
                ]]

                column_names = [
                    'sha256', 'md5', 'sha1',
                    'elf_imports_total',
                    'elf_import_libraries',
                    'elf_import_functions',
                    'analysis_date'
                ]

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

                if not data:
                    return None

                return (data, column_names, column_type_names)

            except Exception as e:
                self.log.error(f"Error preparing export data: {e}")
                raise

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