How futurecomputing4ai/ember2024 works
EMBER2024 is a malware-feature dataset and research toolkit. The documented workflow is to download raw features and labels, vectorize them for binary or richer family/behavior/tag tasks, read the resulting train/test/challenge arrays, and train or evaluate classifiers. The package also exposes PE feature extraction (including headers, sections, signatures, and parsing warnings) and non-PE feature support, plus metadata reading and model/dataset downloads. Source excerpts show the feature-vectorization and training layers; README documents evaluation and formats, so links for unsampled operations are omitted.
Main entry points: model.py Feature vectorization · features.py PE feature extraction · download.py Dataset download · eval_lgbm.py Benchmark evaluation
Components 21
Data acquisition
- Dataset download
src/thrember/download.py - Model download
src/thrember/download.py
Feature extraction
- PE feature extraction
src/thrember/features.py - Non-PE features
src/thrember/features.py - PE headers and metadata
src/thrember/features.py - Rich and Authenticode
src/thrember/features.py - PE parsing warnings
src/thrember/features.py
Dataset processing
- Raw features and labels
- Feature vectorization
src/thrember/model.py - Label and tag tasks
src/thrember/model.py - Vectorized arrays
- Metadata reading
src/thrember/model.py - Vector reader
src/thrember/model.py
Modeling
- Classifier training
src/thrember/model.py - Parameter search
src/thrember/model.py - Sample prediction
src/thrember/model.py - Benchmark evaluation
examples/eval_lgbm.py - Downloaded models
Other components
- Researcher
- Hugging Face datasets
- Hugging Face models
Connections 25
- Researcher → Dataset download: requests data
README.md - Dataset download → Hugging Face datasets: downloads splits
src/thrember/download.py - Dataset download → Raw features and labels: extracts archives
src/thrember/download.py - Researcher → Model download: requests models
README.md - Model download → Hugging Face models: lists and downloads
src/thrember/download.py - Model download → Downloaded models: saves files
src/thrember/download.py - Researcher → Feature vectorization: starts vectorization
README.md - Raw features and labels → Feature vectorization: provides raw records
README.md - Feature vectorization → PE feature extraction: processes PE features
src/thrember/model.py - Feature vectorization → Non-PE features: processes non-PE features
src/thrember/model.py - PE feature extraction → PE headers and metadata: extracts fields
src/thrember/features.py - PE feature extraction → Rich and Authenticode: extracts signatures
src/thrember/features.py - PE feature extraction → PE parsing warnings: extracts warnings
src/thrember/features.py - Feature vectorization → Label and tag tasks: encodes labels
src/thrember/model.py - Feature vectorization → Vectorized arrays: writes arrays
src/thrember/model.py - Researcher → Vector reader: reads subsets
README.md - Vector reader → Vectorized arrays: loads arrays
README.md - Researcher → Metadata reading: requests metadata
README.md - Researcher → Classifier training: trains classifier
README.md - Classifier training → Vector reader: loads training data
src/thrember/model.py - Researcher → Parameter search: searches parameters
src/thrember/model.py - Parameter search → Vector reader: loads training data
src/thrember/model.py - Researcher → Sample prediction: predicts sample
README.md - Researcher → Benchmark evaluation: evaluates benchmarks
README.md - Benchmark evaluation → Vector reader: reads evaluation sets