Xiaohui Huang

43 papers C 3Journal 30Unranked 9
YearRankTypeTitle / Venue / Authors
2026 J jnl
J. Circuits Syst. Comput.
Jiabao Li, Yuewei Wang, Rongrong Duan, Zhaoyang Zhang, Xiubin Cui, Xiaohui Huang
2025 conf
APWeb-WAIM (3)
Ao Yang, Shaoqian Chen, Kangfei Yao, Xiaohui Huang, Yuewei Wang, Jianxin Li, Yunliang Chen
2025 J jnl
IEEE Internet Comput.
Guishui Zhu, Feifei Zhang, Rajiv Ranjan, Schahram Dustdar, Jiabao Li, Yiyue Wang, Yuewei Wang, Xiaohui Huang, Yunliang Chen, Lizhe Wang
2025 J jnl
Int. J. Digit. Earth
Xiaohui Huang, Ao Long, Wei Han, Yunliang Chen, Geyong Min, Dongmei Yan
2025 J jnl
Computing
Jiabao Li, Rajiv Ranjan, Yuewei Wang, Jining Yan, Xiaohui Huang
2025 J jnl
IEEE Trans. Consumer Electron.
Yunliang Chen, Yuqi Li, Xiaohui Huang, Yuewei Wang, Guishui Zhu, Geyong Min, Jianxin Li
2025 J jnl
Array
Youxuan Sun, Yunliang Chen, Xiaohui Huang, Yuewei Wang, Shaoqian Chen, Kangfei Yao, Ao Yang
2025 J jnl
J. Circuits Syst. Comput.
Yunliang Chen, Xuanyu Lu, Yuewei Wang, Yuxin Ye, Xiaohui Huang, Jianxin Li, Shengrui Zhan
2025 J jnl
IEEE Internet Things J.
Shaoqian Chen, Kangfei Yao, Yuewei Wang, Xiaohui Huang, Yunliang Chen, Ao Yang, Jianxin Li, Geyong Min
2025 J jnl
ISPRS Int. J. Geo Inf.
Yuqin Li, Jining Yan, Xiaohui Huang, Xiangyou He, Ze Deng, Yunliang Chen
2025 J jnl
IEEE Internet Comput.
Jiabao Li, Rajiv Ranjan, Yuewei Wang, Xiaohui Huang, Philip James, Schahram Dustdar
2025 J jnl
Expert Syst. Appl.
Tianyu Xie, Yunliang Chen, Yong Wu, Ningning Cui, Haofeng Chen, Xuanyu Lu, Xiaohui Huang, Yuewei Wang, Jianxin Li
2025 J jnl
Future Gener. Comput. Syst.
Haoran Xu, Xiaodao Chen, Xiaohui Huang, Geyong Min, Yunliang Chen
2024 conf
APWeb/WAIM (1)
Xinlei Ding, Yuewei Wang, Xiaohui Huang, Yunliang Chen, Jianxin Li
2024 C conf
IGARSS
Haoran Xu, Yixin Yang, Jiabao Li, Xiaohui Huang, Wei Han, Yuewei Wang
2024 J jnl
Array
Qingsong Huang, Junqing Fan, Haoran Xu, Wei Han, Xiaohui Huang, Yunliang Chen
2024 conf
WISE (3)
Ao Long, Yuewei Wang, Xiaohui Huang, Wei Han, Runyu Fan, Yunliang Chen, Jianxin Li
2024 J jnl
IEEE Trans. Geosci. Remote. Sens.
Wei Han, Zunlin Fu, Shuanglin Xiao, Xiongwei Zheng, Xiaohui Huang, Yi Wang, Jining Yan, Sheng Wang, Dongmei Yan
2024 J jnl
Inf. Sci.
Yunliang Chen, Tianyu Xie, Haofeng Chen, Xiaohui Huang, Ningning Cui, Jianxin Li
2024 conf
APWeb/WAIM (3)
Xiongwei Zheng, Shaohao Chen, Sheng Wang, Xiaohui Huang, Yunliang Chen, Jianxin Li, Wei Han
2024 J jnl
Remote. Sens.
Jiabao Li, Wei Ding, Wei Han, Xiaohui Huang, Ao Long, Yuewei Wang
2024 conf
WISE (4)
Xiaohan Zhang, Xiaolong Chen, Wei Han, Xiaohui Huang, Yunliang Chen, Jianxin Li, Lizhe Wang
2023 J jnl
World Wide Web (WWW)
Yunliang Chen, Guoquan Huang, Yuewei Wang, Xiaohui Huang, Geyong Min
2023 conf
APWeb-WAIM (2)
Jiabao Li, Wei Han, Xiaohui Huang, Yuewei Wang, Ao Long, Rongrong Duan, Xiaohua Tian, Yuqin Li
2023 conf
APWeb-WAIM (1)
Ao Long, Wei Han, Xiaohui Huang, Jiabao Li, Yuewei Wang, Jia Chen
2023 J jnl
Inf. Sci.
Jinbo Liu, Yunliang Chen, Xiaohui Huang, Jianxin Li, Geyong Min
2023 J jnl
ISPRS Int. J. Geo Inf.
Hong Liu, Jining Yan, Jinlin Wang, Bo Chen, Meng Chen, Xiaohui Huang
2023 J jnl
Int. J. Appl. Earth Obs. Geoinformation
Sheng Wang, Xiaohui Huang, Wei Han, Jun Li, Xiaohan Zhang, Lizhe Wang
2022 C conf
IGARSS
Jiabao Li, Xiaohui Huang, Jining Yan, Yusen Dong, Junqiang Zhang, Lizhe Wang
2021 J jnl
Appl. Soft Comput.
Mingwei Wang, Wei Liu, Maolin Chen, Xiaohui Huang, Wei Han
2021 J jnl
IEEE J. Sel. Top. Appl. Earth Obs. Remote. Sens.
Jining Yan, Yuanxing Liu, Lizhe Wang, Zhipeng Wang, Xiaohui Huang, Hong Liu
2021 J jnl
ISPRS Int. J. Geo Inf.
Xiaohui Huang, Junqing Fan, Ze Deng, Jining Yan, Jiabao Li, Lizhe Wang
2021 J jnl
J. Circuits Syst. Comput.
Xiaohui Huang, Ze Deng, Lizhe Wang, Tao Liu, Chengyu Zhang
2020 ch.
Blockchains for Network Security
Jining Yan, Lizhe Wang, Feng Zhang, Xiaodao Chen, Xiaohui Huang, Jiabao Li
2020 J jnl
Future Gener. Comput. Syst.
Yunliang Chen, Junqing Fan, Ze Deng, Bo Du, Xiaohui Huang, Qirui Gui
2019 J jnl
Knowl. Based Syst.
Mingwei Wang, Chunming Wu, Lizhe Wang, Daxiang Xiang, Xiaohui Huang
2019 J jnl
ISPRS Int. J. Geo Inf.
Ze Deng, Meng Wang, Lizhe Wang, Xiaohui Huang, Wei Han, Junde Chu, Albert Y. Zomaya
2019 C conf
IGARSS
Zhipeng Wang, Jining Yan, Luxiao Cheng, Xiaohui Huang, Liang Huang, Lizhe Wang
2018 conf
HPCC/SmartCity/DSS
Ze Deng, Lizhe Wang, Junde Chu, Xiaohui Huang, Wei Han, Albert Y. Zomaya
2018 conf
HPCC/SmartCity/DSS
Xiaohui Huang, Lizhe Wang, Jining Yan, Ze Deng, Shaoyuan Wang, Yan Ma
2017 J jnl
J. Parallel Distributed Comput.
Xiaodao Chen, Xiaohui Huang, Yang Xiang, Dongmei Zhang, Rajiv Ranjan, Chen Liao
2017 J jnl
J. Circuits Syst. Comput.
Dongmei Zhang, Jianping Liao, Xiaohui Huang, Jiaqi Jin
2015 J jnl
Clust. Comput.
Ze Deng, Yangyang Hu, Mao Zhu, Xiaohui Huang, Bo Du
yara/README.md
← Index yara/README.md markdown
# YARA Rules Directory

This folder contains YARA rules for scanning binary samples.

## Setting Up YARA-Forge Rules

To use the YARA-Forge rules from [https://github.com/YARAHQ/yara-forge](https://github.com/YARAHQ/yara-forge):

```bash
# Download the latest release
cd /path/to/redb/yara
# wget https://github.com/YARAHQ/yara-forge/releases/latest/download/yara-forge-rules-core.zip
wget https://github.com/YARAHQ/yara-forge/releases/latest/download/yara-forge-rules-extended.zip

# Extract rules
# unzip yara-forge-rules-core.zip
unzip yara-forge-rules-extended.zip
```

Available packages:
- `yara-forge-rules-core.zip` - Core rules (~5,000 rules)
- `yara-forge-rules-extended.zip` - Extended rules (~10,000 rules)
- `yara-forge-rules-full.zip` - Full rules (~11,000+ rules)

## Pre-compiling Rules (Recommended for Production)

For large rulesets like YARA-Forge, pre-compiling rules significantly improves startup time:

```bash
# Pre-compile all rules into a single .yarac file
python -m redb.extractors.yara --compile

# Or specify custom paths
python -m redb.extractors.yara --compile --rules-path /path/to/rules --output /path/to/output.yarac
```

This creates `yara/compiled_rules.yarac` which is loaded automatically on subsequent runs.

### Performance Comparison

| Method | First Scan Startup | Subsequent Scans |
|--------|-------------------|------------------|
| Source files (.yar) | ~10-30 seconds (11k rules) | Instant (cached) |
| Pre-compiled (.yarac) | ~1-2 seconds | Instant (cached) |

## Directory Structure

```
yara/
├── README.md
├── .gitkeep
├── compiled_rules.yarac    # (optional) Pre-compiled rules
├── packages/               # YARA-Forge packages
│   └── core/
│       └── *.yar
└── custom/                 # Your custom rules
    └── my_rules.yar
```

Rules are loaded in this priority:
1. `compiled_rules.yarac` (if exists) - fastest
2. All `.yar` and `.yara` files recursively - compiles on first run

## Usage

### Scan with YARA only

```bash
# Scan local files
python start.py --path /path/to/samples -y --repo my_repo --index_prefix redb

# Scan S3 samples
python start.py --s3 --repo bazaar -y --index_prefix redb

# Dry-run (print results instead of storing in ClickHouse)
python start.py --path /path/to/samples -y --dry-run --repo test --index_prefix redb
```

### Scan already-analyzed samples

Run YARA on samples that were previously analyzed (already in `basic_properties`).
Deduplication is handled by the `yara_matches` table — samples already scanned are
automatically excluded before processing begins:

```bash
# Scan all analyzed macho samples with YARA
python start.py --analyzed --magika macho -y --index_prefix redb

# Scan all analyzed PE samples with YARA
python start.py --analyzed --magika pe -y --index_prefix redb

# Scan all analyzed samples (no filetype filter)
python start.py --analyzed -y --index_prefix redb
```

### Partition large YARA runs by date

Combine `--analyzed` with `--range` to partition millions of samples into
manageable batches. Only samples in `basic_properties` AND within the date
range (by `first_seen` in `catalog_samples`) are processed:

```bash
# Scan analyzed PE samples from Feb 2025
python start.py --range 2025-02-01 2025-02-28 --analyzed --magika pebin -y --index_prefix redb

# Scan analyzed PE samples from first week of March 2025
python start.py --range 2025-03-01 2025-03-08 --analyzed --magika pebin -y --index_prefix redb
```

YARA dedup still applies — re-running a range safely skips already-scanned samples.

### Combined Features + YARA

Run feature extraction and YARA scanning together on the same samples:

```bash
# Local files with features + YARA
python start.py --path /path/to/samples --with-yara --repo my_repo --index_prefix redb

# S3 samples with features + YARA
python start.py --s3 --repo bazaar --with-yara --index_prefix redb
```

### Pre-compile Rules

```bash
# Compile and save to default location (yara/compiled_rules.yarac)
python -m redb.extractors.yara --compile

# Compile with custom paths
python -m redb.extractors.yara --compile --rules-path ./my_rules --output ./compiled.yarac
```

### Sync Rules to Database

Before batch scanning, sync rules to ensure all rule metadata is stored:

```bash
# Sync rules to database
python -m redb.extractors.yara --sync-rules

# Sync with custom source collection name
python -m redb.extractors.yara --sync-rules --source-collection yara-forge-core

# Compile and sync in one command
python -m redb.extractors.yara --compile --sync-rules
```

## ClickHouse Table Schema

YARA data uses a **normalized schema** with two tables for efficient storage.

### Matches Table: `yara_matches`

Stores one row per sample-rule match (optimized with binary sha256 and rule_id):

| Column | Type | Description |
|--------|------|-------------|
| sha256 | FixedString(32) | Binary SHA256 (32 bytes, use `hex(sha256)` to display) |
| rule_id | UInt64 | Unique rule identifier (xxHash64 of canonical rule content) |
| rule_name | LowCardinality(String) | YARA rule name (denormalized for convenience) |
| scan_date | DateTime64(3, 'UTC') | Scan timestamp |
| match_strings | Array(String) | Matched string identifiers |

### Rules Table: `yara_rules`

Stores rule metadata once per unique rule (deduplicated by rule_id):

| Column | Type | Description |
|--------|------|-------------|
| rule_id | UInt64 | Unique rule identifier (xxHash64 of canonical rule content) |
| rule_name | String | YARA rule name |
| source_collection | LowCardinality(String) | Source collection (e.g., 'yara-forge-core', 'malpedia') |
| ingested_at | DateTime64(3, 'UTC') | When this rule was ingested |
| rule_text | String | Full rule source code |
| rule_meta | JSON | Rule metadata (author, description, reference, etc.) |
| rule_tags | Array(LowCardinality(String)) | Rule tags |

### Schema Benefits

- **Binary SHA256**: 32 bytes vs 64 bytes (50% storage savings on hash columns)
- **UInt64 rule_id**: Fast joins and lookups via integer key
- **Content-based rule_id**: xxHash64 of canonical rule content (excluding metadata) for deduplication
- **Denormalized rule_name**: Allows queries without joins for common use cases

### Example Queries

```sql
-- Get matches with hex sha256
SELECT
    hex(m.sha256) as sha256,
    m.rule_name,
    m.match_strings
FROM yara_matches m
WHERE m.sha256 = unhex('abc123...')

-- Join with rules for full metadata
SELECT
    hex(m.sha256) as sha256,
    m.rule_name,
    m.match_strings,
    r.rule_meta,
    r.source_collection
FROM yara_matches m
JOIN yara_rules r ON m.rule_id = r.rule_id
WHERE m.sha256 = unhex('abc123...')

-- Find all samples matching a specific rule
SELECT hex(sha256), scan_date
FROM yara_matches
WHERE rule_name = 'APT_Lazarus_Loader'
ORDER BY scan_date DESC
```

## Environment Variables

| Variable | Description | Default |
|----------|-------------|---------|
| `YARA_RULES_PATH` | Override the YARA rules directory | `yara/` |
| `YARA_COMPILED_RULES` | Compiled rules filename | `compiled_rules.yarac` |
| `YARA_SOURCE_COLLECTION` | Default source collection name | `default` |