Vahid Aref

102 papers B 8Misc 1Journal 45Unranked 47
YearRankTypeTitle / Venue / Authors
2025 conf
OFC
Benedikt Geiger, Fred Buchali, Vahid Aref, Laurent Schmalen
2025 conf
ECOC
Benedikt Geiger, Fred Buchali, Vahid Aref, Laurent Schmalen
2025 conf
OFC
Vinod Bajaj, Fred Buchali, Fabien Boitier, Petros Ramantanis, Vahid Aref, Patricia Layec
2025 J jnl
CoRR
Shrinivas Chimmalgi, Laurent Schmalen, Vahid Aref
2022 J jnl
IEEE Trans. Commun.
Pedro J. Freire, Jaroslaw E. Prilepsky, Yevhenii Osadchuk, Sergei K. Turitsyn, Vahid Aref
2022 conf
OFC
Vinod Bajaj, Mathieu Chagnon, Sander Wahls, Vahid Aref
2022 conf
OFC
Vahid Aref, Mathieu Chagnon
2022 J jnl
CoRR
Vladislav Neskorniuk, Andrea Carnio, Domenico Marsella, Sergei K. Turitsyn, Jaroslaw E. Prilepsky, Vahid Aref
2021 conf
OFC
Qian Hu, Karsten Schuh, Michael Collisi, Vahid Aref, Horst Hettrich, Rolf Schmid, Fred Buchali, Michael Möller
2021 conf
ECOC
Son Thai Le, Vahid Aref, Xi Chen
2021 conf
OFC
Vinod Bajaj, Fred Buchali, Mathieu Chagnon, Sander Wahls, Vahid Aref
2021 conf
OFC
Son Thai Le, Vahid Aref, Junho Cho, Xi Chen, Di Che
2021 J jnl
CoRR
Vinod Bajaj, Mathieu Chagnon, Sander Wahls, Vahid Aref
2021 conf
ECOC
Vladislav Neskorniuk, Andrea Carnio, Vinod Bajaj, Domenico Marsella, Sergei K. Turitsyn, Jaroslaw E. Prilepsky, Vahid Aref
2021 J jnl
CoRR
Vladislav Neskorniuk, Andrea Carnio, Vinod Bajaj, Domenico Marsella, Sergei K. Turitsyn, Jaroslaw E. Prilepsky, Vahid Aref
2021 J jnl
CoRR
Vahid Aref, Mathieu Chagnon
2021 conf
ECOC
Karsten Schuh, Qian Hu, Roman Dischler, Vahid Aref, Fred Buchali, Son Thai Le, Michael Collisi, Michael Möller, Horst Hettrich, Rolf Schmid, Xuan-Quang Du, Markus Grözing, Manfred Berroth
2021 conf
OFC
Vladislav Neskorniuk, Fred Buchali, Vinod Bajaj, Sergei K. Turitsyn, Jaroslaw E. Prilepsky, Vahid Aref
2021 conf
OFC
Kaoutar Benyahya, Amirhossein Ghazisaeidi, Vahid Aref, Mathieu Chagnon, Aymeric Arnould, Stenio Ranzini, Haïk Mardoyan, Fred Buchali, Jeremie Renaudier
2021 J jnl
CoRR
Kaoutar Benyahya, Amirhossein Ghazisaeidi, Vahid Aref, Mathieu Chagnon, Aymeric Arnould, Stenio Ranzini, Haïk Mardoyan, Fred Buchali, Jeremie Renaudier
2021 J jnl
CoRR
Son Thai Le, Vahid Aref, Junho Cho
2020 conf
OFC
Fred Buchali, Vincent Lauinger, Mathieu Chagnon, Karsten Schuh, Vahid Aref
2020 conf
OFC
Fred Buchali, Vahid Aref, Mathieu Chagnon, Karsten Schuh, Horst Hettrich, Anna Bielik, Lars Altenhain, Markus Guntermann, Rolf Schmid, Michael Möller
2020 conf
OFC
Son T. Le, Vahid Aref, Karsten Schuh, Hung N. Tan
2020 conf
OFC
Karsten Schuh, Fred Buchali, Roman Dischler, Mathieu Chagnon, Vahid Aref, Henning Bülow, Qian Hu, Florian Pulka, Massimo Frascolla, Esmaeel Alhammadi, Adel Samhan, Islam Younis, Mohamed El-Zonkoli, Peter Winzer
2020 conf
ECOC
Fred Buchali, Vahid Aref, Mathieu Chagnon, Roman Dischler, Horst Hettrich, Rolf Schmid, Michael Möller
2020 conf
OFC
Boris Karanov, Mathieu Chagnon, Vahid Aref, Domaniç Lavery, Polina Bayvel, Laurent Schmalen
2020 conf
ECOC
Boris Karanov, Vinícius Oliari, Mathieu Chagnon, Gabriele Liga, Alex Alvarado, Vahid Aref, Domaniç Lavery, Polina Bayvel, Laurent Schmalen
2020 conf
SiPS
Boris Karanov, Mathieu Chagnon, Vahid Aref, Filipe Ferreira, Domaniç Lavery, Polina Bayvel, Laurent Schmalen
2020 J jnl
CoRR
Boris Karanov, Mathieu Chagnon, Vahid Aref, Filipe Ferreira, Domaniç Lavery, Polina Bayvel, Laurent Schmalen
2020 conf
ECOC
Aymeric Arnould, Haïk Mardoyan, Florian Pulka, Amirhossein Ghazisaeidi, Vahid Aref, B. Bordez, P. Tondo, L. Dalle Cort, Erwan Pincemin, Nicolas Brochier, F. Chatter, V. Guillot-Common, Oriol Bertran-Pardo, Massimo Frascolla, L. Luchesini, Jeremie Renaudier
2020 conf
WSA
Enrico Dragoni, Silvio Mandelli, Dania Marabissi, Vahid Aref, Andreas Weber
2020 J jnl
CoRR
Boris Karanov, Mathieu Chagnon, Vahid Aref, Domaniç Lavery, Polina Bayvel, Laurent Schmalen
2020 conf
ECOC
Vinod Bajaj, Fred Buchali, Mathieu Chagnon, Sander Wahls, Vahid Aref
2020 J jnl
CoRR
Alexander Span, Vahid Aref, Henning Bülow, Stephan ten Brink
2019 conf
OFC
Vahid Aref, Son T. Le, Henning Bülow
2019 J jnl
CoRR
Boris Karanov, Mathieu Chagnon, Vahid Aref, Domaniç Lavery, Polina Bayvel, Laurent Schmalen
2019 conf
Allerton
Boris Karanov, Gabriele Liga, Vahid Aref, Domaniç Lavery, Polina Bayvel, Laurent Schmalen
2019 J jnl
CoRR
Boris Karanov, Gabriele Liga, Vahid Aref, Domaniç Lavery, Polina Bayvel, Laurent Schmalen
2019 J jnl
IEEE Trans. Commun.
Alexander Span, Vahid Aref, Henning Bülow, Stephan ten Brink
2019 B conf
ITW
Laurent Schmalen, Vahid Aref
2019 J jnl
CoRR
Laurent Schmalen, Vahid Aref
2019 J jnl
CoRR
Francisco Javier García Gómez, Vahid Aref
2019 J jnl
IEEE Trans. Commun.
Alexander Span, Vahid Aref, Henning Bülow, Stephan ten Brink
2018 conf
ECOC
Xianhe Yangzhang, Vahid Aref, Son T. Le, Henning Bülow, Polina Bayvel
2018 B conf
ISIT
Mohamad Dia, Vahid Aref, Laurent Schmalen
2018 J jnl
CoRR
Mohamad Dia, Vahid Aref, Laurent Schmalen
2018 conf
ECOC
Morteza Tavana, Kamran Keykhosravi, Vahid Aref, Erik Agrell
2018 J jnl
CoRR
Vahid Aref, Son T. Le, Henning Bülow
2018 J jnl
CoRR
Vahid Aref, Son T. Le, Henning Bülow
2018 J jnl
CoRR
Alexander Span, Vahid Aref, Henning Bülow, Stephan ten Brink
2018 J jnl
IEEE Trans. Inf. Theory
Vahid Aref, Narayanan Rengaswamy, Laurent Schmalen
2018 J jnl
CoRR
Vahid Aref
2018 J jnl
CoRR
Alexander Span, Vahid Aref, Henning Bülow, Stephan ten Brink
2018 conf
ECOC
Xianhe Yangzhang, Vahid Aref, Domaniç Lavery, Polina Bayvel
2018 conf
ECOC
Javier García, Vahid Aref
2018 J jnl
CoRR
Javier García, Vahid Aref
2018 J jnl
CoRR
Alexander Span, Vahid Aref, Henning Bülow, Stephan ten Brink
2017 conf
ECOC
Son T. Le, Vahid Aref, Henning Bülow
2017 conf
ECOC
Son T. Le, Karsten Schuh, Mathieu Chagnon, Fred Buchali, Roman Dischler, Vahid Aref, Henning Bülow, Klaus M. Engenhardt
2017 conf
OFC
Son T. Le, Henning Bülow, Vahid Aref
2017 J jnl
CoRR
Vahid Aref, Zhenhua Dong, Henning Bülow
2017 conf
ECOC
Vahid Aref, Son T. Le, Henning Bülow
2017 conf
ECOC
Qian Hu, Fred Buchali, Laurent Schmalen, Wilfried Idler, Roman Dischler, Vahid Aref, Henning Bülow
2017 J jnl
CoRR
Laurent Schmalen, Vahid Aref, Fanny Jardel
2017 B conf
ISIT
Laurent Schmalen, Vahid Aref, Fanny Jardel
2017 J jnl
CoRR
Alexander Span, Vahid Aref, Henning Bülow, Stephan ten Brink
2017 B conf
ISIT
Alexander Span, Vahid Aref, Henning Bülow, Stephan ten Brink
2017 J jnl
CoRR
Andreas Buchberger, Alexandre Graell i Amat, Vahid Aref, Laurent Schmalen
2017 conf
OFC
Qian Hu, Fred Buchali, Laurent Schmalen, Wilfried Idler, Roman Dischler, Vahid Aref, Henning Bülow
2017 J jnl
CoRR
Sebastian Cammerer, Laurent Schmalen, Vahid Aref, Stephan ten Brink
2016 conf
OFC
Karsten Schuh, Vahid Aref, Henning Bülow, Wilfried Idler
2016 J jnl
CoRR
Vahid Aref, Son T. Le, Henning Bülow
2016 conf
OFC
Henning Bülow, Vahid Aref, Karsten Schuh, Wilfried Idler
2016 conf
OFC
Vahid Aref, Henning Bülow, Karsten Schuh
2016 J jnl
CoRR
Vahid Aref, Narayanan Rengaswamy, Laurent Schmalen
2016 J jnl
CoRR
Vahid Aref, Narayanan Rengaswamy, Laurent Schmalen
2016 conf
ISTC
Vahid Aref, Narayanan Rengaswamy, Laurent Schmalen
2016 J jnl
CoRR
Henning Bülow, Vahid Aref, Wilfried Idler
2016 Misc conf
CISS
Sebastian Cammerer, Vahid Aref, Laurent Schmalen, Stephan ten Brink
2016 conf
ISTC
Sebastian Cammerer, Laurent Schmalen, Vahid Aref, Stephan ten Brink
2015 J jnl
IEEE Trans. Inf. Theory
Vahid Aref, Nicolas Macris, Marc Vuffray
2015 J jnl
CoRR
Vahid Aref, Henning Bülow, Karsten Schuh, Wilfried Idler
2015 conf
ECOC
Vahid Aref, Henning Bülow, Karsten Schuh, Wilfried Idler
2015 conf
ECOC
Henning Bülow, Vahid Aref, Karsten Schuh, Wilfried Idler
2015 conf
IWCIT
Vahid Aref
2015 J jnl
CoRR
Laurent Schmalen, Detlef Suikat, Detlef Rösener, Vahid Aref, Andreas Leven, Stephan ten Brink
2015 conf
SPAWC
Laurent Schmalen, Detlef Suikat, Detlef Rösener, Vahid Aref, Andreas Leven, Stephan ten Brink
2015 J jnl
CoRR
Sebastian Cammerer, Vahid Aref, Laurent Schmalen, Stephan ten Brink
2014 conf
ECOC
Laurent Schmalen, Vahid Aref, Junho Cho, Kaveh Mahdaviani
2014
Vahid Aref
2013 J jnl
CoRR
Vahid Aref, Nicolas Macris, Marc Vuffray
2013 B conf
ISIT
Vahid Aref, Nicolas Macris, Marc Vuffray
2013 J jnl
CoRR
Vahid Aref, Laurent Schmalen, Stephan ten Brink
2013 conf
Allerton
Vahid Aref, Laurent Schmalen, Stephan ten Brink
2012 J jnl
CoRR
Vahid Aref, Nicolas Macris, Rüdiger L. Urbanke, Marc Vuffray
2012 B conf
ISIT
Vahid Aref, Nicolas Macris, Rüdiger L. Urbanke, Marc Vuffray
2011 J jnl
CoRR
Vahid Aref, Rüdiger L. Urbanke
2011 B conf
ITW
Vahid Aref, Rüdiger L. Urbanke
2009 J jnl
IEEE Trans. Inf. Theory
Kasra Alishahi, Farokh Marvasti, Vahid Aref, Pedram Pad
2009 B conf
ITW
Masih Nilchian, Vahid Aref, Mohammad Reza Aref
2008 J jnl
CoRR
Kasra Alishahi, Farrokh Marvasti, Vahid Aref, Pedram Pad
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` |