M. Alamgir Hossain

113 papers A 2B 3C 8Misc 8Journal 47Unranked 44
YearRankTypeTitle / Venue / Authors
2023 conf
SKIMA
T. A Han, D. Pandit, Sina Joneidy, M. M. Hasan, M. Julius Hossain, Marzia Hoque Tania, M. Alamgir Hossain, N. Nourmohammadi
2023 J jnl
J. Enterp. Inf. Manag.
Moruf Akin Adebowale, Khin T. Lwin, M. Alamgir Hossain
2023 J jnl
J. Enterp. Inf. Manag.
Marzia Hoque Tania, M. Shamim Kaiser, Kamal Abu-Hassan, M. Alamgir Hossain
2023 J jnl
J. Comput. Phys.
M. Alamgir Hossain, Sam Pimentel, John M. Stockie
2022 conf
SKIMA
Sharif Ahmed, M. Alamgir Hossain, Zia Ush-Shamszaman
2022 conf
SKIMA
Mahmudul Hassan, M. Alamgir Hossain
2022 conf
SKIMA
Nazia Hameed, Md Mahmudul Hassan, M. Alamgir Hossain
2022 conf
SKIMA
M. Alamgir Hossain, Daravichet Tin, Pharino Chum, Tomeng Taing, Siriwat Chhem
2022 conf
SKIMA
M. Alamgir Hossain, Daravichet Tin
2022 J jnl
J. Glob. Inf. Manag.
Victor Chang, Chun Yu Ng, Qianwen Ariel Xu, Mohamed Bin Zayed, M. Alamgir Hossain
2022 J jnl
CoRR
M. Alamgir Hossain, Sam Pimentel, John M. Stockie
2022 conf
SKIMA
Marzia Hoque Tania, M. Shamim Kaiser, Antesar M. Shabut, Kamal J. AbuHassan, Mufti Mahmud, M. Alamgir Hossain
2021 J jnl
Comput. Phys. Commun.
M. Alamgir Hossain, Jahrul M. Alam
2020 J jnl
CoRR
M. Alamgir Hossain, Petra M. Menz, John M. Stockie
2020 J jnl
Expert Syst. Appl.
Marzia Hoque Tania, Khin T. Lwin, Antesar M. Shabut, Mohammad Najlah, Jeannette Chin, M. Alamgir Hossain
2020 J jnl
Expert Syst. Appl.
Nazia Hameed, Antesar M. Shabut, Miltu K. Ghosh, M. Alamgir Hossain
2019 conf
SKIMA
Marzia Hoque Tania, Khin T. Lwin, Antesar M. Shabut, Kamal J. AbuHassan, M. Shamim Kaiser, M. Alamgir Hossain
2019 conf
SKIMA
Moses Adebowale Akanbi, Khin T. Lwin, M. Alamgir Hossain
2019 J jnl
Eng. Appl. Artif. Intell.
Md Mahmudul Hasan, Khin T. Lwin, Maryam Imani, Antesar M. Shabut, Luiz Fernando Bittencourt, M. Alamgir Hossain
2019 J jnl
Expert Syst. Appl.
Moses Adebowale Akanbi, Khin T. Lwin, Erika Sanchez, M. Alamgir Hossain
2018 conf
CEEC
Nazia Hameed, Antesar M. Shabut, M. Alamgir Hossain
2018 J jnl
Neural Comput. Appl.
Mohammad Alauthman, Nauman Aslam, Li Zhang, Rafe Alasem, M. Alamgir Hossain
2018 J jnl
Expert Syst. Appl.
M. Abdulla Al Mamun, Worawut Srisukkham, Dewan Md. Farid, Lorna Ravenhill, Li Zhang, M. Alamgir Hossain, Rosemary Bass
2018 J jnl
Expert Syst. Appl.
Antesar M. Shabut, Marzia Hoque Tania, Khin T. Lwin, Benjamin A. Evans, Nor Azah Yusof, Kamal J. AbuHassan, M. Alamgir Hossain
2018 conf
SKIMA
Nazia Hameed, Antesar M. Shabut, M. Alamgir Hossain
2017 conf
SKIMA
Ashim Chakraborty, David Chik, Matilda Biba, M. Alamgir Hossain
2017 conf
SKIMA
Nicola Cortesi, Kevin Gotti, Giuseppe Psaila, Federica Burini, Khin T. Lwin, M. Alamgir Hossain
2017 Misc conf
PACBB
Marzia Hoque Tania, Khin T. Lwin, Kamal J. AbuHassan, Noremylia Mohd Bakhori, Umi Zulaikha Mohd Azmi, Nor Azah Yusof, M. Alamgir Hossain
2017 conf
EMBC
Kamal J. AbuHassan, Noremylia Mohd Bakhori, Norzila Kusnin, Umi Zulaikha Mohd Azmi, Marzia Hoque Tania, Benjamin A. Evans, Nor Azah Yusof, M. Alamgir Hossain
2017 conf
iThings/GreenCom/CPSCom/SmartData
Antesar M. Shabut, Keshav P. Dahal, M. Shamim Kaiser, M. Alamgir Hossain
2017 conf
SKIMA
Nicola Cortesi, Kevin Gotti, Giuseppe Psaila, Federica Burini, Khin T. Lwin, M. Alamgir Hossain
2016 conf
SKIMA
Nazia Hameed, Anglia Ruskin, Kamal Abu-Hassan, M. Alamgir Hossain
2016 conf
SKIMA
Anjum N. Shaikh, Antesar M. Shabut, M. Alamgir Hossain
2016 conf
SKIMA
Marzia Hoque Tania, Khin T. Lwin, M. Alamgir Hossain
2016 conf
SKIMA
Antesar M. Shabut, Khin T. Lwin, M. Alamgir Hossain
2016 conf
CEEC
Md Mahmudul Hasan, Kamal J. AbuHassan, Khin T. Lwin, M. Alamgir Hossain
2016 J jnl
Expert Syst. Appl.
Martin Wonders, Zabih Ghassemlooy, M. Alamgir Hossain
2015 J jnl
Expert Syst. Appl.
Yang Zhang, Li Zhang, M. Alamgir Hossain
2015 conf
SKIMA
Sami Smadi, Nauman Aslam, Li Zhang, Rafe Alasem, M. Alamgir Hossain
2015 J jnl
Appl. Soft Comput.
Keshav P. Dahal, Khaled Almejalli, M. Alamgir Hossain, Wenbing Chen
2015 conf
SKIMA
Wei Chen, Li Zhang, Ling Shao, Rosemary Bass, Chenyu Liu, M. Alamgir Hossain
2014 J jnl
Decis. Support Syst.
Abderrahim Bourouis, Mohammed Feham, M. Alamgir Hossain, Li Zhang
2014 J jnl
CoRR
Kazi Sakib, M. S. Hasan, M. Alamgir Hossain
2014 conf
BHI
M. Abdulla Al Mamun, Lorna Ravenhill, M. Alamgir Hossain, Dewan Md. Farid, Rosemary Bass
2014 J jnl
Expert Syst. Appl.
Dewan Md. Farid, Li Zhang, Chowdhury Mofizur Rahman, M. Alamgir Hossain, Rebecca Strachan
2014 B conf
IJCNN
Li Zhang, M. Alamgir Hossain, Ming Jiang
2014 A conf
AAMAS
Li Zhang, Kamlesh Mistry, M. Alamgir Hossain
2013 Misc conf
PACBB
M. Abdulla Al Mamun, M. Alamgir Hossain, Mohammad S. Alam, Rosemary Bass
2013 J jnl
Eng. Appl. Artif. Intell.
M. Alamgir Hossain, A. A. Madkour, Keshav P. Dahal, Li Zhang
2013 conf
Australasian Conference on Artificial Intelligence
Li Zhang, John A. Barnden, M. Alamgir Hossain
2013 J jnl
Expert Syst. Appl.
Dewan Md. Farid, Li Zhang, M. Alamgir Hossain, Chowdhury Mofizur Rahman, Rebecca Strachan, Graham Sexton, Keshav P. Dahal
2013 J jnl
Decis. Support Syst.
Keshav P. Dahal, Khaled Almejalli, M. Alamgir Hossain
2013 J jnl
CoRR
Jahrul M. Alam, Raymond Walsh, M. Alamgir Hossain, Andrew Rose
2013 J jnl
Expert Syst. Appl.
Bilal I. Sowan, Keshav P. Dahal, M. Alamgir Hossain, Li Zhang, Linda Spencer
2013 J jnl
J. Comput.
Syed Mahfuzul Aziz, Mohammad S. Alam, Vijayan K. Asari, M. Alamgir Hossain, Mohammad Ataul Karim
2013 J jnl
Expert Syst. Appl.
Li Zhang, Ming Jiang, Dewan Md. Farid, M. Alamgir Hossain
2013 J jnl
Expert Syst. Appl.
Phoebe A. Barraclough, M. Alamgir Hossain, Muhammad Atif Tahir, Graham Sexton, Nauman Aslam
2013 J jnl
Comput. Chem. Eng.
Mohammad S. Alam, M. Alamgir Hossain, S. Algoul, M. A. A. Majumder, M. Abdulla Al Mamun, Graham Sexton, Roger M. Phillips
2013 A conf
AAMAS
Yang Zhang, Li Zhang, M. Alamgir Hossain
2013 Misc conf
DCAI
Nadia Alam, Munira Sultana, Mohammad S. Alam, M. Abdulla Al Mamun, M. Alamgir Hossain
2012 J jnl
IEEE ACM Trans. Comput. Biol. Bioinform.
Nabila Kazmi, M. Alamgir Hossain, Roger M. Phillips
2012 J jnl
Entertain. Comput.
Li Zhang, M. Alamgir Hossain
2012 J jnl
J. Comput.
Syed Mahfuzul Aziz, Vijayan K. Asari, M. Alamgir Hossain, Mohammad Ataul Karim, Mariofanna G. Milanova
2012 conf
ANT/MobiWIS
Li Zhang, M. Alamgir Hossain
2011 conf
KES (1)
Walid Adly Atteya, Keshav P. Dahal, M. Alamgir Hossain
2011 Misc conf
PACBB
S. Algoul, Mohammad S. Alam, Kazi Sakib, M. Alamgir Hossain, M. A. A. Majumder
2011 J jnl
J. Integr. Bioinform.
Saleh Enbiya, Fatima Mahieddine, M. Alamgir Hossain
2011 Misc conf
PACBB
Nabila Kazmi, M. Alamgir Hossain, Roger M. Phillips
2011 Misc conf
PACBB
Saleh Enbiya, M. Alamgir Hossain, Fatima Mahieddine
2011 J jnl
Medical Biol. Eng. Comput.
S. Algoul, Mohammad S. Alam, M. Alamgir Hossain, M. A. A. Majumder
2011 Misc conf
PACBB
Md. Saiful Islam, Alaol Kabir, Kazi Sakib, M. Alamgir Hossain
2010 conf
BIC-TA
N. Saltanat, M. Alamgir Hossain, Mohammad S. Alam
2010 J jnl
e Informatica Softw. Eng. J.
Aysh Menoer Alhroob, Keshav P. Dahal, M. Alamgir Hossain
2010 B conf
FUZZ-IEEE
Bilal I. Sowan, Keshav P. Dahal, M. Alamgir Hossain, Mohammad S. Alam
2010 J jnl
Cogn. Comput.
Maher Ragheb Aburrous, M. Alamgir Hossain, Keshav P. Dahal, Fadi A. Thabtah
2010 conf
BIC-TA
S. Algoul, Mohammad S. Alam, M. Alamgir Hossain, M. A. A. Majumder
2010 conf
ICAISC (1)
Bilal I. Sowan, Keshav P. Dahal, M. Alamgir Hossain
2010 J jnl
J. Comput.
Syed Mahfuzul Aziz, Vijayan K. Asari, M. Alamgir Hossain, Mohammad A. Karim, Mariofanna G. Milanova
2010 J jnl
J. Comput.
Syed Mahfuzul Aziz, Vijayan K. Asari, M. Alamgir Hossain, Mohammad A. Karim, Mariofanna G. Milanova
2010 C conf
CIT
Nabih T. Abdelmajid, M. Alamgir Hossain, S. Shepherd, Khaled W. Mahmoud
2010 C conf
CIT
Nabila Kazmi, M. Alamgir Hossain, Roger M. Phillips
2010 J jnl
Expert Syst. Appl.
Maher Ragheb Aburrous, M. Alamgir Hossain, Keshav P. Dahal, Fadi A. Thabtah
2010 conf
SocialCom/PASSAT
Nabih T. Abdelmajid, M. Alamgir Hossain, S. Shepherd, Khaled W. Mahmoud
2010 C conf
ISDA
Walid Adly Atteya, Keshav P. Dahal, M. Alamgir Hossain
2010 conf
CSBio
Mohammad S. Alam, Saleh Algoul, M. Alamgir Hossain, M. A. Azim Majumder
2010 conf
ITNG
Maher Ragheb Aburrous, M. Alamgir Hossain, Keshav P. Dahal, Fadi A. Thabtah
2010 J jnl
CoRR
Beenish Anam, Kazi Sakib, M. Alamgir Hossain, Keshav P. Dahal
2009 B conf
AINA
Rafe Khalaf Alasem, M. Alamgir Hossain, Irfan Awan, Hussein Mansour
2009 conf
CCA/ISIC
Khaled Almejalli, Keshav P. Dahal, M. Alamgir Hossain
2009 C conf
CW
Maher Ragheb Aburrous, M. Alamgir Hossain, Keshav P. Dahal, Fadi A. Thabtah
2009 J jnl
Appl. Math. Comput.
Md. Shafiqul Islam, M. Alamgir Hossain
2008 conf
ITNG
Maher Ragheb Aburrous, M. Alamgir Hossain, Fadi A. Thabtah, Keshav P. Dahal
2008 conf
CISIM
Keshav P. Dahal, M. Alamgir Hossain, Benny Varghese, Ajith Abraham, Fatos Xhafa, Atanasi Daradoumis
2007 conf
ICNSC
Rafe Khalaf Alasem, M. Alamgir Hossain, Irfan-Ullah Awan
2007 C conf
ISDA
Khaled Almejalli, Keshav P. Dahal, M. Alamgir Hossain
2007 conf
CIG
Munir Hussain Naveed, Peter I. Cowling, M. Alamgir Hossain
2007 J jnl
IEEE Trans. Syst. Man Cybern. Part C
A. Madkour, M. Alamgir Hossain, Keshav P. Dahal, Hongnian Yu
2007 conf
EvoWorkshops
Khaled Almejalli, Keshav P. Dahal, M. Alamgir Hossain
2007 C conf
ICSEA
Chartchai Doungsa-ard, Keshav P. Dahal, M. Alamgir Hossain, Taratip Suwannasart
2006 conf
CIG
Peter I. Cowling, Munir Hussain Naveed, M. Alamgir Hossain
2006 ed.
CLAWAR
Mohammad Osman Tokhi, Gurvinder S. Virk, M. Alamgir Hossain
2005 conf
CLAWAR
Mia Nazmul Haque Siddique, M. Alamgir Hossain, Mohammad Osman Tokhi
2005 C conf
ICINCO
S. Ingram, M. Alamgir Hossain, S. Cox
2005 C conf
ICINCO
M. Alamgir Hossain, A. A. Madkour, Keshav P. Dahal
2005 conf
CLAWAR
M. Alamgir Hossain, Mia Nazmul Haque Siddique, Mohammad Osman Tokhi, Mohammad S. Alam
2005 conf
EEE
Keshav P. Dahal, Zabeer Hussain, M. Alamgir Hossain
2004 J jnl
J. Circuits Syst. Comput.
T. Ahmad Ii, M. Alamgir Hossain, A. K. Ray Ii, Zabih Ghassemlooy
2004 conf
AACC
M. Alamgir Hossain, M. Osman Tokhi, Keshav P. Dahal
2003 Misc conf
IC-AI
P. O. Ezepue, K. S. Karata, M. Alamgir Hossain
2002 J jnl
Microprocess. Microsystems
M. Alamgir Hossain, Upama Kabir, M. Osman Tokhi
1998 J jnl
Robotica
Mohammad Osman Tokhi, M. Alamgir Hossain, Abul K. M. Azad
1997 J jnl
J. Parallel Distributed Comput.
M. Osman Tokhi, M. Alamgir Hossain, M. J. Baxter, Peter J. Fleming
1995 J jnl
Microprocess. Microsystems
M. Osman Tokhi, M. Alamgir Hossain
README.md
← Index README.md markdown
# redb
RationalEdge Samples DB

A malware analysis framework that extracts features from binary files (PE, ELF, Mach-O, APK) and stores them in ClickHouse for analysis.

## Quick Start

```bash
# Setup
source venv/bin/activate
pip install -r requirements.txt

# Process local files
python start.py --path /path/to/samples --repo test --index_prefix redb
```

## Usage Modes

### Local Mode
Process files from local filesystem:

```bash
# Single file or directory
python start.py --path /path/to/binary --repo test --index_prefix redb

# From a text file with paths (one per line)
python start.py --path /path/to/filelist.txt --repo test --index_prefix redb
```

### S3 Mode
Process samples from S3 storage based on catalog queries:

```bash
# By repository
python start.py --s3 --repo bazaar --index_prefix redb

# By repository with notes filter
python start.py --s3 --repo vx-itw --s3-notes "ITW.0138" --index_prefix redb

# By filetype (magika) - all ELF samples across all repos
python start.py --s3 --magika elf --index_prefix redb

# By filetype with repository filter
python start.py --s3 --repo bazaar --magika elf --index_prefix redb
```

### Date-Based Mode
Process samples by first_seen date from catalog:

```bash
# Single date (all samples first seen on Jan 15, 2025)
python start.py --date 2025-01-15 --index_prefix redb

# Date with repository filter
python start.py --date 2025-01-15 --repo bazaar --index_prefix redb

# Date range (inclusive)
python start.py --range 2025-01-01 2025-01-31 --index_prefix redb

# Date range with repository and notes filters
python start.py --range 2025-01-01 2025-01-31 --repo malshare --s3-notes "batch1" --index_prefix redb

# Date range with filetype filter
python start.py --range 2025-01-01 2025-01-31 --magika pebin --index_prefix redb
```

### S3-Solo Mode
Process a single sample by S3 key:

```bash
python start.py --s3-solo "09/f7/09f7d02a...hash.zip" --index_prefix redb
```

## Analysis Options

### Feature Extraction (default)
Runs all extractors to extract features from binaries:

```bash
python start.py --s3 --repo bazaar --index_prefix redb
```

### Specific Modules
Run only specific extractors:

```bash
python start.py --path /path/to/binary --repo test --index_prefix redb \
    --modules "BasicPropertiesExtractor,PEFeaturesExtractor,HashExtractor"
```

Available modules:
- **General**: `BasicPropertiesExtractor`, `HashExtractor`, `DIEExtractor`, `CAPAExtractor`
- **PE**: `PEFeaturesExtractor`, `PEImportExtractor`, `PEResourceExtractor`, `PEOverlayExtractor`, `PESectionExtractor`, `PESignatureExtractor`, `PEDotNetExtractor`, `PEInconstistencyTestsExtractor`, `PEExtraFindings`
- **ELF**: `ELFFeaturesExtractor`, `ELFSegmentExtractor`, `ELFSectionExtractor`, `ELFDependencyExtractor`, `ELFSymbolExtractor`, `ELFImportExtractor`, `ELFExportExtractor`, `ELFRelocationExtractor`, `ELFNotesExtractor`
- **Mach-O**: `MachOFeaturesExtractor`, `MachOSegmentExtractor`, `MachOImportExtractor`, `MachOExportExtractor`, `MachODylibExtractor`, `MachOSignatureExtractor`, `MachOSimilarityHashExtractor`
- **APK**: `APKFeaturesExtractor`, `APKManifestExtractor`, `APKPermissionsExtractor`, `APKSignatureExtractor`, `APKDexExtractor`, `APKResourceExtractor`, `APKNativeLibExtractor`, `APKInconsistencyTestsExtractor`
- **JavaScript**: `JSFeaturesExtractor`, `JSSuspiciousAPIsExtractor`, `JSStringsExtractor`, `JSDeobfuscationExtractor`, `JSContentExtractor`

**Note:** Using `--modules` with specific extractors respects the normal deduplication check. Add `--force` to reprocess samples already in the database.

### Analyzed Samples Mode
Process samples that are already in the database (from `basic_properties`). Useful for decompiling or re-running specific modules on previously analyzed samples:

```bash
# Decompile all already-analyzed samples that haven't been disassembled yet
python start.py --analyzed --index_prefix redb --decompile

# Decompile only ELF samples that were already analyzed
python start.py --analyzed --magika elf --index_prefix redb --decompile

# Re-run a specific extractor on already-analyzed samples
python start.py --analyzed --index_prefix redb --modules "MachOFeaturesExtractor"

# Force decompile ALL analyzed samples (even already-disassembled ones)
python start.py --analyzed --index_prefix redb --decompile --force

# Re-run a specific decompiler module on only already-disassembled samples
python start.py --analyzed --index_prefix redb --decompile --rerun --decompile-modules cfg
```

When combined with `--decompile`, the `--analyzed` flag has three behaviors:

| Flags | Source | Description |
|-------|--------|-------------|
| `--analyzed --decompile` | `basic_properties` minus `disassembled` | New samples only (first-time decompilation) |
| `--analyzed --decompile --force` | All of `basic_properties` | Re-run everything from scratch (e.g., new binja version) |
| `--analyzed --decompile --rerun` | Only `disassembled` table | Re-run on already-disassembled samples only (e.g., updated CFG module) |

The `--rerun` flag is particularly useful with `--decompile-modules` to selectively re-run a single module without reprocessing the full pipeline.

### Force Reprocessing
By default, samples already in the database are skipped. Use `--force` to reprocess them:

```bash
# Force full reprocessing of all samples
python start.py --s3 --repo bazaar --index_prefix redb --force

# Re-run a specific extractor on already-processed samples
python start.py --s3 --repo bazaar --index_prefix redb --modules "MachOFeaturesExtractor" --force

# Force YARA rescan (e.g., after updating rules)
python start.py --s3 --magika elf --index_prefix redb --yara --force
```

`--force` works across all modes: feature extraction, decompilation, and YARA scanning. ReplacingMergeTree handles deduplication, so reprocessed data cleanly replaces existing rows.

### Decompilation Mode
Run Binary Ninja decompilation only:

```bash
python start.py --s3 --repo bazaar --index_prefix redb --decompile
```

#### Selective Decompiler Modules
Run only specific decompiler sub-modules instead of the full pipeline:

```bash
# Run only strings extraction (fastest - skips per-function analysis)
python start.py --s3 --repo bazaar --index_prefix redb --decompile --decompile-modules strings

# Run disassembly and CFG analysis only
python start.py --s3 --repo bazaar --index_prefix redb --decompile --decompile-modules disassembly,cfg

# Run multiple modules
python start.py --s3 --repo bazaar --index_prefix redb --decompile --decompile-modules decompilation,disassembly,llil
```

Available decompiler modules:
- **decompilation** — High-level IL (HLIL) decompiled output → `code_binja_decompiled_functions_*` tables
- **disassembly** — Low-level assembly representation → `code_binja_disassembled_functions_*` tables
- **cfg** — Control flow graph analysis → `code_binja_cfg_functions` table
- **llil** — Low-level intermediate language → `code_binja_llil_functions_*` tables
- **strings** — Binary string extraction → `code_binja_strings_raw` table

**IOC extraction** runs automatically when `decompilation` or `strings` is selected (it consumes their in-memory results). It is skipped for modules like `cfg` or `disassembly` that don't produce IOC-relevant data.

Default is `all` (runs every module). Requires `-d/--decompile` flag.

### YARA Scanning
Run YARA rules against samples:

```bash
# YARA scanning only (skips already-scanned samples by default)
python start.py --s3 --magika elf --index_prefix redb --yara

# Force rescan all samples (e.g., after updating YARA rules)
python start.py --s3 --magika elf --index_prefix redb --yara --force

# Feature extraction + YARA scanning combined
python start.py --s3 --repo bazaar --index_prefix redb --with-yara
```

By default, `--yara` skips samples that already have matches in the `yara_matches` table. Use `--force` to rescan everything (e.g., after updating YARA rules).

### Dry Run Mode
Print results instead of uploading to database:

```bash
python start.py --path /path/to/binary --repo test --index_prefix redb --dry-run
```

## Environment Variables

See `.env.example` for all configuration options:

| Variable | Description |
|----------|-------------|
| `CLICKHOUSE_HOST` | ClickHouse server host |
| `CLICKHOUSE_PORT` | ClickHouse server port (default: 8123) |
| `CLICKHOUSE_USER` | ClickHouse username |
| `CLICKHOUSE_PASSWORD` | ClickHouse password |
| `S3_ENDPOINT` | S3/MinIO endpoint |
| `S3_ACCESS_KEY` | S3 access key |
| `S3_SECRET_KEY` | S3 secret key |
| `S3_BUCKET` | S3 bucket name |
| `INDEX_PREFIX` | Table prefix for ClickHouse (default: redb) |
| `SUPPORTED_FORMATS` | File formats to query (default: `['pebin']`) |
| `BATCH_SIZE` | Files per batch (default: 1000) |
| `REDB_TIMEOUT` | Worker timeout in seconds (default: 600) |
| `DECOMPILE_WORKER_TIMEOUT` | Decompile timeout (default: 2700) |

## Filtering Options Summary

| Option | Description | Standalone | With --repo | With --date/--range |
|--------|-------------|------------|-------------|---------------------|
| `--repo` | Filter by repository | Required for --s3 (unless --magika) | - | Optional |
| `--s3-notes` | Filter by notes field | No | Yes | Yes |
| `--magika` | Filter by filetype | Yes (queries all repos) | Yes | Yes |
| `--date` | Filter by single date | Yes | Yes | - |
| `--range` | Filter by date range | Yes | Yes | - |
| `--analyzed` | Process already-analyzed samples | Yes | N/A | N/A |