Hailin Xiao

55 papers B 3C 1Journal 50Unranked 1
YearRankTypeTitle / Venue / Authors
2025 J jnl
IEEE Trans. Green Commun. Netw.
Bin Qiu, Ke Feng, Xian Li, Hailin Xiao, Zhongshan Zhang
2025 J jnl
IEEE Syst. J.
Weiyi Ni, Hailin Xiao, Xiaolan Liu, Anthony Theodore Chronopoulos, Petros A. Ioannou
2025 J jnl
IEEE Internet Things J.
Weiyi Ni, Yiling He, Hailin Xiao, Anthony Theodore Chronopoulos, Petros A. Ioannou
2025 J jnl
IEEE Internet Things J.
Weiyi Ni, Hailin Xiao, Meng Zhou, Anthony Theodore Chronopoulos, Zhongshan Zhang
2024 J jnl
IEEE Trans. Intell. Transp. Syst.
Bin Qiu, Yunxiao Wang, Hailin Xiao, Zhongshan Zhang
2024 J jnl
KSII Trans. Internet Inf. Syst.
Bin Qiu, Duan Li, Xian Li, Hailin Xiao
2024 J jnl
IEEE Wirel. Commun. Lett.
Bin Qiu, Xiao Chang, Xian Li, Hailin Xiao, Zhongshan Zhang
2024 J jnl
IEEE Syst. J.
Bin Qiu, Shuxia Mao, Hailin Xiao, Zhongshan Zhang
2022 J jnl
IEEE Syst. J.
Hailin Xiao, Wenqian Zhang, Anthony Theodore Chronopoulos
2022 J jnl
Trans. Emerg. Telecommun. Technol.
Di Zhou, Bin Qiu, Yuanfang Chen, Hailin Xiao, Muhammad Alam
2021 J jnl
IEEE Syst. J.
Hailin Xiao, Qiuyu Zhang, Shan Ouyang, Anthony Theodore Chronopoulos
2021 J jnl
Wirel. Networks
Hailin Xiao, Xiaolan Liu, Qiuyu Zhang, Anthony Theodore Chronopoulos
2021 J jnl
IEEE Internet Things J.
Hailin Xiao, Wenqian Zhang, Wanying Li, Anthony Theodore Chronopoulos, Zhongshan Zhang
2020 J jnl
IEEE Trans. Veh. Technol.
Hailin Xiao, Anthony Theodore Chronopoulos, Zhongshan Zhang
2020 J jnl
IEEE Syst. J.
Xiaojuan Yan, Hailin Xiao, Kang An, Gan Zheng, Symeon Chatzinotas
2020 J jnl
IEEE Trans. Veh. Technol.
Xiaolan Liu, Hailin Xiao, Anthony Theodore Chronopoulos
2020 J jnl
IEEE Access
Bin Qiu, Hailin Xiao, Anthony Theodore Chronopoulos, Di Zhou, Shan Ouyang
2020 J jnl
IEEE Trans. Intell. Transp. Syst.
Hailin Xiao, Dan Zhu, Anthony Theodore Chronopoulos
2020 J jnl
IEEE Trans. Commun.
Hailin Xiao, Xue Zhang, Anthony Theodore Chronopoulos, Zhongshan Zhang, Hailong Liu, Shan Ouyang
2020 J jnl
Sci. China Inf. Sci.
Hailin Xiao, Zhongshan Zhang
2019 J jnl
IEEE Commun. Mag.
Jie Huang, Yu Liu, Cheng-Xiang Wang, Jian Sun, Hailin Xiao
2019 J jnl
KSII Trans. Internet Inf. Syst.
Bin Qiu, Hailin Xiao
2019 J jnl
Quantum Inf. Process.
Hailin Xiao, Shan Ouyang, Anthony Theodore Chronopoulos
2019 J jnl
IEEE Trans. Intell. Transp. Syst.
Hailin Xiao, Yuhong Chen, Qiuyu Zhang, Anthony Theodore Chronopoulos, Zhongshan Zhang, Shan Ouyang
2019 J jnl
IEEE Access
Hailin Xiao, Yuhong Chen, Shan Ouyang, Anthony Theodore Chronopoulos
2018 J jnl
IEEE Commun. Lett.
Xiaojuan Yan, Hailin Xiao, Kang An, Gan Zheng, Weiping Tao
2018 J jnl
IEEE Wirel. Commun. Lett.
Xiaojuan Yan, Hailin Xiao, Cheng-Xiang Wang, Kang An
2018 J jnl
IEEE Trans. Intell. Transp. Syst.
Hailin Xiao, Zhongshan Zhang, Anthony Theodore Chronopoulos
2018 J jnl
IEEE Access
Xiaojuan Yan, Hailin Xiao, Cheng-Xiang Wang, Kang An, Anthony Theodore Chronopoulos, Gan Zheng
2018 J jnl
IEEE Trans. Veh. Technol.
Jian Sun, Zhongshan Zhang, Hailin Xiao, Chengwen Xing
2018 J jnl
IEEE Trans. Intell. Transp. Syst.
Jian Sun, Zhongshan Zhang, Chengwen Xing, Hailin Xiao
2017 J jnl
IEEE Commun. Lett.
Kun Yan, Hsiao-Chun Wu, Hailin Xiao, Xiangli Zhang
2017 C conf
ICCC
Xiaojuan Yan, Hailin Xiao, Cheng-Xiang Wang, Kang An
2017 J jnl
Quantum Inf. Process.
Hailin Xiao, Zhongshan Zhang
2016 B conf
GLOBECOM
Kun Yan, Hsiao-Chun Wu, Hailin Xiao, Xiangli Zhang
2016 J jnl
EURASIP J. Wirel. Commun. Netw.
Ju Ni, Hailin Xiao
2016 J jnl
IEEE Access
Jian Sun, Tong Liu, Xianxian Wang, Chengwen Xing, Hailin Xiao, Athanasios V. Vasilakos, Zhongshan Zhang
2016 J jnl
IEEE Trans. Intell. Transp. Syst.
Hailin Xiao, Yue Hu, Kun Yan, Shan Ouyang
2016 J jnl
IEEE Access
Xiaomeng Chai, Tong Li, Chengwen Xing, Hailin Xiao, Zhongshan Zhang
2015 B conf
PIMRC
Kun Yan, Hsiao-Chun Wu, Haiyan Zhou, Hailin Xiao
2015 conf
ChinaCom
Kun Yan, Haiyan Zhou, Xiangli Zhang, Hailin Xiao
2015 J jnl
EURASIP J. Wirel. Commun. Netw.
Hailin Xiao, Ju Ni
2015 J jnl
IEEE Syst. J.
Hailin Xiao, Shan Ouyang
2015 J jnl
IEEE Trans. Intell. Transp. Syst.
Hailin Xiao, Shan Ouyang
2014 B conf
GLOBECOM
Kun Yan, Hsiao-Chun Wu, Hailin Xiao, Xiangli Zhang
2013 J jnl
Wirel. Pers. Commun.
Hailin Xiao, Shan Ouyang, Cheng-Xiang Wang
2013 J jnl
Wirel. Pers. Commun.
Hailin Xiao, Shan Ouyang, Cheng-Xiang Wang
2013 J jnl
Wirel. Pers. Commun.
Hailin Xiao, Shan Ouyang
2012 J jnl
Wirel. Pers. Commun.
Hailin Xiao, Shan Ouyang, Cheng-Xiang Wang, Feng Zhao
2012 J jnl
IEEE Trans. Commun.
Zengmao Chen, Cheng-Xiang Wang, Xuemin Hong, John S. Thompson, Sergiy A. Vorobyov, Xiaohu Ge, Hailin Xiao, Feng Zhao
2011 J jnl
CoRR
Zengmao Chen, Cheng-Xiang Wang, Xuemin Hong, John S. Thompson, Sergiy A. Vorobyov, Feng Zhao, Hailin Xiao, Xiaohu Ge
2011 J jnl
IEEE Trans. Veh. Technol.
Yunfei Chen, Cheng-Xiang Wang, Hailin Xiao, Dongfeng Yuan
2010 J jnl
CoRR
Zengmao Chen, Cheng-Xiang Wang, Xuemin Hong, John S. Thompson, Sergiy A. Vorobyov, Xiaohu Ge, Hailin Xiao, Feng Zhao
2010 J jnl
Wirel. Pers. Commun.
Hailin Xiao, Shan Ouyang, Zai-Ping Nie, Feng Zhao
2010 J jnl
Wirel. Pers. Commun.
Hailin Xiao, Shan Ouyang, Zai-Ping Nie
redb/extractors/macho_extractors/macho_dylibs.py
← Index redb/extractors/macho_extractors/macho_dylibs.py python
import hashlib
import inspect
from datetime import datetime, timezone
from typing import Any

from redb.extractors.enum import Tag
from redb.extractors.macho_extractor import MachOExtractor
from redb.models.dataclasses import MachODylib


class MachODylibExtractor(MachOExtractor):

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

    def tag(self):
        return Tag.MACHO_DYLIB.value

    def _extract_dylibs(self):
        """Extract dynamic library information from all architectures in the MachO binary."""
        self.log.debug(inspect.currentframe().f_code.co_name)
        dylibs = []

        if not self.macho:
            return dylibs

        try:
            # Get architectures using new API (already parsed in base class)
            architectures = self.macho.get_architectures()
            if not architectures:
                return dylibs

            # Process each architecture
            for arch_name in architectures:
                # Get dylib commands using new API with architecture parameter
                dylib_commands = self.macho.get_dylib_commands(arch=arch_name)
                if not dylib_commands:
                    continue

                # Extract dylib commands for this architecture
                for dylib_cmd in dylib_commands:
                    try:
                        dylib_name = dylib_cmd.get('dylib_name', 'Unknown')
                        if isinstance(dylib_name, bytes):
                            dylib_name = dylib_name.decode('utf-8', errors='replace')

                        # Create dylib dataclass with architecture info
                        macho_dylib = MachODylib(
                            dylib_name=dylib_name,
                            dylib_timestamp=dylib_cmd.get('dylib_timestamp', 0),
                            dylib_current_version=dylib_cmd.get('dylib_current_version', 0),
                            dylib_compat_version=dylib_cmd.get('dylib_compat_version', 0),
                        )
                        # Add architecture info to the dylib
                        macho_dylib.architecture = arch_name
                        dylibs.append(macho_dylib)

                    except Exception as e:
                        self.log.warning(
                            f'Unable to process dylib "{dylib_cmd.get("dylib_name", "Unknown")}" for architecture {arch_name} in {self.hash.sha256}: {e}'
                        )
                        continue

            return dylibs

        except Exception as e:
            self.log.error(f"Error extracting MachO dylibs: {e}")
            return dylibs

    def extract(self):
        self.log.debug(inspect.currentframe().f_code.co_name)
        try:
            dylibs = self._extract_dylibs()
            return dylibs
        except Exception as e:
            self.log.error(f"Error extracting MachO dylibs: {e}")
            return None

    def prepare_export_data(self, exporter_type: str) -> Any:
        if exporter_type == "ElasticsearchExporter":
            return self.extract()
        elif exporter_type == "ClickHouseExporter":
            if not self.macho:
                return None

            # Get architectures (macho is already parsed in base class)
            try:
                architectures = self.macho.get_architectures()
                is_fat = len(architectures) > 1
            except Exception as e:
                self.log.error(f"Could not get architectures: {e}")
                return None

            data = []
            current_time = datetime.now(timezone.utc)

            # Loop through each architecture (1 for single, multiple for FAT)
            for arch_name in architectures:
                # Get architecture-specific sha256
                try:
                    arch_general_info = self.macho.get_general_info(arch=arch_name)
                    arch_header_raw = self.macho.get_macho_header(arch=arch_name)
                    arch_sha256 = arch_general_info.get('SHA256', self.sha256)
                    arch_cputype_raw = arch_header_raw.get('cputype', 0) if arch_header_raw else 0
                except Exception as e:
                    self.log.warning(f"Could not get arch-specific data for {arch_name}: {e}")
                    arch_sha256 = self.sha256
                    arch_cputype_raw = 0

                # Get dylib commands for this architecture
                dylib_commands = self.macho.get_dylib_commands(arch=arch_name)
                if not dylib_commands:
                    continue

                # Process each dylib for this architecture
                for dylib_cmd in dylib_commands:
                    try:
                        dylib_name = dylib_cmd.get('dylib_name', 'Unknown')
                        if isinstance(dylib_name, bytes):
                            dylib_name = dylib_name.decode('utf-8', errors='replace')

                        data.append([
                            arch_sha256,                          # sha256 (architecture-specific)
                            dylib_name,                           # dylib_name
                            dylib_cmd.get('dylib_timestamp', 0), # dylib_timestamp
                            dylib_cmd.get('dylib_current_version', 0), # dylib_current_version
                            dylib_cmd.get('dylib_compat_version', 0),  # dylib_compat_version
                            current_time,                         # analysis_date
                        ])
                    except Exception as e:
                        self.log.warning(
                            f'Unable to process dylib "{dylib_cmd.get("dylib_name", "Unknown")}" for architecture {arch_name}: {e}'
                        )
                        continue

            column_names = [
                'sha256',
                'dylib_name', 'dylib_timestamp', 'dylib_current_version',
                'dylib_compat_version', 'analysis_date'
            ]

            if not data:
                return None

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

            return (data, column_names, column_type_names)

        return None

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