--- pretty_name: RansomLog tags: - cybersecurity - ransomware - malware-analysis - behavioral-analysis configs: - config_name: sample_metadata data_files: - split: samples path: metadata.csv --- # RansomLog v1.0 A Windows Behavior Log Dataset for Ransomware Analysis This dataset contains execution logs for **149 samples: 102 ransomware samples and 47 benign programs**. Each sample includes a raw Procmon log, normalized behavioral events, and a process tree. Executable files are not included. Ransomware samples were obtained from MalwareBazaar; benign entries cover Windows utilities and applications. Logs were collected during Windows program execution using Process Monitor. ## Directory structure ```text README.md metadata.csv logs-part-001.tar.zst logs-part-002.tar.zst logs-part-003.tar.zst SHA256SUMS ``` Each archive contains complete sample directories named after the full SHA-256 of the associated executable. Samples are not split across archives. After extraction, each sample has this layout: ```text / ├── raw_events.csv ├── normalized_events.jsonl └── process_tree.json ``` The metadata maps each sample ID to its SHA-256 directory and archive. ## Sample index `metadata.csv` contains one row per sample: | Column | Description | |---|---| | `sample_id` | Sample identifier | | `category` | `ransomware` or `benign` | | `source_category` | Category provided by the ransomware collection source | | `software` | Benign program name, where available | | `binary_sha256` | SHA-256 of the associated executable and the name of its log directory | | `raw_events` | Number of event records in the raw CSV | | `normalized_events` | Number of events in the normalized JSONL | | `archive` | Archive containing the sample directory | Empty cells indicate unavailable or inapplicable information. ## Sample files - **`raw_events.csv`** contains system-wide Procmon records, including background activity. Columns are `Time of Day`, `Process Name`, `PID`, `Operation`, `Path`, `Result`, and `Detail`. Files use UTF-8, optionally with a byte-order mark. Fields can contain embedded newlines, so record counts should be obtained with a CSV parser rather than a text line counter. - **`normalized_events.jsonl`** contains events attributed to the sample process and its descendants, represented as one JSON object per line. Fields describe event order, time, process context, action, target, and operation details. - **`process_tree.json`** records the sample's root process, descendant process instances, parent-child relationships, and observed lifetimes. Separate instances of a reused PID are distinguished where recorded. ## Event fields | Field | Meaning | |---|---| | `order.filtered` | Zero-based event position in this sample's normalized file | | `order.source_numeric` | Zero-based CSV record position, excluding the header | | `order.source` | The same source position encoded as `ev_XXXXXXXX` | | `time.raw_time` | Original time-of-day string | | `time.timestamp` | Time of day converted to seconds; not a Unix timestamp | | `process_context.pid` | PID of the process performing the operation | | `process_context.node_id` | Reference to a process instance in the tree's `node_index` | | `process_context.depth` | Distance from the root process, whose depth is zero | | `process_context.process_key` | Process-instance key combining node ID, PID, and process name | | `action` | Operation name, category, operation family, and recorded result | | `target` | Original path and derived path attributes | | `detail.raw_detail` | Original operation details | | `detail.parsed` | Fields extracted from the details, such as command line and parent or child PID | For process-start events, `process_context.pid` identifies the started process and `detail.parsed.parent_pid` identifies its parent. Parsed fields are included when present in the recorded details. Time values represent local time of day; calendar dates and time zones are not included. Event positions preserve the order of the source records. ## Process-tree fields Use `node_index` to enumerate process instances once. Each entry contains `parent_node_id`, `depth`, `child_count`, and a `process` object with PID, name, observed start/end times, and source event positions. A null parent identifies the root. `root_nodes` provides a nested view of these same nodes; it does not represent additional processes. `attribution` records root-process selection, and `diagnostics` contains tree-construction information. `close_reason=log_end` marks the end of the observation period. ## Download and extraction For selected samples, look up their `archive` values in `metadata.csv` and download the corresponding archives. Each archive can be extracted independently. Use a TAR utility with Zstandard support; GNU tar and the `zstd` command-line tool support the following commands. Extract one archive from the download directory: ```sh tar --zstd -xf logs-part-001.tar.zst ``` Extract all downloaded archives into the same directory: ```sh for archive in logs-part-*.tar.zst; do tar --zstd -xf "$archive" done ``` ## Reading the data Locate a program in `metadata.csv` and open the extracted directory named by its `binary_sha256`. Read the raw events with a CSV parser, the normalized events as JSON Lines, and the process tree as JSON. ## File integrity `SHA256SUMS` lists the SHA-256 of `metadata.csv`, and every archive. After downloading the complete release, check these files from the download directory: ```sh sha256sum -c SHA256SUMS ```